Closed Bug 808986 Opened 12 years ago Closed 5 years ago

b-c browser window intermittently gets stuck waiting for focus, so never runs tests

Categories

(Firefox :: General, defect)

x86_64
Linux
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 521233

People

(Reporter: graememcc, Unassigned)

References

(Blocks 1 open bug)

Details

(Keywords: regression)

Attachments

(2 files)

Welcome to another entry in my occasional series of failures that I hit locally, but which don't seem to affect our trees. I've started hitting an almost-constant-but-not-quite failure where the test harness opens the browser window, but then gets stuck in the waitForFocus call at http://hg.mozilla.org/mozilla-central/file/f9c2c266e7aa/testing/mochitest/browser-test.js#l154 and thus never starts running the test(s). Watching on screen, the window visually appears focused, it looks like waitForFocus somehow never gets the focus event. To verify I wasn't going mad, and that the test I was working on wasn't faulty, I reduced the test to the simple function test() { ok(true, "TEST WAS RUN"); } but the problem persisted. hg bisect blames bug 756313. Attached is output from NSPR_LOG_MODULES=focus:5 TEST_PATH=browser/base/content/test/browser_bug808420.js make -C obj mochitest-browser-chrome with a patch applied to add that test, which is the trivial test described above, applied on top of a working directory at http://hg.mozilla.org/mozilla-central/rev/00c925c90f86.
For contrast, here's NSPR_LOG_MODULES=focus:5 TEST_PATH=browser/base/content/test/browser_bug808420.js make -C obj mochitest-browser-chrome with my trivial test patch applied on top of http://hg.mozilla.org/mozilla-central/rev/556b9cfb269f (the last known good).
What Linux are you using, and which window manager?
(In reply to Neil Deakin from comment #2) > What Linux are you using, and which window manager? Stock Ubuntu 12.04, so compiz/unity
I'm afraid this sounds like bug 521233.

Looks like there's been various issues with waitForFocus over the years. Seeing as we don't have any more data here and the reporter is gone, I'm going to mark it as a duplicate of bug 521233 as probably the closest thing.

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

Attachment

General

Created:
Updated:
Size: