Skip to content

Commit

Permalink
window.name deals with lack of browsing context
Browse files Browse the repository at this point in the history
  • Loading branch information
tigercosmos committed May 18, 2019
1 parent 576394b commit e80fded
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
9 changes: 7 additions & 2 deletions components/script/dom/window.rs
Expand Up @@ -1160,12 +1160,17 @@ impl WindowMethods for Window {

// https://html.spec.whatwg.org/multipage/#dom-name
fn SetName(&self, name: DOMString) {
self.window_proxy().set_name(name);
if let Some(proxy) = self.undiscarded_window_proxy() {
proxy.set_name(name);
}
}

// https://html.spec.whatwg.org/multipage/#dom-name
fn Name(&self) -> DOMString {
self.window_proxy().get_name()
match self.undiscarded_window_proxy() {
Some(proxy) => proxy.get_name(),
None => "".into(),
}
}

// https://html.spec.whatwg.org/multipage/#dom-origin
Expand Down

This file was deleted.

0 comments on commit e80fded

Please sign in to comment.