mirror of
https://github.com/servo/servo.git
synced 2025-08-02 12:10:29 +01:00
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 --> |
||
---|---|---|
.. | ||
docs | ||
dom | ||
task_source | ||
body.rs | ||
build.rs | ||
Cargo.toml | ||
clipboard_provider.rs | ||
CMakeLists.txt | ||
compartments.rs | ||
devtools.rs | ||
document_loader.rs | ||
fetch.rs | ||
image_listener.rs | ||
layout_image.rs | ||
lib.rs | ||
mem.rs | ||
microtask.rs | ||
network_listener.rs | ||
script_runtime.rs | ||
script_thread.rs | ||
serviceworker_manager.rs | ||
serviceworkerjob.rs | ||
stylesheet_loader.rs | ||
stylesheet_set.rs | ||
task.rs | ||
task_manager.rs | ||
task_queue.rs | ||
test.rs | ||
textinput.rs | ||
timers.rs | ||
unpremultiplytable.rs | ||
vcvars.bat | ||
webdriver_handlers.rs |