diff options
author | Bastien Orivel <eijebong@bananium.fr> | 2019-05-25 14:43:44 +0200 |
---|---|---|
committer | Bastien Orivel <eijebong@bananium.fr> | 2019-05-25 14:43:44 +0200 |
commit | 0b29caa5548b0e307f2a891f5082b940c10d5762 (patch) | |
tree | 28824723cefcdf48921f9b98cc947b7abe50a070 /components/script/dom/testbinding.rs | |
parent | 7dbff6efb7ce93ecfb04883cd1dffa24a03ed0ad (diff) | |
download | servo-0b29caa5548b0e307f2a891f5082b940c10d5762.tar.gz servo-0b29caa5548b0e307f2a891f5082b940c10d5762.zip |
Add support for attributes to the inCompartments binding parameter
Diffstat (limited to 'components/script/dom/testbinding.rs')
-rw-r--r-- | components/script/dom/testbinding.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/components/script/dom/testbinding.rs b/components/script/dom/testbinding.rs index 99e294e75e9..d048c07415c 100644 --- a/components/script/dom/testbinding.rs +++ b/components/script/dom/testbinding.rs @@ -1048,11 +1048,10 @@ impl TestBindingMethods for TestBinding { } } - fn PromiseAttribute(&self) -> Rc<Promise> { - let in_compartment_proof = AlreadyInCompartment::assert(&self.global()); + fn PromiseAttribute(&self, comp: InCompartment) -> Rc<Promise> { Promise::new_in_current_compartment( &self.global(), - InCompartment::Already(&in_compartment_proof), + comp ) } |