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
|
@ -432,7 +432,7 @@ impl RTCPeerConnectionMethods for RTCPeerConnection {
|
|||
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),
|
||||
);
|
||||
if candidate.sdpMid.is_none() && candidate.sdpMLineIndex.is_none() {
|
||||
p.reject_error(Error::Type(format!(
|
||||
|
@ -471,7 +471,7 @@ impl RTCPeerConnectionMethods for RTCPeerConnection {
|
|||
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),
|
||||
);
|
||||
if self.closed.get() {
|
||||
p.reject_error(Error::InvalidState);
|
||||
|
@ -487,7 +487,7 @@ impl RTCPeerConnectionMethods for RTCPeerConnection {
|
|||
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),
|
||||
);
|
||||
if self.closed.get() {
|
||||
p.reject_error(Error::InvalidState);
|
||||
|
@ -514,7 +514,7 @@ impl RTCPeerConnectionMethods for RTCPeerConnection {
|
|||
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),
|
||||
);
|
||||
let this = Trusted::new(self);
|
||||
let desc: SessionDescription = desc.into();
|
||||
|
@ -551,7 +551,7 @@ impl RTCPeerConnectionMethods for RTCPeerConnection {
|
|||
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),
|
||||
);
|
||||
let this = Trusted::new(self);
|
||||
let desc: SessionDescription = desc.into();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue