Closed
Bug 1218080
Opened 9 years ago
Closed 7 years ago
Fix service workers openWindow when there's no available browser window
Categories
(Core :: DOM: Service Workers, defect, P3)
Core
DOM: Service Workers
Tracking
()
RESOLVED
WORKSFORME
Tracking | Status | |
---|---|---|
firefox44 | --- | wontfix |
People
(Reporter: catalinb, Assigned: catalinb)
References
Details
Attachments
(2 files, 1 obsolete file)
(deleted),
patch
|
smaug
:
review-
|
Details | Diff | Splinter Review |
(deleted),
patch
|
Details | Diff | Splinter Review |
This is a follow-up for bug 1172870 to address the case where firefox is running without a browser window.
Updated•9 years ago
|
Assignee | ||
Comment 1•9 years ago
|
||
We can run into this bug more often than previously thought. With an active private browsing window, firefox can receive notifications and run service workers but won't have a valid browser window for openWindow.
Summary: Fix service workers openWindow on mac os when there's no available browser window → Fix service workers openWindow when there's no available browser window
Assignee | ||
Updated•9 years ago
|
Assignee: nobody → catalin.badea392
Assignee | ||
Comment 2•9 years ago
|
||
Attachment #8744901 -
Flags: review?(bugs)
Assignee | ||
Comment 3•9 years ago
|
||
Attachment #8744902 -
Flags: review?(bugs)
Comment 4•9 years ago
|
||
Comment on attachment 8744901 [details] [diff] [review]
Use the hidden XUL window when no browser window is available for ServiceWorkerClients.openWindow.
So I think we should somehow explicitly tell when it is ok to not have tabparent when sending BrowserFrameOpenWindow message from child side, and only use that for sw.openWindow case, at least for now.
Should be a simple change, but could take a look at another patch.
Attachment #8744901 -
Flags: review?(bugs) → review-
Comment 5•9 years ago
|
||
Comment on attachment 8744902 [details] [diff] [review]
Don't send the url to the parent process when opening new windows, because it is not actually used.
Fun. nsWindowWatcher code is so great :/
Could we add an assertion to nsWindowWatcher::OpenWindowInternal that if aOpeningTab is non-null, aURL is null.
Attachment #8744902 -
Flags: review?(bugs) → review+
Comment 6•9 years ago
|
||
mike, you were thinking about cleaning up WW code. See the latter patch here as another example of the messiness of the code :)
Flags: needinfo?(mconley)
Assignee | ||
Comment 8•9 years ago
|
||
(In reply to Olli Pettay [:smaug] from comment #4)
> Comment on attachment 8744901 [details] [diff] [review]
> Use the hidden XUL window when no browser window is available for
> ServiceWorkerClients.openWindow.
>
> So I think we should somehow explicitly tell when it is ok to not have
> tabparent when sending BrowserFrameOpenWindow message from child side, and
> only use that for sw.openWindow case, at least for now.
> Should be a simple change, but could take a look at another patch.
I'm not sure I follow. Service Workers use the SendCreateWindow path. As far as I know, BrowserFrameOpenWindow is used only on Firefox OS and always expects a valid tabchild, which is enforced through asserts.
Are you suggesting adding a flag that explicitly marks that (in the child) the call is coming from a sw instead of guessing based on whether aTabOpener is null or not?
Assignee | ||
Comment 9•9 years ago
|
||
Attachment #8744902 -
Attachment is obsolete: true
Comment 10•9 years ago
|
||
Assignee | ||
Updated•9 years ago
|
Keywords: leave-open
Comment 11•9 years ago
|
||
bugherder |
Updated•7 years ago
|
Priority: -- → P3
Assignee | ||
Comment 12•7 years ago
|
||
This was fixed when the openWindow code was refactored with the rest of the API for clients.
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → WORKSFORME
Updated•7 years ago
|
Keywords: leave-open
You need to log in
before you can comment on or make changes to this bug.
Description
•