Closed Bug 1715773 Opened 3 years ago Closed 3 years ago

Get rid of about:newtab preloaded browser content process workarounds

Categories

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

task

Tracking

()

RESOLVED FIXED
92 Branch
Tracking Status
firefox92 --- fixed

People

(Reporter: mconley, Assigned: nika)

References

(Regressed 1 open bug)

Details

Attachments

(1 file)

I stumbled across this chunk of code today: https://searchfox.org/mozilla-central/rev/2c991232499e826e46f9d976eb653817340ba389/docshell/base/nsDocShell.cpp#12769

and it reminded me that before we had the dedicated Privileged About Content Process for about:newtab, we used to load it in a normal content process. Couple this with the fact that we have this perceived performance optimization where we preload an about:newtab in the background to make the next tab opening faster, this meant that sometimes users would have a new extra web content process opened and taking up resources for that background about:newtab.

Before we had the Privileged About Content Process, we worked around this resource problem by forcing about:newtab to load in a pre-existing content process, and then making sure that any navigation away from about:newtab results in an opportunity to create a new process. It was hacky, but it worked at the time. See bug 1376895.

Fast-forward to now. We have the Privileged About Content Process. Every about:newtab will necessarily load in that content process, and a bunch of mechanisms are in place to make sure that a navigation to a normal web page will result in that page loading in a normal content process and not the Privileged About Content Process.

So I think the preload hackery that was added in bug 1376895 can probably be removed now.

Type: defect → task

P3. This would be a nice cleanup.

Severity: -- → N/A
Priority: -- → P3
Assignee: nobody → nika
Status: NEW → ASSIGNED
Pushed by nlayzell@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/e89d64559e5b Remove preloaded newtab process selection logic, r=mconley
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 92 Branch
Regressions: 1724199
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: