diff options
Diffstat (limited to 'components/script/dom/location.rs')
-rw-r--r-- | components/script/dom/location.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/components/script/dom/location.rs b/components/script/dom/location.rs index 0457da58618..08e23b15920 100644 --- a/components/script/dom/location.rs +++ b/components/script/dom/location.rs @@ -81,6 +81,11 @@ impl LocationMethods for Location { self.set_url_component(value, UrlHelper::SetHost); } + // https://html.spec.whatwg.org/multipage/#dom-location-origin + fn Origin(&self) -> USVString { + UrlHelper::Origin(&self.get_url()) + } + // https://html.spec.whatwg.org/multipage/#dom-location-hostname fn Hostname(&self) -> USVString { UrlHelper::Hostname(&self.get_url()) |