Figure out if GetInProcessScriptableTop usage in nsPIDOMWindowOuter::SetServiceWorkersTestingEnabled is OK
Categories
(DevTools :: General, task)
Tracking
(Not tracked)
People
(Reporter: kmag, Unassigned)
References
(Blocks 1 open bug)
Details
Under Fission, the assertion MOZ_ASSERT_IF(aEnabled, this == GetInProcessScriptableTop())
allows turning on service worker testing in frames with an out-of-process parent, which may or may not be desired. Either way, a comment should be added to clarify what's expected.
Reporter | ||
Comment 1•4 years ago
|
||
(Similar issue for GetServiceWorkersTestingEnabled
)
Comment 2•4 years ago
|
||
Tracking "Figure out GetInProcessTop usage" bugs for Fission M6b.
Comment 3•4 years ago
|
||
The comment in the code says
void nsPIDOMWindowOuter::SetServiceWorkersTestingEnabled(bool aEnabled) {
// Devtools should only be setting this on the top level window. Its
// ok if devtools clears the flag on clean up of nested windows, though.
// It will have no affect.
Alex, can you review the urgency of fixing this for Fission?
Comment 4•4 years ago
|
||
DevTools should toggle this setting only on top level windows.
So that this assertion doesn't sound super important to keep, we are conscious that it may be wrong trying to toggle this in a nested remote iframe.
Having said that, this attribute should probably be moved to BrowsingContext, like watchedByDevTools
(bug 1620966).
But again, it rather sounds like a useful esthetical cleanup rather than a real requirement.
Comment 5•4 years ago
|
||
About moving this attribute to BrowsingContext, I opened bug 1655967 about this.
Comment 6•4 years ago
|
||
Adding dt-fission
whiteboard tag to DevTools bugs that mention Fission or block Fission meta bugs but don't already have a dt-fission
whiteboard tag.
Updated•4 years ago
|
Comment 8•4 years ago
|
||
Bulk change of all bugs with whiteboard tag of dt-fission
to Fission MVP milestone.
Comment 9•4 years ago
|
||
Moving old "dt-fission" bugs to "dt-fission-future" because they don't block Fission MVP.
Comment 10•3 years ago
|
||
Resolving as a dupe of bug 1655967, which moved SetServiceWorkersTestingEnabled from nsPIDOMWindowOuter to BrowsingContext.
Updated•3 years ago
|
Description
•