mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
Implemented Navigator.cookieEnabled
This commit is contained in:
parent
3649a356c8
commit
60f249874e
3 changed files with 13 additions and 7 deletions
|
@ -107,4 +107,10 @@ impl NavigatorMethods for Navigator {
|
||||||
fn ServiceWorker(&self) -> Root<ServiceWorkerContainer> {
|
fn ServiceWorker(&self) -> Root<ServiceWorkerContainer> {
|
||||||
self.serviceWorker.or_init(|| ServiceWorkerContainer::new(self.global().r()))
|
self.serviceWorker.or_init(|| ServiceWorkerContainer::new(self.global().r()))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// https://html.spec.whatwg.org/multipage/#dom-navigator-cookieenabled
|
||||||
|
fn CookieEnabled(&self) -> bool {
|
||||||
|
true
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -14,6 +14,7 @@ Navigator implements NavigatorLanguage;
|
||||||
//Navigator implements NavigatorContentUtils;
|
//Navigator implements NavigatorContentUtils;
|
||||||
//Navigator implements NavigatorStorageUtils;
|
//Navigator implements NavigatorStorageUtils;
|
||||||
Navigator implements NavigatorPlugins;
|
Navigator implements NavigatorPlugins;
|
||||||
|
Navigator implements NavigatorCookies;
|
||||||
|
|
||||||
// https://html.spec.whatwg.org/multipage/#navigatorid
|
// https://html.spec.whatwg.org/multipage/#navigatorid
|
||||||
[NoInterfaceObject, Exposed=(Window,Worker)]
|
[NoInterfaceObject, Exposed=(Window,Worker)]
|
||||||
|
@ -52,3 +53,9 @@ interface NavigatorPlugins {
|
||||||
[SameObject] readonly attribute MimeTypeArray mimeTypes;
|
[SameObject] readonly attribute MimeTypeArray mimeTypes;
|
||||||
boolean javaEnabled();
|
boolean javaEnabled();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// https://html.spec.whatwg.org/multipage/#navigatorcookies
|
||||||
|
[NoInterfaceObject, Exposed=(Window,Worker)]
|
||||||
|
interface NavigatorCookies {
|
||||||
|
readonly attribute boolean cookieEnabled;
|
||||||
|
};
|
||||||
|
|
|
@ -5304,9 +5304,6 @@
|
||||||
[Navigator interface: operation unregisterContentHandler(DOMString,DOMString)]
|
[Navigator interface: operation unregisterContentHandler(DOMString,DOMString)]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
[Navigator interface: attribute cookieEnabled]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Navigator interface: operation yieldForStorageUpdates()]
|
[Navigator interface: operation yieldForStorageUpdates()]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
|
@ -5355,9 +5352,6 @@
|
||||||
[Navigator interface: calling unregisterContentHandler(DOMString,DOMString) on window.navigator with too few arguments must throw TypeError]
|
[Navigator interface: calling unregisterContentHandler(DOMString,DOMString) on window.navigator with too few arguments must throw TypeError]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
[Navigator interface: window.navigator must inherit property "cookieEnabled" with the proper type (16)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Navigator interface: window.navigator must inherit property "yieldForStorageUpdates" with the proper type (17)]
|
[Navigator interface: window.navigator must inherit property "yieldForStorageUpdates" with the proper type (17)]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
|
@ -9008,4 +9002,3 @@
|
||||||
|
|
||||||
[Event interface: calling initEvent(DOMString,boolean,boolean) on new TrackEvent("addtrack", {track:document.createElement("track").track}) with too few arguments must throw TypeError]
|
[Event interface: calling initEvent(DOMString,boolean,boolean) on new TrackEvent("addtrack", {track:document.createElement("track").track}) with too few arguments must throw TypeError]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue