Open
Bug 1941453
Opened 17 days ago
Updated 11 days ago
Intermittent /webdriver/tests/bidi/input/perform_actions/navigation.py | test_pointer - webdriver.bidi.error.NoSuchFrameException: no such frame (DiscardedBrowsingContextError: Failed to dispatch event "synthesizeMouseAtPoint": Component returned failure
Categories
(Remote Protocol :: WebDriver BiDi, defect, P5)
Remote Protocol
WebDriver BiDi
Tracking
(Not tracked)
NEW
People
(Reporter: intermittent-bug-filer, Unassigned)
References
(Blocks 1 open bug)
Details
(Keywords: intermittent-failure)
Filed by: sstanca [at] mozilla.com
Parsed log: https://treeherder.mozilla.org/logviewer?job_id=489972657&repo=mozilla-central
Full log: https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/KJUcwOu9Sg2xWxCiLGFL9w/runs/0/artifacts/public/logs/live_backing.log
[task 2025-01-14T00:02:29.584Z] 00:02:29 INFO - TEST-PASS | /webdriver/tests/bidi/input/perform_actions/navigation.py | test_key
[task 2025-01-14T00:02:29.584Z] 00:02:29 INFO - TEST-UNEXPECTED-FAIL | /webdriver/tests/bidi/input/perform_actions/navigation.py | test_pointer - webdriver.bidi.error.NoSuchFrameException: no such frame (DiscardedBrowsingContextError: Failed to dispatch event "synthesizeMouseAtPoint": Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIDOMWindowUtils.sendMouseEvent])
[task 2025-01-14T00:02:29.584Z] 00:02:29 INFO - bidi_session = <webdriver.bidi.client.BidiSession object at 0x7f58d85d7d00>
[task 2025-01-14T00:02:29.584Z] 00:02:29 INFO - inline = <function inline.<locals>.inline at 0x7f58d81e1af0>
[task 2025-01-14T00:02:29.585Z] 00:02:29 INFO - top_context = {'children': [], 'context': 'cb5f7807-e60e-4b62-b4ca-b2bfbd41a964', 'originalOpener': None, 'parent': None, ...}
[task 2025-01-14T00:02:29.585Z] 00:02:29 INFO - get_element = <function get_element.<locals>.get_element at 0x7f58d81e13a0>
[task 2025-01-14T00:02:29.585Z] 00:02:29 INFO -
[task 2025-01-14T00:02:29.585Z] 00:02:29 INFO - async def test_pointer(bidi_session, inline, top_context, get_element):
[task 2025-01-14T00:02:29.585Z] 00:02:29 INFO - await bidi_session.browsing_context.navigate(
[task 2025-01-14T00:02:29.585Z] 00:02:29 INFO - context=top_context["context"],
[task 2025-01-14T00:02:29.585Z] 00:02:29 INFO - url=inline(
[task 2025-01-14T00:02:29.585Z] 00:02:29 INFO - f"""<input onmousedown="window.location = '{inline(PAGE_CONTENT)}'"/>"""),
[task 2025-01-14T00:02:29.585Z] 00:02:29 INFO - wait="complete"
[task 2025-01-14T00:02:29.585Z] 00:02:29 INFO - )
[task 2025-01-14T00:02:29.585Z] 00:02:29 INFO - input = await get_element("input")
[task 2025-01-14T00:02:29.585Z] 00:02:29 INFO -
[task 2025-01-14T00:02:29.585Z] 00:02:29 INFO - actions = Actions()
[task 2025-01-14T00:02:29.585Z] 00:02:29 INFO - (
[task 2025-01-14T00:02:29.585Z] 00:02:29 INFO - actions.add_pointer()
[task 2025-01-14T00:02:29.585Z] 00:02:29 INFO - .pointer_move(x=0, y=0, origin=get_element_origin(input))
[task 2025-01-14T00:02:29.586Z] 00:02:29 INFO - .pointer_down(button=0)
[task 2025-01-14T00:02:29.586Z] 00:02:29 INFO - .pointer_up(button=0)
[task 2025-01-14T00:02:29.586Z] 00:02:29 INFO - .pause(1000)
[task 2025-01-14T00:02:29.586Z] 00:02:29 INFO - .pointer_move(x=300, y=200)
[task 2025-01-14T00:02:29.586Z] 00:02:29 INFO - )
[task 2025-01-14T00:02:29.586Z] 00:02:29 INFO -
[task 2025-01-14T00:02:29.586Z] 00:02:29 INFO - > await bidi_session.input.perform_actions(
[task 2025-01-14T00:02:29.586Z] 00:02:29 INFO - actions=actions, context=top_context["context"]
[task 2025-01-14T00:02:29.586Z] 00:02:29 INFO - )
[task 2025-01-14T00:02:29.586Z] 00:02:29 INFO -
[task 2025-01-14T00:02:29.586Z] 00:02:29 INFO - actions = <webdriver.bidi.modules.input.Actions object at 0x7f58cb59d040>
[task 2025-01-14T00:02:29.587Z] 00:02:29 INFO - bidi_session = <webdriver.bidi.client.BidiSession object at 0x7f58d85d7d00>
[task 2025-01-14T00:02:29.587Z] 00:02:29 INFO - get_element = <function get_element.<locals>.get_element at 0x7f58d81e13a0>
[task 2025-01-14T00:02:29.587Z] 00:02:29 INFO - inline = <function inline.<locals>.inline at 0x7f58d81e1af0>
[task 2025-01-14T00:02:29.587Z] 00:02:29 INFO - input = {'sharedId': 'f7fa066f-ab0f-4740-8a94-b3c6541c18d2',
[task 2025-01-14T00:02:29.587Z] 00:02:29 INFO - 'type': 'node',
[task 2025-01-14T00:02:29.587Z] 00:02:29 INFO - 'value': {'attributes': {'onmousedown': 'window.location = '
[task 2025-01-14T00:02:29.587Z] 00:02:29 INFO - "'https://web-platform.test:8443/webdriver/tests/support/inline.py?doc=%3C%21doctype+html%3E%0A%3Cmeta+charset%3DUTF-8%3E%0A%0A++++%3Cinput%3E%3C%2Finput%3E%0A++++%3Cscript%3E%0A++++++++%22use+strict%3B%22%0A%0A++++++++var+allEvents+%3D+%7B+events%3A+%5B%5D+%7D%3B%0A%0A++++++++const+input+%3D+document.querySelector%28%22input%22%29%3B%0A++++++++input.focus%28%29%3B%0A%0A++++++++window.addEventListener%28%22keydown%22%2C+e+%3D%3E+allEvents.events.push%28%5Be.key%5D%29%29%3B%0A++++++++window.addEventListener%28%22mousemove%22%2C+e+%3D%3E+%7B%0A++++++++++++allEvents.events.push%28%5B%0A++++++++++++++++e.clientX%2C%0A++++++++++++++++e.clientY%2C%0A++++++++++++%5D%29%3B%0A++++++++%7D%29%3B%0A++++%3C%2Fscript%3E%0A&mime=text%2Fhtml&charset=UTF-8'"},
[task 2025-01-14T00:02:29.587Z] 00:02:29 INFO - 'childNodeCount': 0,
[task 2025-01-14T00:02:29.587Z] 00:02:29 INFO - 'localName': 'input',
[task 2025-01-14T00:02:29.587Z] 00:02:29 INFO - 'namespaceURI': 'http://www.w3.org/1999/xhtml',
[task 2025-01-14T00:02:29.587Z] 00:02:29 INFO - 'nodeType': 1,
[task 2025-01-14T00:02:29.588Z] 00:02:29 INFO - 'shadowRoot': None}}
[task 2025-01-14T00:02:29.588Z] 00:02:29 INFO - top_context = {'children': [],
[task 2025-01-14T00:02:29.588Z] 00:02:29 INFO - 'context': 'cb5f7807-e60e-4b62-b4ca-b2bfbd41a964',
[task 2025-01-14T00:02:29.588Z] 00:02:29 INFO - 'originalOpener': None,
[task 2025-01-14T00:02:29.588Z] 00:02:29 INFO - 'parent': None,
[task 2025-01-14T00:02:29.588Z] 00:02:29 INFO - 'url': 'https://web-platform.test:8443/webdriver/tests/support/inline.py?doc=%3C%21doctype+html%3E%0A%3Cmeta+charset%3DUTF-8%3E%0A%0A++++%3Cinput%3E%3C%2Finput%3E%0A++++%3Cscript%3E%0A++++++++%22use+strict%3B%22%0A%0A++++++++var+allEvents+%3D+%7B+events%3A+%5B%5D+%7D%3B%0A%0A++++++++const+input+%3D+document.querySelector%28%22input%22%29%3B%0A++++++++input.focus%28%29%3B%0A%0A++++++++window.addEventListener%28%22keydown%22%2C+e+%3D%3E+allEvents.events.push%28%5Be.key%5D%29%29%3B%0A++++++++window.addEventListener%28%22mousemove%22%2C+e+%3D%3E+%7B%0A++++++++++++allEvents.events.push%28%5B%0A++++++++++++++++e.clientX%2C%0A++++++++++++++++e.clientY%2C%0A++++++++++++%5D%29%3B%0A++++++++%7D%29%3B%0A++++%3C%2Fscript%3E%0A&mime=text%2Fhtml&charset=UTF-8',
[task 2025-01-14T00:02:29.588Z] 00:02:29 INFO - 'userContext': 'default'}
[task 2025-01-14T00:02:29.588Z] 00:02:29 INFO -
[task 2025-01-14T00:02:29.588Z] 00:02:29 INFO - tests/web-platform/tests/webdriver/tests/bidi/input/perform_actions/navigation.py:84:
[task 2025-01-14T00:02:29.588Z] 00:02:29 INFO - _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[task 2025-01-14T00:02:29.588Z] 00:02:29 INFO -
[task 2025-01-14T00:02:29.588Z] 00:02:29 INFO - self = <webdriver.bidi.modules.input.Input object at 0x7f58d85d79d0>
[task 2025-01-14T00:02:29.588Z] 00:02:29 INFO - kwargs = {'actions': <webdriver.bidi.modules.input.Actions object at 0x7f58cb59d040>, 'context': 'cb5f7807-e60e-4b62-b4ca-b2bfbd41a964'}
[task 2025-01-14T00:02:29.588Z] 00:02:29 INFO - raw_result = False
[task 2025-01-14T00:02:29.588Z] 00:02:29 INFO - params = {'actions': [{'actions': [{'origin': {'element': {...}, 'type': 'element'}, 'type': 'pointerMove', 'x': 0, 'y': 0}, {'...ter-0', 'parameters': {'pointerType': 'mouse'}, 'type': 'pointer'}], 'context': 'cb5f7807-e60e-4b62-b4ca-b2bfbd41a964'}
[task 2025-01-14T00:02:29.588Z] 00:02:29 INFO - mod_name = 'input', cmd_name = 'input.performActions'
[task 2025-01-14T00:02:29.588Z] 00:02:29 INFO - future = <Future finished exception=NoSuchFrameException(no such frame, DiscardedBrowsingContextError: Failed to dispatch event...
[task 2025-01-14T00:02:29.588Z] 00:02:29 INFO - _sendCommandToBrowsingContext@chrome://remote/content/shared/messagehandler/transports/RootTransport.sys.mjs:170:17
[task 2025-01-14T00:02:29.588Z] 00:02:29 INFO - )>
[task 2025-01-14T00:02:29.588Z] 00:02:29 INFO -
[task 2025-01-14T00:02:29.588Z] 00:02:29 INFO - @functools.wraps(params_fn)
[task 2025-01-14T00:02:29.588Z] 00:02:29 INFO - async def inner(self: Any, **kwargs: Any) -> Any:
[task 2025-01-14T00:02:29.588Z] 00:02:29 INFO - raw_result = kwargs.pop("raw_result", False)
[task 2025-01-14T00:02:29.588Z] 00:02:29 INFO - params = remove_undefined(params_fn(self, **kwargs))
[task 2025-01-14T00:02:29.588Z] 00:02:29 INFO -
[task 2025-01-14T00:02:29.588Z] 00:02:29 INFO - # Convert the classname and the method name to a bidi command name
[task 2025-01-14T00:02:29.588Z] 00:02:29 INFO - mod_name = owner.__name__[0].lower() + owner.__name__[1:]
[task 2025-01-14T00:02:29.588Z] 00:02:29 INFO - if hasattr(owner, "prefix"):
[task 2025-01-14T00:02:29.588Z] 00:02:29 INFO - mod_name = f"{owner.prefix}:{mod_name}"
[task 2025-01-14T00:02:29.588Z] 00:02:29 INFO - cmd_name = f"{mod_name}.{to_camelcase(name)}"
[task 2025-01-14T00:02:29.588Z] 00:02:29 INFO -
[task 2025-01-14T00:02:29.588Z] 00:02:29 INFO - future = await self.session.send_command(cmd_name, params)
[task 2025-01-14T00:02:29.588Z] 00:02:29 INFO - > result = await future
[task 2025-01-14T00:02:29.588Z] 00:02:29 INFO - E webdriver.bidi.error.NoSuchFrameException: no such frame (DiscardedBrowsingContextError: Failed to dispatch event "synthesizeMouseAtPoint": Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIDOMWindowUtils.sendMouseEvent])
[task 2025-01-14T00:02:29.588Z] 00:02:29 INFO - E
[task 2025-01-14T00:02:29.588Z] 00:02:29 INFO - E Remote-end stacktrace:
[task 2025-01-14T00:02:29.588Z] 00:02:29 INFO - E
[task 2025-01-14T00:02:29.588Z] 00:02:29 INFO - E RemoteError@chrome://remote/content/shared/RemoteError.sys.mjs:8:8
[task 2025-01-14T00:02:29.589Z] 00:02:29 INFO - E MessageHandlerError@chrome://remote/content/shared/messagehandler/Errors.sys.mjs:14:5
[task 2025-01-14T00:02:29.589Z] 00:02:29 INFO - E DiscardedBrowsingContextError@chrome://remote/content/shared/messagehandler/Errors.sys.mjs:76:5
[task 2025-01-14T00:02:29.589Z] 00:02:29 INFO - E _sendCommandToBrowsingContext@chrome://remote/content/shared/messagehandler/transports/RootTransport.sys.mjs:170:17
[task 2025-01-14T00:02:29.589Z] 00:02:29 INFO -
[task 2025-01-14T00:02:29.589Z] 00:02:29 INFO - cmd_name = 'input.performActions'
[task 2025-01-14T00:02:29.589Z] 00:02:29 INFO - future = <Future finished exception=NoSuchFrameException(no such frame, DiscardedBrowsingContextError: Failed to dispatch event "synthesizeMouseAtPoint": Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIDOMWindowUtils.sendMouseEvent], RemoteError@chrome://remote/content/shared/RemoteError.sys.mjs:8:8
[task 2025-01-14T00:02:29.589Z] 00:02:29 INFO - MessageHandlerError@chrome://remote/content/shared/messagehandler/Errors.sys.mjs:14:5
[task 2025-01-14T00:02:29.589Z] 00:02:29 INFO - DiscardedBrowsingContextError@chrome://remote/content/shared/messagehandler/Errors.sys.mjs:76:5
[task 2025-01-14T00:02:29.589Z] 00:02:29 INFO - _sendCommandToBrowsingContext@chrome://remote/content/shared/messagehandler/transports/RootTransport.sys.mjs:170:17
[task 2025-01-14T00:02:29.589Z] 00:02:29 INFO - )>
[task 2025-01-14T00:02:29.589Z] 00:02:29 INFO - kwargs = {'actions': <webdriver.bidi.modules.input.Actions object at 0x7f58cb59d040>,
[task 2025-01-14T00:02:29.589Z] 00:02:29 INFO - 'context': 'cb5f7807-e60e-4b62-b4ca-b2bfbd41a964'}
[task 2025-01-14T00:02:29.589Z] 00:02:29 INFO - mod_name = 'input'
[task 2025-01-14T00:02:29.589Z] 00:02:29 INFO - name = 'perform_actions'
[task 2025-01-14T00:02:29.589Z] 00:02:29 INFO - owner = <class 'webdriver.bidi.modules.input.Input'>
[task 2025-01-14T00:02:29.589Z] 00:02:29 INFO - params = {'actions': [{'actions': [{'origin': {'element': {'sharedId': 'f7fa066f-ab0f-4740-8a94-b3c6541c18d2'},
[task 2025-01-14T00:02:29.589Z] 00:02:29 INFO - 'type': 'element'},
[task 2025-01-14T00:02:29.589Z] 00:02:29 INFO - 'type': 'pointerMove',
[task 2025-01-14T00:02:29.589Z] 00:02:29 INFO - 'x': 0,
[task 2025-01-14T00:02:29.589Z] 00:02:29 INFO - 'y': 0},
[task 2025-01-14T00:02:29.589Z] 00:02:29 INFO - {'button': 0, 'type': 'pointerDown'},
[task 2025-01-14T00:02:29.589Z] 00:02:29 INFO - {'button': 0, 'type': 'pointerUp'},
[task 2025-01-14T00:02:29.589Z] 00:02:29 INFO - {'duration': 1000, 'type': 'pause'},
[task 2025-01-14T00:02:29.589Z] 00:02:29 INFO - {'origin': 'viewport',
[task 2025-01-14T00:02:29.589Z] 00:02:29 INFO - 'type': 'pointerMove',
[task 2025-01-14T00:02:29.589Z] 00:02:29 INFO - 'x': 300,
[task 2025-01-14T00:02:29.589Z] 00:02:29 INFO - 'y': 200}],
[task 2025-01-14T00:02:29.589Z] 00:02:29 INFO - 'id': 'pointer-0',
[task 2025-01-14T00:02:29.589Z] 00:02:29 INFO - 'parameters': {'pointerType': 'mouse'},
[task 2025-01-14T00:02:29.589Z] 00:02:29 INFO - 'type': 'pointer'}],
[task 2025-01-14T00:02:29.589Z] 00:02:29 INFO - 'context': 'cb5f7807-e60e-4b62-b4ca-b2bfbd41a964'}
[task 2025-01-14T00:02:29.589Z] 00:02:29 INFO - params_fn = <function Input.perform_actions at 0x7f58d8877af0>
[task 2025-01-14T00:02:29.589Z] 00:02:29 INFO - raw_result = False
[task 2025-01-14T00:02:29.589Z] 00:02:29 INFO - result_fn = None
[task 2025-01-14T00:02:29.589Z] 00:02:29 INFO - self = <webdriver.bidi.modules.input.Input object at 0x7f58d85d79d0>
[task 2025-01-14T00:02:29.589Z] 00:02:29 INFO -
[task 2025-01-14T00:02:29.589Z] 00:02:29 INFO - tests/web-platform/tests/tools/webdriver/webdriver/bidi/modules/_module.py:76: NoSuchFrameException
[task 2025-01-14T00:02:29.589Z] 00:02:29 INFO - TEST-OK | /webdriver/tests/bidi/input/perform_actions/navigation.py | took 3909ms
Comment 1•16 days ago
|
||
Just a single failure. Might be a timing issue so lets observe for now.
Blocks: parent-actions
Comment hidden (Intermittent Failures Robot) |
You need to log in
before you can comment on or make changes to this bug.
Description
•