Closed Bug 1962854 Opened 5 months ago Closed 5 months ago

Intermittent /webdriver/tests/bidi/browsing_context/context_destroyed/original_opener.py | test_window_open[noreferrer] - webdriver.bidi.error.UnknownErrorException: unknown error (TypeError: this._browser.frameLoader is null)

Categories

(Remote Protocol :: WebDriver BiDi, defect, P5)

defect

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1891706

People

(Reporter: intermittent-bug-filer, Unassigned)

Details

(Keywords: intermittent-failure)

Filed by: sstanca [at] mozilla.com
Parsed log: https://treeherder.mozilla.org/logviewer?job_id=505592352&repo=try
Full log: https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/QAz7h9OQSWuy_yFOsHeCtA/runs/0/artifacts/public/logs/live_backing.log


[task 2025-04-26T13:00:34.742Z] 13:00:34     INFO - TEST-PASS | /webdriver/tests/bidi/browsing_context/context_destroyed/original_opener.py | test_window_open[noopener] 
[task 2025-04-26T13:00:34.742Z] 13:00:34     INFO - TEST-UNEXPECTED-FAIL | /webdriver/tests/bidi/browsing_context/context_destroyed/original_opener.py | test_window_open[noreferrer] - webdriver.bidi.error.UnknownErrorException: unknown error (TypeError: this._browser.frameLoader is null)
[task 2025-04-26T13:00:34.742Z] 13:00:34     INFO - bidi_session = <webdriver.bidi.client.BidiSession object at 0x7f5fa5220a90>
[task 2025-04-26T13:00:34.742Z] 13:00:34     INFO - wait_for_event = <function wait_for_event.<locals>.wait_for_event at 0x7f5fa51374c0>
[task 2025-04-26T13:00:34.742Z] 13:00:34     INFO - wait_for_future_safe = <function wait_for_future_safe.<locals>.wait_for_future_safe at 0x7f5fa51378b0>
[task 2025-04-26T13:00:34.742Z] 13:00:34     INFO - subscribe_events = <function subscribe_events.<locals>.subscribe_events at 0x7f5fa520f8b0>
[task 2025-04-26T13:00:34.742Z] 13:00:34     INFO - inline = <function inline.<locals>.inline at 0x7f5fa520f9d0>
[task 2025-04-26T13:00:34.742Z] 13:00:34     INFO - features = 'noreferrer'
[task 2025-04-26T13:00:34.742Z] 13:00:34     INFO - 
[task 2025-04-26T13:00:34.742Z] 13:00:34     INFO -     @pytest.mark.parametrize(
[task 2025-04-26T13:00:34.742Z] 13:00:34     INFO -         "features",
[task 2025-04-26T13:00:34.742Z] 13:00:34     INFO -         [None, "", "popup", "noopener", "noreferrer"],
[task 2025-04-26T13:00:34.742Z] 13:00:34     INFO -     )
[task 2025-04-26T13:00:34.742Z] 13:00:34     INFO -     async def test_window_open(
[task 2025-04-26T13:00:34.742Z] 13:00:34     INFO -         bidi_session,
[task 2025-04-26T13:00:34.742Z] 13:00:34     INFO -         wait_for_event,
[task 2025-04-26T13:00:34.742Z] 13:00:34     INFO -         wait_for_future_safe,
[task 2025-04-26T13:00:34.742Z] 13:00:34     INFO -         subscribe_events,
[task 2025-04-26T13:00:34.742Z] 13:00:34     INFO -         inline,
[task 2025-04-26T13:00:34.742Z] 13:00:34     INFO -         features,
[task 2025-04-26T13:00:34.742Z] 13:00:34     INFO -     ):
[task 2025-04-26T13:00:34.742Z] 13:00:34     INFO - >       top_level_context = await bidi_session.browsing_context.create(type_hint="tab")
[task 2025-04-26T13:00:34.742Z] 13:00:34     INFO - 
[task 2025-04-26T13:00:34.742Z] 13:00:34     INFO - bidi_session = <webdriver.bidi.client.BidiSession object at 0x7f5fa5220a90>
[task 2025-04-26T13:00:34.742Z] 13:00:34     INFO - features   = 'noreferrer'
[task 2025-04-26T13:00:34.742Z] 13:00:34     INFO - inline     = <function inline.<locals>.inline at 0x7f5fa520f9d0>
[task 2025-04-26T13:00:34.742Z] 13:00:34     INFO - subscribe_events = <function subscribe_events.<locals>.subscribe_events at 0x7f5fa520f8b0>
[task 2025-04-26T13:00:34.742Z] 13:00:34     INFO - wait_for_event = <function wait_for_event.<locals>.wait_for_event at 0x7f5fa51374c0>
[task 2025-04-26T13:00:34.742Z] 13:00:34     INFO - wait_for_future_safe = <function wait_for_future_safe.<locals>.wait_for_future_safe at 0x7f5fa51378b0>
[task 2025-04-26T13:00:34.742Z] 13:00:34     INFO - 
[task 2025-04-26T13:00:34.742Z] 13:00:34     INFO - tests/web-platform/tests/webdriver/tests/bidi/browsing_context/context_destroyed/original_opener.py:22: 
[task 2025-04-26T13:00:34.743Z] 13:00:34     INFO - _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[task 2025-04-26T13:00:34.743Z] 13:00:34     INFO - 
[task 2025-04-26T13:00:34.743Z] 13:00:34     INFO - self = <webdriver.bidi.modules.browsing_context.BrowsingContext object at 0x7f5fa5220ac0>
[task 2025-04-26T13:00:34.743Z] 13:00:34     INFO - kwargs = {'type_hint': 'tab'}, raw_result = False, params = {'type': 'tab'}
[task 2025-04-26T13:00:34.743Z] 13:00:34     INFO - mod_name = 'browsingContext', cmd_name = 'browsingContext.create'
[task 2025-04-26T13:00:34.743Z] 13:00:34     INFO - future = <Future finished exception=UnknownErrorException(unknown error, TypeError: this._browser.frameLoader is null, maybeCan...ntent/elements/browser-custom-element.js:899:12
[task 2025-04-26T13:00:34.743Z] 13:00:34     INFO - createNewTab@resource://gre/modules/GeckoViewTestUtils.sys.mjs:58:20
[task 2025-04-26T13:00:34.743Z] 13:00:34     INFO - )>
[task 2025-04-26T13:00:34.743Z] 13:00:34     INFO - 
[task 2025-04-26T13:00:34.743Z] 13:00:34     INFO -     @functools.wraps(params_fn)
[task 2025-04-26T13:00:34.743Z] 13:00:34     INFO -     async def inner(self: Any, **kwargs: Any) -> Any:
[task 2025-04-26T13:00:34.743Z] 13:00:34     INFO -         raw_result = kwargs.pop("raw_result", False)
[task 2025-04-26T13:00:34.743Z] 13:00:34     INFO -         params = remove_undefined(params_fn(self, **kwargs))
[task 2025-04-26T13:00:34.743Z] 13:00:34     INFO -     
[task 2025-04-26T13:00:34.743Z] 13:00:34     INFO -         # Convert the classname and the method name to a bidi command name
[task 2025-04-26T13:00:34.743Z] 13:00:34     INFO -         mod_name = owner.__name__[0].lower() + owner.__name__[1:]
[task 2025-04-26T13:00:34.743Z] 13:00:34     INFO -         if hasattr(owner, "prefix"):
[task 2025-04-26T13:00:34.743Z] 13:00:34     INFO -             mod_name = f"{owner.prefix}:{mod_name}"
[task 2025-04-26T13:00:34.743Z] 13:00:34     INFO -         cmd_name = f"{mod_name}.{to_camelcase(name)}"
[task 2025-04-26T13:00:34.743Z] 13:00:34     INFO -     
[task 2025-04-26T13:00:34.743Z] 13:00:34     INFO -         future = await self.session.send_command(cmd_name, params)
[task 2025-04-26T13:00:34.743Z] 13:00:34     INFO - >       result = await future
[task 2025-04-26T13:00:34.743Z] 13:00:34     INFO - E       webdriver.bidi.error.UnknownErrorException: unknown error (TypeError: this._browser.frameLoader is null)
[task 2025-04-26T13:00:34.743Z] 13:00:34     INFO - E       
[task 2025-04-26T13:00:34.743Z] 13:00:34     INFO - E       Remote-end stacktrace:
[task 2025-04-26T13:00:34.743Z] 13:00:34     INFO - E       
[task 2025-04-26T13:00:34.743Z] 13:00:34     INFO - E       maybeCancelContentJSExecution@resource://gre/modules/RemoteWebNavigation.sys.mjs:29:5
[task 2025-04-26T13:00:34.743Z] 13:00:34     INFO - E       fixupAndLoadURIString@resource://gre/modules/RemoteWebNavigation.sys.mjs:159:37
[task 2025-04-26T13:00:34.743Z] 13:00:34     INFO - E       fixupAndLoadURIString/<@chrome://global/content/elements/browser-custom-element.js:900:28
[task 2025-04-26T13:00:34.743Z] 13:00:34     INFO - E       _wrapURIChangeCall@chrome://global/content/elements/browser-custom-element.js:824:9
[task 2025-04-26T13:00:34.743Z] 13:00:34     INFO - E       fixupAndLoadURIString@chrome://global/content/elements/browser-custom-element.js:899:12
[task 2025-04-26T13:00:34.743Z] 13:00:34     INFO - E       createNewTab@resource://gre/modules/GeckoViewTestUtils.sys.mjs:58:20
[task 2025-04-26T13:00:34.743Z] 13:00:34     INFO - 
[task 2025-04-26T13:00:34.743Z] 13:00:34     INFO - cmd_name   = 'browsingContext.create'
[task 2025-04-26T13:00:34.743Z] 13:00:34     INFO - future     = <Future finished exception=UnknownErrorException(unknown error, TypeError: this._browser.frameLoader is null, maybeCancelContentJSExecution@resource://gre/modules/RemoteWebNavigation.sys.mjs:29:5
[task 2025-04-26T13:00:34.743Z] 13:00:34     INFO - fixupAndLoadURIString@resource://gre/modules/RemoteWebNavigation.sys.mjs:159:37
[task 2025-04-26T13:00:34.743Z] 13:00:34     INFO - fixupAndLoadURIString/<@chrome://global/content/elements/browser-custom-element.js:900:28
[task 2025-04-26T13:00:34.744Z] 13:00:34     INFO - _wrapURIChangeCall@chrome://global/content/elements/browser-custom-element.js:824:9
[task 2025-04-26T13:00:34.744Z] 13:00:34     INFO - fixupAndLoadURIString@chrome://global/content/elements/browser-custom-element.js:899:12
[task 2025-04-26T13:00:34.744Z] 13:00:34     INFO - createNewTab@resource://gre/modules/GeckoViewTestUtils.sys.mjs:58:20
[task 2025-04-26T13:00:34.744Z] 13:00:34     INFO - )>
[task 2025-04-26T13:00:34.744Z] 13:00:34     INFO - kwargs     = {'type_hint': 'tab'}
[task 2025-04-26T13:00:34.744Z] 13:00:34     INFO - mod_name   = 'browsingContext'
[task 2025-04-26T13:00:34.744Z] 13:00:34     INFO - name       = 'create'
[task 2025-04-26T13:00:34.744Z] 13:00:34     INFO - owner      = <class 'webdriver.bidi.modules.browsing_context.BrowsingContext'>
[task 2025-04-26T13:00:34.744Z] 13:00:34     INFO - params     = {'type': 'tab'}
[task 2025-04-26T13:00:34.744Z] 13:00:34     INFO - params_fn  = <function BrowsingContext.create at 0x7f5fa5c9c9d0>
[task 2025-04-26T13:00:34.744Z] 13:00:34     INFO - raw_result = False
[task 2025-04-26T13:00:34.744Z] 13:00:34     INFO - result_fn  = <function BrowsingContext._create at 0x7f5fa5c9ca60>
[task 2025-04-26T13:00:34.744Z] 13:00:34     INFO - self       = <webdriver.bidi.modules.browsing_context.BrowsingContext object at 0x7f5fa5220ac0>
[task 2025-04-26T13:00:34.744Z] 13:00:34     INFO - 
[task 2025-04-26T13:00:34.744Z] 13:00:34     INFO - tests/web-platform/tests/tools/webdriver/webdriver/bidi/modules/_module.py:76: UnknownErrorException
[task 2025-04-26T13:00:34.745Z] 13:00:34     INFO - ...
[task 2025-04-26T13:00:34.745Z] 13:00:34     INFO - TEST-OK | /webdriver/tests/bidi/browsing_context/context_destroyed/original_opener.py | took 13667ms
[task 2025-04-26T13:00:34.746Z] 13:00:34     INFO - Restarting browser for new test group
[task 2025-04-26T13:00:34.871Z] 13:00:34     INFO - STDOUT: >       top_level_context = await bidi_session.browsing_context.create(type_hint="tab")
[task 2025-04-26T13:00:34.871Z] 13:00:34     INFO - STDOUT: bidi_session = <webdriver.bidi.client.BidiSession object at 0x7f5fa5220a90>
[task 2025-04-26T13:00:34.871Z] 13:00:34     INFO - STDOUT: features   = 'noreferrer'
[task 2025-04-26T13:00:34.872Z] 13:00:34     INFO - STDOUT: inline     = <function inline.<locals>.inline at 0x7f5fa520f9d0>
[task 2025-04-26T13:00:34.872Z] 13:00:34     INFO - STDOUT: subscribe_events = <function subscribe_events.<locals>.subscribe_events at 0x7f5fa520f8b0>
[task 2025-04-26T13:00:34.873Z] 13:00:34     INFO - STDOUT: wait_for_event = <function wait_for_event.<locals>.wait_for_event at 0x7f5fa51374c0>
[task 2025-04-26T13:00:34.873Z] 13:00:34     INFO - STDOUT: wait_for_future_safe = <function wait_for_future_safe.<locals>.wait_for_future_safe at 0x7f5fa51378b0>
[task 2025-04-26T13:00:34.874Z] 13:00:34     INFO - STDOUT: tests/web-platform/tests/webdriver/tests/bidi/browsing_context/context_destroyed/original_opener.py
[task 2025-04-26T13:00:34.874Z] 13:00:34     INFO - STDOUT: :22: 
[task 2025-04-26T13:00:34.874Z] 13:00:34     INFO - STDOUT: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[task 2025-04-26T13:00:34.874Z] 13:00:34     INFO - STDOUT: self = <webdriver.bidi.modules.browsing_context.BrowsingContext object at 0x7f5fa5220ac0>
[task 2025-04-26T13:00:34.875Z] 13:00:34     INFO - STDOUT: kwargs = {'type_hint': 'tab'}, raw_result = False, params = {'type': 'tab'}
[task 2025-04-26T13:00:34.875Z] 13:00:34     INFO - STDOUT: mod_name = 'browsingContext', cmd_name = 'browsingContext.create'
[task 2025-04-26T13:00:34.876Z] 13:00:34     INFO - STDOUT: future = <Future finished exception=UnknownErrorException(unknown error, TypeError: this._browser.frameLoader is null, maybeCan...ntent/elements/browser-custom-element.js:899:12
[task 2025-04-26T13:00:34.876Z] 13:00:34     INFO - createNewTab@resource://gre/modules/GeckoViewTestUtils.sys.mjs:58:20
[task 2025-04-26T13:00:34.876Z] 13:00:34     INFO - )>
[task 2025-04-26T13:00:34.876Z] 13:00:34     INFO - STDOUT:     @functools.wraps(params_fn)
[task 2025-04-26T13:00:34.877Z] 13:00:34     INFO - STDOUT:     async def inner(self: Any, **kwargs: Any) -> Any:
[task 2025-04-26T13:00:34.877Z] 13:00:34     INFO - STDOUT:         raw_result = kwargs.pop("raw_result", False)
[task 2025-04-26T13:00:34.877Z] 13:00:34     INFO - STDOUT:         params = remove_undefined(params_fn(self, **kwargs))
[task 2025-04-26T13:00:34.878Z] 13:00:34     INFO - STDOUT:     
[task 2025-04-26T13:00:34.878Z] 13:00:34     INFO - STDOUT:         # Convert the classname and the method name to a bidi command name
[task 2025-04-26T13:00:34.879Z] 13:00:34     INFO - STDOUT:         mod_name = owner.__name__[0].lower() + owner.__name__[1:]
[task 2025-04-26T13:00:34.879Z] 13:00:34     INFO - STDOUT:         if hasattr(owner, "prefix"):
[task 2025-04-26T13:00:34.879Z] 13:00:34     INFO - STDOUT:             mod_name = f"{owner.prefix}:{mod_name}"
[task 2025-04-26T13:00:34.880Z] 13:00:34     INFO - STDOUT:         cmd_name = f"{mod_name}.{to_camelcase(name)}"
[task 2025-04-26T13:00:34.880Z] 13:00:34     INFO - STDOUT:     
[task 2025-04-26T13:00:34.880Z] 13:00:34     INFO - STDOUT:         future = await self.session.send_command(cmd_name, params)
[task 2025-04-26T13:00:34.880Z] 13:00:34     INFO - STDOUT: >       result = await future
[task 2025-04-26T13:00:34.880Z] 13:00:34     INFO - STDOUT: E       webdriver.bidi.error.UnknownErrorException: unknown error (TypeError: this._browser.frameLoader is null)
[task 2025-04-26T13:00:34.881Z] 13:00:34     INFO - STDOUT: E       
[task 2025-04-26T13:00:34.881Z] 13:00:34     INFO - STDOUT: E       Remote-end stacktrace:
[task 2025-04-26T13:00:34.883Z] 13:00:34     INFO - STDOUT: E       
[task 2025-04-26T13:00:34.883Z] 13:00:34     INFO - STDOUT: E       maybeCancelContentJSExecution@resource://gre/modules/RemoteWebNavigation.sys.mjs:29:5
[task 2025-04-26T13:00:34.883Z] 13:00:34     INFO - STDOUT: E       fixupAndLoadURIString@resource://gre/modules/RemoteWebNavigation.sys.mjs:159:37
[task 2025-04-26T13:00:34.883Z] 13:00:34     INFO - STDOUT: E       fixupAndLoadURIString/<@chrome://global/content/elements/browser-custom-element.js:900:28
[task 2025-04-26T13:00:34.883Z] 13:00:34     INFO - STDOUT: E       _wrapURIChangeCall@chrome://global/content/elements/browser-custom-element.js:824:9
[task 2025-04-26T13:00:34.883Z] 13:00:34     INFO - STDOUT: E       fixupAndLoadURIString@chrome://global/content/elements/browser-custom-element.js:899:12
[task 2025-04-26T13:00:34.884Z] 13:00:34     INFO - STDOUT: E       createNewTab@resource://gre/modules/GeckoViewTestUtils.sys.mjs:58:20
[task 2025-04-26T13:00:34.884Z] 13:00:34     INFO - STDOUT: cmd_name   = 'browsingContext.create'
[task 2025-04-26T13:00:34.884Z] 13:00:34     INFO - STDOUT: future     = <Future finished exception=UnknownErrorException(unknown error, TypeError: this._browser.frameLoader is null, maybeCancelContentJSExecution@resource://gre/modules/RemoteWebNavigation.sys.mjs:29:5
[task 2025-04-26T13:00:34.884Z] 13:00:34     INFO - fixupAndLoadURIString@resource://gre/modules/RemoteWebNavigation.sys.mjs:159:37
[task 2025-04-26T13:00:34.884Z] 13:00:34     INFO - fixupAndLoadURIString/<@chrome://global/content/elements/browser-custom-element.js:900:28
[task 2025-04-26T13:00:34.884Z] 13:00:34     INFO - _wrapURIChangeCall@chrome://global/content/elements/browser-custom-element.js:824:9
[task 2025-04-26T13:00:34.884Z] 13:00:34     INFO - fixupAndLoadURIString@chrome://global/content/elements/browser-custom-element.js:899:12
[task 2025-04-26T13:00:34.884Z] 13:00:34     INFO - createNewTab@resource://gre/modules/GeckoViewTestUtils.sys.mjs:58:20
[task 2025-04-26T13:00:34.884Z] 13:00:34     INFO - )>
[task 2025-04-26T13:00:34.885Z] 13:00:34     INFO - STDOUT: kwargs     = {'type_hint': 'tab'}
[task 2025-04-26T13:00:34.885Z] 13:00:34     INFO - STDOUT: mod_name   = 'browsingContext'
[task 2025-04-26T13:00:34.885Z] 13:00:34     INFO - STDOUT: name       = 'create'
[task 2025-04-26T13:00:34.886Z] 13:00:34     INFO - STDOUT: owner      = <class 'webdriver.bidi.modules.browsing_context.BrowsingContext'>
[task 2025-04-26T13:00:34.887Z] 13:00:34     INFO - STDOUT: params     = {'type': 'tab'}
[task 2025-04-26T13:00:34.887Z] 13:00:34     INFO - STDOUT: params_fn  = <function BrowsingContext.create at 0x7f5fa5c9c9d0>
[task 2025-04-26T13:00:34.888Z] 13:00:34     INFO - STDOUT: raw_result = False
[task 2025-04-26T13:00:34.888Z] 13:00:34     INFO - STDOUT: result_fn  = <function BrowsingContext._create at 0x7f5fa5c9ca60>
[task 2025-04-26T13:00:34.889Z] 13:00:34     INFO - STDOUT: self       = <webdriver.bidi.modules.browsing_context.BrowsingContext object at 0x7f5fa5220ac0>
[task 2025-04-26T13:00:34.889Z] 13:00:34     INFO - STDOUT: tests/web-platform/tests/tools/webdriver/webdriver/bidi/modules/_module.py
[task 2025-04-26T13:00:34.889Z] 13:00:34     INFO - STDOUT: :76: UnknownErrorException
[task 2025-04-26T13:00:34.890Z] 13:00:34     INFO - STDOUT: =========================== short test summary info ============================
[task 2025-04-26T13:00:34.891Z] 13:00:34     INFO - STDOUT: FAILED tests/web-platform/tests/webdriver/tests/bidi/browsing_context/context_destroyed/original_opener.py::test_window_open[noreferrer] - webdriver.bidi.error.UnknownErrorException: unknown error (TypeError: this._browser.frameLoader is null)
[task 2025-04-26T13:00:34.891Z] 13:00:34     INFO - 
[task 2025-04-26T13:00:34.891Z] 13:00:34     INFO - Remote-end stacktrace:
[task 2025-04-26T13:00:34.891Z] 13:00:34     INFO - 
[task 2025-04-26T13:00:34.891Z] 13:00:34     INFO - maybeCancelContentJSExecution@resource://gre/modules/RemoteWebNavigation.sys.mjs:29:5
[task 2025-04-26T13:00:34.891Z] 13:00:34     INFO - fixupAndLoadURIString@resource://gre/modules/RemoteWebNavigation.sys.mjs:159:37
[task 2025-04-26T13:00:34.891Z] 13:00:34     INFO - fixupAndLoadURIString/<@chrome://global/content/elements/browser-custom-element.js:900:28
[task 2025-04-26T13:00:34.891Z] 13:00:34     INFO - _wrapURIChangeCall@chrome://global/content/elements/browser-custom-element.js:824:9
[task 2025-04-26T13:00:34.891Z] 13:00:34     INFO - fixupAndLoadURIString@chrome://global/content/elements/browser-custom-element.js:899:12
[task 2025-04-26T13:00:34.892Z] 13:00:34     INFO - createNewTab@resource://gre/modules/GeckoViewTestUtils.sys.mjs:58:20
[task 2025-04-26T13:00:34.892Z] 13:00:34     INFO - STDOUT: ========================= 1 failed, 7 passed in 13.50s =========================
[task 2025-04-26T13:00:34.892Z] 13:00:34     INFO - Closing logging queue
[task 2025-04-26T13:00:34.892Z] 13:00:34     INFO - queue closed
Status: NEW → RESOLVED
Closed: 5 months ago
Duplicate of bug: 1891706
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.