Closed Bug 1756935 Opened 3 years ago Closed 3 years ago

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

Categories

(Remote Protocol :: Marionette, defect, P5)

defect

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1737282

People

(Reporter: intermittent-bug-filer, Unassigned)

References

Details

(Keywords: intermittent-failure)

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


[task 2022-02-24T05:28:54.379Z] 05:28:54     INFO - STDOUT: tests/web-platform/tests/webdriver/tests/execute_script/user_prompts.py
[task 2022-02-24T05:28:54.380Z] 05:28:54     INFO - STDOUT: :72: 
[task 2022-02-24T05:28:54.381Z] 05:28:54     INFO - STDOUT: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[task 2022-02-24T05:28:54.382Z] 05:28:54     INFO - STDOUT: tests/web-platform/tests/webdriver/tests/execute_script/user_prompts.py
[task 2022-02-24T05:28:54.383Z] 05:28:54     INFO - STDOUT: :22: in check_user_prompt_closed_without_exception
[task 2022-02-24T05:28:54.384Z] 05:28:54     INFO - STDOUT:     create_dialog(dialog_type, text=dialog_type)
[task 2022-02-24T05:28:54.385Z] 05:28:54     INFO - STDOUT:         create_dialog = <function create_dialog.<locals>.create_dialog at 0x7fc1081667a0>
[task 2022-02-24T05:28:54.386Z] 05:28:54     INFO - STDOUT:         dialog_type = 'alert'
[task 2022-02-24T05:28:54.386Z] 05:28:54     INFO - STDOUT:         retval     = None
[task 2022-02-24T05:28:54.387Z] 05:28:54     INFO - STDOUT:         session    = <Session 9c1e7431-0b58-f840-834d-68529471610a>
[task 2022-02-24T05:28:54.388Z] 05:28:54     INFO - STDOUT: tests/web-platform/tests/webdriver/tests/support/fixtures.py
[task 2022-02-24T05:28:54.389Z] 05:28:54     INFO - STDOUT: :267: in create_dialog
[task 2022-02-24T05:28:54.390Z] 05:28:54     INFO - STDOUT:     """, args=(dialog_type, text))
[task 2022-02-24T05:28:54.391Z] 05:28:54     INFO - STDOUT:         dialog_type = 'alert'
[task 2022-02-24T05:28:54.392Z] 05:28:54     INFO - STDOUT:         session    = <Session 9c1e7431-0b58-f840-834d-68529471610a>
[task 2022-02-24T05:28:54.393Z] 05:28:54     INFO - STDOUT:         text       = 'alert'
[task 2022-02-24T05:28:54.394Z] 05:28:54     INFO - STDOUT: tests/web-platform/tests/tools/webdriver/webdriver/client.py
[task 2022-02-24T05:28:54.394Z] 05:28:54     INFO - STDOUT: :19: in inner
[task 2022-02-24T05:28:54.395Z] 05:28:54     INFO - STDOUT:     return func(self, *args, **kwargs)
[task 2022-02-24T05:28:54.397Z] 05:28:54     INFO - STDOUT:         args       = ('\n'
[task 2022-02-24T05:28:54.397Z] 05:28:54     INFO -  '            let dialog_type = arguments[0];\n'
[task 2022-02-24T05:28:54.397Z] 05:28:54     INFO -  '            let text = arguments[1];\n'
[task 2022-02-24T05:28:54.397Z] 05:28:54     INFO -  '\n'
[task 2022-02-24T05:28:54.397Z] 05:28:54     INFO -  '            setTimeout(function() {\n'
[task 2022-02-24T05:28:54.397Z] 05:28:54     INFO -  "              if (dialog_type == 'prompt') {\n"
[task 2022-02-24T05:28:54.397Z] 05:28:54     INFO -  "                window.dialog_return_value = window[dialog_type](text, '');\n"
[task 2022-02-24T05:28:54.398Z] 05:28:54     INFO -  '              } else {\n'
[task 2022-02-24T05:28:54.398Z] 05:28:54     INFO -  '                window.dialog_return_value = window[dialog_type](text);\n'
[task 2022-02-24T05:28:54.398Z] 05:28:54     INFO -  '              }\n'
[task 2022-02-24T05:28:54.398Z] 05:28:54     INFO -  '            }, 0);\n'
[task 2022-02-24T05:28:54.398Z] 05:28:54     INFO -  '            ',)
[task 2022-02-24T05:28:54.399Z] 05:28:54     INFO - STDOUT:         func       = <function Session.execute_async_script at 0x7fc10482d290>
[task 2022-02-24T05:28:54.400Z] 05:28:54     INFO - STDOUT:         kwargs     = {'args': ('alert', 'alert')}
[task 2022-02-24T05:28:54.401Z] 05:28:54     INFO - STDOUT:         self       = <Session 9c1e7431-0b58-f840-834d-68529471610a>
[task 2022-02-24T05:28:54.403Z] 05:28:54     INFO - STDOUT:         session    = <Session 9c1e7431-0b58-f840-834d-68529471610a>
[task 2022-02-24T05:28:54.403Z] 05:28:54     INFO - STDOUT: tests/web-platform/tests/tools/webdriver/webdriver/client.py
[task 2022-02-24T05:28:54.405Z] 05:28:54     INFO - STDOUT: :772: in execute_async_script
[task 2022-02-24T05:28:54.406Z] 05:28:54     INFO - STDOUT:     return self.send_session_command("POST", "execute/async", body)
[task 2022-02-24T05:28:54.407Z] 05:28:54     INFO - STDOUT:         args       = ('alert', 'alert')
[task 2022-02-24T05:28:54.409Z] 05:28:54     INFO - STDOUT:         body       = {'args': ('alert', 'alert'),
[task 2022-02-24T05:28:54.409Z] 05:28:54     INFO -  'script': '\n'
[task 2022-02-24T05:28:54.410Z] 05:28:54     INFO -            '            let dialog_type = arguments[0];\n'
[task 2022-02-24T05:28:54.410Z] 05:28:54     INFO -            '            let text = arguments[1];\n'
[task 2022-02-24T05:28:54.410Z] 05:28:54     INFO -            '\n'
[task 2022-02-24T05:28:54.410Z] 05:28:54     INFO -            '            setTimeout(function() {\n'
[task 2022-02-24T05:28:54.410Z] 05:28:54     INFO -            "              if (dialog_type == 'prompt') {\n"
[task 2022-02-24T05:28:54.410Z] 05:28:54     INFO -            '                window.dialog_return_value = '
[task 2022-02-24T05:28:54.410Z] 05:28:54     INFO -            "window[dialog_type](text, '');\n"
[task 2022-02-24T05:28:54.410Z] 05:28:54     INFO -            '              } else {\n'
[task 2022-02-24T05:28:54.410Z] 05:28:54     INFO -            '                window.dialog_return_value = '
[task 2022-02-24T05:28:54.411Z] 05:28:54     INFO -            'window[dialog_type](text);\n'
[task 2022-02-24T05:28:54.411Z] 05:28:54     INFO -            '              }\n'
[task 2022-02-24T05:28:54.411Z] 05:28:54     INFO -            '            }, 0);\n'
[task 2022-02-24T05:28:54.411Z] 05:28:54     INFO -            '            '}
[task 2022-02-24T05:28:54.413Z] 05:28:54     INFO - STDOUT:         script     = ('\n'
[task 2022-02-24T05:28:54.413Z] 05:28:54     INFO -  '            let dialog_type = arguments[0];\n'
[task 2022-02-24T05:28:54.413Z] 05:28:54     INFO -  '            let text = arguments[1];\n'
[task 2022-02-24T05:28:54.413Z] 05:28:54     INFO -  '\n'
[task 2022-02-24T05:28:54.413Z] 05:28:54     INFO -  '            setTimeout(function() {\n'
[task 2022-02-24T05:28:54.413Z] 05:28:54     INFO -  "              if (dialog_type == 'prompt') {\n"
[task 2022-02-24T05:28:54.413Z] 05:28:54     INFO -  "                window.dialog_return_value = window[dialog_type](text, '');\n"
[task 2022-02-24T05:28:54.413Z] 05:28:54     INFO -  '              } else {\n'
[task 2022-02-24T05:28:54.413Z] 05:28:54     INFO -  '                window.dialog_return_value = window[dialog_type](text);\n'
[task 2022-02-24T05:28:54.413Z] 05:28:54     INFO -  '              }\n'
[task 2022-02-24T05:28:54.414Z] 05:28:54     INFO -  '            }, 0);\n'
[task 2022-02-24T05:28:54.414Z] 05:28:54     INFO -  '            ')
[task 2022-02-24T05:28:54.415Z] 05:28:54     INFO - STDOUT:         self       = <Session 9c1e7431-0b58-f840-834d-68529471610a>
[task 2022-02-24T05:28:54.416Z] 05:28:54     INFO - STDOUT: tests/web-platform/tests/tools/webdriver/webdriver/client.py
[task 2022-02-24T05:28:54.417Z] 05:28:54     INFO - STDOUT: :640: in send_session_command
[task 2022-02-24T05:28:54.418Z] 05:28:54     INFO - STDOUT:     return self.send_command(method, url, body, timeout)
[task 2022-02-24T05:28:54.421Z] 05:28:54     INFO - STDOUT:         body       = {'args': ('alert', 'alert'),
[task 2022-02-24T05:28:54.421Z] 05:28:54     INFO -  'script': '\n'
[task 2022-02-24T05:28:54.421Z] 05:28:54     INFO -            '            let dialog_type = arguments[0];\n'
[task 2022-02-24T05:28:54.421Z] 05:28:54     INFO -            '            let text = arguments[1];\n'
[task 2022-02-24T05:28:54.421Z] 05:28:54     INFO -            '\n'
[task 2022-02-24T05:28:54.421Z] 05:28:54     INFO -            '            setTimeout(function() {\n'
[task 2022-02-24T05:28:54.421Z] 05:28:54     INFO -            "              if (dialog_type == 'prompt') {\n"
[task 2022-02-24T05:28:54.421Z] 05:28:54     INFO -            '                window.dialog_return_value = '
[task 2022-02-24T05:28:54.421Z] 05:28:54     INFO -            "window[dialog_type](text, '');\n"
[task 2022-02-24T05:28:54.421Z] 05:28:54     INFO -            '              } else {\n'
[task 2022-02-24T05:28:54.421Z] 05:28:54     INFO -            '                window.dialog_return_value = '
[task 2022-02-24T05:28:54.421Z] 05:28:54     INFO -            'window[dialog_type](text);\n'
[task 2022-02-24T05:28:54.422Z] 05:28:54     INFO -            '              }\n'
[task 2022-02-24T05:28:54.422Z] 05:28:54     INFO -            '            }, 0);\n'
[task 2022-02-24T05:28:54.422Z] 05:28:54     INFO -            '            '}
[task 2022-02-24T05:28:54.423Z] 05:28:54     INFO - STDOUT:         method     = 'POST'
[task 2022-02-24T05:28:54.424Z] 05:28:54     INFO - STDOUT:         self       = <Session 9c1e7431-0b58-f840-834d-68529471610a>
[task 2022-02-24T05:28:54.425Z] 05:28:54     INFO - STDOUT:         timeout    = None
[task 2022-02-24T05:28:54.426Z] 05:28:54     INFO - STDOUT:         uri        = 'execute/async'
[task 2022-02-24T05:28:54.427Z] 05:28:54     INFO - STDOUT:         url        = 'session/9c1e7431-0b58-f840-834d-68529471610a/execute/async'
[task 2022-02-24T05:28:54.428Z] 05:28:54     INFO - STDOUT: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[task 2022-02-24T05:28:54.429Z] 05:28:54     INFO - STDOUT: self = <Session 9c1e7431-0b58-f840-834d-68529471610a>, method = 'POST'
[task 2022-02-24T05:28:54.431Z] 05:28:54     INFO - STDOUT: url = 'session/9c1e7431-0b58-f840-834d-68529471610a/execute/async'
[task 2022-02-24T05:28:54.433Z] 05:28:54     INFO - STDOUT: 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-24T05:28:54.433Z] 05:28:54     INFO - STDOUT: timeout = None
[task 2022-02-24T05:28:54.434Z] 05:28:54     INFO - STDOUT:     def send_command(self, method, url, body=None, timeout=None):
[task 2022-02-24T05:28:54.435Z] 05:28:54     INFO - STDOUT:         """
[task 2022-02-24T05:28:54.437Z] 05:28:54     INFO - STDOUT:         Send a command to the remote end and validate its success.
[task 2022-02-24T05:28:54.437Z] 05:28:54     INFO - STDOUT:     
[task 2022-02-24T05:28:54.439Z] 05:28:54     INFO - STDOUT:         :param method: HTTP method to use in request.
[task 2022-02-24T05:28:54.439Z] 05:28:54     INFO - STDOUT:         :param uri: "Command part" of the HTTP request URL,
[task 2022-02-24T05:28:54.440Z] 05:28:54     INFO - STDOUT:             e.g. `window/rect`.
[task 2022-02-24T05:28:54.440Z] 05:28:54     INFO - STDOUT:         :param body: Optional body of the HTTP request.
[task 2022-02-24T05:28:54.441Z] 05:28:54     INFO - STDOUT:     
[task 2022-02-24T05:28:54.442Z] 05:28:54     INFO - STDOUT:         :return: `None` if the HTTP response body was empty, otherwise
[task 2022-02-24T05:28:54.443Z] 05:28:54     INFO - STDOUT:             the `value` field returned after parsing the response
[task 2022-02-24T05:28:54.444Z] 05:28:54     INFO - STDOUT:             body as JSON.
[task 2022-02-24T05:28:54.445Z] 05:28:54     INFO - STDOUT:     
[task 2022-02-24T05:28:54.446Z] 05:28:54     INFO - STDOUT:         :raises error.WebDriverException: If the remote end returns
[task 2022-02-24T05:28:54.447Z] 05:28:54     INFO - STDOUT:             an error.
[task 2022-02-24T05:28:54.448Z] 05:28:54     INFO - STDOUT:         :raises ValueError: If the response body does not contain a
[task 2022-02-24T05:28:54.448Z] 05:28:54     INFO - STDOUT:             `value` key.
[task 2022-02-24T05:28:54.449Z] 05:28:54     INFO - STDOUT:         """
[task 2022-02-24T05:28:54.450Z] 05:28:54     INFO - STDOUT:     
[task 2022-02-24T05:28:54.451Z] 05:28:54     INFO - STDOUT:         response = self.transport.send(
[task 2022-02-24T05:28:54.451Z] 05:28:54     INFO - STDOUT:             method, url, body,
[task 2022-02-24T05:28:54.452Z] 05:28:54     INFO - STDOUT:             encoder=protocol.Encoder, decoder=protocol.Decoder,
[task 2022-02-24T05:28:54.453Z] 05:28:54     INFO - STDOUT:             session=self, timeout=timeout)
[task 2022-02-24T05:28:54.453Z] 05:28:54     INFO - STDOUT:     
[task 2022-02-24T05:28:54.454Z] 05:28:54     INFO - STDOUT:         if response.status != 200:
[task 2022-02-24T05:28:54.454Z] 05:28:54     INFO - STDOUT:             err = error.from_response(response)
[task 2022-02-24T05:28:54.455Z] 05:28:54     INFO - STDOUT:     
[task 2022-02-24T05:28:54.455Z] 05:28:54     INFO - STDOUT:             if isinstance(err, error.InvalidSessionIdException):
[task 2022-02-24T05:28:54.455Z] 05:28:54     INFO - STDOUT:                 # The driver could have already been deleted the session.
[task 2022-02-24T05:28:54.456Z] 05:28:54     INFO - STDOUT:                 self.session_id = None
[task 2022-02-24T05:28:54.457Z] 05:28:54     INFO - STDOUT:     
[task 2022-02-24T05:28:54.458Z] 05:28:54     INFO - STDOUT: >           raise err
[task 2022-02-24T05:28:54.459Z] 05:28:54     INFO - STDOUT: E           webdriver.error.JavascriptErrorException: javascript error (500): JavaScriptError: Document was unloaded
[task 2022-02-24T05:28:54.459Z] 05:28:54     INFO - STDOUT: E           
[task 2022-02-24T05:28:54.460Z] 05:28:54     INFO - STDOUT: E           Remote-end stacktrace:
[task 2022-02-24T05:28:54.461Z] 05:28:54     INFO - STDOUT: E           
[task 2022-02-24T05:28:54.462Z] 05:28:54     INFO - STDOUT: E           WebDriverError@chrome://remote/content/shared/webdriver/Errors.jsm:181:5
[task 2022-02-24T05:28:54.463Z] 05:28:54     INFO - STDOUT: E           JavaScriptError@chrome://remote/content/shared/webdriver/Errors.jsm:360:5
[task 2022-02-24T05:28:54.464Z] 05:28:54     INFO - STDOUT: E           evaluate.sandbox/promise</unloadHandler<@chrome://remote/content/marionette/evaluate.js:132:20
[task 2022-02-24T05:28:54.465Z] 05:28:54     INFO - STDOUT: E           openPromptSync@resource://gre/modules/Prompter.jsm:1117:17
[task 2022-02-24T05:28:54.465Z] 05:28:54     INFO - STDOUT: E           alert@resource://gre/modules/Prompter.jsm:1394:17
[task 2022-02-24T05:28:54.466Z] 05:28:54     INFO - STDOUT: E           @moz-nullprincipal:{62394ced-96fe-4b63-b8d8-a4938718d101}:10:65
[task 2022-02-24T05:28:54.468Z] 05:28:54     INFO - STDOUT: body       = {'args': ('alert', 'alert'),
[task 2022-02-24T05:28:54.468Z] 05:28:54     INFO -  'script': '\n'
[task 2022-02-24T05:28:54.468Z] 05:28:54     INFO -            '            let dialog_type = arguments[0];\n'
[task 2022-02-24T05:28:54.468Z] 05:28:54     INFO -            '            let text = arguments[1];\n'
[task 2022-02-24T05:28:54.468Z] 05:28:54     INFO -            '\n'
[task 2022-02-24T05:28:54.468Z] 05:28:54     INFO -            '            setTimeout(function() {\n'
[task 2022-02-24T05:28:54.468Z] 05:28:54     INFO -            "              if (dialog_type == 'prompt') {\n"
[task 2022-02-24T05:28:54.469Z] 05:28:54     INFO -            '                window.dialog_return_value = '
[task 2022-02-24T05:28:54.469Z] 05:28:54     INFO -            "window[dialog_type](text, '');\n"
[task 2022-02-24T05:28:54.469Z] 05:28:54     INFO -            '              } else {\n'
[task 2022-02-24T05:28:54.469Z] 05:28:54     INFO -            '                window.dialog_return_value = '
[task 2022-02-24T05:28:54.469Z] 05:28:54     INFO -            'window[dialog_type](text);\n'
[task 2022-02-24T05:28:54.469Z] 05:28:54     INFO -            '              }\n'
[task 2022-02-24T05:28:54.469Z] 05:28:54     INFO -            '            }, 0);\n'
[task 2022-02-24T05:28:54.469Z] 05:28:54     INFO -            '            '}
[task 2022-02-24T05:28:54.470Z] 05:28:54     INFO - STDOUT: err        = <JavascriptErrorException http_status=500>
[task 2022-02-24T05:28:54.471Z] 05:28:54     INFO - STDOUT: method     = 'POST'
[task 2022-02-24T05:28:54.472Z] 05:28:54     INFO - STDOUT: response   = <Response status=500 error=<JavascriptErrorException http_status=500>>
[task 2022-02-24T05:28:54.472Z] 05:28:54     INFO - STDOUT: self       = <Session 9c1e7431-0b58-f840-834d-68529471610a>
[task 2022-02-24T05:28:54.473Z] 05:28:54     INFO - STDOUT: timeout    = None
[task 2022-02-24T05:28:54.474Z] 05:28:54     INFO - STDOUT: url        = 'session/9c1e7431-0b58-f840-834d-68529471610a/execute/async'
[task 2022-02-24T05:28:54.475Z] 05:28:54     INFO - STDOUT: tests/web-platform/tests/tools/webdriver/webdriver/client.py
[task 2022-02-24T05:28:54.476Z] 05:28:54     INFO - STDOUT: :604: JavascriptErrorException
[task 2022-02-24T05:28:54.477Z] 05:28:54     INFO - STDOUT: _______________ test_accept_and_notify[capabilities0-alert-None] _______________
[task 2022-02-24T05:28:54.478Z] 05:28:54     INFO - STDOUT: check_user_prompt_closed_with_exception = <function check_user_prompt_closed_with_exception.<locals>.check_user_prompt_closed_with_exception at 0x7fc108166680>
[task 2022-02-24T05:28:54.478Z] 05:28:54     INFO - STDOUT: dialog_type = 'alert', retval = None
[task 2022-02-24T05:28:54.479Z] 05:28:54     INFO - STDOUT:     @pytest.mark.capabilities({"unhandledPromptBehavior": "accept and notify"})
[task 2022-02-24T05:28:54.480Z] 05:28:54     INFO - STDOUT:     @pytest.mark.parametrize("dialog_type, retval", [
[task 2022-02-24T05:28:54.481Z] 05:28:54     INFO - STDOUT:         ("alert", None),
[task 2022-02-24T05:28:54.481Z] 05:28:54     INFO - STDOUT:         ("confirm", True),
[task 2022-02-24T05:28:54.482Z] 05:28:54     INFO - STDOUT:         ("prompt", ""),
[task 2022-02-24T05:28:54.483Z] 05:28:54     INFO - STDOUT:     ])
[task 2022-02-24T05:28:54.484Z] 05:28:54     INFO - STDOUT:     def test_accept_and_notify(check_user_prompt_closed_with_exception, dialog_type, retval):
[task 2022-02-24T05:28:54.485Z] 05:28:54     INFO - STDOUT: >       check_user_prompt_closed_with_exception(dialog_type, retval)
[task 2022-02-24T05:28:54.486Z] 05:28:54     INFO - STDOUT: check_user_prompt_closed_with_exception = <function check_user_prompt_closed_with_exception.<locals>.check_user_prompt_closed_with_exception at 0x7fc108166680>
[task 2022-02-24T05:28:54.486Z] 05:28:54     INFO - STDOUT: dialog_type = 'alert'
[task 2022-02-24T05:28:54.497Z] 05:28:54     INFO - 
[task 2022-02-24T05:28:54.497Z] 05:28:54     INFO - TEST-UNEXPECTED-FAIL | /webdriver/tests/execute_script/user_prompts.py | test_accept[capabilities0-alert-None] - webdriver.error.JavascriptErrorException: javascript error (500): JavaScriptError: Document was unloaded
[task 2022-02-24T05:28:54.497Z] 05:28:54     INFO - check_user_prompt_closed_without_exception = <function check_user_prompt_closed_without_exception.<locals>.check_user_prompt_closed_without_exception at 0x7fc10486bb90>
[task 2022-02-24T05:28:54.497Z] 05:28:54     INFO - dialog_type = 'alert', retval = None
[task 2022-02-24T05:28:54.497Z] 05:28:54     INFO - 
[task 2022-02-24T05:28:54.497Z] 05:28:54     INFO -     @pytest.mark.capabilities({"unhandledPromptBehavior": "accept"})
[task 2022-02-24T05:28:54.498Z] 05:28:54     INFO -     @pytest.mark.parametrize("dialog_type, retval", [
[task 2022-02-24T05:28:54.498Z] 05:28:54     INFO -         ("alert", None),
[task 2022-02-24T05:28:54.498Z] 05:28:54     INFO -         ("confirm", True),
[task 2022-02-24T05:28:54.498Z] 05:28:54     INFO -         ("prompt", ""),
[task 2022-02-24T05:28:54.498Z] 05:28:54     INFO -     ])
[task 2022-02-24T05:28:54.498Z] 05:28:54     INFO -     def test_accept(check_user_prompt_closed_without_exception, dialog_type, retval):
[task 2022-02-24T05:28:54.498Z] 05:28:54     INFO - >       check_user_prompt_closed_without_exception(dialog_type, retval)
[task 2022-02-24T05:28:54.498Z] 05:28:54     INFO - 
[task 2022-02-24T05:28:54.498Z] 05:28:54     INFO - check_user_prompt_closed_without_exception = <function check_user_prompt_closed_without_exception.<locals>.check_user_prompt_closed_without_exception at 0x7fc10486bb90>
[task 2022-02-24T05:28:54.498Z] 05:28:54     INFO - dialog_type = 'alert'
[task 2022-02-24T05:28:54.498Z] 05:28:54     INFO - retval     = None
[task 2022-02-24T05:28:54.498Z] 05:28:54     INFO - 
[task 2022-02-24T05:28:54.498Z] 05:28:54     INFO - tests/web-platform/tests/webdriver/tests/execute_script/user_prompts.py:72: 
[task 2022-02-24T05:28:54.498Z] 05:28:54     INFO - _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[task 2022-02-24T05:28:54.499Z] 05:28:54     INFO - tests/web-platform/tests/webdriver/tests/execute_script/user_prompts.py:22: in check_user_prompt_closed_without_exception
[task 2022-02-24T05:28:54.499Z] 05:28:54     INFO -     create_dialog(dialog_type, text=dialog_type)
[task 2022-02-24T05:28:54.499Z] 05:28:54     INFO -         create_dialog = <function create_dialog.<locals>.create_dialog at 0x7fc1081667a0>
[task 2022-02-24T05:28:54.499Z] 05:28:54     INFO -         dialog_type = 'alert'
[task 2022-02-24T05:28:54.499Z] 05:28:54     INFO -         retval     = None
[task 2022-02-24T05:28:54.499Z] 05:28:54     INFO -         session    = <Session 9c1e7431-0b58-f840-834d-68529471610a>
[task 2022-02-24T05:28:54.499Z] 05:28:54     INFO - tests/web-platform/tests/webdriver/tests/support/fixtures.py:267: in create_dialog
[task 2022-02-24T05:28:54.499Z] 05:28:54     INFO -     """, args=(dialog_type, text))
[task 2022-02-24T05:28:54.499Z] 05:28:54     INFO -         dialog_type = 'alert'
[task 2022-02-24T05:28:54.499Z] 05:28:54     INFO -         session    = <Session 9c1e7431-0b58-f840-834d-68529471610a>
[task 2022-02-24T05:28:54.499Z] 05:28:54     INFO -         text       = 'alert'
[task 2022-02-24T05:28:54.499Z] 05:28:54     INFO - tests/web-platform/tests/tools/webdriver/webdriver/client.py:19: in inner
[task 2022-02-24T05:28:54.499Z] 05:28:54     INFO -     return func(self, *args, **kwargs)
[task 2022-02-24T05:28:54.499Z] 05:28:54     INFO -         args       = ('\n'
[task 2022-02-24T05:28:54.499Z] 05:28:54     INFO -  '            let dialog_type = arguments[0];\n'
[task 2022-02-24T05:28:54.499Z] 05:28:54     INFO -  '            let text = arguments[1];\n'
[task 2022-02-24T05:28:54.499Z] 05:28:54     INFO -  '\n'
[task 2022-02-24T05:28:54.499Z] 05:28:54     INFO -  '            setTimeout(function() {\n'
[task 2022-02-24T05:28:54.500Z] 05:28:54     INFO -  "              if (dialog_type == 'prompt') {\n"
[task 2022-02-24T05:28:54.500Z] 05:28:54     INFO -  "                window.dialog_return_value = window[dialog_type](text, '');\n"
[task 2022-02-24T05:28:54.500Z] 05:28:54     INFO -  '              } else {\n'
[task 2022-02-24T05:28:54.500Z] 05:28:54     INFO -  '                window.dialog_return_value = window[dialog_type](text);\n'
[task 2022-02-24T05:28:54.500Z] 05:28:54     INFO -  '              }\n'
[task 2022-02-24T05:28:54.500Z] 05:28:54     INFO -  '            }, 0);\n'
[task 2022-02-24T05:28:54.500Z] 05:28:54     INFO -  '            ',)
[task 2022-02-24T05:28:54.500Z] 05:28:54     INFO -         func       = <function Session.execute_async_script at 0x7fc10482d290>
[task 2022-02-24T05:28:54.500Z] 05:28:54     INFO -         kwargs     = {'args': ('alert', 'alert')}
[task 2022-02-24T05:28:54.500Z] 05:28:54     INFO -         self       = <Session 9c1e7431-0b58-f840-834d-68529471610a>
[task 2022-02-24T05:28:54.500Z] 05:28:54     INFO -         session    = <Session 9c1e7431-0b58-f840-834d-68529471610a>
[task 2022-02-24T05:28:54.500Z] 05:28:54     INFO - tests/web-platform/tests/tools/webdriver/webdriver/client.py:772: in execute_async_script
[task 2022-02-24T05:28:54.500Z] 05:28:54     INFO -     return self.send_session_command("POST", "execute/async", body)
[task 2022-02-24T05:28:54.501Z] 05:28:54     INFO -         args       = ('alert', 'alert')
[task 2022-02-24T05:28:54.501Z] 05:28:54     INFO -         body       = {'args': ('alert', 'alert'),
[task 2022-02-24T05:28:54.501Z] 05:28:54     INFO -  'script': '\n'
[task 2022-02-24T05:28:54.501Z] 05:28:54     INFO -            '            let dialog_type = arguments[0];\n'
[task 2022-02-24T05:28:54.501Z] 05:28:54     INFO -            '            let text = arguments[1];\n'
[task 2022-02-24T05:28:54.501Z] 05:28:54     INFO -            '\n'
[task 2022-02-24T05:28:54.501Z] 05:28:54     INFO -            '            setTimeout(function() {\n'
[task 2022-02-24T05:28:54.501Z] 05:28:54     INFO -            "              if (dialog_type == 'prompt') {\n"
[task 2022-02-24T05:28:54.501Z] 05:28:54     INFO -            '                window.dialog_return_value = '
[task 2022-02-24T05:28:54.501Z] 05:28:54     INFO -            "window[dialog_type](text, '');\n"
[task 2022-02-24T05:28:54.501Z] 05:28:54     INFO -            '              } else {\n'
[task 2022-02-24T05:28:54.501Z] 05:28:54     INFO -            '                window.dialog_return_value = '
[task 2022-02-24T05:28:54.501Z] 05:28:54     INFO -            'window[dialog_type](text);\n'
[task 2022-02-24T05:28:54.501Z] 05:28:54     INFO -            '              }\n'
[task 2022-02-24T05:28:54.501Z] 05:28:54     INFO -            '            }, 0);\n'
[task 2022-02-24T05:28:54.502Z] 05:28:54     INFO -            '            '}
[task 2022-02-24T05:28:54.502Z] 05:28:54     INFO -         script     = ('\n'
[task 2022-02-24T05:28:54.502Z] 05:28:54     INFO -  '            let dialog_type = arguments[0];\n'
[task 2022-02-24T05:28:54.502Z] 05:28:54     INFO -  '            let text = arguments[1];\n'
[task 2022-02-24T05:28:54.502Z] 05:28:54     INFO -  '\n'
[task 2022-02-24T05:28:54.502Z] 05:28:54     INFO -  '            setTimeout(function() {\n'
[task 2022-02-24T05:28:54.502Z] 05:28:54     INFO -  "              if (dialog_type == 'prompt') {\n"
[task 2022-02-24T05:28:54.502Z] 05:28:54     INFO -  "                window.dialog_return_value = window[dialog_type](text, '');\n"
[task 2022-02-24T05:28:54.502Z] 05:28:54     INFO -  '              } else {\n'
[task 2022-02-24T05:28:54.502Z] 05:28:54     INFO -  '                window.dialog_return_value = window[dialog_type](text);\n'
[task 2022-02-24T05:28:54.502Z] 05:28:54     INFO -  '              }\n'
[task 2022-02-24T05:28:54.502Z] 05:28:54     INFO -  '            }, 0);\n'
[task 2022-02-24T05:28:54.502Z] 05:28:54     INFO -  '            ')
[task 2022-02-24T05:28:54.503Z] 05:28:54     INFO -         self       = <Session 9c1e7431-0b58-f840-834d-68529471610a>
[task 2022-02-24T05:28:54.503Z] 05:28:54     INFO - tests/web-platform/tests/tools/webdriver/webdriver/client.py:640: in send_session_command
[task 2022-02-24T05:28:54.503Z] 05:28:54     INFO -     return self.send_command(method, url, body, timeout)
[task 2022-02-24T05:28:54.503Z] 05:28:54     INFO -         body       = {'args': ('alert', 'alert'),
[task 2022-02-24T05:28:54.503Z] 05:28:54     INFO -  'script': '\n'
[task 2022-02-24T05:28:54.503Z] 05:28:54     INFO -            '            let dialog_type = arguments[0];\n'
[task 2022-02-24T05:28:54.503Z] 05:28:54     INFO -            '            let text = arguments[1];\n'
[task 2022-02-24T05:28:54.503Z] 05:28:54     INFO -            '\n'
[task 2022-02-24T05:28:54.503Z] 05:28:54     INFO -            '            setTimeout(function() {\n'
[task 2022-02-24T05:28:54.503Z] 05:28:54     INFO -            "              if (dialog_type == 'prompt') {\n"
[task 2022-02-24T05:28:54.503Z] 05:28:54     INFO -            '                window.dialog_return_value = '
[task 2022-02-24T05:28:54.503Z] 05:28:54     INFO -            "window[dialog_type](text, '');\n"
[task 2022-02-24T05:28:54.503Z] 05:28:54     INFO -            '              } else {\n'
[task 2022-02-24T05:28:54.503Z] 05:28:54     INFO -            '                window.dialog_return_value = '
[task 2022-02-24T05:28:54.503Z] 05:28:54     INFO -            'window[dialog_type](text);\n'
[task 2022-02-24T05:28:54.504Z] 05:28:54     INFO -            '              }\n'
[task 2022-02-24T05:28:54.504Z] 05:28:54     INFO -            '            }, 0);\n'
[task 2022-02-24T05:28:54.504Z] 05:28:54     INFO -            '            '}
[task 2022-02-24T05:28:54.504Z] 05:28:54     INFO -         method     = 'POST'
[task 2022-02-24T05:28:54.504Z] 05:28:54     INFO -         self       = <Session 9c1e7431-0b58-f840-834d-68529471610a>
[task 2022-02-24T05:28:54.504Z] 05:28:54     INFO -         timeout    = None
[task 2022-02-24T05:28:54.504Z] 05:28:54     INFO -         uri        = 'execute/async'
[task 2022-02-24T05:28:54.504Z] 05:28:54     INFO -         url        = 'session/9c1e7431-0b58-f840-834d-68529471610a/execute/async'
[task 2022-02-24T05:28:54.504Z] 05:28:54     INFO - _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[task 2022-02-24T05:28:54.504Z] 05:28:54     INFO - 
[task 2022-02-24T05:28:54.504Z] 05:28:54     INFO - self = <Session 9c1e7431-0b58-f840-834d-68529471610a>, method = 'POST'
[task 2022-02-24T05:28:54.504Z] 05:28:54     INFO - url = 'session/9c1e7431-0b58-f840-834d-68529471610a/execute/async'
[task 2022-02-24T05:28:54.504Z] 05:28:54     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-24T05:28:54.504Z] 05:28:54     INFO - timeout = None
[task 2022-02-24T05:28:54.505Z] 05:28:54     INFO - 
[task 2022-02-24T05:28:54.505Z] 05:28:54     INFO -     def send_command(self, method, url, body=None, timeout=None):
[task 2022-02-24T05:28:54.505Z] 05:28:54     INFO -         """
[task 2022-02-24T05:28:54.505Z] 05:28:54     INFO -         Send a command to the remote end and validate its success.
[task 2022-02-24T05:28:54.505Z] 05:28:54     INFO -     
[task 2022-02-24T05:28:54.505Z] 05:28:54     INFO -         :param method: HTTP method to use in request.
[task 2022-02-24T05:28:54.505Z] 05:28:54     INFO -         :param uri: "Command part" of the HTTP request URL,
[task 2022-02-24T05:28:54.505Z] 05:28:54     INFO -             e.g. `window/rect`.
[task 2022-02-24T05:28:54.505Z] 05:28:54     INFO -         :param body: Optional body of the HTTP request.
[task 2022-02-24T05:28:54.505Z] 05:28:54     INFO -     
[task 2022-02-24T05:28:54.505Z] 05:28:54     INFO -         :return: `None` if the HTTP response body was empty, otherwise
[task 2022-02-24T05:28:54.506Z] 05:28:54     INFO -             the `value` field returned after parsing the response
[task 2022-02-24T05:28:54.506Z] 05:28:54     INFO -             body as JSON.
[task 2022-02-24T05:28:54.506Z] 05:28:54     INFO -     
[task 2022-02-24T05:28:54.506Z] 05:28:54     INFO -         :raises error.WebDriverException: If the remote end returns
[task 2022-02-24T05:28:54.506Z] 05:28:54     INFO -             an error.
[task 2022-02-24T05:28:54.506Z] 05:28:54     INFO -         :raises ValueError: If the response body does not contain a
[task 2022-02-24T05:28:54.506Z] 05:28:54     INFO -             `value` key.
[task 2022-02-24T05:28:54.506Z] 05:28:54     INFO -         """
[task 2022-02-24T05:28:54.506Z] 05:28:54     INFO -     
[task 2022-02-24T05:28:54.506Z] 05:28:54     INFO -         response = self.transport.send(
[task 2022-02-24T05:28:54.506Z] 05:28:54     INFO -             method, url, body,
[task 2022-02-24T05:28:54.506Z] 05:28:54     INFO -             encoder=protocol.Encoder, decoder=protocol.Decoder,
[task 2022-02-24T05:28:54.506Z] 05:28:54     INFO -             session=self, timeout=timeout)
[task 2022-02-24T05:28:54.507Z] 05:28:54     INFO -     
[task 2022-02-24T05:28:54.507Z] 05:28:54     INFO -         if response.status != 200:
[task 2022-02-24T05:28:54.507Z] 05:28:54     INFO -             err = error.from_response(response)
[task 2022-02-24T05:28:54.507Z] 05:28:54     INFO -     
[task 2022-02-24T05:28:54.507Z] 05:28:54     INFO -             if isinstance(err, error.InvalidSessionIdException):
[task 2022-02-24T05:28:54.507Z] 05:28:54     INFO -                 # The driver could have already been deleted the session.
[task 2022-02-24T05:28:54.507Z] 05:28:54     INFO -                 self.session_id = None
[task 2022-02-24T05:28:54.507Z] 05:28:54     INFO -     
[task 2022-02-24T05:28:54.507Z] 05:28:54     INFO - >           raise err
[task 2022-02-24T05:28:54.507Z] 05:28:54     INFO - E           webdriver.error.JavascriptErrorException: javascript error (500): JavaScriptError: Document was unloaded
[task 2022-02-24T05:28:54.507Z] 05:28:54     INFO - E           
[task 2022-02-24T05:28:54.507Z] 05:28:54     INFO - E           Remote-end stacktrace:
[task 2022-02-24T05:28:54.507Z] 05:28:54     INFO - E           
[task 2022-02-24T05:28:54.507Z] 05:28:54     INFO - E           WebDriverError@chrome://remote/content/shared/webdriver/Errors.jsm:181:5
[task 2022-02-24T05:28:54.507Z] 05:28:54     INFO - E           JavaScriptError@chrome://remote/content/shared/webdriver/Errors.jsm:360:5
[task 2022-02-24T05:28:54.508Z] 05:28:54     INFO - E           evaluate.sandbox/promise</unloadHandler<@chrome://remote/content/marionette/evaluate.js:132:20
[task 2022-02-24T05:28:54.508Z] 05:28:54     INFO - E           openPromptSync@resource://gre/modules/Prompter.jsm:1117:17
[task 2022-02-24T05:28:54.508Z] 05:28:54     INFO - E           alert@resource://gre/modules/Prompter.jsm:1394:17
[task 2022-02-24T05:28:54.508Z] 05:28:54     INFO - E           @moz-nullprincipal:{62394ced-96fe-4b63-b8d8-a4938718d101}:10:65
[task 2022-02-24T05:28:54.508Z] 05:28:54     INFO - 
[task 2022-02-24T05:28:54.508Z] 05:28:54     INFO - body       = {'args': ('alert', 'alert'),
[task 2022-02-24T05:28:54.508Z] 05:28:54     INFO -  'script': '\n'
[task 2022-02-24T05:28:54.508Z] 05:28:54     INFO -            '            let dialog_type = arguments[0];\n'
[task 2022-02-24T05:28:54.508Z] 05:28:54     INFO -            '            let text = arguments[1];\n'
[task 2022-02-24T05:28:54.508Z] 05:28:54     INFO -            '\n'
[task 2022-02-24T05:28:54.508Z] 05:28:54     INFO -            '            setTimeout(function() {\n'
[task 2022-02-24T05:28:54.508Z] 05:28:54     INFO -            "              if (dialog_type == 'prompt') {\n"
[task 2022-02-24T05:28:54.508Z] 05:28:54     INFO -            '                window.dialog_return_value = '
[task 2022-02-24T05:28:54.508Z] 05:28:54     INFO -            "window[dialog_type](text, '');\n"
[task 2022-02-24T05:28:54.508Z] 05:28:54     INFO -            '              } else {\n'
[task 2022-02-24T05:28:54.509Z] 05:28:54     INFO -            '                window.dialog_return_value = '
[task 2022-02-24T05:28:54.509Z] 05:28:54     INFO -            'window[dialog_type](text);\n'
[task 2022-02-24T05:28:54.509Z] 05:28:54     INFO -            '              }\n'
[task 2022-02-24T05:28:54.509Z] 05:28:54     INFO -            '            }, 0);\n'
[task 2022-02-24T05:28:54.509Z] 05:28:54     INFO -            '            '}
[task 2022-02-24T05:28:54.509Z] 05:28:54     INFO - err        = <JavascriptErrorException http_status=500>
[task 2022-02-24T05:28:54.509Z] 05:28:54     INFO - method     = 'POST'
[task 2022-02-24T05:28:54.509Z] 05:28:54     INFO - response   = <Response status=500 error=<JavascriptErrorException http_status=500>>
[task 2022-02-24T05:28:54.509Z] 05:28:54     INFO - self       = <Session 9c1e7431-0b58-f840-834d-68529471610a>
[task 2022-02-24T05:28:54.509Z] 05:28:54     INFO - timeout    = None
[task 2022-02-24T05:28:54.509Z] 05:28:54     INFO - url        = 'session/9c1e7431-0b58-f840-834d-68529471610a/execute/async'
[task 2022-02-24T05:28:54.509Z] 05:28:54     INFO - 
[task 2022-02-24T05:28:54.509Z] 05:28:54     INFO - tests/web-platform/tests/tools/webdriver/webdriver/client.py:604: JavascriptErrorException
[task 2022-02-24T05:28:54.522Z] 05:28:54     INFO - 
[task 2022-02-24T05:28:54.522Z] 05:28:54     INFO - TEST-PASS | /webdriver/tests/execute_script/user_prompts.py | test_accept[capabilities0-confirm-True] 
[task 2022-02-24T05:28:54.522Z] 05:28:54     INFO - TEST-PASS | /webdriver/tests/execute_script/user_prompts.py | test_accept[capabilities0-prompt-] 
[task 2022-02-24T05:28:54.522Z] 05:28:54     INFO - TEST-UNEXPECTED-FAIL | /webdriver/tests/execute_script/user_prompts.py | test_accept_and_notify[capabilities0-alert-None] - webdriver.error.JavascriptErrorException: javascript error (500): JavaScriptError: Document was unloaded
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → DUPLICATE
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.