Added some same-origin-domain checks.

This commit is contained in:
Alan Jeffrey 2017-02-09 14:28:37 -06:00
parent 628cd7de6d
commit 1f61a549a3
45 changed files with 223 additions and 348 deletions

View file

@ -25696,7 +25696,7 @@
"support"
],
"mozilla/referrer-policy/generic/common.js": [
"1f4a0fa9285ad504cba75c01b4938c9da78cace3",
"6882adfd624da27cd226e1575988e85ad4e0a562",
"support"
],
"mozilla/referrer-policy/generic/referrer-policy-test-case.js": [

View file

@ -195,8 +195,8 @@ function queryAnchor(url, callback, referrer_policy) {
var url_with_params = url + "&id=" + id + "&tagAttrs=" + JSON.stringify(referrer_policy);
var iframe = appendIframeToBody(url_with_params);
iframe.addEventListener("load", function listener() {
if ((iframe.contentWindow !== null) &&
(iframe.contentWindow.location.toString() === url_with_params)) {
if ((iframe.contentDocument !== null) &&
(iframe.contentDocument.location.toString() === url_with_params)) {
return;
}