mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
Replace Root::deref by a custom get_unsound_ref_forever method.
This will hopefully make it clearer that this is not the correct function to call.
This commit is contained in:
parent
40c59724b2
commit
d8c2c88bbd
8 changed files with 70 additions and 61 deletions
|
@ -1015,6 +1015,7 @@ impl<'a> DocumentMethods for JSRef<'a, Document> {
|
|||
return Err(Security);
|
||||
}
|
||||
let window = self.window.root();
|
||||
let window = window.r();
|
||||
let page = window.page();
|
||||
let (tx, rx) = channel();
|
||||
let _ = page.resource_task.send(GetCookiesForUrl(url, tx, NonHTTP));
|
||||
|
@ -1030,6 +1031,7 @@ impl<'a> DocumentMethods for JSRef<'a, Document> {
|
|||
return Err(Security);
|
||||
}
|
||||
let window = self.window.root();
|
||||
let window = window.r();
|
||||
let page = window.page();
|
||||
let _ = page.resource_task.send(SetCookiesForUrl(url, cookie, NonHTTP));
|
||||
Ok(())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue