Intermittent /webdriver/tests/classic/switch_to_parent_frame/switch.py | single tracking bug
Categories
(Remote Protocol :: Marionette, defect, P3)
Tracking
(firefox126 fixed)
Tracking | Status | |
---|---|---|
firefox126 | --- | fixed |
People
(Reporter: jmaher, Assigned: whimboo)
References
(Blocks 1 open bug)
Details
(Keywords: intermittent-failure, intermittent-testcase, Whiteboard: [webdriver:m11], [wptsync upstream])
Attachments
(4 files, 1 obsolete file)
Reporter | ||
Comment 1•2 years ago
|
||
Additional information about this bug failures and frequency patterns can be found by running: ./mach test-info failure-report --bug 1785377
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Updated•2 years ago
|
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment 25•2 years ago
|
||
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Assignee | ||
Comment 47•1 year ago
|
||
All the latest failures on this issue show that the failure happens due to an early abort of WebDriver:ElementClick
due to the actor being destroyed before the actual click
event has been received by Marionette. Means the top-level browsing context that will be removed by the click is still present:
[task 2023-08-25T05:25:35.307Z] 05:25:35 INFO - PID 24695 | 1692941135305 Marionette DEBUG 0 -> [0,64,"WebDriver:ElementClick",{"id":"44792f43-9c48-4c7f-a19f-6ef635674d5c"}]
[task 2023-08-25T05:25:35.391Z] 05:25:35 INFO - PID 24695 | 1692941135390 Marionette TRACE [8589934595] Received event pagehide for https://web-platform.test:8443/webdriver/tests/support/html/deleteframe.html
[task 2023-08-25T05:25:35.393Z] 05:25:35 INFO - PID 24695 | 1692941135392 Marionette TRACE [8589934595] Querying "clickElement" failed with AbortError, returning "null" as fallback
[task 2023-08-25T05:25:35.394Z] 05:25:35 INFO - PID 24695 | 1692941135392 Marionette TRACE Canceled page load listener because browsing context with id 8589934595 has been removed
[task 2023-08-25T05:25:35.394Z] 05:25:35 INFO - PID 24695 | 1692941135392 Marionette DEBUG 0 <- [1,64,null,{"value":null}]
[task 2023-08-25T05:25:35.395Z] 05:25:35 INFO - PID 24695 | 1692941135393 webdriver::server DEBUG <- 200 OK {"value":null}
[task 2023-08-25T05:25:35.395Z] 05:25:35 INFO - PID 24695 | 1692941135394 webdriver::server DEBUG -> POST /session/86ca332a-380b-4c06-a4bd-b0ee66840bed/frame/parent {}
[task 2023-08-25T05:25:35.395Z] 05:25:35 INFO - PID 24695 | 1692941135395 Marionette DEBUG 0 -> [0,65,"WebDriver:SwitchToParentFrame",{}]
[task 2023-08-25T05:25:35.396Z] 05:25:35 INFO - PID 24695 | 1692941135395 Marionette DEBUG 0 <- [1,65,null,{"value":null}]
[task 2023-08-25T05:25:35.397Z] 05:25:35 INFO - PID 24695 | 1692941135395 webdriver::server DEBUG <- 200 OK {"value":null}
[task 2023-08-25T05:25:35.416Z] 05:25:35 INFO - PID 24695 | 1692941135414 Marionette TRACE Received DOM event click for [object HTMLInputElement]
[task 2023-08-25T05:25:35.418Z] 05:25:35 INFO - PID 24695 | 1692941135417 Marionette TRACE [8589934595] MarionetteCommands actor destroyed for window id 8589934600
[task 2023-08-25T05:25:35.419Z] 05:25:35 INFO - PID 24695 | 1692941135417 Marionette TRACE [8589934594] MarionetteCommands actor destroyed for window id 8589934598
All those failures are recently on Linux only.
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment 52•1 year ago
|
||
Updated•1 year ago
|
Comment 53•1 year ago
|
||
Comment 55•1 year ago
|
||
bugherder |
Comment hidden (Intermittent Failures Robot) |
Comment 58•1 year ago
|
||
This is still happening: https://treeherder.mozilla.org/logviewer?job_id=430978672&repo=mozilla-central&lineNumber=138668
Assignee | ||
Comment 59•1 year ago
|
||
Probably the race here comes from the fact that the iframe is removed before the parent frame, and as such we can still switch to it once the button is gone. Maybe we should run some script evaluation to fetch an element from the parent frame and wait until it returns the no such window
error?
Assignee | ||
Comment 61•1 year ago
|
||
(In reply to Henrik Skupin [:whimboo][⌚️UTC+2] from comment #59)
Probably the race here comes from the fact that the iframe is removed before the parent frame, and as such we can still switch to it once the button is gone. Maybe we should run some script evaluation to fetch an element from the parent frame and wait until it returns the
no such window
error?
This actually wont work as well if the currently selected browsing context is gone because we won't be able to send a command anymore. I'm actually not sure how we can solve this problem at all for WebDriver classic. By using a BiDi script execution call we could find out when the parent is closed, but it's not available here.
As such I feel that we may have to mark this test as intermittent failing especially for slow running builds which include debug, ccov, asan, and tsan. I'll attach a patch to get the manifest file updated.
Assignee | ||
Updated•1 year ago
|
Assignee | ||
Comment 62•1 year ago
|
||
Updated•1 year ago
|
Comment 63•1 year ago
|
||
Comment 64•1 year ago
|
||
bugherder |
Comment 65•1 year ago
|
||
Hello Henrik! Could you please take a look at this? It looks like it still failing with that failure line.
Thank you!
Assignee | ||
Comment 66•1 year ago
|
||
(In reply to Serban Stanca [:SerbanS] from comment #65)
Hello Henrik! Could you please take a look at this? It looks like it still failing with that failure line.
Looks like it's indeed failing for opt builds but so far it seems to be way less frequent. I would suggest that we keep an eye on it over the next days / weeks and make a decision later on if we also want to mark opt builds as pass and fail. As best we should have used a separate bug for the patches already landed.
Comment hidden (Intermittent Failures Robot) |
Comment 68•1 year ago
|
||
Should we consider removing this test if we assert a behavior which is racy? A test should reliably pass regardless of the performance of the platform.
Comment hidden (Intermittent Failures Robot) |
Assignee | ||
Comment 70•1 year ago
|
||
(In reply to Julian Descottes [:jdescottes] from comment #68)
Should we consider removing this test if we assert a behavior which is racy? A test should reliably pass regardless of the performance of the platform.
Given that this test cannot be run with classic on it's own we discussed with Chrome folks and will make a special test that uses both classic and BiDi. As such we need to move it to a new folder under webdriver/tests/
.
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Assignee | ||
Updated•9 months ago
|
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Assignee | ||
Comment 91•8 months ago
|
||
Updated•8 months ago
|
Assignee | ||
Comment 92•8 months ago
|
||
Depends on D206562
Comment 93•8 months ago
|
||
Assignee | ||
Updated•8 months ago
|
Comment 95•8 months ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/01b2b4aa152b
https://hg.mozilla.org/mozilla-central/rev/a2060430453f
Description
•