Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upChecking the browsing_context before change title #10821
Conversation
highfive
commented
Apr 23, 2016
|
Heads up! This PR modifies the following files:
|
highfive
commented
Apr 23, 2016
|
Testing HTML: <!DOCTYPE html>
<title>Foo</title>
<script>
setTimeout(() => {
var text =
'<html xmlns="http://www.w3.org/1999/xhtml">' +
' <head>' +
' <title>Virtual Library</title>' +
' </head>' +
'</html>';
var parser = new DOMParser();
var doc = parser.parseFromString(text, "text/xml");
}, 100);
</script>The title keep |
|
@askeing You can probably add the test HTML into WPT, see https://github.com/servo/servo/blob/master/tests/wpt/README.md#writing-new-tests |
|
Unfortunately this change can't be verified by automated tests, since it's only the window frame title that changes, which isn't visible to JS. |
|
R? @jdm |
|
Isn't the window title exposed through the |
|
What about just calling |
|
@nox I'm not sure what you're proposing. That's what the code tries to do? |
|
@notriddle is absolutely right. We can use a test like |
|
@jdm, should I open another PR for the test? Or just add a commit here? |
|
Adding the commit here would be appropriate. |
|
I found the parent page will get Origin build: $ ./mach test-wpt --debug-build tests/wpt/mozilla/tests/mozilla/mozbrowser/mozbrowsertitlechangedeagerly_event.html
Running 1 tests in web-platform-tests
Unsupported test type wdspec for product servo
▶ Unexpected subtest result in /_mozilla/mozilla/mozbrowser/mozbrowsertitlechangedeagerly_event.html:
│ FAIL [expected PASS] Check if title_changed is too eager (issue #10782)
│ → assert_not_equals: got disallowed value "Bar"
│
│ @http://web-platform.test:8000/_mozilla/mozilla/mozbrowser/mozbrowsertitlechangedeagerly_event.html:7:13
│ Test.prototype.step@http://web-platform.test:8000/resources/testharness.js:1397:20
└ Test.prototype.step_func/<@http://web-platform.test:8000/resources/testharness.js:1421:1
Ran 1 tests finished in 14.0 seconds.
• 0 ran as expected. 0 tests skipped.
• 1 tests had unexpected subtest resultsAfter modified build: ./mach test-wpt --debug-build tests/wpt/mozilla/tests/mozilla/mozbrowser/mozbrowsertitlechangedeagerly_event.html
Running 1 tests in web-platform-tests
Unsupported test type wdspec for product servo
Ran 1 tests finished in 5.0 seconds.
• 1 ran as expected. 0 tests skipped. |
|
-S-needs-tests -S-awaiting-review +S-needs-code-changes Reviewed 1 of 1 files at r1, 3 of 3 files at r2. components/script/dom/document.rs, line 621 [r1] (raw file): tests/wpt/mozilla/tests/mozilla/mozbrowser/mozbrowsertitlechangedeagerly_event.html, line 16 [r2] (raw file): tests/wpt/mozilla/tests/mozilla/mozbrowser/mozbrowsertitlechangedeagerly_event_iframe.html, line 5 [r2] (raw file): tests/wpt/mozilla/tests/mozilla/mozbrowser/mozbrowsertitlechangedeagerly_event_iframe.html, line 14 [r2] (raw file): tests/wpt/mozilla/tests/mozilla/mozbrowser/mozbrowsertitlechangedeagerly_event_iframe.html, line 16 [r2] (raw file): Comments from Reviewable |
|
tests/wpt/mozilla/tests/mozilla/mozbrowser/mozbrowsertitlechangedeagerly_event.html, line 16 [r2] (raw file): Comments from Reviewable |
|
Review status: all files reviewed at latest revision, 5 unresolved discussions. tests/wpt/mozilla/tests/mozilla/mozbrowser/mozbrowsertitlechangedeagerly_event.html, line 16 [r2] (raw file): Comments from Reviewable |
highfive
commented
May 4, 2016
|
New code was committed to pull request. |
|
@bors-servo: delegate+ Reviewed 3 of 3 files at r3. Comments from Reviewable |
|
|
|
@bors-servo retry |
Checking the browsing_context before change title fix #10782 <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10821) <!-- Reviewable:end -->
|
|
|
@bors-servo retry |
Checking the browsing_context before change title fix #10782 <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10821) <!-- Reviewable:end -->
|
|
highfive
commented
May 6, 2016
|
|
@bors-servo retry
|
|
|
Filed #11059 |
|
|
askeing commentedApr 23, 2016
fix #10782
This change is