Split AboutNewTabService into AboutNewTabParentService and AboutNewTabChildService
Categories
(Firefox :: New Tab Page, task, P1)
Tracking
()
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).
Assignee | ||
Comment 1•5 years ago
|
||
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.
Assignee | ||
Comment 2•5 years ago
|
||
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.
Updated•5 years ago
|
Comment 3•5 years ago
|
||
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
Updated•5 years ago
|
Comment 5•5 years ago
|
||
Backed out changeset 9160f18bc24e (bug 1619992) for XPCshell failures in newtab/test/xpcshell/test_AboutNewTab.js
Log:
https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=292597564&repo=autoland&lineNumber=2582
Push with failures:
https://treeherder.mozilla.org/#/jobs?repo=autoland&group_state=expanded&revision=9160f18bc24e206646df06494bf61d5a75176ff4
Backout:
https://hg.mozilla.org/integration/autoland/rev/02a2f38cab9fd4af3a8197fb2f35fb0300cd5929
Comment 7•5 years ago
|
||
bugherder |
Assignee | ||
Updated•5 years ago
|
Description
•