Closed
Bug 1757059
Opened 3 years ago
Closed 3 years ago
Intermittent /webdriver/tests/get_window_handle/user_prompts.py | test_dismiss_and_notify[capabilities0-alert] - webdriver.error.JavascriptErrorException: javascript error (500): JavaScriptError: Document was unloaded
Categories
(Remote Protocol :: Marionette, defect, P5)
Remote Protocol
Marionette
Tracking
(Not tracked)
RESOLVED
DUPLICATE
of bug 1737282
People
(Reporter: intermittent-bug-filer, Unassigned)
Details
(Keywords: intermittent-failure)
Filed by: ctuns [at] mozilla.com
Parsed log: https://treeherder.mozilla.org/logviewer?job_id=369120742&repo=mozilla-esr91
Full log: https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/AMjk6CEwQIO0DimGz2k8hA/runs/0/artifacts/public/logs/live_backing.log
[task 2022-02-24T20:26:51.970Z] 20:26:51 INFO - TEST-PASS | /webdriver/tests/get_window_handle/user_prompts.py | test_dismiss[capabilities0-prompt]
[task 2022-02-24T20:26:51.970Z] 20:26:51 INFO - TEST-UNEXPECTED-FAIL | /webdriver/tests/get_window_handle/user_prompts.py | test_dismiss_and_notify[capabilities0-alert] - webdriver.error.JavascriptErrorException: javascript error (500): JavaScriptError: Document was unloaded
[task 2022-02-24T20:26:51.970Z] 20:26:51 INFO - check_user_prompt_not_closed_but_exception = <function check_user_prompt_not_closed_but_exception.<locals>.check_user_prompt_not_closed_but_exception at 0x7fecfd706dd0>
[task 2022-02-24T20:26:51.970Z] 20:26:51 INFO - dialog_type = 'alert'
[task 2022-02-24T20:26:51.970Z] 20:26:51 INFO -
[task 2022-02-24T20:26:51.970Z] 20:26:51 INFO - @pytest.mark.capabilities({"unhandledPromptBehavior": "dismiss and notify"})
[task 2022-02-24T20:26:51.970Z] 20:26:51 INFO - @pytest.mark.parametrize("dialog_type", ["alert", "confirm", "prompt"])
[task 2022-02-24T20:26:51.970Z] 20:26:51 INFO - def test_dismiss_and_notify(check_user_prompt_not_closed_but_exception, dialog_type):
[task 2022-02-24T20:26:51.970Z] 20:26:51 INFO - > check_user_prompt_not_closed_but_exception(dialog_type)
[task 2022-02-24T20:26:51.970Z] 20:26:51 INFO -
[task 2022-02-24T20:26:51.970Z] 20:26:51 INFO - check_user_prompt_not_closed_but_exception = <function check_user_prompt_not_closed_but_exception.<locals>.check_user_prompt_not_closed_but_exception at 0x7fecfd706dd0>
[task 2022-02-24T20:26:51.970Z] 20:26:51 INFO - dialog_type = 'alert'
[task 2022-02-24T20:26:51.970Z] 20:26:51 INFO -
[task 2022-02-24T20:26:51.970Z] 20:26:51 INFO - tests/web-platform/tests/webdriver/tests/get_window_handle/user_prompts.py:50:
[task 2022-02-24T20:26:51.971Z] 20:26:51 INFO - _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[task 2022-02-24T20:26:51.971Z] 20:26:51 INFO - tests/web-platform/tests/webdriver/tests/get_window_handle/user_prompts.py:18: in check_user_prompt_not_closed_but_exception
[task 2022-02-24T20:26:51.971Z] 20:26:51 INFO - create_dialog(dialog_type, text=dialog_type)
[task 2022-02-24T20:26:51.971Z] 20:26:51 INFO - create_dialog = <function create_dialog.<locals>.create_dialog at 0x7fecfd7064d0>
[task 2022-02-24T20:26:51.971Z] 20:26:51 INFO - dialog_type = 'alert'
[task 2022-02-24T20:26:51.971Z] 20:26:51 INFO - session = <Session 4745b736-aef0-8841-9511-7d1b45423336>
[task 2022-02-24T20:26:51.971Z] 20:26:51 INFO - window_handle = '48349718-2945-2244-8c51-116eec74d7c0'
[task 2022-02-24T20:26:51.971Z] 20:26:51 INFO - tests/web-platform/tests/webdriver/tests/support/fixtures.py:267: in create_dialog
[task 2022-02-24T20:26:51.971Z] 20:26:51 INFO - """, args=(dialog_type, text))
[task 2022-02-24T20:26:51.971Z] 20:26:51 INFO - dialog_type = 'alert'
[task 2022-02-24T20:26:51.971Z] 20:26:51 INFO - session = <Session 4745b736-aef0-8841-9511-7d1b45423336>
[task 2022-02-24T20:26:51.971Z] 20:26:51 INFO - text = 'alert'
[task 2022-02-24T20:26:51.971Z] 20:26:51 INFO - tests/web-platform/tests/tools/webdriver/webdriver/client.py:19: in inner
[task 2022-02-24T20:26:51.971Z] 20:26:51 INFO - return func(self, *args, **kwargs)
[task 2022-02-24T20:26:51.971Z] 20:26:51 INFO - args = ('\n'
[task 2022-02-24T20:26:51.971Z] 20:26:51 INFO - ' let dialog_type = arguments[0];\n'
[task 2022-02-24T20:26:51.971Z] 20:26:51 INFO - ' let text = arguments[1];\n'
[task 2022-02-24T20:26:51.971Z] 20:26:51 INFO - '\n'
[task 2022-02-24T20:26:51.971Z] 20:26:51 INFO - ' setTimeout(function() {\n'
[task 2022-02-24T20:26:51.971Z] 20:26:51 INFO - " if (dialog_type == 'prompt') {\n"
[task 2022-02-24T20:26:51.971Z] 20:26:51 INFO - " window.dialog_return_value = window[dialog_type](text, '');\n"
[task 2022-02-24T20:26:51.971Z] 20:26:51 INFO - ' } else {\n'
[task 2022-02-24T20:26:51.971Z] 20:26:51 INFO - ' window.dialog_return_value = window[dialog_type](text);\n'
[task 2022-02-24T20:26:51.971Z] 20:26:51 INFO - ' }\n'
[task 2022-02-24T20:26:51.972Z] 20:26:51 INFO - ' }, 0);\n'
[task 2022-02-24T20:26:51.972Z] 20:26:51 INFO - ' ',)
[task 2022-02-24T20:26:51.972Z] 20:26:51 INFO - func = <function Session.execute_async_script at 0x7fecfb6edef0>
[task 2022-02-24T20:26:51.972Z] 20:26:51 INFO - kwargs = {'args': ('alert', 'alert')}
[task 2022-02-24T20:26:51.972Z] 20:26:51 INFO - self = <Session 4745b736-aef0-8841-9511-7d1b45423336>
[task 2022-02-24T20:26:51.972Z] 20:26:51 INFO - session = <Session 4745b736-aef0-8841-9511-7d1b45423336>
[task 2022-02-24T20:26:51.972Z] 20:26:51 INFO - tests/web-platform/tests/tools/webdriver/webdriver/client.py:772: in execute_async_script
[task 2022-02-24T20:26:51.972Z] 20:26:51 INFO - return self.send_session_command("POST", "execute/async", body)
[task 2022-02-24T20:26:51.972Z] 20:26:51 INFO - args = ('alert', 'alert')
[task 2022-02-24T20:26:51.972Z] 20:26:51 INFO - body = {'args': ('alert', 'alert'),
[task 2022-02-24T20:26:51.972Z] 20:26:51 INFO - 'script': '\n'
[task 2022-02-24T20:26:51.972Z] 20:26:51 INFO - ' let dialog_type = arguments[0];\n'
[task 2022-02-24T20:26:51.972Z] 20:26:51 INFO - ' let text = arguments[1];\n'
[task 2022-02-24T20:26:51.972Z] 20:26:51 INFO - '\n'
[task 2022-02-24T20:26:51.972Z] 20:26:51 INFO - ' setTimeout(function() {\n'
[task 2022-02-24T20:26:51.972Z] 20:26:51 INFO - " if (dialog_type == 'prompt') {\n"
[task 2022-02-24T20:26:51.972Z] 20:26:51 INFO - ' window.dialog_return_value = '
[task 2022-02-24T20:26:51.972Z] 20:26:51 INFO - "window[dialog_type](text, '');\n"
[task 2022-02-24T20:26:51.972Z] 20:26:51 INFO - ' } else {\n'
[task 2022-02-24T20:26:51.972Z] 20:26:51 INFO - ' window.dialog_return_value = '
[task 2022-02-24T20:26:51.973Z] 20:26:51 INFO - 'window[dialog_type](text);\n'
[task 2022-02-24T20:26:51.973Z] 20:26:51 INFO - ' }\n'
[task 2022-02-24T20:26:51.973Z] 20:26:51 INFO - ' }, 0);\n'
[task 2022-02-24T20:26:51.973Z] 20:26:51 INFO - ' '}
[task 2022-02-24T20:26:51.973Z] 20:26:51 INFO - script = ('\n'
[task 2022-02-24T20:26:51.973Z] 20:26:51 INFO - ' let dialog_type = arguments[0];\n'
[task 2022-02-24T20:26:51.973Z] 20:26:51 INFO - ' let text = arguments[1];\n'
[task 2022-02-24T20:26:51.973Z] 20:26:51 INFO - '\n'
[task 2022-02-24T20:26:51.973Z] 20:26:51 INFO - ' setTimeout(function() {\n'
[task 2022-02-24T20:26:51.973Z] 20:26:51 INFO - " if (dialog_type == 'prompt') {\n"
[task 2022-02-24T20:26:51.973Z] 20:26:51 INFO - " window.dialog_return_value = window[dialog_type](text, '');\n"
[task 2022-02-24T20:26:51.973Z] 20:26:51 INFO - ' } else {\n'
[task 2022-02-24T20:26:51.973Z] 20:26:51 INFO - ' window.dialog_return_value = window[dialog_type](text);\n'
[task 2022-02-24T20:26:51.973Z] 20:26:51 INFO - ' }\n'
[task 2022-02-24T20:26:51.973Z] 20:26:51 INFO - ' }, 0);\n'
[task 2022-02-24T20:26:51.973Z] 20:26:51 INFO - ' ')
[task 2022-02-24T20:26:51.973Z] 20:26:51 INFO - self = <Session 4745b736-aef0-8841-9511-7d1b45423336>
[task 2022-02-24T20:26:51.973Z] 20:26:51 INFO - tests/web-platform/tests/tools/webdriver/webdriver/client.py:640: in send_session_command
[task 2022-02-24T20:26:51.973Z] 20:26:51 INFO - return self.send_command(method, url, body, timeout)
[task 2022-02-24T20:26:51.973Z] 20:26:51 INFO - body = {'args': ('alert', 'alert'),
[task 2022-02-24T20:26:51.973Z] 20:26:51 INFO - 'script': '\n'
[task 2022-02-24T20:26:51.973Z] 20:26:51 INFO - ' let dialog_type = arguments[0];\n'
[task 2022-02-24T20:26:51.973Z] 20:26:51 INFO - ' let text = arguments[1];\n'
[task 2022-02-24T20:26:51.973Z] 20:26:51 INFO - '\n'
[task 2022-02-24T20:26:51.973Z] 20:26:51 INFO - ' setTimeout(function() {\n'
[task 2022-02-24T20:26:51.973Z] 20:26:51 INFO - " if (dialog_type == 'prompt') {\n"
[task 2022-02-24T20:26:51.973Z] 20:26:51 INFO - ' window.dialog_return_value = '
[task 2022-02-24T20:26:51.974Z] 20:26:51 INFO - "window[dialog_type](text, '');\n"
[task 2022-02-24T20:26:51.974Z] 20:26:51 INFO - ' } else {\n'
[task 2022-02-24T20:26:51.974Z] 20:26:51 INFO - ' window.dialog_return_value = '
[task 2022-02-24T20:26:51.974Z] 20:26:51 INFO - 'window[dialog_type](text);\n'
[task 2022-02-24T20:26:51.974Z] 20:26:51 INFO - ' }\n'
[task 2022-02-24T20:26:51.974Z] 20:26:51 INFO - ' }, 0);\n'
[task 2022-02-24T20:26:51.974Z] 20:26:51 INFO - ' '}
[task 2022-02-24T20:26:51.974Z] 20:26:51 INFO - method = 'POST'
[task 2022-02-24T20:26:51.974Z] 20:26:51 INFO - self = <Session 4745b736-aef0-8841-9511-7d1b45423336>
[task 2022-02-24T20:26:51.974Z] 20:26:51 INFO - timeout = None
[task 2022-02-24T20:26:51.974Z] 20:26:51 INFO - uri = 'execute/async'
[task 2022-02-24T20:26:51.974Z] 20:26:51 INFO - url = 'session/4745b736-aef0-8841-9511-7d1b45423336/execute/async'
[task 2022-02-24T20:26:51.974Z] 20:26:51 INFO - _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[task 2022-02-24T20:26:51.974Z] 20:26:51 INFO -
[task 2022-02-24T20:26:51.974Z] 20:26:51 INFO - self = <Session 4745b736-aef0-8841-9511-7d1b45423336>, method = 'POST'
[task 2022-02-24T20:26:51.974Z] 20:26:51 INFO - url = 'session/4745b736-aef0-8841-9511-7d1b45423336/execute/async'
[task 2022-02-24T20:26:51.974Z] 20:26:51 INFO - body = {'args': ('alert', 'alert'), 'script': '\n let dialog_type = arguments[0];\n let text = argument... window.dialog_return_value = window[dialog_type](text);\n }\n }, 0);\n '}
[task 2022-02-24T20:26:51.974Z] 20:26:51 INFO - timeout = None
[task 2022-02-24T20:26:51.974Z] 20:26:51 INFO -
[task 2022-02-24T20:26:51.974Z] 20:26:51 INFO - def send_command(self, method, url, body=None, timeout=None):
[task 2022-02-24T20:26:51.974Z] 20:26:51 INFO - """
[task 2022-02-24T20:26:51.974Z] 20:26:51 INFO - Send a command to the remote end and validate its success.
[task 2022-02-24T20:26:51.974Z] 20:26:51 INFO -
[task 2022-02-24T20:26:51.974Z] 20:26:51 INFO - :param method: HTTP method to use in request.
[task 2022-02-24T20:26:51.974Z] 20:26:51 INFO - :param uri: "Command part" of the HTTP request URL,
[task 2022-02-24T20:26:51.974Z] 20:26:51 INFO - e.g. `window/rect`.
[task 2022-02-24T20:26:51.975Z] 20:26:51 INFO - :param body: Optional body of the HTTP request.
[task 2022-02-24T20:26:51.975Z] 20:26:51 INFO -
[task 2022-02-24T20:26:51.975Z] 20:26:51 INFO - :return: `None` if the HTTP response body was empty, otherwise
[task 2022-02-24T20:26:51.975Z] 20:26:51 INFO - the `value` field returned after parsing the response
[task 2022-02-24T20:26:51.975Z] 20:26:51 INFO - body as JSON.
[task 2022-02-24T20:26:51.975Z] 20:26:51 INFO -
[task 2022-02-24T20:26:51.975Z] 20:26:51 INFO - :raises error.WebDriverException: If the remote end returns
[task 2022-02-24T20:26:51.975Z] 20:26:51 INFO - an error.
[task 2022-02-24T20:26:51.975Z] 20:26:51 INFO - :raises ValueError: If the response body does not contain a
[task 2022-02-24T20:26:51.975Z] 20:26:51 INFO - `value` key.
[task 2022-02-24T20:26:51.975Z] 20:26:51 INFO - """
[task 2022-02-24T20:26:51.975Z] 20:26:51 INFO -
[task 2022-02-24T20:26:51.975Z] 20:26:51 INFO - response = self.transport.send(
[task 2022-02-24T20:26:51.975Z] 20:26:51 INFO - method, url, body,
[task 2022-02-24T20:26:51.975Z] 20:26:51 INFO - encoder=protocol.Encoder, decoder=protocol.Decoder,
[task 2022-02-24T20:26:51.975Z] 20:26:51 INFO - session=self, timeout=timeout)
[task 2022-02-24T20:26:51.975Z] 20:26:51 INFO -
[task 2022-02-24T20:26:51.975Z] 20:26:51 INFO - if response.status != 200:
[task 2022-02-24T20:26:51.975Z] 20:26:51 INFO - err = error.from_response(response)
[task 2022-02-24T20:26:51.975Z] 20:26:51 INFO -
[task 2022-02-24T20:26:51.975Z] 20:26:51 INFO - if isinstance(err, error.InvalidSessionIdException):
[task 2022-02-24T20:26:51.975Z] 20:26:51 INFO - # The driver could have already been deleted the session.
[task 2022-02-24T20:26:51.975Z] 20:26:51 INFO - self.session_id = None
[task 2022-02-24T20:26:51.975Z] 20:26:51 INFO -
[task 2022-02-24T20:26:51.975Z] 20:26:51 INFO - > raise err
[task 2022-02-24T20:26:51.976Z] 20:26:51 INFO - E webdriver.error.JavascriptErrorException: javascript error (500): JavaScriptError: Document was unloaded
[task 2022-02-24T20:26:51.976Z] 20:26:51 INFO - E
[task 2022-02-24T20:26:51.976Z] 20:26:51 INFO - E Remote-end stacktrace:
[task 2022-02-24T20:26:51.976Z] 20:26:51 INFO - E
[task 2022-02-24T20:26:51.976Z] 20:26:51 INFO - E WebDriverError@chrome://remote/content/shared/webdriver/Errors.jsm:181:5
[task 2022-02-24T20:26:51.976Z] 20:26:51 INFO - E JavaScriptError@chrome://remote/content/shared/webdriver/Errors.jsm:360:5
[task 2022-02-24T20:26:51.976Z] 20:26:51 INFO - E evaluate.sandbox/promise</unloadHandler<@chrome://remote/content/marionette/evaluate.js:132:20
[task 2022-02-24T20:26:51.976Z] 20:26:51 INFO - E openPromptSync@resource://gre/modules/Prompter.jsm:1117:17
[task 2022-02-24T20:26:51.976Z] 20:26:51 INFO - E alert@resource://gre/modules/Prompter.jsm:1394:17
[task 2022-02-24T20:26:51.976Z] 20:26:51 INFO - E @moz-nullprincipal:{2a222048-a661-4440-8cd8-cf39e4297800}:10:65
[task 2022-02-24T20:26:51.976Z] 20:26:51 INFO -
[task 2022-02-24T20:26:51.976Z] 20:26:51 INFO - body = {'args': ('alert', 'alert'),
[task 2022-02-24T20:26:51.976Z] 20:26:51 INFO - 'script': '\n'
[task 2022-02-24T20:26:51.976Z] 20:26:51 INFO - ' let dialog_type = arguments[0];\n'
[task 2022-02-24T20:26:51.976Z] 20:26:51 INFO - ' let text = arguments[1];\n'
[task 2022-02-24T20:26:51.976Z] 20:26:51 INFO - '\n'
[task 2022-02-24T20:26:51.976Z] 20:26:51 INFO - ' setTimeout(function() {\n'
[task 2022-02-24T20:26:51.976Z] 20:26:51 INFO - " if (dialog_type == 'prompt') {\n"
[task 2022-02-24T20:26:51.976Z] 20:26:51 INFO - ' window.dialog_return_value = '
[task 2022-02-24T20:26:51.976Z] 20:26:51 INFO - "window[dialog_type](text, '');\n"
[task 2022-02-24T20:26:51.976Z] 20:26:51 INFO - ' } else {\n'
[task 2022-02-24T20:26:51.976Z] 20:26:51 INFO - ' window.dialog_return_value = '
[task 2022-02-24T20:26:51.976Z] 20:26:51 INFO - 'window[dialog_type](text);\n'
[task 2022-02-24T20:26:51.976Z] 20:26:51 INFO - ' }\n'
[task 2022-02-24T20:26:51.976Z] 20:26:51 INFO - ' }, 0);\n'
[task 2022-02-24T20:26:51.976Z] 20:26:51 INFO - ' '}
[task 2022-02-24T20:26:51.976Z] 20:26:51 INFO - err = <JavascriptErrorException http_status=500>
[task 2022-02-24T20:26:51.977Z] 20:26:51 INFO - method = 'POST'
[task 2022-02-24T20:26:51.977Z] 20:26:51 INFO - response = <Response status=500 error=<JavascriptErrorException http_status=500>>
[task 2022-02-24T20:26:51.977Z] 20:26:51 INFO - self = <Session 4745b736-aef0-8841-9511-7d1b45423336>
[task 2022-02-24T20:26:51.977Z] 20:26:51 INFO - timeout = None
[task 2022-02-24T20:26:51.977Z] 20:26:51 INFO - url = 'session/4745b736-aef0-8841-9511-7d1b45423336/execute/async'
[task 2022-02-24T20:26:51.977Z] 20:26:51 INFO -
[task 2022-02-24T20:26:51.977Z] 20:26:51 INFO - tests/web-platform/tests/tools/webdriver/webdriver/client.py:604: JavascriptErrorException
[task 2022-02-24T20:26:51.986Z] 20:26:51 INFO -
[task 2022-02-24T20:26:51.986Z] 20:26:51 INFO - TEST-PASS | /webdriver/tests/get_window_handle/user_prompts.py | test_dismiss_and_notify[capabilities0-confirm]
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → DUPLICATE
Comment 2•2 years ago
|
||
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.
Description
•