Closed
Bug 498805
Opened 16 years ago
Closed 15 years ago
test_esc_key_closes_clears.xul fails intermittently on Linux
Categories
(Toolkit :: Downloads API, defect)
Tracking
()
RESOLVED
FIXED
mozilla1.9.2a1
People
(Reporter: dietrich, Assigned: sdwilsh)
References
Details
(Keywords: intermittent-failure, regression)
Attachments
(1 file)
10.12 KB,
patch
|
Mardak
:
review+
|
Details | Diff | Splinter Review |
Reporter | ||
Updated•16 years ago
|
OS: Mac OS X → Linux
Whiteboard: [orange]
Comment 1•16 years ago
|
||
Quite often, when this happens, browser_ctrlTab.js fails as well (bug 498704).
Summary: test_esc_key_closes_clears.xul fails intermittently → test_esc_key_closes_clears.xul fails intermittently on Linux
Comment 2•16 years ago
|
||
This test uses synthesizeKey() to send events to the download window.
Even though synthesizeKey() takes a window as an argument, key events do not seem to get processed unless the toplevel window is active. Is this a change from bug 178324, or was this always the behavior?
The test does not seem to wait for the download window to become active.
The failure seems 100% reproducible when running only this test
(python runtests.py --chrome --test-path=toolkit/mozapps/downloads/tests/chrome/test_esc_key_closes_clears.xul)
but I haven't seen it happen locally when running all the tests.
Assignee | ||
Comment 3•16 years ago
|
||
This didn't use to fail - it used to be super reliable :(
Comment 4•15 years ago
|
||
Comment 5•15 years ago
|
||
(In reply to comment #2)
> The test does not seem to wait for the download window to become active.
The test does wait for the window to finish building the list though..
What if the window was forced to be focused?
let win = aSubject.QueryInterface(Ci.nsIDOMWindow);
+ win.focus();
http://mxr.mozilla.org/mozilla-central/source/toolkit/mozapps/downloads/tests/chrome/test_esc_key_closes_clears.xul#85
?
Assignee | ||
Comment 6•15 years ago
|
||
Given http://hg.mozilla.org/mozilla-central/rev/704d14a04548 and the discussion in that bug, I bet that's it.
Assignee | ||
Comment 7•15 years ago
|
||
(we should probably fix any and all of our tests that make this assumption)
Assignee | ||
Comment 8•15 years ago
|
||
And fix all other tests while we are at it.
Assignee | ||
Updated•15 years ago
|
Attachment #388329 -
Flags: review? → review?(edilee)
Comment 9•15 years ago
|
||
Comment on attachment 388329 [details] [diff] [review]
v1.0
r=... hey wait! It's already there in the patch. :p
Kinda curious why we don't run in to them yet.. Any particular patterns in the ones that have caused oranges?
Attachment #388329 -
Flags: review?(edilee) → review+
Assignee | ||
Comment 10•15 years ago
|
||
Not that I'm aware of - we fixed the one and then this one popped up. *shrugs*
I probably didn't need to fix all of these files - only ones that do synthesizeKey stuff. But, it's easier if all the tests are the same so that somebody doesn't copy and paste a bad test and it's missed in review.
http://hg.mozilla.org/mozilla-central/rev/a0f1f157a102
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla1.9.2a1
Updated•15 years ago
|
Updated•15 years ago
|
Keywords: regression
Updated•12 years ago
|
Keywords: intermittent-failure
Updated•12 years ago
|
Whiteboard: [orange]
You need to log in
before you can comment on or make changes to this bug.
Description
•