diff options
author | bors-servo <lbergstrom+bors@mozilla.com> | 2019-05-20 13:47:33 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-20 13:47:33 -0400 |
commit | 255d54086b1345e3b82408c655431f22c69f0c14 (patch) | |
tree | 3743111634e2e1a53e8b538ec0f79b148e72d8b9 /components/script/dom/htmlmodelement.rs | |
parent | 25307c23f5a9af0e776fd78a7491865274f835c8 (diff) | |
parent | e80fdede4c065c276b1083931c25c4a9f0bb3320 (diff) | |
download | servo-255d54086b1345e3b82408c655431f22c69f0c14.tar.gz servo-255d54086b1345e3b82408c655431f22c69f0c14.zip |
Auto merge of #23410 - tigercosmos:proxywindow-spec-update, r=KiChjang
spec update: window.name deals with lack of browsing context
<!-- Please describe your changes on the following line: -->
new [spec](https://html.spec.whatwg.org/multipage/window-object.html#dom-name):
The name attribute's getter must run these steps:
1. If this Window object's browsing context is null, then return the empty string.
2. Return this Window object's browsing context's name.
The name attribute's setter must run these steps:
1. If this Window object's browsing context is null, then return.
2. Set this Window object's browsing context's name to the given value.
What is `null` here? According to [spec](https://html.spec.whatwg.org/multipage/browsers.html#concept-document-bc)
> A Document's browsing context is the browsing context whose session history contains the Document, if any such browsing context exists and has not been discarded, and null otherwise.
---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: -->
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [X] passed ` tests/wpt/web-platform-tests/html/browsers/the-window-object/name-attribute.window.js`
- [X] These changes fix #22915
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/23410)
<!-- Reviewable:end -->
Diffstat (limited to 'components/script/dom/htmlmodelement.rs')
0 files changed, 0 insertions, 0 deletions