diff options
Diffstat (limited to 'components/script/dom/document.rs')
-rw-r--r-- | components/script/dom/document.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/components/script/dom/document.rs b/components/script/dom/document.rs index 29d7227dee9..ac3b715802f 100644 --- a/components/script/dom/document.rs +++ b/components/script/dom/document.rs @@ -3396,7 +3396,10 @@ impl DocumentMethods for Document { let entry_responsible_document = GlobalScope::entry().as_window().Document(); - if !self.origin.same_origin(&entry_responsible_document.origin) { + // This check should probably be same-origin-domain + // https://github.com/whatwg/html/issues/2282 + // https://github.com/whatwg/html/pull/2288 + if !self.origin.same_origin_domain(&entry_responsible_document.origin) { // Step 4. return Err(Error::Security); } |