servo/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element
bors-servo 2dfbbd0ca2
Auto merge of #23368 - gterzian:clean_up_navigation, r=asajeffrey
Clean-up navigation

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

1. Navigation as a result of following a hyperlink should be done in a task: https://html.spec.whatwg.org/multipage/links.html#following-hyperlinks:dom-manipulation-task-source
2. The javascript url navigation should also be done in a task: https://html.spec.whatwg.org/multipage/browsing-the-web.html#navigating-across-documents:dom-manipulation-task-source
3. In `window.load_url`, it seems there is no need to send a message to the script-thread(the entirety of `load_url` should instead be done in a task when appropriate), so we can just do that last part "sync" by calling a method on the script, which will send a message to the constellation(for the parallel navigation steps), or queue task(for the JS navigation), as appropriate.
4. Separate the "normal" navigation flow from the handling of "navigate an iframe" message from constellation, since doing everything in one method as was previously done with `handle_navigate`, is confusing.

---
<!-- 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 test-tidy` does not report any errors
- [ ] These changes fix #___ (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/23368)
<!-- Reviewable:end -->
2019-07-18 14:22:03 -04:00
..
execution-timing clean-up navigation 2019-07-18 12:03:45 +08:00
fetch-src
json-module Update web-platform-tests to revision e426a6933a05bf144eba06a1d4c47ba876a4e2d1 2019-05-22 14:00:10 +00:00
module Update web-platform-tests to revision 887d08e63a19b14acf3217df77f12c121a792fed 2019-06-18 14:07:33 +00:00
resources Update web-platform-tests to revision 4052654d786236b493d2df3cb80b9d3d1d0a8354 2018-12-12 22:53:27 -05:00
support
async_001.htm
async_002.htm
async_003.htm Update web-platform-tests to revision 122a4672fa0dc554a6e7528fa3487fd907c792ee 2019-03-23 23:57:08 -04:00
async_004.htm Update web-platform-tests to revision 122a4672fa0dc554a6e7528fa3487fd907c792ee 2019-03-23 23:57:08 -04:00
async_005.htm Update web-platform-tests to revision 122a4672fa0dc554a6e7528fa3487fd907c792ee 2019-03-23 23:57:08 -04:00
async_006.htm Update web-platform-tests to revision 122a4672fa0dc554a6e7528fa3487fd907c792ee 2019-03-23 23:57:08 -04:00
async_007.htm Update web-platform-tests to revision 122a4672fa0dc554a6e7528fa3487fd907c792ee 2019-03-23 23:57:08 -04:00
async_008.htm
async_009.htm
async_010.htm Update web-platform-tests to revision 122a4672fa0dc554a6e7528fa3487fd907c792ee 2019-03-23 23:57:08 -04:00
async_011.htm
cacheable-script-throw.py Update web-platform-tests to revision d6d3f7267e817925131675bfc203c62bda96febe 2018-02-07 23:14:20 -05:00
data-url.html
defer.js Update web-platform-tests to revision be5419e845d39089ba6dc338c1bd0fa279108317 2018-01-09 12:52:27 -05:00
emptyish-script-elements.html Update web-platform-tests to revision 1e4fe87a7f01c0b5c614c8f601ffa68b4a00662a 2018-02-13 21:19:19 -05:00
external-script-utf8.js
external-script-windows1250.js
historical.html
is-module-goal.mjs Update web-platform-tests to revision 04bc9c5667911cce7361ee33244dfc8d7ed61212 2018-09-03 22:46:44 -04:00
is-script-goal.js Update web-platform-tests to revision 04bc9c5667911cce7361ee33244dfc8d7ed61212 2018-09-03 22:46:44 -04:00
load-error-events-1.html
load-error-events-2.html Update web-platform-tests to revision 9d5d9aa80785d9726ed0a5eaab1a8d144fd4b560 2018-09-06 22:40:10 -04:00
load-error-events-3.html Update web-platform-tests to revision 9d5d9aa80785d9726ed0a5eaab1a8d144fd4b560 2018-09-06 22:40:10 -04:00
log.py
muted-errors-iframe.html Update web-platform-tests to revision d6d3f7267e817925131675bfc203c62bda96febe 2018-02-07 23:14:20 -05:00
muted-errors.sub.html Update web-platform-tests to revision 4052654d786236b493d2df3cb80b9d3d1d0a8354 2018-12-12 22:53:27 -05:00
nomodule-reflect.html
nomodule-set-on-async-classic-script.html
nomodule-set-on-external-module-script.html
nomodule-set-on-inline-classic-scripts.html
nomodule-set-on-inline-module-script.html
nomodule-set-on-synchronously-loaded-classic-scripts.html
script-charset-01.html
script-charset-02.html Update web-platform-tests to revision 50d6ee076e94273080d9f3b69be0bf4eeae156d3 2018-08-22 23:24:36 -04:00
script-charset-03.html
script-crossorigin-network.html
script-crossorigin.html
script-defer.html Update web-platform-tests to revision be5419e845d39089ba6dc338c1bd0fa279108317 2018-01-09 12:52:27 -05:00
script-for-event-xhtml.xhtml
script-for-event.html
script-noembed-noframes-iframe.xhtml
script-not-executed-after-shutdown-child.html
script-not-executed-after-shutdown.html Update web-platform-tests to revision 122a4672fa0dc554a6e7528fa3487fd907c792ee 2019-03-23 23:57:08 -04:00
script-not-executed-after-shutdown.js
script-not-found-not-executed-2.py
script-not-found-not-executed.html
script-not-found-not-executed.py
script-onerror-insertion-point-1.html
script-onerror-insertion-point-2.html
script-onload-insertion-point.html
script-onload-string.html
script-text-modifications.html Update web-platform-tests to revision 9d5d9aa80785d9726ed0a5eaab1a8d144fd4b560 2018-09-06 22:40:10 -04:00
script-text-xhtml.xhtml
script-text.html
script-type-and-language-empty.html
script-type-and-language-js.html
script-type-and-language-with-params.html
scripting-enabled.html
serve-with-content-type.py