aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/messagechannel.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/messagechannel.rs')
-rw-r--r--components/script/dom/messagechannel.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/dom/messagechannel.rs b/components/script/dom/messagechannel.rs
index ca3d8738143..41550cb4a7d 100644
--- a/components/script/dom/messagechannel.rs
+++ b/components/script/dom/messagechannel.rs
@@ -31,10 +31,10 @@ impl MessageChannel {
/// <https://html.spec.whatwg.org/multipage/#dom-messagechannel>
fn new(incumbent: &GlobalScope, proto: Option<HandleObject>) -> DomRoot<MessageChannel> {
// Step 1
- let port1 = MessagePort::new(&incumbent);
+ let port1 = MessagePort::new(incumbent);
// Step 2
- let port2 = MessagePort::new(&incumbent);
+ let port2 = MessagePort::new(incumbent);
incumbent.track_message_port(&*port1, None);
incumbent.track_message_port(&*port2, None);