mirror of
https://github.com/servo/servo.git
synced 2025-08-02 20:20:14 +01:00
Auto merge of #13145 - ashrko619:nav-cookie-enabled, r=nox
Implemented Navigator.cookieEnabled <!-- Please describe your changes on the following line: --> --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix #13124 (github issue number if applicable). <!-- Either: --> - [x] There are tests for these changes. <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/13145) <!-- Reviewable:end -->
This commit is contained in:
commit
f787e8ed65
3 changed files with 13 additions and 7 deletions
|
@ -107,4 +107,10 @@ impl NavigatorMethods for Navigator {
|
|||
fn ServiceWorker(&self) -> Root<ServiceWorkerContainer> {
|
||||
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 NavigatorStorageUtils;
|
||||
Navigator implements NavigatorPlugins;
|
||||
Navigator implements NavigatorCookies;
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/#navigatorid
|
||||
[NoInterfaceObject, Exposed=(Window,Worker)]
|
||||
|
@ -52,3 +53,9 @@ interface NavigatorPlugins {
|
|||
[SameObject] readonly attribute MimeTypeArray mimeTypes;
|
||||
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)]
|
||||
expected: FAIL
|
||||
|
||||
[Navigator interface: attribute cookieEnabled]
|
||||
expected: FAIL
|
||||
|
||||
[Navigator interface: operation yieldForStorageUpdates()]
|
||||
expected: FAIL
|
||||
|
||||
|
@ -5355,9 +5352,6 @@
|
|||
[Navigator interface: calling unregisterContentHandler(DOMString,DOMString) on window.navigator with too few arguments must throw TypeError]
|
||||
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)]
|
||||
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]
|
||||
expected: FAIL
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue