Skip to content

Implement Window.open and related infrastructure - #20678

Merged
bors-servo merged 7 commits into
servo:masterfrom
gterzian:improve_follow_hyperlinks
Aug 11, 2018
Merged

bors-servo merged 7 commits into
servo:masterfrom
gterzian:improve_follow_hyperlinks

Conversation

@gterzian

@gterzian gterzian commented Apr 22, 2018 •

Copy link
Copy Markdown
Member

Implement https://html.spec.whatwg.org/multipage/window-object.html#window-open-steps and related infra...


  • There are tests for these changes OR
  • These changes do not require tests because _____

This change is Reviewable

@highfive

Copy link
Copy Markdown

Heads up! This PR modifies the following files:

  • @asajeffrey: components/script/dom/htmlanchorelement.rs
  • @fitzgen: components/script/dom/htmlanchorelement.rs
  • @KiChjang: components/script/dom/htmlanchorelement.rs

@highfive

Copy link
Copy Markdown

warning Warning warning

  • These commits modify script code, but no tests are modified. Please consider adding a test!

@highfive highfive added the S-awaiting-review There is new code that needs to be reviewed. label Apr 22, 2018
@gterzian gterzian changed the title [WIP] Improve spec compliance of "follow hyperlinks" [WIP] Implement "the rules for choosing a browsing context" Apr 22, 2018
@servo-wpt-sync

Copy link
Copy Markdown
Collaborator

Opened new PR for upstreamable changes.

Completed upstream sync of web-platform-test changes at jdm/web-platform-tests#51.

@gterzian
gterzian force-pushed the improve_follow_hyperlinks branch from 6a2d887 to bc26359 Compare April 22, 2018 09:06
@servo-wpt-sync

Copy link
Copy Markdown
Collaborator

No upstreamable changes; closed existing PR.

Completed upstream sync of web-platform-test changes at jdm/web-platform-tests#51.

@gterzian
gterzian force-pushed the improve_follow_hyperlinks branch 6 times, most recently from 1bd9f3a to f594279 Compare April 23, 2018 04:20
@gterzian gterzian changed the title [WIP] Implement "the rules for choosing a browsing context" Implement "the rules for choosing a browsing context" Apr 23, 2018
@gterzian
gterzian force-pushed the improve_follow_hyperlinks branch from dc94a69 to 4b2b6e8 Compare April 23, 2018 06:04
@gterzian

gterzian commented Apr 23, 2018 •

Copy link
Copy Markdown
Member Author

This one is now ready for review.

A few notes:

  1. Why return a Window from choose_browsing_context? Because although we are choosing a browsing context, it is for the purpose of accessing the capabilities of the related window(such as navigation)
  2. Why put choose_browsing_context on WindowProxy? Because it seems that it has all the info necessary for choosing a browsing context.

@gterzian
gterzian force-pushed the improve_follow_hyperlinks branch 4 times, most recently from cb33891 to 32095f4 Compare April 23, 2018 08:12
@gterzian

Copy link
Copy Markdown
Member Author

@bors-servo try

@bors-servo

Copy link
Copy Markdown
Contributor

@gterzian: 🔑 Insufficient privileges: and not in try users

@cbrewster

Copy link
Copy Markdown
Contributor

@bors-servo try

Sorry homu has to be restarted before it takes the new changes into effect.

@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Trying commit 32095f4 with merge ad4c78e...

bors-servo pushed a commit that referenced this pull request Apr 27, 2018
Implement "the rules for choosing a browsing context"

<!-- Please describe your changes on the following line: -->

Implement https://html.spec.whatwg.org/multipage/browsers.html#the-rules-for-choosing-a-browsing-context-given-a-browsing-context-name

and plug into
1. https://html.spec.whatwg.org/multipage/links.html#following-hyperlinks
2. https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#concept-form-submit

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: -->
- [ ] `./mach build -d` does not report any errors
- [ ] `./mach build-geckolib` does not report any errors
- [ ] `./mach test-tidy` does not report any errors
- [ ] These changes fix  #20673 (github issue number if applicable).

<!-- Either: -->
- [ ] There are tests for these changes OR
- [ ] These changes do not require tests because _____

<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

<!-- 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/20678)
<!-- Reviewable:end -->
@bors-servo

Copy link
Copy Markdown
Contributor

💔 Test failed - linux-rel-css

@highfive highfive added the S-tests-failed The changes caused existing tests to fail. label Apr 27, 2018
@bors-servo

Copy link
Copy Markdown
Contributor

💔 Test failed - linux-rel-css

@servo-wpt-sync

Copy link
Copy Markdown
Collaborator

Transplanted upstreamable changes to existing PR.

Completed upstream sync of web-platform-test changes at jdm/web-platform-tests#76.

@gterzian

gterzian commented Aug 10, 2018 •

Copy link
Copy Markdown
Member Author

@jdm OK those were indeed too quickly set to PASS, I've set them back to FAIL...

{"status": "FAIL", "group": "default", "message": "assert_array_equals: Pages opened during history navigation property 1, expected 3 but got 2", "stack": "start_test_wait</timer<@http://web-platform.test:8000/html/browsers/history/the-history-interface/traverse_the_history_2.html:17:13\nTest.prototype.step@http://web-platform.test:8000/resources/testharness.js:1553:20\nTest.prototype.step_func/<@http://web-platform.test:8000/resources/testharness.js:1577:20\n", "subtest": "Multiple history traversals, last would be aborted", "test": "/html/browsers/history/the-history-interface/traverse_the_history_2.html", "line": 84689, "action": "test_result", "expected": "PASS"}
{"status": "FAIL", "group": "default", "message": "assert_array_equals: Pages opened during history navigation property 1, expected 5 but got 3", "stack": "start_test_wait</timer<@http://web-platform.test:8000/html/browsers/history/the-history-interface/traverse_the_history_4.html:17:13\nTest.prototype.step@http://web-platform.test:8000/resources/testharness.js:1553:20\nTest.prototype.step_func/<@http://web-platform.test:8000/resources/testharness.js:1577:20\n", "subtest": "Multiple history traversals, last would be aborted", "test": "/html/browsers/history/the-history-interface/traverse_the_history_4.html", "line": 119587, "action": "test_result", "expected": "PASS"}

while this looks like an intermittent

{"status": "FAIL", "group": "default", "message": "assert_equals: expected \"href\" but got \"click\"", "stack": "onmessage<@http://web-platform.test:8000/html/browsers/browsing-the-web/navigating-across-documents/006.html:14:5\nTest.prototype.step@http://web-platform.test:8000/resources/testharness.js:1553:20\nTest.prototype.step_func/<@http://web-platform.test:8000/resources/testharness.js:1577:20\n", "subtest": "Link with onclick form submit and href navigation ", "test": "/html/browsers/browsing-the-web/navigating-across-documents/006.html", "line": 68859, "action": "test_result", "expected": "PASS"}

@jdm

jdm commented Aug 10, 2018

Copy link
Copy Markdown
Member

@bors-servo r+

@bors-servo

Copy link
Copy Markdown
Contributor

📌 Commit e784f5a has been approved by jdm

@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Testing commit e784f5a with merge 9c24c16...

@bors-servo

Copy link
Copy Markdown
Contributor

💔 Test failed - linux-rel-css

@jdm

jdm commented Aug 11, 2018

Copy link
Copy Markdown
Member

@bors-servo retry

@bors-servo

Copy link
Copy Markdown
Contributor

@bors-servo

Copy link
Copy Markdown
Contributor

💔 Test failed - linux-rel-css

@CYBAI

CYBAI commented Aug 11, 2018

Copy link
Copy Markdown
Member

@bors-servo retry

@bors-servo

Copy link
Copy Markdown
Contributor

@bors-servo

Copy link
Copy Markdown
Contributor

@servo-wpt-sync

Copy link
Copy Markdown
Collaborator

Error syncing changes upstream. Logs saved in error-snapshot-1533956366317.

@paulrouget

Copy link
Copy Markdown
Contributor

\o/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-tests-failed The changes caused existing tests to fail.

Projects

None yet