Closed Bug 1266178 Opened 5 years ago Closed 5 years ago
Worker Client .frame Type of "none" when document does not have a window
While working on the test for bug 1265795 I ran into this assert: MOZ_ASSERT(outerWindow); At: https://dxr.mozilla.org/mozilla-central/source/dom/workers/ServiceWorkerClient.cpp?from=ServiceWorkerClient.cpp#67 I'm going to be closing some of the cases which allow this, but I think there is always the risk someone will get a client just as the user closes it. We should gracefully handle this by returning the default "none" frame type.
This also sets a default frame type which should improve the safety of the code a bit.
Attachment #8743443 - Flags: review?(ehsan)
You need to log in before you can comment on or make changes to this bug.