Closed Bug 1750125 Opened 3 years ago Closed 3 years ago

Intermittent /webdriver/tests/close_window/user_prompts.py | test_dismiss_and_notify[capabilities0-prompt-None] - webdriver.error.JavascriptErrorException: javascript error (500): JavaScriptError: Document was unloaded

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=364077681&repo=mozilla-central
Full log: https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/WJZNebpkQPS6j_Ylnt44fg/runs/0/artifacts/public/logs/live_backing.log


[task 2022-01-13T23:39:41.073Z] 23:39:41     INFO - STDOUT: ================================== FAILURES ===================================
[task 2022-01-13T23:39:41.073Z] 23:39:41     INFO - STDOUT: _____________ test_dismiss_and_notify[capabilities0-prompt-None] ______________
[task 2022-01-13T23:39:41.074Z] 23:39:41     INFO - STDOUT: check_user_prompt_closed_with_exception = <function check_user_prompt_closed_with_exception.<locals>.check_user_prompt_closed_with_exception at 0x000001C4FE8DB1F0>
[task 2022-01-13T23:39:41.075Z] 23:39:41     INFO - STDOUT: dialog_type = 'prompt', retval = None
[task 2022-01-13T23:39:41.076Z] 23:39:41     INFO - STDOUT:     @pytest.mark.capabilities({"unhandledPromptBehavior": "dismiss and notify"})
[task 2022-01-13T23:39:41.076Z] 23:39:41     INFO - STDOUT:     @pytest.mark.parametrize("dialog_type, retval", [
[task 2022-01-13T23:39:41.077Z] 23:39:41     INFO - STDOUT:         ("alert", None),
[task 2022-01-13T23:39:41.078Z] 23:39:41     INFO - STDOUT:         ("confirm", False),
[task 2022-01-13T23:39:41.078Z] 23:39:41     INFO - STDOUT:         ("prompt", None),
[task 2022-01-13T23:39:41.079Z] 23:39:41     INFO - STDOUT:     ])
[task 2022-01-13T23:39:41.080Z] 23:39:41     INFO - STDOUT:     def test_dismiss_and_notify(check_user_prompt_closed_with_exception, dialog_type, retval):
[task 2022-01-13T23:39:41.080Z] 23:39:41     INFO - PID 6648 | 1642117181036	webdriver::server	DEBUG	<- 200 OK {"value":null}
[task 2022-01-13T23:39:41.081Z] 23:39:41     INFO - STDOUT: >       check_user_prompt_closed_with_exception(dialog_type, retval)
[task 2022-01-13T23:39:41.096Z] 23:39:41     INFO - 
[task 2022-01-13T23:39:41.096Z] 23:39:41     INFO - TEST-PASS | /webdriver/tests/close_window/user_prompts.py | test_accept[capabilities0-confirm] 
[task 2022-01-13T23:39:41.096Z] 23:39:41     INFO - TEST-PASS | /webdriver/tests/close_window/user_prompts.py | test_accept[capabilities0-prompt] 
[task 2022-01-13T23:39:41.096Z] 23:39:41     INFO - TEST-PASS | /webdriver/tests/close_window/user_prompts.py | test_accept_and_notify[capabilities0-alert-None] 
[task 2022-01-13T23:39:41.096Z] 23:39:41     INFO - TEST-PASS | /webdriver/tests/close_window/user_prompts.py | test_accept_and_notify[capabilities0-confirm-True] 
[task 2022-01-13T23:39:41.096Z] 23:39:41     INFO - TEST-PASS | /webdriver/tests/close_window/user_prompts.py | test_accept_and_notify[capabilities0-prompt-] 
[task 2022-01-13T23:39:41.096Z] 23:39:41     INFO - TEST-PASS | /webdriver/tests/close_window/user_prompts.py | test_dismiss[capabilities0-alert] 
[task 2022-01-13T23:39:41.096Z] 23:39:41     INFO - TEST-PASS | /webdriver/tests/close_window/user_prompts.py | test_dismiss[capabilities0-confirm] 
[task 2022-01-13T23:39:41.096Z] 23:39:41     INFO - TEST-PASS | /webdriver/tests/close_window/user_prompts.py | test_dismiss[capabilities0-prompt] 
[task 2022-01-13T23:39:41.096Z] 23:39:41     INFO - TEST-PASS | /webdriver/tests/close_window/user_prompts.py | test_dismiss_and_notify[capabilities0-alert-None] 
[task 2022-01-13T23:39:41.096Z] 23:39:41     INFO - TEST-PASS | /webdriver/tests/close_window/user_prompts.py | test_dismiss_and_notify[capabilities0-confirm-False] 
[task 2022-01-13T23:39:41.097Z] 23:39:41     INFO - TEST-UNEXPECTED-FAIL | /webdriver/tests/close_window/user_prompts.py | test_dismiss_and_notify[capabilities0-prompt-None] - webdriver.error.JavascriptErrorException: javascript error (500): JavaScriptError: Document was unloaded
[task 2022-01-13T23:39:41.097Z] 23:39:41     INFO - check_user_prompt_closed_with_exception = <function check_user_prompt_closed_with_exception.<locals>.check_user_prompt_closed_with_exception at 0x000001C4FE8DB1F0>
[task 2022-01-13T23:39:41.097Z] 23:39:41     INFO - dialog_type = 'prompt', retval = None
[task 2022-01-13T23:39:41.097Z] 23:39:41     INFO - 
[task 2022-01-13T23:39:41.097Z] 23:39:41     INFO -     @pytest.mark.capabilities({"unhandledPromptBehavior": "dismiss and notify"})
[task 2022-01-13T23:39:41.097Z] 23:39:41     INFO -     @pytest.mark.parametrize("dialog_type, retval", [
[task 2022-01-13T23:39:41.097Z] 23:39:41     INFO -         ("alert", None),
[task 2022-01-13T23:39:41.097Z] 23:39:41     INFO -         ("confirm", False),
[task 2022-01-13T23:39:41.097Z] 23:39:41     INFO -         ("prompt", None),
[task 2022-01-13T23:39:41.097Z] 23:39:41     INFO -     ])
[task 2022-01-13T23:39:41.097Z] 23:39:41     INFO -     def test_dismiss_and_notify(check_user_prompt_closed_with_exception, dialog_type, retval):
[task 2022-01-13T23:39:41.097Z] 23:39:41     INFO - >       check_user_prompt_closed_with_exception(dialog_type, retval)
[task 2022-01-13T23:39:41.097Z] 23:39:41     INFO - 
[task 2022-01-13T23:39:41.097Z] 23:39:41     INFO - check_user_prompt_closed_with_exception = <function check_user_prompt_closed_with_exception.<locals>.check_user_prompt_closed_with_exception at 0x000001C4FE8DB1F0>
[task 2022-01-13T23:39:41.098Z] 23:39:41     INFO - dialog_type = 'prompt'
[task 2022-01-13T23:39:41.098Z] 23:39:41     INFO - retval     = None
[task 2022-01-13T23:39:41.098Z] 23:39:41     INFO - 
[task 2022-01-13T23:39:41.098Z] 23:39:41     INFO - tests\web-platform\tests\webdriver\tests\close_window\user_prompts.py:104: 
[task 2022-01-13T23:39:41.098Z] 23:39:41     INFO - _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[task 2022-01-13T23:39:41.098Z] 23:39:41     INFO - tests\web-platform\tests\webdriver\tests\close_window\user_prompts.py:42: in check_user_prompt_closed_with_exception
[task 2022-01-13T23:39:41.098Z] 23:39:41     INFO -     create_dialog(dialog_type, text=dialog_type)
[task 2022-01-13T23:39:41.098Z] 23:39:41     INFO -         create_dialog = <function create_dialog.<locals>.create_dialog at 0x000001C4FE8D45E0>
[task 2022-01-13T23:39:41.098Z] 23:39:41     INFO -         dialog_type = 'prompt'
[task 2022-01-13T23:39:41.098Z] 23:39:41     INFO -         new_handle = 'c7ae074e-cca6-48e9-ae06-6058e17c28af'
[task 2022-01-13T23:39:41.098Z] 23:39:41     INFO -         retval     = None
[task 2022-01-13T23:39:41.098Z] 23:39:41     INFO -         session    = <Session 20216b84-c404-49ce-b1f6-3d1db7a8e554>
[task 2022-01-13T23:39:41.099Z] 23:39:41     INFO - tests\web-platform\tests\webdriver\tests\support\fixtures_http.py:114: in create_dialog
[task 2022-01-13T23:39:41.099Z] 23:39:41     INFO -     session.execute_async_script("""
[task 2022-01-13T23:39:41.099Z] 23:39:41     INFO -         dialog_type = 'prompt'
[task 2022-01-13T23:39:41.099Z] 23:39:41     INFO -         session    = <Session 20216b84-c404-49ce-b1f6-3d1db7a8e554>
[task 2022-01-13T23:39:41.099Z] 23:39:41     INFO -         text       = 'prompt'
[task 2022-01-13T23:39:41.099Z] 23:39:41     INFO - tests\web-platform\tests\tools\webdriver\webdriver\client.py:20: in inner
[task 2022-01-13T23:39:41.099Z] 23:39:41     INFO -     return func(self, *args, **kwargs)
[task 2022-01-13T23:39:41.099Z] 23:39:41     INFO -         args       = ('\n'
[task 2022-01-13T23:39:41.099Z] 23:39:41     INFO -  '            let dialog_type = arguments[0];\n'
[task 2022-01-13T23:39:41.099Z] 23:39:41     INFO -  '            let text = arguments[1];\n'
[task 2022-01-13T23:39:41.099Z] 23:39:41     INFO -  '\n'
[task 2022-01-13T23:39:41.099Z] 23:39:41     INFO -  '            setTimeout(function() {\n'
[task 2022-01-13T23:39:41.100Z] 23:39:41     INFO -  "              if (dialog_type == 'prompt') {\n"
[task 2022-01-13T23:39:41.100Z] 23:39:41     INFO -  "                window.dialog_return_value = window[dialog_type](text, '');\n"
[task 2022-01-13T23:39:41.100Z] 23:39:41     INFO -  '              } else {\n'
[task 2022-01-13T23:39:41.100Z] 23:39:41     INFO -  '                window.dialog_return_value = window[dialog_type](text);\n'
[task 2022-01-13T23:39:41.100Z] 23:39:41     INFO -  '              }\n'
[task 2022-01-13T23:39:41.100Z] 23:39:41     INFO -  '            }, 0);\n'
[task 2022-01-13T23:39:41.100Z] 23:39:41     INFO -  '            ',)
[task 2022-01-13T23:39:41.100Z] 23:39:41     INFO -         func       = <function Session.execute_async_script at 0x000001C4FE798670>
[task 2022-01-13T23:39:41.100Z] 23:39:41     INFO -         kwargs     = {'args': ('prompt', 'prompt')}
[task 2022-01-13T23:39:41.100Z] 23:39:41     INFO -         self       = <Session 20216b84-c404-49ce-b1f6-3d1db7a8e554>
[task 2022-01-13T23:39:41.100Z] 23:39:41     INFO -         session    = <Session 20216b84-c404-49ce-b1f6-3d1db7a8e554>
[task 2022-01-13T23:39:41.100Z] 23:39:41     INFO - tests\web-platform\tests\tools\webdriver\webdriver\client.py:791: in execute_async_script
[task 2022-01-13T23:39:41.100Z] 23:39:41     INFO -     return self.send_session_command("POST", "execute/async", body)
[task 2022-01-13T23:39:41.101Z] 23:39:41     INFO -         args       = ('prompt', 'prompt')
[task 2022-01-13T23:39:41.101Z] 23:39:41     INFO -         body       = {'args': ('prompt', 'prompt'),
[task 2022-01-13T23:39:41.101Z] 23:39:41     INFO -  'script': '\n'
[task 2022-01-13T23:39:41.101Z] 23:39:41     INFO -            '            let dialog_type = arguments[0];\n'
[task 2022-01-13T23:39:41.101Z] 23:39:41     INFO -            '            let text = arguments[1];\n'
[task 2022-01-13T23:39:41.101Z] 23:39:41     INFO -            '\n'
[task 2022-01-13T23:39:41.101Z] 23:39:41     INFO -            '            setTimeout(function() {\n'
[task 2022-01-13T23:39:41.101Z] 23:39:41     INFO -            "              if (dialog_type == 'prompt') {\n"
[task 2022-01-13T23:39:41.101Z] 23:39:41     INFO -            '                window.dialog_return_value = '
[task 2022-01-13T23:39:41.101Z] 23:39:41     INFO -            "window[dialog_type](text, '');\n"
[task 2022-01-13T23:39:41.101Z] 23:39:41     INFO -            '              } else {\n'
[task 2022-01-13T23:39:41.101Z] 23:39:41     INFO -            '                window.dialog_return_value = '
[task 2022-01-13T23:39:41.101Z] 23:39:41     INFO -            'window[dialog_type](text);\n'
[task 2022-01-13T23:39:41.102Z] 23:39:41     INFO -            '              }\n'
[task 2022-01-13T23:39:41.102Z] 23:39:41     INFO -            '            }, 0);\n'
[task 2022-01-13T23:39:41.102Z] 23:39:41     INFO -            '            '}
[task 2022-01-13T23:39:41.102Z] 23:39:41     INFO -         script     = ('\n'
[task 2022-01-13T23:39:41.102Z] 23:39:41     INFO -  '            let dialog_type = arguments[0];\n'
[task 2022-01-13T23:39:41.102Z] 23:39:41     INFO -  '            let text = arguments[1];\n'
[task 2022-01-13T23:39:41.102Z] 23:39:41     INFO -  '\n'
[task 2022-01-13T23:39:41.102Z] 23:39:41     INFO -  '            setTimeout(function() {\n'
[task 2022-01-13T23:39:41.102Z] 23:39:41     INFO -  "              if (dialog_type == 'prompt') {\n"
[task 2022-01-13T23:39:41.102Z] 23:39:41     INFO -  "                window.dialog_return_value = window[dialog_type](text, '');\n"
[task 2022-01-13T23:39:41.102Z] 23:39:41     INFO -  '              } else {\n'
[task 2022-01-13T23:39:41.102Z] 23:39:41     INFO -  '                window.dialog_return_value = window[dialog_type](text);\n'
[task 2022-01-13T23:39:41.102Z] 23:39:41     INFO -  '              }\n'
[task 2022-01-13T23:39:41.102Z] 23:39:41     INFO -  '            }, 0);\n'
[task 2022-01-13T23:39:41.102Z] 23:39:41     INFO -  '            ')
[task 2022-01-13T23:39:41.102Z] 23:39:41     INFO -         self       = <Session 20216b84-c404-49ce-b1f6-3d1db7a8e554>
[task 2022-01-13T23:39:41.102Z] 23:39:41     INFO - tests\web-platform\tests\tools\webdriver\webdriver\client.py:659: in send_session_command
[task 2022-01-13T23:39:41.102Z] 23:39:41     INFO -     return self.send_command(method, url, body, timeout)
[task 2022-01-13T23:39:41.102Z] 23:39:41     INFO -         body       = {'args': ('prompt', 'prompt'),
[task 2022-01-13T23:39:41.102Z] 23:39:41     INFO -  'script': '\n'
[task 2022-01-13T23:39:41.102Z] 23:39:41     INFO -            '            let dialog_type = arguments[0];\n'
[task 2022-01-13T23:39:41.103Z] 23:39:41     INFO -            '            let text = arguments[1];\n'
[task 2022-01-13T23:39:41.103Z] 23:39:41     INFO -            '\n'
[task 2022-01-13T23:39:41.103Z] 23:39:41     INFO -            '            setTimeout(function() {\n'
[task 2022-01-13T23:39:41.103Z] 23:39:41     INFO -            "              if (dialog_type == 'prompt') {\n"
[task 2022-01-13T23:39:41.103Z] 23:39:41     INFO -            '                window.dialog_return_value = '
[task 2022-01-13T23:39:41.103Z] 23:39:41     INFO -            "window[dialog_type](text, '');\n"
[task 2022-01-13T23:39:41.103Z] 23:39:41     INFO -            '              } else {\n'
[task 2022-01-13T23:39:41.103Z] 23:39:41     INFO -            '                window.dialog_return_value = '
[task 2022-01-13T23:39:41.103Z] 23:39:41     INFO -            'window[dialog_type](text);\n'
[task 2022-01-13T23:39:41.103Z] 23:39:41     INFO -            '              }\n'
[task 2022-01-13T23:39:41.103Z] 23:39:41     INFO -            '            }, 0);\n'
[task 2022-01-13T23:39:41.103Z] 23:39:41     INFO -            '            '}
[task 2022-01-13T23:39:41.103Z] 23:39:41     INFO -         method     = 'POST'
[task 2022-01-13T23:39:41.103Z] 23:39:41     INFO -         self       = <Session 20216b84-c404-49ce-b1f6-3d1db7a8e554>
[task 2022-01-13T23:39:41.104Z] 23:39:41     INFO -         timeout    = None
[task 2022-01-13T23:39:41.104Z] 23:39:41     INFO -         uri        = 'execute/async'
[task 2022-01-13T23:39:41.104Z] 23:39:41     INFO -         url        = 'session/20216b84-c404-49ce-b1f6-3d1db7a8e554/execute/async'
[task 2022-01-13T23:39:41.104Z] 23:39:41     INFO - _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[task 2022-01-13T23:39:41.104Z] 23:39:41     INFO - 
[task 2022-01-13T23:39:41.104Z] 23:39:41     INFO - self = <Session 20216b84-c404-49ce-b1f6-3d1db7a8e554>, method = 'POST'
[task 2022-01-13T23:39:41.104Z] 23:39:41     INFO - url = 'session/20216b84-c404-49ce-b1f6-3d1db7a8e554/execute/async'
[task 2022-01-13T23:39:41.104Z] 23:39:41     INFO - body = {'args': ('prompt', 'prompt'), 'script': '\n            let dialog_type = arguments[0];\n            let text = argume...           window.dialog_return_value = window[dialog_type](text);\n              }\n            }, 0);\n            '}
[task 2022-01-13T23:39:41.104Z] 23:39:41     INFO - timeout = None
[task 2022-01-13T23:39:41.104Z] 23:39:41     INFO - 
[task 2022-01-13T23:39:41.104Z] 23:39:41     INFO -     def send_command(self, method, url, body=None, timeout=None):
[task 2022-01-13T23:39:41.104Z] 23:39:41     INFO -         """
[task 2022-01-13T23:39:41.104Z] 23:39:41     INFO -         Send a command to the remote end and validate its success.
[task 2022-01-13T23:39:41.104Z] 23:39:41     INFO -     
[task 2022-01-13T23:39:41.104Z] 23:39:41     INFO -         :param method: HTTP method to use in request.
[task 2022-01-13T23:39:41.105Z] 23:39:41     INFO -         :param uri: "Command part" of the HTTP request URL,
[task 2022-01-13T23:39:41.105Z] 23:39:41     INFO -             e.g. `window/rect`.
[task 2022-01-13T23:39:41.105Z] 23:39:41     INFO -         :param body: Optional body of the HTTP request.
[task 2022-01-13T23:39:41.105Z] 23:39:41     INFO -     
[task 2022-01-13T23:39:41.105Z] 23:39:41     INFO -         :return: `None` if the HTTP response body was empty, otherwise
[task 2022-01-13T23:39:41.105Z] 23:39:41     INFO -             the `value` field returned after parsing the response
[task 2022-01-13T23:39:41.105Z] 23:39:41     INFO -             body as JSON.
[task 2022-01-13T23:39:41.105Z] 23:39:41     INFO -     
[task 2022-01-13T23:39:41.105Z] 23:39:41     INFO -         :raises error.WebDriverException: If the remote end returns
[task 2022-01-13T23:39:41.105Z] 23:39:41     INFO -             an error.
[task 2022-01-13T23:39:41.106Z] 23:39:41     INFO -         :raises ValueError: If the response body does not contain a
[task 2022-01-13T23:39:41.106Z] 23:39:41     INFO -             `value` key.
[task 2022-01-13T23:39:41.106Z] 23:39:41     INFO -         """
[task 2022-01-13T23:39:41.106Z] 23:39:41     INFO -     
[task 2022-01-13T23:39:41.106Z] 23:39:41     INFO -         response = self.transport.send(
[task 2022-01-13T23:39:41.106Z] 23:39:41     INFO -             method, url, body,
[task 2022-01-13T23:39:41.106Z] 23:39:41     INFO -             encoder=protocol.Encoder, decoder=protocol.Decoder,
[task 2022-01-13T23:39:41.106Z] 23:39:41     INFO -             session=self, timeout=timeout)
[task 2022-01-13T23:39:41.106Z] 23:39:41     INFO -     
[task 2022-01-13T23:39:41.106Z] 23:39:41     INFO -         if response.status != 200:
[task 2022-01-13T23:39:41.106Z] 23:39:41     INFO -             err = error.from_response(response)
[task 2022-01-13T23:39:41.106Z] 23:39:41     INFO -     
[task 2022-01-13T23:39:41.106Z] 23:39:41     INFO -             if isinstance(err, error.InvalidSessionIdException):
[task 2022-01-13T23:39:41.106Z] 23:39:41     INFO -                 # The driver could have already been deleted the session.
[task 2022-01-13T23:39:41.106Z] 23:39:41     INFO -                 self.session_id = None
[task 2022-01-13T23:39:41.107Z] 23:39:41     INFO -     
[task 2022-01-13T23:39:41.107Z] 23:39:41     INFO - >           raise err
[task 2022-01-13T23:39:41.107Z] 23:39:41     INFO - E           webdriver.error.JavascriptErrorException: javascript error (500): JavaScriptError: Document was unloaded
[task 2022-01-13T23:39:41.107Z] 23:39:41     INFO - E           
[task 2022-01-13T23:39:41.107Z] 23:39:41     INFO - E           Remote-end stacktrace:
[task 2022-01-13T23:39:41.107Z] 23:39:41     INFO - E           
[task 2022-01-13T23:39:41.107Z] 23:39:41     INFO - E           WebDriverError@chrome://remote/content/shared/webdriver/Errors.jsm:183:5
[task 2022-01-13T23:39:41.107Z] 23:39:41     INFO - E           JavaScriptError@chrome://remote/content/shared/webdriver/Errors.jsm:362:5
[task 2022-01-13T23:39:41.107Z] 23:39:41     INFO - E           evaluate.sandbox/promise</unloadHandler<@chrome://remote/content/marionette/evaluate.js:151:20
[task 2022-01-13T23:39:41.107Z] 23:39:41     INFO - E           openPromptSync@resource://gre/modules/Prompter.jsm:1057:17
[task 2022-01-13T23:39:41.107Z] 23:39:41     INFO - E           nsIPrompt_prompt@resource://gre/modules/Prompter.jsm:1493:10
[task 2022-01-13T23:39:41.107Z] 23:39:41     INFO - E           prompt@resource://gre/modules/Prompter.jsm:1285:36
[task 2022-01-13T23:39:41.107Z] 23:39:41     INFO - E           @moz-nullprincipal:{a4e72a87-5737-4d27-9996-4df48c7a911c}:8:65
[task 2022-01-13T23:39:41.107Z] 23:39:41     INFO - 
[task 2022-01-13T23:39:41.107Z] 23:39:41     INFO - body       = {'args': ('prompt', 'prompt'),
[task 2022-01-13T23:39:41.107Z] 23:39:41     INFO -  'script': '\n'
[task 2022-01-13T23:39:41.107Z] 23:39:41     INFO -            '            let dialog_type = arguments[0];\n'
[task 2022-01-13T23:39:41.108Z] 23:39:41     INFO -            '            let text = arguments[1];\n'
[task 2022-01-13T23:39:41.108Z] 23:39:41     INFO -            '\n'
[task 2022-01-13T23:39:41.108Z] 23:39:41     INFO -            '            setTimeout(function() {\n'
[task 2022-01-13T23:39:41.108Z] 23:39:41     INFO -            "              if (dialog_type == 'prompt') {\n"
[task 2022-01-13T23:39:41.108Z] 23:39:41     INFO -            '                window.dialog_return_value = '
[task 2022-01-13T23:39:41.108Z] 23:39:41     INFO -            "window[dialog_type](text, '');\n"
[task 2022-01-13T23:39:41.108Z] 23:39:41     INFO -            '              } else {\n'
[task 2022-01-13T23:39:41.108Z] 23:39:41     INFO -            '                window.dialog_return_value = '
[task 2022-01-13T23:39:41.108Z] 23:39:41     INFO -            'window[dialog_type](text);\n'
[task 2022-01-13T23:39:41.108Z] 23:39:41     INFO -            '              }\n'
[task 2022-01-13T23:39:41.108Z] 23:39:41     INFO -            '            }, 0);\n'
[task 2022-01-13T23:39:41.108Z] 23:39:41     INFO -            '            '}
[task 2022-01-13T23:39:41.108Z] 23:39:41     INFO - err        = <JavascriptErrorException http_status=500>
[task 2022-01-13T23:39:41.108Z] 23:39:41     INFO - method     = 'POST'
[task 2022-01-13T23:39:41.108Z] 23:39:41     INFO - response   = <Response status=500 error=<JavascriptErrorException http_status=500>>
[task 2022-01-13T23:39:41.108Z] 23:39:41     INFO - self       = <Session 20216b84-c404-49ce-b1f6-3d1db7a8e554>
[task 2022-01-13T23:39:41.109Z] 23:39:41     INFO - timeout    = None
[task 2022-01-13T23:39:41.109Z] 23:39:41     INFO - url        = 'session/20216b84-c404-49ce-b1f6-3d1db7a8e554/execute/async'
[task 2022-01-13T23:39:41.109Z] 23:39:41     INFO - 
[task 2022-01-13T23:39:41.109Z] 23:39:41     INFO - tests\web-platform\tests\tools\webdriver\webdriver\client.py:623: JavascriptErrorException
[task 2022-01-13T23:39:41.111Z] 23:39:41     INFO - ......
[task 2022-01-13T23:39:41.111Z] 23:39:41     INFO - TEST-OK | /webdriver/tests/close_window/user_prompts.py | took 13781ms
[task 2022-01-13T23:39:41.111Z] 23:39:41     INFO - Restarting browser for new test group
[task 2022-01-13T23:39:51.108Z] 23:39:51  WARNING - Forcibly terminating runner process
[task 2022-01-13T23:39:51.113Z] 23:39:51     INFO - Starting runner
[task 2022-01-13T23:39:52.424Z] 23:39:52     INFO - PID 1772 | 1642117191927	geckodriver	INFO	Listening on 127.0.0.1:51864
[task 2022-01-13T23:39:52.427Z] 23:39:52     INFO - WebDriver HTTP server listening at http://127.0.0.1:51864/
[task 2022-01-13T23:39:52.429Z] 23:39:52     INFO - TEST-START | /webdriver/tests/delete_cookie/delete.py

Probably a problem with not waiting long enough until the initial page of the newly opened window has been finished loading. As such the call to execute script hits a document replace. Should be fixed with my patches on 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.