mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +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> {
|
||||
self.serviceWorker.or_init(|| ServiceWorkerContainer::new(self.global().r()))
|
||||
}
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/#dom-navigator-cookieenabled
|
||||
fn CookieEnabled(&self) -> bool {
|
||||
true
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue