Closed Bug 1634759 Opened 4 years ago Closed 3 years ago

Discard BrowsingContext subtrees in a consistent manner across processes

Categories

(Core :: DOM: Navigation, enhancement, P3)

enhancement

Tracking

()

RESOLVED WONTFIX
Fission Milestone Future

People

(Reporter: nika, Assigned: nika)

References

Details

This is the complete fix for issues such as those found in bug 1634596, bug 1580565, etc.

It will involve adding support to BrowsingContext and WindowContext to trigger unloading and discarding of entire subtrees across processes, and will require centralizing the corresponding logic from other components, such as nsDocShell::Destroy.

Issues caused by destruction order of BrowsingContext instances loaded in remote subframes are covered here.

Status: NEW → ASSIGNED

Moving to M6c as this isn't known yet to cause serious problems. We might see some crashes because of this once we start enabling Fission.

Severity: -- → S2
Fission Milestone: M6b → M6c

M7

Fission Milestone: M6c → M7
See Also: → 1668656
See Also: → 1668657

No recent evidence of needing this. And if BFCache ends up ignoring unload event, then this will be even lower priority so moving to Fission-MVP.

Fission Milestone: M7 → MVP

The crash in Bug 1634596 started triggering for me pretty consistently in my local linux debug build with the following steps:

  1. Visit https://developer.mozilla.org/en-US/docs/Web/HTML/Element/iframe
  2. Enable RDM (Web Developer -> Responsive Design Mode)
  3. Set device to iPhone 6/7/8
  4. Refresh
  5. Content process crashes

I don't think RDM is responsible, since I'm able to trigger it just by loading the page or loading and then refreshing, but that happens much less consistently. I was unable to reproduce on Mac OS, but Neha was able to once (see crash report: https://crash-stats.mozilla.org/report/index/b6259856-04a4-495f-bcb0-44c2b0210122 ). Barret also helpfully reproduced this for me on Windows just by loading and refreshing. I'm not sure what about that page or the iframe on it makes it so likely to trigger this.

I have an RR recording of the crash happening.

(In reply to Steven MacLeod [:smacleod] from comment #4)

I have an RR recording of the crash happening.

https://pernos.co/debug/pd2iRe0Jet9CRYDKFOOOZw/index.html

Flags: needinfo?(nika)

Moving to Fission Future because this bug doesn't need to block Fission MVP.

Nika says the fix will be rather invasive.

Fission Milestone: MVP → Future
Priority: P2 → P3

I don't think that this particular change is necessary anymore with the current situation. In the future we may want to change things about how we destroy these types, but where we're at right now is OK.

Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Flags: needinfo?(nika)
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.