mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
Update Window::open and document::open parameters to match the spec
Fixes #24012
This commit is contained in:
parent
6ff2524781
commit
ec6b478775
7 changed files with 9 additions and 14 deletions
|
@ -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>> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue