mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
implement window.open, create auxiliary browsing context
This commit is contained in:
parent
3e96a322ae
commit
f408b798c4
93 changed files with 476 additions and 324 deletions
|
@ -565,6 +565,15 @@ impl WindowMethods for Window {
|
|||
doc.abort();
|
||||
}
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/#dom-open
|
||||
fn Open(&self,
|
||||
url: DOMString,
|
||||
target: DOMString,
|
||||
features: DOMString)
|
||||
-> Option<DomRoot<WindowProxy>> {
|
||||
self.window_proxy().open(url, target, features)
|
||||
}
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/#dom-window-closed
|
||||
fn Closed(&self) -> bool {
|
||||
self.window_proxy.get()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue