Closed Bug 1737282 Opened 3 years ago Closed 3 years ago

Intermittent Wd | <random> - webdriver.error.JavascriptErrorException: javascript error (500): JavaScriptError: Document was unloaded

Categories

(Remote Protocol :: Marionette, defect, P5)

defect

Tracking

(firefox-esr91 fixed, firefox94 unaffected, firefox95 fixed, firefox96 fixed)

RESOLVED FIXED
96 Branch
Tracking Status
firefox-esr91 --- fixed
firefox94 --- unaffected
firefox95 --- fixed
firefox96 --- fixed

People

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

References

Details

(Keywords: intermittent-failure)

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


[task 2021-10-22T13:44:30.256Z] 13:44:30     INFO - STDOUT: E           webdriver.error.JavascriptErrorException: javascript error (500): JavaScriptError: Document was unloaded
[task 2021-10-22T13:44:30.256Z] 13:44:30     INFO - STDOUT: E           
[task 2021-10-22T13:44:30.257Z] 13:44:30     INFO - STDOUT: E           Remote-end stacktrace:
[task 2021-10-22T13:44:30.257Z] 13:44:30     INFO - STDOUT: E           
[task 2021-10-22T13:44:30.258Z] 13:44:30     INFO - STDOUT: E           WebDriverError@chrome://remote/content/shared/webdriver/Errors.jsm:181:5
[task 2021-10-22T13:44:30.259Z] 13:44:30     INFO - STDOUT: E           JavaScriptError@chrome://remote/content/shared/webdriver/Errors.jsm:360:5
[task 2021-10-22T13:44:30.259Z] 13:44:30     INFO - STDOUT: E           evaluate.sandbox/promise</unloadHandler<@chrome://remote/content/marionette/evaluate.js:151:20
[task 2021-10-22T13:44:30.260Z] 13:44:30     INFO - STDOUT: body       = {'args': ('alert', 'alert'),
[task 2021-10-22T13:44:30.261Z] 13:44:30     INFO -  'script': '\n'
[task 2021-10-22T13:44:30.261Z] 13:44:30     INFO -            '            let dialog_type = arguments[0];\n'
[task 2021-10-22T13:44:30.261Z] 13:44:30     INFO -            '            let text = arguments[1];\n'
[task 2021-10-22T13:44:30.261Z] 13:44:30     INFO -            '\n'
[task 2021-10-22T13:44:30.261Z] 13:44:30     INFO -            '            setTimeout(function() {\n'
[task 2021-10-22T13:44:30.261Z] 13:44:30     INFO -            "              if (dialog_type == 'prompt') {\n"
[task 2021-10-22T13:44:30.261Z] 13:44:30     INFO -            '                window.dialog_return_value = '
[task 2021-10-22T13:44:30.261Z] 13:44:30     INFO -            "window[dialog_type](text, '');\n"
[task 2021-10-22T13:44:30.261Z] 13:44:30     INFO -            '              } else {\n'
[task 2021-10-22T13:44:30.261Z] 13:44:30     INFO -            '                window.dialog_return_value = '
[task 2021-10-22T13:44:30.261Z] 13:44:30     INFO -            'window[dialog_type](text);\n'
[task 2021-10-22T13:44:30.261Z] 13:44:30     INFO -            '              }\n'
[task 2021-10-22T13:44:30.261Z] 13:44:30     INFO -            '            }, 0);\n'
[task 2021-10-22T13:44:30.261Z] 13:44:30     INFO -            '            '}
[task 2021-10-22T13:44:30.262Z] 13:44:30     INFO - STDOUT: err        = <JavascriptErrorException http_status=500>
Summary: Intermittent /webdriver/tests/fullscreen_window/user_prompts.py | test_accept_and_notify[capabilities0-alert-None] - webdriver.error.JavascriptErrorException: javascript error (500): JavaScriptError: Document was unloaded → Intermittent /webdriver/tests/fullscreen_window/user_prompts.py | <random>[capabilities0-alert-None] - webdriver.error.JavascriptErrorException: javascript error (500): JavaScriptError: Document was unloaded
Depends on: 1736323

Only fails on beta. So bug 1736323 should have fixed it. Uplifts will happen soon.

Assignee: nobody → hskupin
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 96 Branch

The number of failures on esr91 is pretty low (I will dupe two newly filed bugs soon), so I would consider it a wontfix for this branch. Happy to revisit if number of failures increase.

Summary: Intermittent /webdriver/tests/fullscreen_window/user_prompts.py | <random>[capabilities0-alert-None] - webdriver.error.JavascriptErrorException: javascript error (500): JavaScriptError: Document was unloaded → Intermittent Wd | <random> - webdriver.error.JavascriptErrorException: javascript error (500): JavaScriptError: Document was unloaded
See Also: → 1750125

Henrik, what should we do about the ongoing failures on ESR91? It's got ~8mo left before EOL.

Flags: needinfo?(hskupin)

Lets discuss in next weeks meeting if we have to uplift the various patches for the initial page loaded.

Flags: needinfo?(hskupin)
Whiteboard: [webdriver:triage]
See Also: → 1756942

I'm going to have a look at this if uplifting can be done without major pain.

Flags: needinfo?(hskupin)

I put up a patch for esr91 on bug 1736323 which might be enough to at least reduce the intermittent failure rate a lot. Hopefully that will be enough. Otherwise I would have to put quite some work into getting the other patches backported.

Note that pushing to try doesn't work since yesterday evening (bug 1757511). So I will try later today how that patch works.

The patch for uplift on bug 1736323 seems to work pretty fine on esr91. Once the most recent try build has been finished I'm going to request uplift.

Flags: needinfo?(hskupin)
Flags: needinfo?(hskupin)

We might also need the uplift from bug 1739008. Lets see if that helps here.

Flags: needinfo?(hskupin)

(In reply to Henrik Skupin (:whimboo) [⌚️UTC+1] from comment #32)

We might also need the uplift from bug 1739008. Lets see if that helps here.

Still occurs on the uplift push https://treeherder.mozilla.org/logviewer?job_id=370331690&repo=mozilla-esr91&lineNumber=33104

Henrik will investigate the remaining spike

Flags: needinfo?(hskupin)
Whiteboard: [webdriver:triage]

(In reply to Julian Descottes [:jdescottes] from comment #36)

Henrik will investigate the remaining spike

There are actually no more failures happening on esr91 since March 14 and there were a couple of landings. I'll wait a bit longer and re-check next week. If it's still green we might consider this fixed. Right now I'm not sure why there have been still some failures after the latest uplifts to esr91. Also I don't want to spend more time on investigations for this bug.

Flags: needinfo?(hskupin)

@Henrik, this failure is still happening on esr91

Flags: needinfo?(hskupin)
Blocks: 1768125

(In reply to Sandor Molnar from comment #47)

@Henrik, this failure is still happening on esr91

Thanks. I missed that when duplicating bugs. I filed bug 1768125 for the failures on esr91.

Flags: needinfo?(hskupin)
See Also: → 1808622
Moving bug to Remote Protocol::Marionette component per bug 1815831.
Component: geckodriver → Marionette
Product: Testing → Remote Protocol
Duplicate of this bug: 1832814
No longer duplicate of this bug: 1832814
You need to log in before you can comment on or make changes to this bug.