diff options
Diffstat (limited to 'components/script/dom/dissimilaroriginwindow.rs')
-rw-r--r-- | components/script/dom/dissimilaroriginwindow.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/components/script/dom/dissimilaroriginwindow.rs b/components/script/dom/dissimilaroriginwindow.rs index 51cad369282..65a8039e261 100644 --- a/components/script/dom/dissimilaroriginwindow.rs +++ b/components/script/dom/dissimilaroriginwindow.rs @@ -5,8 +5,8 @@ use base::id::PipelineId; use dom_struct::dom_struct; use js::jsapi::{Heap, JSObject}; -use js::jsval::{JSVal, UndefinedValue}; -use js::rust::{CustomAutoRooter, CustomAutoRooterGuard, HandleValue}; +use js::jsval::UndefinedValue; +use js::rust::{CustomAutoRooter, CustomAutoRooterGuard, HandleValue, MutableHandleValue}; use script_traits::{ScriptMsg, StructuredSerializedData}; use servo_url::ServoUrl; @@ -167,9 +167,9 @@ impl DissimilarOriginWindowMethods for DissimilarOriginWindow { } // https://html.spec.whatwg.org/multipage/#dom-opener - fn Opener(&self, _: JSContext) -> JSVal { + fn Opener(&self, _: JSContext, mut retval: MutableHandleValue) { // TODO: Implement x-origin opener - UndefinedValue() + retval.set(UndefinedValue()); } // https://html.spec.whatwg.org/multipage/#dom-opener |