Repository navigation
webdriver: Move navigation status tracking from script to constellation + Wait for navigation complete - #49817
Conversation
b1adcf7 to
b1cb6cb
Compare
|
🔨 Triggering try run (#42994551082) for Linux (WPT) |
|
Test results for linux-wpt from try job (#42994551082): Flaky unexpected result (27)
Stable unexpected results that are known to be intermittent (7)
|
|
✨ Try run (#42994551082) succeeded. |
| /// A [`GenericSender`] to notify navigation events to webdriver. | ||
| webdriver_load_status_sender: Option<(GenericSender<WebDriverLoadStatus>, PipelineId)>, | ||
| /// Senders to notify WebDriver of navigation events, keyed by webview. | ||
| webdriver_load_status_senders: FxHashMap<WebViewId, GenericSender<WebDriverLoadStatusMessage>>, |
There was a problem hiding this comment.
Previously, we register with each command that might navigate, and remove the tracking immediately after the command. But then, a navigation between commands is invisible (e.g., triggered by script).
Now we track per webview, which is always monitored. It is only removed when we delete session or close webview.
Signed-off-by: Euclid Ye <[email protected]>
b1cb6cb to
5041503
Compare
Signed-off-by: Euclid Ye <[email protected]>
Signed-off-by: Euclid Ye <[email protected]>
5041503 to
f16dc51
Compare
| /// A channel to notify webdriver if there is a navigation | ||
| #[no_trace] | ||
| webdriver_load_status_sender: RefCell<Option<GenericSender<WebDriverLoadStatus>>>, |
There was a problem hiding this comment.
Another reason why tracking in script is problematic is that, once we navigate away, server doesn't know status until sender is set inside the new Window.
|
Test results for linux-wpt from merge queue job (#43948050202): Flaky unexpected result (22)
Stable unexpected results that are known to be intermittent (6)
|
|
This job had an unexpected failure in |
…o#50150) When a webview exists, the browsing context may still be pending to be activated/created, as we've seen in servo#49817. Testing: Tested locally. Fixes: Part of servo#47582: `test_link_from_toplevel_context_with_target[_blank] - webdriver.error.NoSuchWindowException: no such window (404)`, which opens a new webview from click. Signed-off-by: Euclid Ye <[email protected]>
This is done in two commits:
Testing: Several tests stop CRASH.
Part of #42802