Closed Bug 1650253 Opened 4 years ago Closed 4 years ago

Test permafails in headless mode only: toolkit/components/passwordmgr/test/browser/browser_doorhanger_toggles.js | FAIL Uncaught exception - [Exception... "(null)" nsresult: "0x80040111 (NS_ERROR_NOT_AVAILABLE)" location: "<unknown>" data: no]

Categories

(Toolkit :: Password Manager, defect, P2)

defect

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: bdanforth, Unassigned)

Details

Attachments

(2 files)

In today's latest central, 2d709e60c76e, the browser mochitest toolkit/components/passwordmgr/test/browser/browser_doorhanger_toggles.js permafails if run in headless mode in an opt or debug artifact build (debug logs attached for headless mode failure):

FAIL Uncaught exception - [Exception... "(null)"  nsresult: "0x80040111 (NS_ERROR_NOT_AVAILABLE)"  location: "<unknown>"  data: no]

This causes a test timeout failure which is inconvenient for any developer running password manager tests locally in headless mode and a waste of resources on the Try server (though headless mode for this test doesn't appear to run by default in automation).

Even though the failure occurs around await submittedPromise;1 in the first task ("test_toggle_password"), according to the logs, that promise resolves just before the failure occurs.

Others have reproduced this same failure, though it may occur later on in the test in a different task, it similarly happens just after await submittedPromise;.

While the root cause is TBD, it is definitely a timing issue, as adding two console.log statements on either side of this line caused the test to pass.

Logs for the same test for the same debug artifact build, which passes in normal (i.e. not headless) mode.

0:11.89 GECKO(94283) [Child 94286, Main Thread] WARNING: '!mCanSend || !mManager || !mManager->CanSend()', file /builds/worker/checkouts/gecko/dom/ipc/JSWindowActorChild.cpp, line 78

I guess this is the reason.

Severity: -- → S3
Priority: -- → P2

This actually is passing now in headless mode at bca48c382991, so I'm going to resolve this for now...

If I had infinite time, I would do a mozregression to see what patch(es) fixed it, but I'll leave that for another day.

Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: