Closed Bug 609772 Opened 15 years ago Closed 3 years ago

[Windows] mochitests-5: test_alerts_noobserve.html causes an "Error: Unable to restore focus, expect failures and timeouts." in a later test, causing bug 589471

Categories

(Core :: Widget: Win32, defect, P5)

x86
Windows Server 2003
defect

Tracking

()

RESOLVED DUPLICATE of bug 948782
Tracking Status
blocking2.0 --- -
status2.0 --- ?

People

(Reporter: sgautherie, Unassigned)

References

(Blocks 1 open bug, )

Details

(Whiteboard: [perma-orange on SeaMonkey])

http://tinderbox.mozilla.org/showlog.cgi?log=Firefox/1288908696.1288909145.12338.gz&fulltext=1 Rev3 WINNT 6.1 mozilla-central opt test mochitests-5/5 on 2010/11/04 15:11:36 { 1505 INFO TEST-START | /tests/toolkit/components/alerts/test/test_alerts.html 1506 INFO TEST-PASS | /tests/toolkit/components/alerts/test/test_alerts.html | Checking the topic for a finished notification - "alertfinished" should equal "alertfinished" 1507 INFO TEST-PASS | /tests/toolkit/components/alerts/test/test_alerts.html | Checking whether the alert cookie was passed correctly - "foobarcookie" should equal "foobarcookie" 1508 INFO TEST-END | /tests/toolkit/components/alerts/test/test_alerts.html | finished in 5631ms 1509 INFO TEST-START | /tests/toolkit/components/alerts/test/test_alerts_noobserve.html 1510 INFO TEST-PASS | /tests/toolkit/components/alerts/test/test_alerts_noobserve.html | If we don't crash, we're good. 1511 INFO TEST-END | /tests/toolkit/components/alerts/test/test_alerts_noobserve.html | finished in 1136ms 1512 INFO TEST-START | /tests/toolkit/components/microformats/tests/test_Microformats.html ... 1555 INFO TEST-END | /tests/toolkit/components/microformats/tests/test_Microformats.html | finished in 266ms 1556 INFO TEST-START | /tests/toolkit/components/microformats/tests/test_Microformats_add.html 1557 INFO Error: Unable to restore focus, expect failures and timeouts. } Same with http://tinderbox.mozilla.org/showlog.cgi?log=SeaMonkey/1288893732.1288895166.11853.gz&fulltext=1 WINNT 5.2 comm-central-trunk debug test mochitests-5/5 on 2010/11/04 11:02:12 I noticed that from http://hg.mozilla.org/try/pushloghtml?changeset=8b2c0e9b743f http://ftp.mozilla.org/pub/mozilla.org/firefox/tryserver-builds/sgautherie.bz@free.fr-8b2c0e9b743f (which passed on Windows but timed out on Linux and MacOSX :-|) + http://tinderbox.mozilla.org/showlog.cgi?log=MozillaTry/1288900909.1288901351.3929.gz&fulltext=1 Rev3 WINNT 6.1 tryserver opt test mochitests-5/5 on 2010/11/04 13:01:49 { 1504 INFO TEST-END | /tests/security/ssl/stricttransportsecurity/test_stricttransportsecurity.html | finished in 742ms 1505 INFO TEST-START | /tests/toolkit/components/alerts/test/test_A_alerts_noobserve.html 1506 INFO TEST-PASS | /tests/toolkit/components/alerts/test/test_A_alerts_noobserve.html | Waiting for notification to start displaying... 1507 INFO TEST-PASS | /tests/toolkit/components/alerts/test/test_A_alerts_noobserve.html | Notification display is in progress. Hence notification has not disappeared yet. Remember to check next test for no crash. 1508 INFO TEST-END | /tests/toolkit/components/alerts/test/test_A_alerts_noobserve.html | finished in 252ms 1509 INFO TEST-START | /tests/toolkit/components/alerts/test/test_S_alerts.html 1510 INFO Error: Unable to restore focus, expect failures and timeouts. 1511 INFO TEST-PASS | /tests/toolkit/components/alerts/test/test_S_alerts.html | Waiting for notification callback to be triggered... 1512 INFO TEST-PASS | /tests/toolkit/components/alerts/test/test_S_alerts.html | Checking the topic for a finished notification - "alertfinished" should equal "alertfinished" 1513 INFO TEST-PASS | /tests/toolkit/components/alerts/test/test_S_alerts.html | Checking whether the alert cookie was passed correctly - "foobarcookie" should equal "foobarcookie" 1514 INFO TEST-END | /tests/toolkit/components/alerts/test/test_S_alerts.html | finished in 8692ms 1515 INFO TEST-START | /tests/toolkit/components/microformats/tests/test_Microformats.html } while investigating bug 589471. Indeed, I also have another patch using waitForFocus() while the notification is displayed in the 'noobserve' case. On my local Windows 2000, I found that letting the focus be restored, or even trying to force it, after the notification has disappeared causes bug 589471, in the "alerts + microformats + satchel__this_test". NB: I have no idea why/how this is happening on Windows, nor how notifications work on Linux/MacOSX, but fixing this seems a step in the good direction.
Blocks: 516124
Blocks: 589471
"blocking2.0=?": this bug reminds me of bug 516124 comment 14: { Joe Drew (:JOEDREW!) 2009-11-16 21:22:08 PST [...] if the testcase is showing that there are still bugs latent in this code. } I know these are tests only, but there seems to be something actually odd going on at a lower level, which may (or may not) affect real life cases.
blocking2.0: --- → ?
Whiteboard: [perma-orange] → [perma-orange on SeaMonkey]
Has this continued to be permanently orange? We see failures to restore focus from time to time on the Firefox tree too.
blocking2.0: ? → -
(In reply to comment #2) > Has this continued to be permanently orange? The 3-platform orange itself is bug 589471. That said, yes, this Windows error is permanent too, afaik: ... http://tinderbox.mozilla.org/showlog.cgi?log=SeaMonkey/1289268480.1289269932.22689.gz&fulltext=1 WINNT 5.2 comm-central-trunk debug test mochitests-5/5 on 2010/11/08 18:08:00 http://tinderbox.mozilla.org/showlog.cgi?log=SeaMonkey/1289279414.1289281181.7382.gz&fulltext=1 WINNT 5.2 comm-central-trunk debug test mochitests-5/5 on 2010/11/08 21:10:14 http://tinderbox.mozilla.org/showlog.cgi?log=SeaMonkey/1289292681.1289294367.25697.gz&fulltext=1 WINNT 5.2 comm-central-trunk debug test mochitests-5/5 on 2010/11/09 00:51:21 http://tinderbox.mozilla.org/showlog.cgi?log=SeaMonkey/1289302720.1289305018.16888.gz&fulltext=1 WINNT 5.2 comm-central-trunk debug test mochitests-5/5 on 2010/11/09 03:38:40 http://tinderbox.mozilla.org/showlog.cgi?log=SeaMonkey/1289340620.1289342304.528.gz&fulltext=1 WINNT 5.2 comm-central-trunk debug test mochitests-5/5 on 2010/11/09 14:10:20 > We see failures to restore focus from time to time on the Firefox tree too. And there may be others with SeaMonkey too ... but this one is permanent!
status2.0: --- → ?
(In reply to comment #2) > We see failures to restore focus from time to time on the Firefox tree too. No orange on Firefox, but this Windows error is permanent there too: ... http://tinderbox.mozilla.org/showlog.cgi?log=Firefox/1289341327.1289341796.30471.gz&fulltext=1 Rev3 WINNT 6.1 mozilla-central opt test mochitests-5/5 on 2010/11/09 14:22:07 http://tinderbox.mozilla.org/showlog.cgi?log=Firefox/1289342224.1289342706.2727.gz&fulltext=1 Rev3 WINNT 6.1 mozilla-central opt test mochitests-5/5 on 2010/11/09 14:37:04 http://tinderbox.mozilla.org/showlog.cgi?log=Firefox/1289343725.1289344217.10042.gz&fulltext=1 Rev3 WINNT 6.1 mozilla-central opt test mochitests-5/5 on 2010/11/09 15:02:05 http://tinderbox.mozilla.org/showlog.cgi?log=Firefox/1289344306.1289344789.12922.gz&fulltext=1 Rev3 WINNT 6.1 mozilla-central opt test mochitests-5/5 on 2010/11/09 15:11:46 http://tinderbox.mozilla.org/showlog.cgi?log=Firefox/1289346459.1289346945.24285.gz&fulltext=1 Rev3 WINNT 6.1 mozilla-central opt test mochitests-5/5 on 2010/11/09 15:47:39 + ... http://tinderbox.mozilla.org/showlog.cgi?log=Firefox/1289340792.1289341855.30946.gz&fulltext=1 WINNT 5.2 mozilla-central debug test mochitests-5/5 on 2010/11/09 14:13:12 http://tinderbox.mozilla.org/showlog.cgi?log=Firefox/1289345183.1289346296.20870.gz&fulltext=1 WINNT 5.2 mozilla-central debug test mochitests-5/5 on 2010/11/09 15:26:23
QA Whiteboard: qa-not-actionable

In the process of migrating remaining bugs to the new severity system, the severity for this bug cannot be automatically determined. Please retriage this bug using the new severity system.

Severity: major → --

Can this be closed?

Severity: -- → S4
Flags: needinfo?(bugzillamozillaorg_serge_20140323)
Priority: -- → P5

Clear a needinfo that is pending on an inactive user.

Inactive users most likely will not respond; if the missing information is essential and cannot be collected another way, the bug maybe should be closed as INCOMPLETE.

For more information, please visit BugBot documentation.

Flags: needinfo?(bugzillamozillaorg_serge_20140323)

(In reply to Stephen A Pohl [:spohl] (OOO until 6/12) from comment #6)

Can this be closed?

This was probably fixed in bug 948782, and there don't appear to be any issues with the relevant mochitest nowadays. I'll say "yes".

Closing as RESOLVED WORKSFORME.

Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → WORKSFORME

... wait, no, that's silly. Closing as RESOLVED DUPLICATE of bug 948782, since a closer reading confirms that this is exactly what that bug fixed.

Duplicate of bug: 948782
Resolution: WORKSFORME → DUPLICATE
You need to log in before you can comment on or make changes to this bug.