Closed Bug 1750433 Opened 3 years ago Closed 3 years ago

Intermittent /webdriver/tests/switch_to_frame/switch.py | test_no_top_browsing_context[id2] - webdriver.error.NoSuchWindowException: no such window (404): Browsing context has been discarded

Categories

(Remote Protocol :: Marionette, defect, P5)

defect

Tracking

(firefox-esr91 unaffected, firefox96 unaffected, firefox97 fixed, firefox98 fixed)

RESOLVED FIXED
98 Branch
Tracking Status
firefox-esr91 --- unaffected
firefox96 --- unaffected
firefox97 --- fixed
firefox98 --- fixed

People

(Reporter: intermittent-bug-filer, Assigned: whimboo)

References

(Regression)

Details

(Keywords: intermittent-failure, regression)

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


[task 2022-01-16T14:12:29.927Z] 14:12:29     INFO - STDOUT: ERROR
[task 2022-01-16T14:12:29.930Z] 14:12:29     INFO - STDOUT: tests/web-platform/tests/webdriver/tests/switch_to_frame/switch.py::test_find_element_while_frame_is_still_loading 
[task 2022-01-16T14:12:29.931Z] 14:12:29     INFO - PID 5900 | 1642342349930	webdriver::server	DEBUG	-> POST /session/895301be-71b0-46c1-834a-aba68daa55b9/window/rect {"width": 800, "height": 600}
[task 2022-01-16T14:12:29.932Z] 14:12:29     INFO - PID 5900 | 1642342349930	Marionette	DEBUG	0 -> [0,159,"WebDriver:SetWindowRect",{"height":600,"width":800}]
[task 2022-01-16T14:12:29.933Z] 14:12:29     INFO - PID 5900 | 1642342349931	Marionette	DEBUG	0 <- [1,159,{"error":"no such window","message":"Browsing context has been discarded","stacktrace":"WebDriverError@chrome://remote ... ote/content/marionette/server.js:253:9\n_onJSONObjectReady/<@chrome://remote/content/marionette/transport.js:500:20\n"},null]
[task 2022-01-16T14:12:29.936Z] 14:12:29     INFO - PID 5900 | 1642342349931	webdriver::server	DEBUG	<- 404 Not Found {"value":{"error":"no such window","message":"Browsing context has been discarded","stacktrace":"WebDriverError@chrome://remote/content/shared/webdriver/Errors.jsm:183:5\nNoSuchWindowError@chrome://remote/content/shared/webdriver/Errors.jsm:437:5\nassert.that/<@chrome://remote/content/shared/webdriver/Assert.jsm:435:13\nassert.open@chrome://remote/content/shared/webdriver/Assert.jsm:143:4\nGeckoDriver.prototype.setWindowRect@chrome://remote/content/marionette/driver.js:1067:10\ndespatch@chrome://remote/content/marionette/server.js:306:40\nexecute@chrome://remote/content/marionette/server.js:279:16\nonPacket/<@chrome://remote/content/marionette/server.js:252:20\nonPacket@chrome://remote/content/marionette/server.js:253:9\n_onJSONObjectReady/<@chrome://remote/content/marionette/transport.js:500:20\n"}}
[task 2022-01-16T14:12:29.995Z] 14:12:29     INFO - STDOUT: ERROR
[task 2022-01-16T14:12:30.010Z] 14:12:30     INFO - STDOUT: =================================== ERRORS ====================================
[task 2022-01-16T14:12:30.011Z] 14:12:30     INFO - STDOUT: ______________ ERROR at setup of test_no_browsing_context[None] _______________
[task 2022-01-16T14:12:30.011Z] 14:12:30     INFO - STDOUT: args = ()
[task 2022-01-16T14:12:30.012Z] 14:12:30     INFO - STDOUT: kwargs = {'capabilities': {}, 'configuration': {'capabilities': {'moz:firefoxOptions': {'args': ['--profile', 'C:\\Users\\task_... 'binary': 'Z:\\task_164233964515851\\build\\application\\firefox\\firefox.exe'}}, 'host': '127.0.0.1', 'port': 54786}}
[task 2022-01-16T14:12:30.013Z] 14:12:30     INFO - STDOUT: request = <SubRequest 'session' for <Function test_no_browsing_context[None]>>
[task 2022-01-16T14:12:30.014Z] 14:12:30     INFO - STDOUT: setup = <function pytest_fixture_setup.<locals>.wrapper.<locals>.setup at 0x0000020FB5D3C310>
[task 2022-01-16T14:12:30.015Z] 14:12:30     INFO - STDOUT: finalizer = <function pytest_fixture_setup.<locals>.wrapper.<locals>.finalizer at 0x0000020FB5D3C280>
[task 2022-01-16T14:12:30.016Z] 14:12:30     INFO - STDOUT:     def wrapper(*args, **kwargs):
[task 2022-01-16T14:12:30.017Z] 14:12:30     INFO - STDOUT:         loop = fixture_stripper.get_and_strip_from(FixtureStripper.EVENT_LOOP, kwargs)
[task 2022-01-16T14:12:30.017Z] 14:12:30     INFO - STDOUT:         request = fixture_stripper.get_and_strip_from(FixtureStripper.REQUEST, kwargs)
[task 2022-01-16T14:12:30.018Z] 14:12:30     INFO - STDOUT:     
[task 2022-01-16T14:12:30.019Z] 14:12:30     INFO - STDOUT:         gen_obj = generator(*args, **kwargs)
[task 2022-01-16T14:12:30.028Z] 14:12:30     INFO - 
[task 2022-01-16T14:12:30.028Z] 14:12:30     INFO - TEST-PASS | /webdriver/tests/switch_to_frame/switch.py | test_null_parameter_value 
[task 2022-01-16T14:12:30.028Z] 14:12:30     INFO - TEST-PASS | /webdriver/tests/switch_to_frame/switch.py | test_null_response_value 
[task 2022-01-16T14:12:30.028Z] 14:12:30     INFO - TEST-PASS | /webdriver/tests/switch_to_frame/switch.py | test_no_top_browsing_context[None] 
[task 2022-01-16T14:12:30.028Z] 14:12:30     INFO - TEST-PASS | /webdriver/tests/switch_to_frame/switch.py | test_no_top_browsing_context[0] 
[task 2022-01-16T14:12:30.028Z] 14:12:30     INFO - TEST-UNEXPECTED-FAIL | /webdriver/tests/switch_to_frame/switch.py | test_no_top_browsing_context[id2] - webdriver.error.NoSuchWindowException: no such window (404): Browsing context has been discarded
[task 2022-01-16T14:12:30.028Z] 14:12:30     INFO - session = <Session 895301be-71b0-46c1-834a-aba68daa55b9>
[task 2022-01-16T14:12:30.028Z] 14:12:30     INFO - url = <function url.<locals>.url at 0x0000020FB5D3C1F0>
[task 2022-01-16T14:12:30.028Z] 14:12:30     INFO - id = {'element-6066-11e4-a52e-4f735466cecf': 'foo'}
[task 2022-01-16T14:12:30.028Z] 14:12:30     INFO - 
[task 2022-01-16T14:12:30.029Z] 14:12:30     INFO -     @pytest.mark.parametrize("id", [
[task 2022-01-16T14:12:30.029Z] 14:12:30     INFO -         None,
[task 2022-01-16T14:12:30.029Z] 14:12:30     INFO -         0,
[task 2022-01-16T14:12:30.029Z] 14:12:30     INFO -         {"element-6066-11e4-a52e-4f735466cecf": "foo"},
[task 2022-01-16T14:12:30.029Z] 14:12:30     INFO -     ])
[task 2022-01-16T14:12:30.029Z] 14:12:30     INFO -     def test_no_top_browsing_context(session, url, id):
[task 2022-01-16T14:12:30.029Z] 14:12:30     INFO -         session.window_handle = session.new_window()
[task 2022-01-16T14:12:30.029Z] 14:12:30     INFO -     
[task 2022-01-16T14:12:30.029Z] 14:12:30     INFO -         session.url = url("/webdriver/tests/support/html/frames.html")
[task 2022-01-16T14:12:30.029Z] 14:12:30     INFO -     
[task 2022-01-16T14:12:30.029Z] 14:12:30     INFO - >       subframe = session.find.css("#sub-frame", all=False)
[task 2022-01-16T14:12:30.030Z] 14:12:30     INFO - 
[task 2022-01-16T14:12:30.030Z] 14:12:30     INFO - id         = {'element-6066-11e4-a52e-4f735466cecf': 'foo'}
[task 2022-01-16T14:12:30.030Z] 14:12:30     INFO - session    = <Session 895301be-71b0-46c1-834a-aba68daa55b9>
[task 2022-01-16T14:12:30.030Z] 14:12:30     INFO - url        = <function url.<locals>.url at 0x0000020FB5D3C1F0>
[task 2022-01-16T14:12:30.030Z] 14:12:30     INFO - 
[task 2022-01-16T14:12:30.030Z] 14:12:30     INFO - tests\web-platform\tests\webdriver\tests\switch_to_frame\switch.py:44: 
[task 2022-01-16T14:12:30.030Z] 14:12:30     INFO - _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[task 2022-01-16T14:12:30.030Z] 14:12:30     INFO - tests\web-platform\tests\tools\webdriver\webdriver\client.py:20: in inner
[task 2022-01-16T14:12:30.030Z] 14:12:30     INFO -     return func(self, *args, **kwargs)
[task 2022-01-16T14:12:30.030Z] 14:12:30     INFO -         args       = ('#sub-frame',)
[task 2022-01-16T14:12:30.030Z] 14:12:30     INFO -         func       = <function Find.css at 0x0000020FB5BE53A0>
[task 2022-01-16T14:12:30.030Z] 14:12:30     INFO -         kwargs     = {'all': False}
[task 2022-01-16T14:12:30.030Z] 14:12:30     INFO -         self       = <webdriver.client.Find object at 0x0000020FB5C55D30>
[task 2022-01-16T14:12:30.030Z] 14:12:30     INFO -         session    = <Session 895301be-71b0-46c1-834a-aba68daa55b9>
[task 2022-01-16T14:12:30.030Z] 14:12:30     INFO - tests\web-platform\tests\tools\webdriver\webdriver\client.py:436: in css
[task 2022-01-16T14:12:30.030Z] 14:12:30     INFO -     elements = self._find_element("css selector", element_selector, all)
[task 2022-01-16T14:12:30.031Z] 14:12:30     INFO -         all        = False
[task 2022-01-16T14:12:30.031Z] 14:12:30     INFO -         element_selector = '#sub-frame'
[task 2022-01-16T14:12:30.031Z] 14:12:30     INFO -         self       = <webdriver.client.Find object at 0x0000020FB5C55D30>
[task 2022-01-16T14:12:30.031Z] 14:12:30     INFO - tests\web-platform\tests\tools\webdriver\webdriver\client.py:443: in _find_element
[task 2022-01-16T14:12:30.031Z] 14:12:30     INFO -     return self.session.send_session_command("POST", route, body)
[task 2022-01-16T14:12:30.031Z] 14:12:30     INFO -         all        = False
[task 2022-01-16T14:12:30.031Z] 14:12:30     INFO -         body       = {'using': 'css selector', 'value': '#sub-frame'}
[task 2022-01-16T14:12:30.031Z] 14:12:30     INFO -         route      = 'element'
[task 2022-01-16T14:12:30.031Z] 14:12:30     INFO -         selector   = '#sub-frame'
[task 2022-01-16T14:12:30.031Z] 14:12:30     INFO -         self       = <webdriver.client.Find object at 0x0000020FB5C55D30>
[task 2022-01-16T14:12:30.031Z] 14:12:30     INFO -         strategy   = 'css selector'
[task 2022-01-16T14:12:30.031Z] 14:12:30     INFO - tests\web-platform\tests\tools\webdriver\webdriver\client.py:659: in send_session_command
[task 2022-01-16T14:12:30.031Z] 14:12:30     INFO -     return self.send_command(method, url, body, timeout)
[task 2022-01-16T14:12:30.031Z] 14:12:30     INFO -         body       = {'using': 'css selector', 'value': '#sub-frame'}
[task 2022-01-16T14:12:30.032Z] 14:12:30     INFO -         method     = 'POST'
[task 2022-01-16T14:12:30.032Z] 14:12:30     INFO -         self       = <Session 895301be-71b0-46c1-834a-aba68daa55b9>
[task 2022-01-16T14:12:30.032Z] 14:12:30     INFO -         timeout    = None
[task 2022-01-16T14:12:30.032Z] 14:12:30     INFO -         uri        = 'element'
[task 2022-01-16T14:12:30.032Z] 14:12:30     INFO -         url        = 'session/895301be-71b0-46c1-834a-aba68daa55b9/element'
[task 2022-01-16T14:12:30.032Z] 14:12:30     INFO - _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[task 2022-01-16T14:12:30.032Z] 14:12:30     INFO - 
[task 2022-01-16T14:12:30.032Z] 14:12:30     INFO - self = <Session 895301be-71b0-46c1-834a-aba68daa55b9>, method = 'POST'
[task 2022-01-16T14:12:30.032Z] 14:12:30     INFO - url = 'session/895301be-71b0-46c1-834a-aba68daa55b9/element'
[task 2022-01-16T14:12:30.032Z] 14:12:30     INFO - body = {'using': 'css selector', 'value': '#sub-frame'}, timeout = None
[task 2022-01-16T14:12:30.032Z] 14:12:30     INFO - 
[task 2022-01-16T14:12:30.032Z] 14:12:30     INFO -     def send_command(self, method, url, body=None, timeout=None):
[task 2022-01-16T14:12:30.032Z] 14:12:30     INFO -         """
[task 2022-01-16T14:12:30.032Z] 14:12:30     INFO -         Send a command to the remote end and validate its success.
[task 2022-01-16T14:12:30.032Z] 14:12:30     INFO -     
[task 2022-01-16T14:12:30.032Z] 14:12:30     INFO -         :param method: HTTP method to use in request.
[task 2022-01-16T14:12:30.032Z] 14:12:30     INFO -         :param uri: "Command part" of the HTTP request URL,
[task 2022-01-16T14:12:30.032Z] 14:12:30     INFO -             e.g. `window/rect`.
[task 2022-01-16T14:12:30.033Z] 14:12:30     INFO -         :param body: Optional body of the HTTP request.
[task 2022-01-16T14:12:30.033Z] 14:12:30     INFO -     
[task 2022-01-16T14:12:30.033Z] 14:12:30     INFO -         :return: `None` if the HTTP response body was empty, otherwise
[task 2022-01-16T14:12:30.033Z] 14:12:30     INFO -             the `value` field returned after parsing the response
[task 2022-01-16T14:12:30.033Z] 14:12:30     INFO -             body as JSON.
[task 2022-01-16T14:12:30.033Z] 14:12:30     INFO -     
[task 2022-01-16T14:12:30.033Z] 14:12:30     INFO -         :raises error.WebDriverException: If the remote end returns
[task 2022-01-16T14:12:30.033Z] 14:12:30     INFO -             an error.
[task 2022-01-16T14:12:30.033Z] 14:12:30     INFO -         :raises ValueError: If the response body does not contain a
[task 2022-01-16T14:12:30.033Z] 14:12:30     INFO -             `value` key.
[task 2022-01-16T14:12:30.033Z] 14:12:30     INFO -         """
[task 2022-01-16T14:12:30.034Z] 14:12:30     INFO -     
[task 2022-01-16T14:12:30.034Z] 14:12:30     INFO -         response = self.transport.send(
[task 2022-01-16T14:12:30.034Z] 14:12:30     INFO -             method, url, body,
[task 2022-01-16T14:12:30.034Z] 14:12:30     INFO -             encoder=protocol.Encoder, decoder=protocol.Decoder,
[task 2022-01-16T14:12:30.034Z] 14:12:30     INFO -             session=self, timeout=timeout)
[task 2022-01-16T14:12:30.034Z] 14:12:30     INFO -     
[task 2022-01-16T14:12:30.034Z] 14:12:30     INFO -         if response.status != 200:
[task 2022-01-16T14:12:30.034Z] 14:12:30     INFO -             err = error.from_response(response)
[task 2022-01-16T14:12:30.034Z] 14:12:30     INFO -     
[task 2022-01-16T14:12:30.034Z] 14:12:30     INFO -             if isinstance(err, error.InvalidSessionIdException):
[task 2022-01-16T14:12:30.034Z] 14:12:30     INFO -                 # The driver could have already been deleted the session.
[task 2022-01-16T14:12:30.035Z] 14:12:30     INFO -                 self.session_id = None
[task 2022-01-16T14:12:30.035Z] 14:12:30     INFO -     
[task 2022-01-16T14:12:30.035Z] 14:12:30     INFO - >           raise err
[task 2022-01-16T14:12:30.035Z] 14:12:30     INFO - E           webdriver.error.NoSuchWindowException: no such window (404): Browsing context has been discarded
[task 2022-01-16T14:12:30.035Z] 14:12:30     INFO - E           
[task 2022-01-16T14:12:30.035Z] 14:12:30     INFO - E           Remote-end stacktrace:
[task 2022-01-16T14:12:30.035Z] 14:12:30     INFO - E           
[task 2022-01-16T14:12:30.035Z] 14:12:30     INFO - E           WebDriverError@chrome://remote/content/shared/webdriver/Errors.jsm:183:5
[task 2022-01-16T14:12:30.035Z] 14:12:30     INFO - E           NoSuchWindowError@chrome://remote/content/shared/webdriver/Errors.jsm:437:5
[task 2022-01-16T14:12:30.035Z] 14:12:30     INFO - E           assert.that/<@chrome://remote/content/shared/webdriver/Assert.jsm:435:13
[task 2022-01-16T14:12:30.035Z] 14:12:30     INFO - E           assert.open@chrome://remote/content/shared/webdriver/Assert.jsm:143:4
[task 2022-01-16T14:12:30.035Z] 14:12:30     INFO - E           GeckoDriver.prototype.findElement@chrome://remote/content/marionette/driver.js:1379:10
[task 2022-01-16T14:12:30.035Z] 14:12:30     INFO - E           despatch@chrome://remote/content/marionette/server.js:306:40
[task 2022-01-16T14:12:30.035Z] 14:12:30     INFO - E           execute@chrome://remote/content/marionette/server.js:279:16
[task 2022-01-16T14:12:30.035Z] 14:12:30     INFO - E           onPacket/<@chrome://remote/content/marionette/server.js:252:20
[task 2022-01-16T14:12:30.035Z] 14:12:30     INFO - E           onPacket@chrome://remote/content/marionette/server.js:253:9
[task 2022-01-16T14:12:30.036Z] 14:12:30     INFO - E           _onJSONObjectReady/<@chrome://remote/content/marionette/transport.js:500:20
[task 2022-01-16T14:12:30.036Z] 14:12:30     INFO - 
[task 2022-01-16T14:12:30.036Z] 14:12:30     INFO - body       = {'using': 'css selector', 'value': '#sub-frame'}
[task 2022-01-16T14:12:30.036Z] 14:12:30     INFO - err        = <NoSuchWindowException http_status=404>
[task 2022-01-16T14:12:30.036Z] 14:12:30     INFO - method     = 'POST'
[task 2022-01-16T14:12:30.036Z] 14:12:30     INFO - response   = <Response status=404 error=<NoSuchWindowException http_status=404>>
[task 2022-01-16T14:12:30.036Z] 14:12:30     INFO - self       = <Session 895301be-71b0-46c1-834a-aba68daa55b9>
[task 2022-01-16T14:12:30.036Z] 14:12:30     INFO - timeout    = None
[task 2022-01-16T14:12:30.036Z] 14:12:30     INFO - url        = 'session/895301be-71b0-46c1-834a-aba68daa55b9/element'
[task 2022-01-16T14:12:30.036Z] 14:12:30     INFO - 
[task 2022-01-16T14:12:30.036Z] 14:12:30     INFO - tests\web-platform\tests\tools\webdriver\webdriver\client.py:623: NoSuchWindowException
[task 2022-01-16T14:12:30.047Z] 14:12:30     INFO - 
[task 2022-01-16T14:12:30.047Z] 14:12:30     INFO - TEST-UNEXPECTED-ERROR | /webdriver/tests/switch_to_frame/switch.py | test_no_browsing_context[None] - setup error: webdriver.error.NoSuchWindowException: no such window (404): Browsing context has been discarded
[task 2022-01-16T14:12:30.047Z] 14:12:30     INFO - args = ()
[task 2022-01-16T14:12:30.047Z] 14:12:30     INFO - kwargs = {'capabilities': {}, 'configuration': {'capabilities': {'moz:firefoxOptions': {'args': ['--profile', 'C:\\Users\\task_... 'binary': 'Z:\\task_164233964515851\\build\\application\\firefox\\firefox.exe'}}, 'host': '127.0.0.1', 'port': 54786}}
[task 2022-01-16T14:12:30.047Z] 14:12:30     INFO - request = <SubRequest 'session' for <Function test_no_browsing_context[None]>>
[task 2022-01-16T14:12:30.047Z] 14:12:30     INFO - setup = <function pytest_fixture_setup.<locals>.wrapper.<locals>.setup at 0x0000020FB5D3C310>
<...>

Interesting failure. Switching to the new tab and a navigation worked fine. But then the browsing context disappeared:

https://treeherder.mozilla.org/logviewer?job_id=364274317&repo=autoland&lineNumber=103103-103118

[task 2022-01-16T14:12:28.952Z] 14:12:28     INFO - PID 5900 | 1642342348934	Marionette	DEBUG	0 -> [0,135,"WebDriver:Navigate",{"url":"http://web-platform.test:8000/webdriver/tests/support/html/frames.html"}]
[task 2022-01-16T14:12:28.953Z] 14:12:28     INFO - PID 5900 | 1642342348940	Marionette	TRACE	Remoteness change detected. Set new top-level browsing context to 53
[task 2022-01-16T14:12:28.954Z] 14:12:28     INFO - PID 5900 | 1642342348946	Marionette	TRACE	[53] Received event pagehide for about:blank
[task 2022-01-16T14:12:28.956Z] 14:12:28     INFO - PID 5900 | 1642342348948	Marionette	TRACE	[53] Received event beforeunload for about:blank
[task 2022-01-16T14:12:28.957Z] 14:12:28     INFO - PID 5900 | 1642342348951	Marionette	TRACE	[53] Received event pagehide for about:blank
[task 2022-01-16T14:12:28.970Z] 14:12:28     INFO - PID 5900 | 1642342348971	Marionette	TRACE	[53] Received event beforeunload for about:blank
[task 2022-01-16T14:12:28.975Z] 14:12:28     INFO - PID 5900 | 1642342348973	Marionette	TRACE	[53] Received event pagehide for about:blank
[task 2022-01-16T14:12:28.979Z] 14:12:28     INFO - PID 5900 | 1642342348978	Marionette	TRACE	[53] Received event DOMContentLoaded for http://web-platform.test:8000/webdriver/tests/support/html/frames.html
[task 2022-01-16T14:12:28.986Z] 14:12:28     INFO - PID 5900 | 1642342348984	Marionette	WARN	Ignoring event 'pageshow' because document has an invalid readyState of 'uninitialized'.
[task 2022-01-16T14:12:28.987Z] 14:12:28     INFO - PID 5900 | 1642342348985	Marionette	TRACE	[53] Received event pageshow for http://web-platform.test:8000/webdriver/tests/support/html/frames.html
[task 2022-01-16T14:12:28.989Z] 14:12:28     INFO - PID 5900 | 1642342348988	Marionette	DEBUG	0 <- [1,135,null,{"value":null}]
[task 2022-01-16T14:12:28.992Z] 14:12:28     INFO - PID 5900 | 1642342348990	webdriver::server	DEBUG	<- 200 OK {"value":null}
[task 2022-01-16T14:12:28.993Z] 14:12:28     INFO - PID 5900 | 1642342348991	webdriver::server	DEBUG	-> POST /session/895301be-71b0-46c1-834a-aba68daa55b9/element {"using": "css selector", "value": "#sub-frame"}
[task 2022-01-16T14:12:28.994Z] 14:12:28     INFO - PID 5900 | 1642342348992	Marionette	DEBUG	0 -> [0,136,"WebDriver:FindElement",{"using":"css selector","value":"#sub-frame"}]
[task 2022-01-16T14:12:28.996Z] 14:12:28     INFO - PID 5900 | 1642342348992	Marionette	DEBUG	0 <- [1,136,{"error":"no such window","message":"Browsing context has been discarded","stacktrace":"WebDriverError@chrome://remote ... ote/content/marionette/server.js:253:9\n_onJSONObjectReady/<@chrome://remote/content/marionette/transport.js:500:20\n"},null]
[task 2022-01-16T14:12:28.998Z] 14:12:28     INFO - PID 5900 | 1642342348992	webdriver::server	DEBUG	<- 404 Not Found {"value":{"error":"no such window","message":"Browsing context has been discarded","stacktrace":"WebDriverError@chrome://remote/content/shared/webdriver/Errors.jsm:183:5\nNoSuchWindowError@chrome://remote/content/shared/webdriver/Errors.jsm:437:5\nassert.that/<@chrome://remote/content/shared/webdriver/Assert.jsm:435:13\nassert.open@chrome://remote/content/shared/webdriver/Assert.jsm:143:4\nGeckoDriver.prototype.findElement@chrome://remote/content/marionette/driver.js:1379:10\ndespatch@chrome://remote/content/marionette/server.js:306:40\nexecute@chrome://remote/content/marionette/server.js:279:16\nonPacket/<@chrome://remote/content/marionette/server.js:252:20\nonPacket@chrome://remote/content/marionette/server.js:253:9\n_onJSONObjectReady/<@chrome://remote/content/marionette/transport.js:500:20\n"}}

It might actually be related to the load of the initial about:blank page. So that we might miss a browsing context change for the second load. Probably fixed by bug 1747359.

Depends on: 1747359
Assignee: nobody → hskupin
Status: NEW → RESOLVED
Closed: 3 years ago
Keywords: regression
Regressed by: 1739369
Resolution: --- → FIXED
Target Milestone: --- → 98 Branch

Set release status flags based on info from the regressing bug 1739369

Has Regression Range: --- → yes
Moving bug to Remote Protocol::Marionette component per bug 1815831.
Component: geckodriver → Marionette
Product: Testing → Remote Protocol
You need to log in before you can comment on or make changes to this bug.