Closed Bug 1619992 Opened 5 years ago Closed 5 years ago

Split AboutNewTabService into AboutNewTabParentService and AboutNewTabChildService

Categories

(Firefox :: New Tab Page, task, P1)

task

Tracking

()

RESOLVED FIXED
Firefox 76
Tracking Status
firefox76 --- fixed

People

(Reporter: mconley, Assigned: mconley)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

AboutNewTabService is currently loaded in both the parent and in content processes, which means it does branching based on what process it's currently in.

As part of bug 1614351, I'm going to be increasing some of the responsibilities of the child version, so I think at this point splitting the service out into two fragments makes sense.

AboutNewTabParentService will only run in the parent process, and AboutNewTabChildService will only run in content processes (including the privileged about content process).

I actually think we can probably merge most of the parent-process responsibilities of AboutNewTabService to AboutNewTab.jsm, and get rid of the service entirely in that process.

We'll still need it in the content processes for AboutRedirector to talk to, but a simplified AboutNewTabService that doesn't need all of the parent-process logic.

This patch does the following:

  • Moves most logic for initiating about:home / about:newtab into AboutNewTab.jsm
  • Makes AboutNewTab the API surface for overriding the default about:newtab URLs.
  • Reduces the surface of nsIAboutNewTabService, and makes the properties read-only
  • Splits the remaining code in the nsIAboutNewTabService into an implementation for
    the parent process, and one for content processes.

This split will hopefully help reduce confusion about which code in
AboutNewTabService is running in which process.

Attachment #9131183 - Attachment description: Bug 1619992 - Split AboutNewTabService into AboutNewTabParentService and AboutNewTabChildService. r=tip → Bug 1619992 - Split AboutNewTabService into AboutNewTabParentService and AboutNewTabChildService. r=Mardak

putting this in the backlog as a P3 to remove from our traige queue - feel free to triage/reassign as you'd like, mconley! :D

Priority: -- → P3
Attachment #9131183 - Attachment description: Bug 1619992 - Split AboutNewTabService into AboutNewTabParentService and AboutNewTabChildService. r=Mardak → Bug 1619992 - Split AboutNewTabService into AboutNewTabParentService and AboutNewTabChildService. r=Mardak!
Pushed by mconley@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/9160f18bc24e Split AboutNewTabService into AboutNewTabParentService and AboutNewTabChildService. r=perftest-reviewers,Mardak,sparky
Pushed by mconley@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/597d165cd5d3 Split AboutNewTabService into AboutNewTabParentService and AboutNewTabChildService. r=perftest-reviewers,Mardak,sparky
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 76
Flags: needinfo?(mconley)
Blocks: 1614351
Priority: P3 → P1
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: