Closed Bug 1631802 Opened 5 years ago Closed 5 years ago

Intermittent browser/base/content/test/contextMenu/browser_contextmenu_loadblobinnewtab.js | Uncaught exception - TypeError: can't access property "href", content.document.getElementById(...) is null

Categories

(Firefox :: Menus, defect, P5)

defect

Tracking

()

RESOLVED FIXED
Firefox 77
Tracking Status
firefox77 --- fixed

People

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

References

(Regression)

Details

(Keywords: intermittent-failure, regression)

Attachments

(1 file)

Filed by: cbrindusan [at] mozilla.com
Parsed log: https://treeherder.mozilla.org/logviewer.html#?job_id=298627809&repo=autoland
Full log: https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/fTXext_PQsK3rrjUIcT1uw/runs/0/artifacts/public/logs/live_backing.log
Reftest URL: https://hg.mozilla.org/mozilla-central/raw-file/tip/layout/tools/reftest/reftest-analyzer.xhtml#logurl=https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/fTXext_PQsK3rrjUIcT1uw/runs/0/artifacts/public/logs/live_backing.log&only_show_unexpected=1


[task 2020-04-21T13:14:58.520Z] 13:14:58 INFO - TEST-START | browser/base/content/test/contextMenu/browser_contextmenu_loadblobinnewtab.js
[task 2020-04-21T13:14:58.568Z] 13:14:58 INFO - TEST-INFO | started process screencapture
[task 2020-04-21T13:14:58.725Z] 13:14:58 INFO - TEST-INFO | screencapture: exit 0
[task 2020-04-21T13:14:58.725Z] 13:14:58 INFO - Buffered messages logged at 13:14:58
[task 2020-04-21T13:14:58.726Z] 13:14:58 INFO - Entering test bound test_rightclick_open_bloburl_in_new_tab
[task 2020-04-21T13:14:58.726Z] 13:14:58 INFO - Buffered messages finished
[task 2020-04-21T13:14:58.726Z] 13:14:58 INFO - TEST-UNEXPECTED-FAIL | browser/base/content/test/contextMenu/browser_contextmenu_loadblobinnewtab.js | Uncaught exception - TypeError: can't access property "href", content.document.getElementById(...) is null

Summary: Intermittent [TV] browser/base/content/test/contextMenu/browser_contextmenu_loadblobinnewtab.js | Uncaught exception - TypeError: can't access property "href", content.document.getElementById(...) is null → Intermittent browser/base/content/test/contextMenu/browser_contextmenu_loadblobinnewtab.js | Uncaught exception - TypeError: can't access property "href", content.document.getElementById(...) is null
Regressed by: 1626573
Has Regression Range: --- → yes
Keywords: regression

I expect https://hg.mozilla.org/integration/autoland/file/tip/browser/base/content/test/contextMenu/browser_contextmenu_loadblobinnewtab.js#l17 can fire when the page still has about:blank loaded, and the loaded promise should wait for the relevant document to have loaded by passing false as the second arg and the URL as the third arg to browserLoaded.

Subhamoy, can you update the test?

Flags: needinfo?(ssengupta)

(alternatively, use the withNewTab helper, which makes it easier to do this kind of thing)

Assignee: nobody → ssengupta
Flags: needinfo?(ssengupta)

BrowserTestUtils.browserLoaded() sometimes resolves too early (already at about:blank) when used without explicit URL as 'wantLoad'.

The tests were added as a part of Bug 1626573.

Pushed by ccoroiu@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/945dcd70abe9 Browser mochitests revised to prevent intermittent failure r=baku
Status: NEW → ASSIGNED
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 77
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: