mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Pass InCompartment by value
This commit is contained in:
parent
1b6949d4cf
commit
e2e6e2ac94
26 changed files with 52 additions and 50 deletions
|
@ -89,7 +89,7 @@ impl XRMethods for XR {
|
|||
let in_compartment_proof = AlreadyInCompartment::assert(&self.global());
|
||||
let promise = Promise::new_in_current_compartment(
|
||||
&self.global(),
|
||||
&InCompartment::Already(&in_compartment_proof),
|
||||
InCompartment::Already(&in_compartment_proof),
|
||||
);
|
||||
if mode == XRSessionMode::Immersive_vr {
|
||||
promise.resolve_native(&());
|
||||
|
@ -106,7 +106,7 @@ impl XRMethods for XR {
|
|||
let in_compartment_proof = AlreadyInCompartment::assert(&self.global());
|
||||
let promise = Promise::new_in_current_compartment(
|
||||
&self.global(),
|
||||
&InCompartment::Already(&in_compartment_proof),
|
||||
InCompartment::Already(&in_compartment_proof),
|
||||
);
|
||||
if options.mode != XRSessionMode::Immersive_vr {
|
||||
promise.reject_error(Error::NotSupported);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue