Closed Bug 534420 Opened 16 years ago Closed 15 years ago

mochitest-browser-chrome: intermittent failure in browser_focus_steal_from_chrome.js

Categories

(Core :: Layout: Form Controls, defect)

defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME
mozilla1.9.3a1

People

(Reporter: philor, Assigned: masayuki)

References

()

Details

(Keywords: intermittent-failure)

Attachments

(1 file, 1 obsolete file)

http://tinderbox.mozilla.org/showlog.cgi?log=Firefox-Unittest/1260614839.1260621837.8704.gz#err1 WINNT 5.2 mozilla-central debug test everythingelse on 2009/12/12 02:47:19 s: win32-slave22 TEST-UNEXPECTED-FAIL | chrome://mochikit/content/browser/dom/tests/browser/browser_focus_steal_from_chrome.js | the INPUT element is focused by the focus (Test2: content can NOT steal focus) - Didn't expect [object XPCNativeWrapper [object HTMLInputElement @ 0x734ed08 (native @ 0x78e64a8)]], but got it TEST-PASS | chrome://mochikit/content/browser/dom/tests/browser/browser_focus_steal_from_chrome.js | the background tab's INPUT element is not active by the focus (Test2: content can NOT steal focus) TEST-PASS | chrome://mochikit/content/browser/dom/tests/browser/browser_focus_steal_from_chrome.js | the INPUT element is focused by the focus (Test2: content can NOT steal focus) ++DOMWINDOW == 124 (088BCE60) [serial = 2033] [outer = 0774C1F8] ++DOMWINDOW == 125 (07D55100) [serial = 2034] [outer = 0765B1C0] TEST-PASS | chrome://mochikit/content/browser/dom/tests/browser/browser_focus_steal_from_chrome.js | the foreground tab's INPUT element is not active by the select (Test1: content can steal focus) TEST-PASS | chrome://mochikit/content/browser/dom/tests/browser/browser_focus_steal_from_chrome.js | the INPUT element isn't focused by the select (Test1: content can steal focus) TEST-PASS | chrome://mochikit/content/browser/dom/tests/browser/browser_focus_steal_from_chrome.js | the background tab's INPUT element is not active by the select (Test1: content can steal focus) TEST-PASS | chrome://mochikit/content/browser/dom/tests/browser/browser_focus_steal_from_chrome.js | the INPUT element is focused by the select (Test1: content can steal focus) ++DOMWINDOW == 126 (06BAE650) [serial = 2035] [outer = 0774C1F8] ++DOMWINDOW == 127 (08665B38) [serial = 2036] [outer = 0765B1C0] TEST-PASS | chrome://mochikit/content/browser/dom/tests/browser/browser_focus_steal_from_chrome.js | the foreground tab's INPUT element is not active by the select (Test2: content can NOT steal focus) TEST-UNEXPECTED-FAIL | chrome://mochikit/content/browser/dom/tests/browser/browser_focus_steal_from_chrome.js | the INPUT element is focused by the select (Test2: content can NOT steal focus) - Didn't expect [object XPCNativeWrapper [object HTMLInputElement @ 0x81f0e38 (native @ 0x8684ae8)]], but got it TEST-PASS | chrome://mochikit/content/browser/dom/tests/browser/browser_focus_steal_from_chrome.js | the background tab's INPUT element is not active by the select (Test2: content can NOT steal focus) TEST-PASS | chrome://mochikit/content/browser/dom/tests/browser/browser_focus_steal_from_chrome.js | the INPUT element is focused by the select (Test2: content can NOT steal focus) ++DOMWINDOW == 128 (07EC5190) [serial = 2037] [outer = 0774C1F8] ++DOMWINDOW == 129 (07DE18E8) [serial = 2038] [outer = 0765B1C0] TEST-PASS | chrome://mochikit/content/browser/dom/tests/browser/browser_focus_steal_from_chrome.js | the foreground tab's A element is not active by the focus (Test1: content can steal focus) TEST-PASS | chrome://mochikit/content/browser/dom/tests/browser/browser_focus_steal_from_chrome.js | the A element isn't focused by the focus (Test1: content can steal focus) TEST-PASS | chrome://mochikit/content/browser/dom/tests/browser/browser_focus_steal_from_chrome.js | the background tab's A element is not active by the focus (Test1: content can steal focus) TEST-PASS | chrome://mochikit/content/browser/dom/tests/browser/browser_focus_steal_from_chrome.js | the A element is focused by the focus (Test1: content can steal focus) ++DOMWINDOW == 130 (08678768) [serial = 2039] [outer = 0774C1F8] ++DOMWINDOW == 131 (086E2CE8) [serial = 2040] [outer = 0765B1C0] TEST-PASS | chrome://mochikit/content/browser/dom/tests/browser/browser_focus_steal_from_chrome.js | the foreground tab's A element is not active by the focus (Test2: content can NOT steal focus) TEST-UNEXPECTED-FAIL | chrome://mochikit/content/browser/dom/tests/browser/browser_focus_steal_from_chrome.js | the A element is focused by the focus (Test2: content can NOT steal focus) - Didn't expect about:blank, but got it TEST-PASS | chrome://mochikit/content/browser/dom/tests/browser/browser_focus_steal_from_chrome.js | the background tab's A element is not active by the focus (Test2: content can NOT steal focus) TEST-PASS | chrome://mochikit/content/browser/dom/tests/browser/browser_focus_steal_from_chrome.js | the A element is focused by the focus (Test2: content can NOT steal focus) ++DOMWINDOW == 132 (07019BF0) [serial = 2041] [outer = 0774C1F8] ++DOMWINDOW == 133 (07D30310) [serial = 2042] [outer = 0765B1C0] TEST-PASS | chrome://mochikit/content/browser/dom/tests/browser/browser_focus_steal_from_chrome.js | the foreground tab's BUTTON element is not active by the focus (Test1: content can steal focus) TEST-PASS | chrome://mochikit/content/browser/dom/tests/browser/browser_focus_steal_from_chrome.js | the BUTTON element isn't focused by the focus (Test1: content can steal focus) TEST-PASS | chrome://mochikit/content/browser/dom/tests/browser/browser_focus_steal_from_chrome.js | the background tab's BUTTON element is not active by the focus (Test1: content can steal focus) TEST-PASS | chrome://mochikit/content/browser/dom/tests/browser/browser_focus_steal_from_chrome.js | the BUTTON element is focused by the focus (Test1: content can steal focus) ++DOMWINDOW == 134 (076C2D28) [serial = 2043] [outer = 0774C1F8] ++DOMWINDOW == 135 (083B13E0) [serial = 2044] [outer = 0765B1C0] TEST-PASS | chrome://mochikit/content/browser/dom/tests/browser/browser_focus_steal_from_chrome.js | the foreground tab's BUTTON element is not active by the focus (Test2: content can NOT steal focus) TEST-UNEXPECTED-FAIL | chrome://mochikit/content/browser/dom/tests/browser/browser_focus_steal_from_chrome.js | the BUTTON element is focused by the focus (Test2: content can NOT steal focus) - Didn't expect [object XPCNativeWrapper [object HTMLButtonElement @ 0x74d9180 (native @ 0x81dc2e8)]], but got it TEST-PASS | chrome://mochikit/content/browser/dom/tests/browser/browser_focus_steal_from_chrome.js | the background tab's BUTTON element is not active by the focus (Test2: content can NOT steal focus) TEST-PASS | chrome://mochikit/content/browser/dom/tests/browser/browser_focus_steal_from_chrome.js | the BUTTON element is focused by the focus (Test2: content can NOT steal focus) ++DOMWINDOW == 136 (07C3DFC0) [serial = 2045] [outer = 0774C1F8] --DOMWINDOW == 135 (07D1CE58) [serial = 1986] [outer = 0774C1F8] [url = chrome://mochikit/content/browser/browser/fuel/test/ContentA.html] --DOMWINDOW == 134 (07D30310) [serial = 2042] [outer = 0765B1C0] [url = data:text/html,<body%20onload="setTimeout(function%20()%20{%20document.getElementById('target').focus();%20},%2010);"><button%20id='target'>button</button></body>] Skipping 26 Lines... --DOMWINDOW == 113 (07EC7090) [serial = 2010] [outer = 080A2028] [url = about:blank] --DOCSHELL 073FD328 == 19 --DOCSHELL 052EDAE8 == 18 --DOCSHELL 07F9B8E0 == 17 --DOMWINDOW == 112 (05D02040) [serial = 2009] [outer = 00000000] [url = about:blank] --DOMWINDOW == 111 (0865E108) [serial = 2008] [outer = 00000000] [url = about:blank] --DOMWINDOW == 110 (080A2058) [serial = 2007] [outer = 00000000] [url = about:blank] --DOCSHELL 07289DF8 == 16 --DOMWINDOW == 109 (070920C0) [serial = 2004] [outer = 05FA6260] [url = about:blank] --DOCSHELL 0607E5A8 == 15 --DOMWINDOW == 108 (05FA6290) [serial = 2003] [outer = 00000000] [url = about:blank] --DOMWINDOW == 107 (03C706E8) [serial = 2002] [outer = 082BFC40] [url = about:blank] --DOCSHELL 086081D8 == 14 --DOMWINDOW == 106 (082BFC70) [serial = 2001] [outer = 00000000] [url = about:blank] --DOMWINDOW == 105 (05F73710) [serial = 2000] [outer = 076E4FC8] [url = about:blank] --DOCSHELL 07D62010 == 13 --DOMWINDOW == 104 (076E4FF8) [serial = 1999] [outer = 00000000] [url = about:blank] --DOMWINDOW == 103 (08244420) [serial = 1998] [outer = 07662408] [url = chrome://mochikit/content/browser/docshell/test/browser/test-form_sjis.html] --DOMWINDOW == 102 (07D225D0) [serial = 1997] [outer = 07662408] [url = chrome://mochikit/content/browser/docshell/test/browser/test-form_sjis.html] --DOMWINDOW == 101 (073042F0) [serial = 1996] [outer = 07662408] [url = about:blank] --DOCSHELL 08395668 == 12 --DOMWINDOW == 100 (07662438) [serial = 1995] [outer = 00000000] [url = chrome://mochikit/content/browser/docshell/test/browser/test-form_sjis.html] ++DOMWINDOW == 101 (07662438) [serial = 2046] [outer = 0765B1C0] TEST-PASS | chrome://mochikit/content/browser/dom/tests/browser/browser_focus_steal_from_chrome.js | the foreground tab's SELECT element is not active by the focus (Test1: content can steal focus) TEST-PASS | chrome://mochikit/content/browser/dom/tests/browser/browser_focus_steal_from_chrome.js | the SELECT element isn't focused by the focus (Test1: content can steal focus) TEST-PASS | chrome://mochikit/content/browser/dom/tests/browser/browser_focus_steal_from_chrome.js | the background tab's SELECT element is not active by the focus (Test1: content can steal focus) TEST-PASS | chrome://mochikit/content/browser/dom/tests/browser/browser_focus_steal_from_chrome.js | the SELECT element is focused by the focus (Test1: content can steal focus) ++DOMWINDOW == 102 (0AB3F160) [serial = 2047] [outer = 0774C1F8] ++DOMWINDOW == 103 (0A90D778) [serial = 2048] [outer = 0765B1C0] TEST-PASS | chrome://mochikit/content/browser/dom/tests/browser/browser_focus_steal_from_chrome.js | the foreground tab's SELECT element is not active by the focus (Test2: content can NOT steal focus) TEST-UNEXPECTED-FAIL | chrome://mochikit/content/browser/dom/tests/browser/browser_focus_steal_from_chrome.js | the SELECT element is focused by the focus (Test2: content can NOT steal focus) - Didn't expect [object XPCNativeWrapper [object HTMLSelectElement @ 0x6fab1c0 (native @ 0x72ea028)]], but got it TEST-PASS | chrome://mochikit/content/browser/dom/tests/browser/browser_focus_steal_from_chrome.js | the background tab's SELECT element is not active by the focus (Test2: content can NOT steal focus) TEST-PASS | chrome://mochikit/content/browser/dom/tests/browser/browser_focus_steal_from_chrome.js | the SELECT element is focused by the focus (Test2: content can NOT steal focus) ++DOMWINDOW == 104 (07399718) [serial = 2049] [outer = 0774C1F8] ++DOMWINDOW == 105 (07426688) [serial = 2050] [outer = 0765B1C0] TEST-PASS | chrome://mochikit/content/browser/dom/tests/browser/browser_focus_steal_from_chrome.js | the foreground tab's TEXTAREA element is not active by the focus (Test1: content can steal focus) TEST-PASS | chrome://mochikit/content/browser/dom/tests/browser/browser_focus_steal_from_chrome.js | the TEXTAREA element isn't focused by the focus (Test1: content can steal focus) TEST-PASS | chrome://mochikit/content/browser/dom/tests/browser/browser_focus_steal_from_chrome.js | the background tab's TEXTAREA element is not active by the focus (Test1: content can steal focus) TEST-PASS | chrome://mochikit/content/browser/dom/tests/browser/browser_focus_steal_from_chrome.js | the TEXTAREA element is focused by the focus (Test1: content can steal focus) ++DOMWINDOW == 106 (05397F70) [serial = 2051] [outer = 0774C1F8] ++DOMWINDOW == 107 (05DE9DE0) [serial = 2052] [outer = 0765B1C0] TEST-PASS | chrome://mochikit/content/browser/dom/tests/browser/browser_focus_steal_from_chrome.js | the foreground tab's TEXTAREA element is not active by the focus (Test2: content can NOT steal focus) TEST-UNEXPECTED-FAIL | chrome://mochikit/content/browser/dom/tests/browser/browser_focus_steal_from_chrome.js | the TEXTAREA element is focused by the focus (Test2: content can NOT steal focus) - Didn't expect [object XPCNativeWrapper [object HTMLTextAreaElement @ 0x6ba5738 (native @ 0x7502400)]], but got it TEST-PASS | chrome://mochikit/content/browser/dom/tests/browser/browser_focus_steal_from_chrome.js | the background tab's TEXTAREA element is not active by the focus (Test2: content can NOT steal focus) TEST-PASS | chrome://mochikit/content/browser/dom/tests/browser/browser_focus_steal_from_chrome.js | the TEXTAREA element is focused by the focus (Test2: content can NOT steal focus) ++DOMWINDOW == 108 (057A60C0) [serial = 2053] [outer = 0774C1F8] ++DOMWINDOW == 109 (08018AA8) [serial = 2054] [outer = 0765B1C0] TEST-PASS | chrome://mochikit/content/browser/dom/tests/browser/browser_focus_steal_from_chrome.js | the foreground tab's TEXTAREA element is not active by the select (Test1: content can steal focus) TEST-PASS | chrome://mochikit/content/browser/dom/tests/browser/browser_focus_steal_from_chrome.js | the TEXTAREA element isn't focused by the select (Test1: content can steal focus) TEST-PASS | chrome://mochikit/content/browser/dom/tests/browser/browser_focus_steal_from_chrome.js | the background tab's TEXTAREA element is not active by the select (Test1: content can steal focus) TEST-PASS | chrome://mochikit/content/browser/dom/tests/browser/browser_focus_steal_from_chrome.js | the TEXTAREA element is focused by the select (Test1: content can steal focus) ++DOMWINDOW == 110 (07B7F4A0) [serial = 2055] [outer = 0774C1F8] ++DOMWINDOW == 111 (0759F2D8) [serial = 2056] [outer = 0765B1C0] TEST-PASS | chrome://mochikit/content/browser/dom/tests/browser/browser_focus_steal_from_chrome.js | the foreground tab's TEXTAREA element is not active by the select (Test2: content can NOT steal focus) TEST-UNEXPECTED-FAIL | chrome://mochikit/content/browser/dom/tests/browser/browser_focus_steal_from_chrome.js | the TEXTAREA element is focused by the select (Test2: content can NOT steal focus) - Didn't expect [object XPCNativeWrapper [object HTMLTextAreaElement @ 0x72a23b8 (native @ 0x6e29c48)]], but got it TEST-PASS | chrome://mochikit/content/browser/dom/tests/browser/browser_focus_steal_from_chrome.js | the background tab's TEXTAREA element is not active by the select (Test2: content can NOT steal focus) TEST-PASS | chrome://mochikit/content/browser/dom/tests/browser/browser_focus_steal_from_chrome.js | the TEXTAREA element is focused by the select (Test2: content can NOT steal focus) ++DOMWINDOW == 112 (07B7C4F8) [serial = 2057] [outer = 0774C1F8] ++DOMWINDOW == 113 (05D71A08) [serial = 2058] [outer = 0765B1C0] TEST-PASS | chrome://mochikit/content/browser/dom/tests/browser/browser_focus_steal_from_chrome.js | the foreground tab's INPUT element is not active by the focus of label element (Test1: content can steal focus) TEST-PASS | chrome://mochikit/content/browser/dom/tests/browser/browser_focus_steal_from_chrome.js | the INPUT element isn't focused by the focus of label element (Test1: content can steal focus) TEST-PASS | chrome://mochikit/content/browser/dom/tests/browser/browser_focus_steal_from_chrome.js | the background tab's INPUT element is not active by the focus of label element (Test1: content can steal focus) TEST-PASS | chrome://mochikit/content/browser/dom/tests/browser/browser_focus_steal_from_chrome.js | the INPUT element is focused by the focus of label element (Test1: content can steal focus) ++DOMWINDOW == 114 (07681ED8) [serial = 2059] [outer = 0774C1F8] ++DOMWINDOW == 115 (0540FB40) [serial = 2060] [outer = 0765B1C0] TEST-PASS | chrome://mochikit/content/browser/dom/tests/browser/browser_focus_steal_from_chrome.js | the foreground tab's INPUT element is not active by the focus of label element (Test2: content can NOT steal focus) TEST-UNEXPECTED-FAIL | chrome://mochikit/content/browser/dom/tests/browser/browser_focus_steal_from_chrome.js | the INPUT element is focused by the focus of label element (Test2: content can NOT steal focus) - Didn't expect [object XPCNativeWrapper [object HTMLInputElement @ 0x71e9620 (native @ 0x697b9d0)]], but got it TEST-PASS | chrome://mochikit/content/browser/dom/tests/browser/browser_focus_steal_from_chrome.js | the background tab's INPUT element is not active by the focus of label element (Test2: content can NOT steal focus) TEST-PASS | chrome://mochikit/content/browser/dom/tests/browser/browser_focus_steal_from_chrome.js | the INPUT element is focused by the focus of label element (Test2: content can NOT steal focus) ++DOMWINDOW == 116 (06CCD918) [serial = 2061] [outer = 0774C1F8] ++DOMWINDOW == 117 (0741DCB0) [serial = 2062] [outer = 0765B1C0] TEST-PASS | chrome://mochikit/content/browser/dom/tests/browser/browser_focus_steal_from_chrome.js | the foreground tab's INPUT element is not active by the focus of legend element (Test1: content can steal focus) TEST-PASS | chrome://mochikit/content/browser/dom/tests/browser/browser_focus_steal_from_chrome.js | the INPUT element isn't focused by the focus of legend element (Test1: content can steal focus) TEST-PASS | chrome://mochikit/content/browser/dom/tests/browser/browser_focus_steal_from_chrome.js | the background tab's INPUT element is not active by the focus of legend element (Test1: content can steal focus) TEST-PASS | chrome://mochikit/content/browser/dom/tests/browser/browser_focus_steal_from_chrome.js | the INPUT element is focused by the focus of legend element (Test1: content can steal focus) ++DOMWINDOW == 118 (07D4ED98) [serial = 2063] [outer = 0774C1F8] ++DOMWINDOW == 119 (076497B0) [serial = 2064] [outer = 0765B1C0] TEST-PASS | chrome://mochikit/content/browser/dom/tests/browser/browser_focus_steal_from_chrome.js | the foreground tab's INPUT element is not active by the focus of legend element (Test2: content can NOT steal focus) TEST-UNEXPECTED-FAIL | chrome://mochikit/content/browser/dom/tests/browser/browser_focus_steal_from_chrome.js | the INPUT element is focused by the focus of legend element (Test2: content can NOT steal focus) - Didn't expect [object XPCNativeWrapper [object HTMLInputElement @ 0x8075068 (native @ 0x70f75a0)]], but got it TEST-PASS | chrome://mochikit/content/browser/dom/tests/browser/browser_focus_steal_from_chrome.js | the background tab's INPUT element is not active by the focus of legend element (Test2: content can NOT steal focus) TEST-PASS | chrome://mochikit/content/browser/dom/tests/browser/browser_focus_steal_from_chrome.js | the INPUT element is focused by the focus of legend element (Test2: content can NOT steal focus) ++DOMWINDOW == 120 (080BDEA0) [serial = 2065] [outer = 0774C1F8] ++DOMWINDOW == 121 (0778B0C0) [serial = 2066] [outer = 0765B1C0] TEST-PASS | chrome://mochikit/content/browser/dom/tests/browser/browser_focus_steal_from_chrome.js | the foreground tab's BUTTON element is not active by the mousedown event on the button element (Test1: content can steal focus) TEST-PASS | chrome://mochikit/content/browser/dom/tests/browser/browser_focus_steal_from_chrome.js | the BUTTON element isn't focused by the mousedown event on the button element (Test1: content can steal focus) TEST-PASS | chrome://mochikit/content/browser/dom/tests/browser/browser_focus_steal_from_chrome.js | the background tab's BUTTON element is not active by the mousedown event on the button element (Test1: content can steal focus) TEST-PASS | chrome://mochikit/content/browser/dom/tests/browser/browser_focus_steal_from_chrome.js | the BUTTON element is focused by the mousedown event on the button element (Test1: content can steal focus) ++DOMWINDOW == 122 (075C8C90) [serial = 2067] [outer = 0774C1F8] ++DOMWINDOW == 123 (073E6608) [serial = 2068] [outer = 0765B1C0] TEST-PASS | chrome://mochikit/content/browser/dom/tests/browser/browser_focus_steal_from_chrome.js | the foreground tab's BUTTON element is not active by the mousedown event on the button element (Test2: content can NOT steal focus) TEST-UNEXPECTED-FAIL | chrome://mochikit/content/browser/dom/tests/browser/browser_focus_steal_from_chrome.js | the BUTTON element is focused by the mousedown event on the button element (Test2: content can NOT steal focus) - Didn't expect [object XPCNativeWrapper [object HTMLButtonElement @ 0x6d15d50 (native @ 0x80ba768)]], but got it TEST-PASS | chrome://mochikit/content/browser/dom/tests/browser/browser_focus_steal_from_chrome.js | the background tab's BUTTON element is not active by the mousedown event on the button element (Test2: content can NOT steal focus) TEST-PASS | chrome://mochikit/content/browser/dom/tests/browser/browser_focus_steal_from_chrome.js | the BUTTON element is focused by the mousedown event on the button element (Test2: content can NOT steal focus) ++DOMWINDOW == 124 (07B3D930) [serial = 2069] [outer = 0774C1F8] ++DOMWINDOW == 125 (073042F0) [serial = 2070] [outer = 0765B1C0] TEST-PASS | chrome://mochikit/content/browser/dom/tests/browser/browser_focus_steal_from_chrome.js | the foreground tab's INPUT element is not active by the click event on the label element (Test1: content can steal focus) TEST-PASS | chrome://mochikit/content/browser/dom/tests/browser/browser_focus_steal_from_chrome.js | the INPUT element isn't focused by the click event on the label element (Test1: content can steal focus) TEST-PASS | chrome://mochikit/content/browser/dom/tests/browser/browser_focus_steal_from_chrome.js | the background tab's INPUT element is not active by the click event on the label element (Test1: content can steal focus) TEST-PASS | chrome://mochikit/content/browser/dom/tests/browser/browser_focus_steal_from_chrome.js | the INPUT element is focused by the click event on the label element (Test1: content can steal focus) ++DOMWINDOW == 126 (076E4FF8) [serial = 2071] [outer = 0774C1F8] ++DOMWINDOW == 127 (05F73710) [serial = 2072] [outer = 0765B1C0] TEST-PASS | chrome://mochikit/content/browser/dom/tests/browser/browser_focus_steal_from_chrome.js | the foreground tab's INPUT element is not active by the click event on the label element (Test2: content can NOT steal focus) TEST-UNEXPECTED-FAIL | chrome://mochikit/content/browser/dom/tests/browser/browser_focus_steal_from_chrome.js | the INPUT element is focused by the click event on the label element (Test2: content can NOT steal focus) - Didn't expect [object XPCNativeWrapper [object HTMLInputElement @ 0x3c64148 (native @ 0x55680d8)]], but got it
Looks like that > BrowserSearch.searchBar.focus(); in doTest1() failed to move focus to the search bar. Can "browser_Browser.js | Timed out" cause this??
It doesn't have a history of messing up focus-related tests, no. It's possible that it failing is a sign of a slow, overloaded VM, but even that isn't especially obvious in the list of things it fails with and the times that it fails alone.
The focus method is synchronously. So, the slow down shouldn't be the cause. I'll post a patch for providing more hints at same failure.
s: moz2-linux-slave19TEST-UNEXPECTED-FAIL | chrome://mochikit/content/browser/browser/fuel/test/browser_Browser.js | Timed out TEST-UNEXPECTED-FAIL | chrome://mochikit/content/browser/dom/tests/browser/browser_focus_steal_from_chrome.js | the INPUT element is focused by the focus (Test2: content can NOT steal focus) - Didn't expect [object XPCNativeWrapper [object HTMLInputElement @ 0xb33e128 (native @ 0xa6495c8)]], but got it http://tinderbox.mozilla.org/showlog.cgi?log=Firefox-Unittest/1260830658.1260836162.21878.gz (Linux)
I hope that this additional code provides some hints for us.
Attachment #417647 - Flags: review?(enndeakin)
Comment on attachment 417647 [details] [diff] [review] log some information at doTest2() Feel free to just check in without review if debugging a test. >+ if (focusedWindow) { >+ is(focusedWindow.top, window.top, Note that .top doesn't cross over content/chrome windows so contentwindow.top will never be a chrome window, if that's relevant to what you're testing here.
Attachment #417647 - Flags: review?(enndeakin) → review+
(In reply to comment #6) > >+ if (focusedWindow) { > >+ is(focusedWindow.top, window.top, > > Note that .top doesn't cross over content/chrome windows so contentwindow.top > will never be a chrome window, if that's relevant to what you're testing here. Ah, can I check whether the testing window is active or not?
(In reply to comment #6) > >+ if (focusedWindow) { > >+ is(focusedWindow.top, window.top, > > Note that .top doesn't cross over content/chrome windows so contentwindow.top > will never be a chrome window, if that's relevant to what you're testing here. Ah, can I check whether the testing window is active or not?
focusManager.activeWindow holds the active toplevel window and focusManager.focusedWindow holds the focused window within it.
http://tinderbox.mozilla.org/showlog.cgi?log=Firefox/1261001956.1261010172.20914.gz Linux mozilla-central debug test everythingelse on 2009/12/16 14:19:16 s: moz2-linux-slave18
http://tinderbox.mozilla.org/showlog.cgi?log=Firefox/1261169169.1261175015.28939.gz Linux mozilla-central debug test everythingelse on 2009/12/18 12:46:09 s: moz2-linux-slave23
Whiteboard: [orange]
[Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.9.3a1pre) Gecko/20091218 SeaMonkey/2.1a1pre] (home, optim default) (W2Ksp4) { TEST-UNEXPECTED-FAIL | chrome://mochikit/content/browser/dom/tests/browser/browser_focus_steal_from_chrome.js | the INPUT element isn't focused by the focus (Test1: content can steal focus) - Got [object HTMLInputElement], expected [object XPCNativeWrapper [object HTMLInputElement]] }
Summary: Intermittent failure in browser_focus_steal_from_chrome.js → mochitest-browser-chrome: intermittent failure in browser_focus_steal_from_chrome.js
SeaMonkey does not have a search bar.
http://tinderbox.mozilla.org/showlog.cgi?log=Firefox/1261201678.1261207138.21488.gz WINNT 5.2 mozilla-central debug test everythingelse on 2009/12/18 21:47:58 s: win32-slave39
http://tinderbox.mozilla.org/showlog.cgi?log=Firefox/1261387945.1261390960.16889.gz Linux mozilla-central opt test everythingelse on 2009/12/21 01:32:25 s: moz2-linux-slave25
http://tinderbox.mozilla.org/showlog.cgi?log=Firefox/1261435761.1261441234.13867.gz Linux mozilla-central opt test everythingelse on 2009/12/21 14:49:21 s: moz2-linux-slave23
http://tinderbox.mozilla.org/showlog.cgi?log=Firefox/1262166709.1262172164.3001.gz WINNT 5.2 mozilla-central debug test everythingelse on 2009/12/30 01:51:49 s: win32-slave27
http://tinderbox.mozilla.org/showlog.cgi?log=Firefox/1262246595.1262252085.20109.gz Linux mozilla-central debug test everythingelse on 2009/12/31 00:03:15 s: moz2-linux-slave27
http://tinderbox.mozilla.org/showlog.cgi?log=Firefox/1263250138.1263254133.12833.gz Linux mozilla-central opt test everythingelse on 2010/01/11 14:48:58 s: moz2-linux-slave11
http://tinderbox.mozilla.org/showlog.cgi?log=Firefox/1264194503.1264195721.31922.gz Linux mozilla-central opt test mochitest-other on 2010/01/22 13:08:23 s: moz2-linux-slave24
http://tinderbox.mozilla.org/showlog.cgi?log=Firefox/1264431716.1264433065.29492.gz OS X 10.5.2 mozilla-central opt test mochitest-other on 2010/01/25 07:01:56 s: moz2-darwin9-slave15
http://tinderbox.mozilla.org/showlog.cgi?log=Firefox/1264434046.1264435116.21166.gz OS X 10.5.2 mozilla-central opt test mochitest-other on 2010/01/25 07:40:46 s: moz2-darwin9-slave14
http://tinderbox.mozilla.org/showlog.cgi?log=Firefox/1264711157.1264712704.19893.gz Linux mozilla-central opt test mochitest-other on 2010/01/28 12:39:17 s: moz2-linux-slave22
Attached patch Patch v1.0Splinter Review
I'm not sure whether this can fix this bug completely. The previous patch's log said that there are no unexpected problems, e.g., the window isn't active. I think that if we set focus to chrome at onload event, following order should be guaranteed. 1. Sets focus to the loading browser. 2. Loads a test page. 3. Sets focus to chrome (searchbar). 4. Calls the testing method in testing pages which are called at onload event on the pages via timer. 5. Calls the doTest1() or doTest2().
Assignee: nobody → masayuki
Attachment #417647 - Attachment is obsolete: true
Status: NEW → ASSIGNED
Attachment #424223 - Flags: review?(enndeakin)
Is the foreground tab always going to complete loading first? Or does that not matter to the test?
(In reply to comment #26) > Or does that not matter to the test? No. The background tab shouldn't always steal focus. So, the foreground tab's testing is more important. Even if the background tab steals focus by a new regression, it should cause new failure. Especially, we can look the failure at the tests without chrome focused node (i.e., during doTest1()).
Attachment #424223 - Flags: review?(enndeakin) → review+
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Flags: in-testsuite+
Target Milestone: --- → mozilla1.9.3a1
http://tinderbox.mozilla.org/showlog.cgi?log=Firefox/1266001548.1266003385.17804.gz Linux mozilla-central opt test mochitest-other on 2010/02/12 11:05:48 s: moz2-linux-slave13
http://tinderbox.mozilla.org/showlog.cgi?log=Firefox/1266519404.1266520475.11175.gz Linux mozilla-central opt test mochitest-other on 2010/02/18 10:56:44 s: moz2-linux-slave41
Reopening based on the fact that this seems to have happened twice after the supposed fix was landed in comment 28.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
http://tinderbox.mozilla.org/showlog.cgi?log=Firefox/1267056419.1267058618.5961.gz Linux mozilla-central opt test mochitest-other on 2010/02/24 16:06:59 s: moz2-linux-slave09
http://tinderbox.mozilla.org/showlog.cgi?log=Firefox/1267633074.1267634491.22760.gz Linux mozilla-central opt test mochitest-other on 2010/03/03 08:17:54 s: moz2-linux-slave13
http://tinderbox.mozilla.org/showlog.cgi?log=Firefox/1267825299.1267827524.16837.gz Linux mozilla-central opt test mochitest-other on 2010/03/05 13:41:39 s: moz2-linux-slave13
http://tinderbox.mozilla.org/showlog.cgi?log=Firefox/1268187597.1268190056.13410.gz Linux mozilla-central opt test mochitest-other on 2010/03/09 18:19:57 s: moz2-linux-slave05
http://tinderbox.mozilla.org/showlog.cgi?log=Firefox/1268449339.1268450825.10595.gz OS X 10.5.2 mozilla-central opt test mochitest-other on 2010/03/12 19:02:19 s: moz2-darwin9-slave05
http://tinderbox.mozilla.org/showlog.cgi?log=Firefox/1268554972.1268556332.23206.gz Linux mozilla-central opt test mochitest-other on 2010/03/14 00:22:52 s: moz2-linux-slave11
http://tinderbox.mozilla.org/showlog.cgi?log=Firefox/1268950617.1268951422.5505.gz OS X 10.5.2 mozilla-central opt test mochitest-other on 2010/03/18 15:16:57 s: moz2-darwin9-slave42
http://tinderbox.mozilla.org/showlog.cgi?log=Firefox/1269582330.1269583108.4218.gz WINNT 5.2 mozilla-central opt test mochitest-other on 2010/03/25 22:45:30
OS: Windows Server 2003 → All
Hardware: x86 → All
http://tinderbox.mozilla.org/showlog.cgi?log=Firefox/1269650329.1269651094.9923.gz WINNT 5.2 mozilla-central opt test mochitest-other on 2010/03/26 17:38:49 s: mw32-ix-slave08
http://tinderbox.mozilla.org/showlog.cgi?log=Firefox/1269958601.1269959375.23878.gz WINNT 5.2 mozilla-central opt test mochitest-other on 2010/03/30 07:16:41 s: mw32-ix-slave08
http://tinderbox.mozilla.org/showlog.cgi?log=Firefox/1270167502.1270168278.13953.gz OS X 10.5.2 mozilla-central opt test mochitest-other on 2010/04/01 17:18:22 s: moz2-darwin9-slave40
http://tinderbox.mozilla.org/showlog.cgi?log=Firefox/1270191419.1270192177.3906.gz OS X 10.5.2 mozilla-central opt test mochitest-other on 2010/04/01 23:56:59 s: moz2-darwin9-slave42
http://tinderbox.mozilla.org/showlog.cgi?log=Firefox/1272362247.1272363752.12956.gz WINNT 5.2 mozilla-central debug test mochitest-other on 2010/04/27 02:57:27
This 4 months, there is no report this failure, can we mark this as WFM?
I think so.
Status: REOPENED → RESOLVED
Closed: 15 years ago15 years ago
Resolution: --- → WORKSFORME
Oh, I found bug 593377, the test hasn't been run since 5/27! # Even though, there are no reports from 4/27 to 5/27.
Whiteboard: [orange]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: