Closed Bug 1646535 Opened 4 years ago Closed 3 years ago

Figure out if GetInProcessScriptableTop usage in nsPIDOMWindowOuter::SetServiceWorkersTestingEnabled is OK

Categories

(DevTools :: General, task)

task

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1655967

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.

(Similar issue for GetServiceWorkersTestingEnabled)

Tracking "Figure out GetInProcessTop usage" bugs for Fission M6b.

Fission Milestone: --- → M6b

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?

Flags: needinfo?(poirot.alex)

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.

Flags: needinfo?(poirot.alex)

About moving this attribute to BrowsingContext, I opened bug 1655967 about this.

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.

Whiteboard: dt-fission
Fission Milestone: M6b → M6c

Moving dt-fission bugs to Fission MVP.

Fission Milestone: M6c → MVP

Bulk change of all bugs with whiteboard tag of dt-fission to Fission MVP milestone.

Moving old "dt-fission" bugs to "dt-fission-future" because they don't block Fission MVP.

Fission Milestone: MVP → Future
Whiteboard: dt-fission → dt-fission-future

Resolving as a dupe of bug 1655967, which moved SetServiceWorkersTestingEnabled from nsPIDOMWindowOuter to BrowsingContext.

Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → DUPLICATE
Fission Milestone: Future → ---
Whiteboard: dt-fission-future
You need to log in before you can comment on or make changes to this bug.