aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/navigator.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/navigator.rs')
-rw-r--r--components/script/dom/navigator.rs16
1 files changed, 8 insertions, 8 deletions
diff --git a/components/script/dom/navigator.rs b/components/script/dom/navigator.rs
index 4f08281c1a1..4f3f3d2c2da 100644
--- a/components/script/dom/navigator.rs
+++ b/components/script/dom/navigator.rs
@@ -30,39 +30,39 @@ impl Navigator {
}
}
-impl<'a> NavigatorMethods for &'a Navigator {
+impl NavigatorMethods for Navigator {
// https://html.spec.whatwg.org/multipage/#dom-navigator-product
- fn Product(self) -> DOMString {
+ fn Product(&self) -> DOMString {
navigatorinfo::Product()
}
// https://html.spec.whatwg.org/multipage/#dom-navigator-taintenabled
- fn TaintEnabled(self) -> bool {
+ fn TaintEnabled(&self) -> bool {
navigatorinfo::TaintEnabled()
}
// https://html.spec.whatwg.org/multipage/#dom-navigator-appname
- fn AppName(self) -> DOMString {
+ fn AppName(&self) -> DOMString {
navigatorinfo::AppName()
}
// https://html.spec.whatwg.org/multipage/#dom-navigator-appcodename
- fn AppCodeName(self) -> DOMString {
+ fn AppCodeName(&self) -> DOMString {
navigatorinfo::AppCodeName()
}
// https://html.spec.whatwg.org/multipage/#dom-navigator-platform
- fn Platform(self) -> DOMString {
+ fn Platform(&self) -> DOMString {
navigatorinfo::Platform()
}
// https://html.spec.whatwg.org/multipage/#dom-navigator-useragent
- fn UserAgent(self) -> DOMString {
+ fn UserAgent(&self) -> DOMString {
navigatorinfo::UserAgent()
}
// https://html.spec.whatwg.org/multipage/#dom-navigator-appversion
- fn AppVersion(self) -> DOMString {
+ fn AppVersion(&self) -> DOMString {
navigatorinfo::AppVersion()
}
}