mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Add an inCompartments config for bindings
This commit is contained in:
parent
2181872973
commit
7dbff6efb7
7 changed files with 37 additions and 10 deletions
|
@ -2,6 +2,7 @@
|
|||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
|
||||
|
||||
use crate::compartments::InCompartment;
|
||||
use crate::dom::bindings::cell::DomRefCell;
|
||||
use crate::dom::bindings::codegen::Bindings::DocumentBinding::{
|
||||
DocumentMethods, DocumentReadyState,
|
||||
|
@ -1144,8 +1145,9 @@ impl WindowMethods for Window {
|
|||
&self,
|
||||
input: RequestOrUSVString,
|
||||
init: RootedTraceableBox<RequestInit>,
|
||||
comp: InCompartment,
|
||||
) -> Rc<Promise> {
|
||||
fetch::Fetch(&self.upcast(), input, init)
|
||||
fetch::Fetch(&self.upcast(), input, init, comp)
|
||||
}
|
||||
|
||||
fn TestRunner(&self) -> DomRoot<TestRunner> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue