Repository navigation
Conversation
|
🔨 Triggering try run (#44257119124) for Linux (WPT) |
|
Test results for linux-wpt from try job (#44257119124): Flaky unexpected result (26)
Stable unexpected results that are known to be intermittent (11)
Stable unexpected results (13)
|
|
|
|
At least all failures are single type.. Which should narrow things down. |
|
So we are already traversing before the document's own load finishes. That would overwrite the state. And later the comparison fails, we return without sending anything. |
Signed-off-by: Euclid Ye <[email protected]>
|
🔨 Triggering try run (#44267981192) for Linux (WPT) |
|
Test results for linux-wpt from try job (#44267981192): Flaky unexpected result (20)
Stable unexpected results that are known to be intermittent (9)
|
|
✨ Try run (#44267981192) succeeded. |
|
We are neither seeing any webdriver flaky results in |
|
I will run ci wpt again, since I cannot replicate these locally. |
|
🔨 Triggering try run (#44284045549) for Linux (WPT) |
|
Test results for linux-wpt from try job (#44284045549): Flaky unexpected result (18)
Stable unexpected results that are known to be intermittent (6)
|
|
✨ Try run (#44284045549) succeeded. |
These also has no webdriver tests, which seems to good to be true, since we are missing another hot path address. |
mrobinson
left a comment
There was a problem hiding this comment.
This makes the logic for when to send WebDriver navigation updates a bit convoluted. I think your original design was really close and may with a few minor adjustments, it would fix this bug:
Add a load_finished field to Pipelline that is set to true wherever completely_loaded is and additionally when the pipeline was aborted (the difference between the new field and the old one).
Update ConstellationWebView::is_navigating to cover more cases. Return true when:
- There are any changes in
ConstellationWebView::pending_changesthat have the top-level browsing context as their context (BrowsingContextId::from(self.webview_id)). self.session_history_traversal_request_queueis not empty.self.ongoing_history_traversal_requestis notNone- The
load_finishedis nottrueon the top-level pipeline. You will need to pass in thePipelineor thePipelinemap tois_navigating().
Do not send the NavigationStop notification in the three places that send it now if ConstellationWebView::is_navigating returns true:
handle_abort_load_url_msghandle_load_finished_messagehandle_allow_navigation_response
|
Thanks. I will just close this first to start my mind fresh.. (And keep a history version here) |
|
Ok this sounds simpler and much easier to reason about too! |
…lse will (servo#50039) Supersedes servo#50029, which spends tons of effort reasoning about which document should be responsible. The webdriver server only tracks navigation per webview, so we should just focus on answering: is anything still going to report? (Instead of tracking document info hard) Specifically, this now just focus on `ConstellationWebView::is_navigating`, to answer above question, which only have 4 cases: - a queued history traversal - ongoing history traversal - a `top_level_pipeline` has not finished loading, - a top-level pending change. Testing: A [try run](https://github.com/yezhizhen/servo/actions/runs/44317037433) without relevant flaky webdriver results. Fixes: Part of servo#42802. Fixes: Part of servo#49983 Fixes: Part of servo#49986 Fixes: Part of servo#42802 Signed-off-by: Euclid Ye <[email protected]>
We need to control at pipeline level, otherwise for a single webview, a navigation start with pipeline A might be paired with
end signal from pipeline B.
Testing: It is hard to test this now, but helps with a follow up fix with initial pipeline from "about:blank".
Fixes: Part of #42802.
Fixes: Part of #49983
Fixes: Part of #49986
Fixes: Part of #42802