Closed
Bug 1398875
Opened 7 years ago
Closed 7 years ago
Fixing test_devtools_serviceworker_interception.html
Categories
(Core :: DOM: Service Workers, enhancement)
Core
DOM: Service Workers
Tracking
()
RESOLVED
DUPLICATE
of bug 1397365
People
(Reporter: bhsu, Assigned: bhsu)
References
Details
Attachments
(1 file)
1.75 KB,
patch
|
Details | Diff | Splinter Review |
There are some defects in this testcase which is currently blocking bug 1397365.
Assignee | ||
Updated•7 years ago
|
Assignee: nobody → bhsu
Assignee | ||
Comment 1•7 years ago
|
||
Comment 2•7 years ago
|
||
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)
Assignee | ||
Comment 3•7 years ago
|
||
(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.
Assignee | ||
Comment 4•7 years ago
|
||
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)
Comment 5•7 years ago
|
||
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)
Assignee | ||
Comment 6•7 years ago
|
||
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.
Description
•