Closed Bug 1312161 Opened 8 years ago Closed 8 years ago

Intermittent toolkit/components/extensions/test/mochitest/test_ext_contentscript_about_blank.html | Test timed out.

Categories

(WebExtensions :: Untriaged, defect)

defect
Not set
normal

Tracking

(firefox50 unaffected, firefox51 unaffected, firefox52 fixed)

RESOLVED FIXED
mozilla52
Tracking Status
firefox50 --- unaffected
firefox51 --- unaffected
firefox52 --- fixed

People

(Reporter: intermittent-bug-filer, Assigned: zombie)

References

Details

(Keywords: intermittent-failure)

Attachments

(1 obsolete file)

Assignee: nobody → tomica
Blocks: 1272890
Status: NEW → ASSIGNED
Comment on attachment 8803622 [details]
bug 1312161 - Ensure cleanup when match_about_blank test fails,

https://reviewboard.mozilla.org/r/87806/#review86800

Thanks for looking into this. However, I don't think this is going to fix the problem. `awaitMessage` queues unexpected messages, so it can actually be safely called even after the message has been received. And looking into the logs for the failures, there aren't any "script ran" messages for these scripts.

This is only happening on Android, so perhaps there's some Android-specific optimization that's preventing us from handling these iframes correctly some of the time?
Attachment #8803622 - Flags: review?(kmaglione+bmo)
> And looking into the logs for the failures, there aren't any "script ran"
> messages for these scripts.

doh!


> This is only happening on Android, so perhaps there's some Android-specific
> optimization that's preventing us from handling these iframes correctly some
> of the time?

I know little about android optimizations.  This is causing fallout test failures (bug 1272890 comment 18), so as a temp measure, we can try cleaning up better on failures.

Or if it's too frequent, maybe we should disable it on android.
Comment on attachment 8803622 [details]
bug 1312161 - Ensure cleanup when match_about_blank test fails,

https://reviewboard.mozilla.org/r/87806/#review86804

This has already been backed out, so there's no need for a separate patch. Let's just disable the test on Android and re-land the original patch, and then file a follow-up bug to fix it on Android.

::: toolkit/components/extensions/test/mochitest/test_ext_contentscript_about_blank.html:74
(Diff revision 2)
> +    if (win && !win.closed) {
> +      win.close();
> +    }

This isn't really necessary. Cascading failures are expected after timeouts.

::: toolkit/components/extensions/test/mochitest/test_ext_contentscript_about_blank.html:77
(Diff revision 2)
> +  let win;
> +  SimpleTest.registerCleanupFunction(() => {
> +    if (win && !win.closed) {
> +      win.close();
> +    }
> +    return extension.unload();

This happens automatically.
Attachment #8803622 - Flags: review?(kmaglione+bmo)
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla52
Blocks: 1312357
Attachment #8803622 - Attachment is obsolete: true
Product: Toolkit → WebExtensions
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: