mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +01:00
Added some same-origin-domain checks.
This commit is contained in:
parent
628cd7de6d
commit
1f61a549a3
45 changed files with 223 additions and 348 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue