Open Bug 1999714 Opened 10 months ago Updated 3 months ago

Intermittent Wd async /webdriver/tests/bidi/input/perform_actions/pointer_mouse.py | test_context_menu_at_coordinates - AssertionError: assert 1 == 4

Categories

(Remote Protocol :: Agent, defect, P5)

defect

Tracking

(Not tracked)

People

(Reporter: intermittent-bug-filer, Unassigned)

References

(Depends on 1 open bug, Blocks 2 open bugs)

Details

(Keywords: intermittent-failure)

[task 2025-11-12T12:23:50.315+00:00] 12:23:50     INFO - PID 15504 | 1762950230234	RemoteAgent	DEBUG	WebDriverBiDiConnection 2a065ee1-62c7-407c-a2de-7f45b54505e8 -> {"id":40,"method":"input.performActions","params":{"context":"acee1a2b-77c0-4da5-a48c-3291f6fc6786","actions":[{"id":"pointer-0","type":"pointer","actions":[{"type":"pointerMove","x":82,"y":187,"origin":"viewport"},{"type":"pointerDown","button":2},{"type":"pointerUp","button":2}],"parameters":{"pointerType":"mouse"}}]}}
[task 2025-11-12T12:23:50.316+00:00] 12:23:50     INFO - PID 15504 | 1762950230234	RemoteAgent	TRACE	Received command input.performActions for destination ROOT
[task 2025-11-12T12:23:50.316+00:00] 12:23:50     INFO - PID 15504 | 1762950230235	RemoteAgent	TRACE	Dispatching tick 1/3
[task 2025-11-12T12:23:50.317+00:00] 12:23:50     INFO - PID 15504 | 1762950230235	RemoteAgent	TRACE	Received command input._assertInViewPort for destination WINDOW_GLOBAL
[task 2025-11-12T12:23:50.317+00:00] 12:23:50     INFO - PID 15504 | 1762950230235	RemoteAgent	TRACE	Dispatch PointerMoveAction mouse with id: pointer-0 x: 82 y: 187 async: true
[task 2025-11-12T12:23:50.318+00:00] 12:23:50     INFO - PID 15504 | 1762950230235	RemoteAgent	TRACE	Received command input._toBrowserWindowCoordinates for destination WINDOW_GLOBAL
[task 2025-11-12T12:23:50.318+00:00] 12:23:50     INFO - PID 15504 | 1762950230236	RemoteAgent	TRACE	moveOverTime start: 0,0 target: 82,272 duration: 0
[task 2025-11-12T12:23:50.319+00:00] 12:23:50     INFO - PID 15504 | 1762950230236	RemoteAgent	TRACE	PointerMoveAction.performPointerMoveStep [82,272]
[task 2025-11-12T12:23:50.319+00:00] 12:23:50     INFO - PID 15504 | 1762950230246	RemoteAgent	TRACE	Dispatching tick 2/3
[task 2025-11-12T12:23:50.320+00:00] 12:23:50     INFO - PID 15504 | 1762950230246	RemoteAgent	TRACE	Dispatch PointerDownAction mouse with id: pointer-0 button: 2 async: true
[task 2025-11-12T12:23:50.320+00:00] 12:23:50     INFO - PID 15504 | JavaScript error: resource:///actors/GenAIChild.sys.mjs, line 125: TypeError: can't access property "getSelection", this.contentWindow is null
[task 2025-11-12T12:23:50.321+00:00] 12:23:50     INFO - PID 15504 | doc is unexpectedly null (bug 1478596), composedTarget=[object HTMLDocument]
[task 2025-11-12T12:23:50.321+00:00] 12:23:50     INFO - PID 15504 |  Alternative: target=[object HTMLDocument] and its doc=null
[task 2025-11-12T12:23:50.322+00:00] 12:23:50     INFO - PID 15504 |  Alternative: originalTarget=[object HTMLDocument] and its doc=null
[task 2025-11-12T12:23:50.322+00:00] 12:23:50     INFO - PID 15504 |  Alternative: explicitOriginalTarget=[object HTMLDocument] and its doc=null
[task 2025-11-12T12:23:50.322+00:00] 12:23:50     INFO - PID 15504 | 1762950230255	RemoteAgent	TRACE	Dispatching tick 3/3
[task 2025-11-12T12:23:50.323+00:00] 12:23:50     INFO - PID 15504 | 1762950230255	RemoteAgent	TRACE	Dispatch PointerUpAction mouse with id: pointer-0 button: 2 async: true
[task 2025-11-12T12:23:50.323+00:00] 12:23:50     INFO - PID 15504 | JavaScript error: resource:///actors/ContextMenuChild.sys.mjs, line 577: TypeError: doc is null
[task 2025-11-12T12:23:50.324+00:00] 12:23:50     INFO - PID 15504 | 1762950230256	RemoteAgent	TRACE	Received command input._finalizeAction for destination WINDOW_GLOBAL
[task 2025-11-12T12:23:50.324+00:00] 12:23:50     INFO - PID 15504 | 1762950230262	RemoteAgent	DEBUG	WebDriverBiDiConnection 2a065ee1-62c7-407c-a2de-7f45b54505e8 <- {"type":"success","id":40,"result":{}}
[task 2025-11-12T12:23:50.325+00:00] 12:23:50     INFO - PID 15504 | 1762950230263	RemoteAgent	DEBUG	WebDriverBiDiConnection 2a065ee1-62c7-407c-a2de-7f45b54505e8 -> {"id":41,"method":"script.evaluate","params":{"expression":"JSON.stringify(window.allEvents.events)","target":{"context":"acee1a2b-77c0-4da5-a48c-3291f6fc6786"},"awaitPromise":false}}
[task 2025-11-12T12:23:50.325+00:00] 12:23:50     INFO - PID 15504 | 1762950230263	RemoteAgent	TRACE	Received command script.evaluate for destination ROOT
[task 2025-11-12T12:23:50.326+00:00] 12:23:50     INFO - PID 15504 | 1762950230263	RemoteAgent	TRACE	Received command script.evaluateExpression for destination WINDOW_GLOBAL
[task 2025-11-12T12:23:50.327+00:00] 12:23:50     INFO - PID 15504 | 1762950230264	RemoteAgent	DEBUG	WebDriverBiDiConnection 2a065ee1-62c7-407c-a2de-7f45b54505e8 <- {"type":"success","id":41,"result":{"realm":"2b6088da-faf2-4394-a8ab-5790d8d1d56c","type":"success","result":{"type":"string","value":"[{\"type\":\"mousemove\",\"button\":0,\"buttons\":0,\"pageX\":82,\"pageY\":187,\"ctrlKey\":false,\"metaKey\":false,\"altKey\":false,\"shiftKey\":false,\"target\":\"outer\"}]"}}}
[task 2025-11-12T12:23:50.327+00:00] 12:23:50     INFO - STDOUT: FAILED

As it looks like there is a bug in ContextMenuChild.sys.mjs which might prevent the context menu from opening and the event to be sent out:
https://searchfox.org/firefox-main/rev/6abddcb0a5076c3b888686ede6f4cf7d082460d3/browser/actors/ContextMenuChild.sys.mjs#574-578

A fix for that might help as well for bug 1478596, which seems to be a known failure for many years but hard to reproduce.

Depends on: 1848958
See Also: → 1478596
Summary: Intermittent /webdriver/tests/bidi/input/perform_actions/pointer_mouse.py | test_context_menu_at_coordinates - AssertionError: assert 1 == 4 → Intermittent Wd async /webdriver/tests/bidi/input/perform_actions/pointer_mouse.py | test_context_menu_at_coordinates - AssertionError: assert 1 == 4
You need to log in before you can comment on or make changes to this bug.