diff options
Diffstat (limited to 'components/script/dom/url.rs')
-rw-r--r-- | components/script/dom/url.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/components/script/dom/url.rs b/components/script/dom/url.rs index a0370d7f767..adc758a8f18 100644 --- a/components/script/dom/url.rs +++ b/components/script/dom/url.rs @@ -176,6 +176,11 @@ impl URLMethods for URL { UrlHelper::SetProtocol(&mut self.url.borrow_mut(), value); } + // https://url.spec.whatwg.org/#dom-url-origin + fn Origin(&self) -> USVString { + UrlHelper::Origin(&self.url.borrow()) + } + // https://url.spec.whatwg.org/#dom-url-search fn Search(&self) -> USVString { UrlHelper::Search(&self.url.borrow()) |