aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/window.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/window.rs')
-rw-r--r--components/script/dom/window.rs6
1 files changed, 1 insertions, 5 deletions
diff --git a/components/script/dom/window.rs b/components/script/dom/window.rs
index 533db98e05b..bcda545a8cb 100644
--- a/components/script/dom/window.rs
+++ b/components/script/dom/window.rs
@@ -865,11 +865,7 @@ impl WindowMethods for Window {
// Step 3-5.
let origin = match &origin[..] {
"*" => None,
- "/" => {
- // TODO(#12715): Should be the origin of the incumbent settings
- // object, not self's.
- Some(self.Document().origin().immutable().clone())
- },
+ "/" => Some(source.Document().origin().immutable().clone()),
url => match ServoUrl::parse(&url) {
Ok(url) => Some(url.origin().clone()),
Err(_) => return Err(Error::Syntax),