aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/windowproxy.rs
diff options
context:
space:
mode:
authorBastien Orivel <eijebong@bananium.fr>2019-08-24 16:27:46 +0200
committerBastien Orivel <eijebong@bananium.fr>2019-08-24 17:22:44 +0200
commitec6b478775056c7cc31509c2a50856b041fb3bf8 (patch)
treecf7a7f2f3ab508391fffeaff60e9a0076d1facf9 /components/script/dom/windowproxy.rs
parent6ff252478110e10df1e7abaef199de805bf8f1d5 (diff)
downloadservo-ec6b478775056c7cc31509c2a50856b041fb3bf8.tar.gz
servo-ec6b478775056c7cc31509c2a50856b041fb3bf8.zip
Update Window::open and document::open parameters to match the spec
Fixes #24012
Diffstat (limited to 'components/script/dom/windowproxy.rs')
-rw-r--r--components/script/dom/windowproxy.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/dom/windowproxy.rs b/components/script/dom/windowproxy.rs
index d64975a78b9..3ff326c683a 100644
--- a/components/script/dom/windowproxy.rs
+++ b/components/script/dom/windowproxy.rs
@@ -10,7 +10,7 @@ use crate::dom::bindings::inheritance::Castable;
use crate::dom::bindings::proxyhandler::fill_property_descriptor;
use crate::dom::bindings::reflector::{DomObject, Reflector};
use crate::dom::bindings::root::{Dom, DomRoot};
-use crate::dom::bindings::str::DOMString;
+use crate::dom::bindings::str::{DOMString, USVString};
use crate::dom::bindings::trace::JSTraceable;
use crate::dom::bindings::utils::{get_array_index_from_id, AsVoidPtr, WindowProxyHandler};
use crate::dom::dissimilaroriginwindow::DissimilarOriginWindow;
@@ -395,7 +395,7 @@ impl WindowProxy {
// https://html.spec.whatwg.org/multipage/#window-open-steps
pub fn open(
&self,
- url: DOMString,
+ url: USVString,
target: DOMString,
features: DOMString,
) -> Option<DomRoot<WindowProxy>> {