Repository navigation
script: Implement "Location-navigate a location" - #41805
Conversation
|
🔨 Triggering try run (#20853555893) for Linux (WPT) |
|
Test results for linux-wpt from try job (#20853555893): Flaky unexpected result (37)
Stable unexpected results that are known to be intermittent (32)
Stable unexpected results (10)
|
|
|
|
🔨 Triggering try run (#20855877435) for Linux (WPT) |
|
Test results for linux-wpt from try job (#20855877435): Flaky unexpected result (47)
Stable unexpected results that are known to be intermittent (30)
Stable unexpected results (10)
|
|
|
278af24 to
8b2751c
Compare
|
🔨 Triggering try run (#20881999461) for Linux (WPT) |
8b2751c to
043d591
Compare
|
Test results for linux-wpt from try job (#20881999461): Flaky unexpected result (46)
Stable unexpected results that are known to be intermittent (32)
|
|
✨ Try run (#20881999461) succeeded. |
| @@ -0,0 +1,2 @@ | |||
| [location_replace_session_history.html] | |||
| expected: TIMEOUT | |||
There was a problem hiding this comment.
This test was incorrectly passing before. That's because we fixed the Push navigation behavior for href. The reason this test now times out is that it exposes an issue with our history traversing. The test runs into
servo/components/constellation/constellation.rs
Lines 3856 to 3861 in 792246c
Before, with Push it was possible to history.back() hence the test passes. But now with Auto, it can also Replace the existing history item if the document is still loading (which it is).
I then discovered that we were firing too many tasks in step 9 of https://html.spec.whatwg.org/multipage/parsing.html#the-end where it was setting the loaded flag after the load event was fired.
Unfortunately that didn't fix the underlying issue. I don't know why that's the case though :(
There was a problem hiding this comment.
|
🔨 Triggering try run (#20882641884) for Linux (WPT) |
|
Test results for linux-wpt from try job (#20882641884): Flaky unexpected result (42)
Stable unexpected results that are known to be intermittent (32)
Stable unexpected results (207)
|
|
|
| @@ -0,0 +1,2 @@ | |||
| [004.html] | |||
| expected: TIMEOUT | |||
There was a problem hiding this comment.
Same for this one, all browsers timeout on it: https://wpt.fyi/results/html/browsers/browsing-the-web/unloading-documents/004.html?label=experimental&label=master&aligned
5d4aeac to
8912b37
Compare
|
This PR is ready now. I was worried we regressed on these tests, but turns out the tests are wrong and they fail on all browsers. Therefore, I think this PR is moving us fully in the right direction to be aligned with other browsers. |
|
🔨 Triggering try run (#20893746144) for Linux (WPT) |
| NavigationHistoryBehavior::Push => "", | ||
| NavigationHistoryBehavior::Replace => "not ", | ||
| NavigationHistoryBehavior::Push => "not ", | ||
| NavigationHistoryBehavior::Replace => "", |
There was a problem hiding this comment.
In this case, it would have printed "Loading (not replacing)", which is I think precisely the wrong way around.
|
Test results for linux-wpt from try job (#20893746144): Flaky unexpected result (34)
Stable unexpected results that are known to be intermittent (31)
Stable unexpected results (5)
|
|
|
8912b37 to
46c627e
Compare
The existing implementation in `Location::navigate` differs a lot from the existing spec. Therefore, let's incrementally make it closer match the spec by implementing the first step for `SetHref`. Testing: No observable behavior Signed-off-by: Tim van der Lippe <[email protected]>
We should always set the navigation behavior to replace if the frame is `about:blank`, even in the case where the navigation behavior is auto. Signed-off-by: Tim van der Lippe <[email protected]>
|
I'll review this tonight. I'm also working on some navigation fixes for javascript: URLs right now so I've got lots of context in my head. |
All substeps of step 9 must happen inside of the same task, rather than dispatch multiple tasks. Signed-off-by: Tim van der Lippe <[email protected]>
46c627e to
de2fac1
Compare
The existing implementation in
Location::navigatediffersa lot from the existing spec. Therefore, let's incrementally
make it closer match the spec by implementing the first
step for
SetHref.Testing: WPT
Part of #41807