Repository navigation
servoshell: Close all embedder controls when loading a toplevel page in WebDriver - #40507
Conversation
…in WebDriver This is a speculative attempt to make WebDriver WPT runs more stable. Without this change, it seems likely that embedder controls could stay open indefinitely during WebDriver test runs. Signed-off-by: Martin Robinson <[email protected]>
|
🔨 Triggering try run (#19201420520) for Linux (WPT) |
|
Test results for linux-wpt from try job (#19201420520): Flaky unexpected result (37)
Stable unexpected results that are known to be intermittent (35)
Stable unexpected results (1)
|
|
|
|
🔨 Triggering try run (#19202753066) for Linux (WPT) |
| return; | ||
| }; | ||
|
|
||
| self.dismiss_embedder_controls_for_webview(webview_id); |
There was a problem hiding this comment.
I wonder if this should be part of webview.load itself. Shouldn't we remove all dialogs even if we load new url manually?
There was a problem hiding this comment.
I considered this, but I think it might be a bit odd for the user experience. You might be using a dialog interactively and then it would suddenly disappear. Instead, I think that some of them should be dismissed automatically from script (such as the select box), but others should just do nothing (such as the file selection dialog). This is something I'd like to do in a followup as it requires a bit of coordination between the different parts of Servo.
In this case though when running non-interactively via WebDriver, I think it's best that the page is in a fresh state when loaded, to avoid interference. In particular, I hope to solve this issue: #40512
There was a problem hiding this comment.
when running non-interactively via WebDriver, I think it's best that the page is in a fresh state when loaded, to avoid interference
Good point! Does it really solve it?
|
Test results for linux-wpt from try job (#19202753066): Flaky unexpected result (40)
Stable unexpected results that are known to be intermittent (36)
|
|
✨ Try run (#19202753066) succeeded. |
The flaky/intermittent number seems unchanged as well. |
| return; | ||
| }; | ||
|
|
||
| self.dismiss_embedder_controls_for_webview(webview_id); |
There was a problem hiding this comment.
when running non-interactively via WebDriver, I think it's best that the page is in a fresh state when loaded, to avoid interference
Good point! Does it really solve it?
|
It's hard to say since it's intermittent, but this seemed like a good thing to do regardless. I don't think there are any tests that rely on the fact that UI elements stick around between tests, so it's better to clear them away when running tests. |
This is a speculative attempt to make WebDriver WPT runs more stable.
Without this change, it seems likely that embedder controls could stay
open indefinitely during WebDriver test runs.
Signed-off-by: Martin Robinson [email protected]
Testing: This should (hopefully) decrease the amount of tests that flake
when running WPT.