Closed Bug 1398875 Opened 7 years ago Closed 7 years ago

Fixing test_devtools_serviceworker_interception.html

Categories

(Core :: DOM: Service Workers, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 1397365

People

(Reporter: bhsu, Assigned: bhsu)

References

Details

Attachments

(1 file)

There are some defects in this testcase which is currently blocking bug 1397365.
Assignee: nobody → bhsu
Ben, thank you for investigating!

Not sure if it's applicable, but in bug 1397365 comment 15, :dao pointed out that whenDelayedStartupFinished should be used instead of onload.
It may also apply here.
Flags: needinfo?(dao+bmo)
(In reply to Zibi Braniecki [:gandalf][:zibi] from comment #2)
> Ben, thank you for investigating!
> 
> Not sure if it's applicable, but in bug 1397365 comment 15, :dao pointed out
> that whenDelayedStartupFinished should be used instead of onload.
> It may also apply here.

You're more than welcome, and thanks for the advice :)

Very interesting, what I am doing is waiting "onload" before actually running testing part, which, to some extent, conflicts with the solution provided by :dao, but I don't actually know what is going on and what should be done here. Let me NI? Andrea as well for more input.
Hi Andrea,

It seems that I neglected something important to simplify this testcase when writing it. After comparing this with test_privateBrowsing.html, I found waiting for "onload"[0] in additional to "DOMContentLoaded" is somehow necessary, but I just don't have any clue. Do you mind kindly shedding some light here?

[0] http://searchfox.org/mozilla-central/source/dom/workers/test/serviceworkers/test_privateBrowsing.html#20
Flags: needinfo?(amarchesini)
browser-delayed-startup-finished is usually your safest bet, so you should use this unless you have some specific reason to test the new window earlier than that.
Flags: needinfo?(dao+bmo)
Blocks: 1397365
Since the patch is adopted and reviewed in bug 1397365, I am closing this bug. Thanks everyone for helping.
Status: NEW → RESOLVED
Closed: 7 years ago
Flags: needinfo?(amarchesini)
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: