mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Pass InCompartment by value
This commit is contained in:
parent
1b6949d4cf
commit
e2e6e2ac94
26 changed files with 52 additions and 50 deletions
|
@ -295,7 +295,7 @@ where
|
|||
let in_compartment_proof = AlreadyInCompartment::assert(&attribute.global());
|
||||
let p = Promise::new_in_current_compartment(
|
||||
&attribute.global(),
|
||||
&InCompartment::Already(&in_compartment_proof),
|
||||
InCompartment::Already(&in_compartment_proof),
|
||||
);
|
||||
|
||||
let result_uuid = if let Some(u) = uuid {
|
||||
|
@ -539,7 +539,7 @@ impl BluetoothMethods for Bluetooth {
|
|||
let in_compartment_proof = AlreadyInCompartment::assert(&self.global());
|
||||
let p = Promise::new_in_current_compartment(
|
||||
&self.global(),
|
||||
&InCompartment::Already(&in_compartment_proof),
|
||||
InCompartment::Already(&in_compartment_proof),
|
||||
);
|
||||
// Step 1.
|
||||
if (option.filters.is_some() && option.acceptAllDevices) ||
|
||||
|
@ -561,7 +561,7 @@ impl BluetoothMethods for Bluetooth {
|
|||
let in_compartment_proof = AlreadyInCompartment::assert(&self.global());
|
||||
let p = Promise::new_in_current_compartment(
|
||||
&self.global(),
|
||||
&InCompartment::Already(&in_compartment_proof),
|
||||
InCompartment::Already(&in_compartment_proof),
|
||||
);
|
||||
// Step 1. We did not override the method
|
||||
// Step 2 - 3. in handle_response
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue