Closed Bug 1938452 Opened 2 months ago Closed 20 days ago

Move most of browser/components/newtab under a new folder browser/extensions/newtab

Categories

(Firefox :: New Tab Page, task)

task

Tracking

()

RESOLVED FIXED
137 Branch
Tracking Status
firefox137 --- fixed

People

(Reporter: mconley, Assigned: mconley)

References

(Blocks 1 open bug, Regressed 1 open bug)

Details

(Whiteboard: [hnt-trainhop])

Attachments

(10 files, 1 obsolete file)

48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review

We're going to be moving anything that should be included in the built-in addon. That's almost everything under browser/components/newtab, except for:

  • nsIAboutNewTabService.idl
    • This is the XPCOM interface file for the nsIAboutNewTabService, which allows our native code to get information about New Tab’s configuration. It also helps power the about:home startup cache.
    • Currently, this is no way (and unlikely to ever be a way) to update XPCOM interfaces at runtime via privileged WebExtension, so we should leave this in browser/components/newtab.
  • AboutNewTabService.sys.mjs
  • AboutNewTab.sys.mjs

The timing of this is going to be critical, as we'll want to do this work at a point where it's going to cause the least disruption to ongoing work in browser/components/newtab. I agree with Scott when he says "I think there are not a lot of good times, but there is a bad time (to do this work)".

I'm going to tentatively aim to have us do this at the start of the 136 Nightly cycle, which is February 3rd 2025.

To be clear, beyond moving the location of the files, there should be no change to the development methodology for New Tab.

Assignee: nobody → mconley
Attachment #9446843 - Attachment description: WIP: Bug 1938452 - Copy browser/components/newtab eslintrc to browser/extensions/newtab. → WIP: Bug 1938452 - Copy browser/components/newtab eslintrc rules to browser/extensions/newtab.
Attachment #9446832 - Attachment description: WIP: Bug 1938452 - Stub out browser/extensions/newtab. → WIP: Bug 1938452 - Stub out browser/extensions/newtab. r?#home-newtab-reviewers!,pdahiya!
Attachment #9446834 - Attachment description: WIP: Bug 1938452 - Move newtab documentation to browser/extensions/newtab. → WIP: Bug 1938452 - Move newtab documentation to browser/extensions/newtab. r?#home-newtab-reviewers!
Attachment #9446835 - Attachment description: WIP: Bug 1938452 - Move newtab support code to browser/extensions/newtab → WIP: Bug 1938452 - Move newtab support code to browser/extensions/newtab. r?#home-newtab-reviewers!
Attachment #9446836 - Attachment description: WIP: Bug 1938452 - Move newtab utility scripts to browser/extensions/newtab → WIP: Bug 1938452 - Move newtab utility scripts to browser/extensions/newtab. r?#home-newtab-reviewers!
Attachment #9446837 - Attachment description: WIP: Bug 1938452 - Move newtab content source code and build scripts to browser/extensions/newtab → WIP: Bug 1938452 - Move newtab content source code and build scripts to browser/extensions/newtab. r?#home-newtab-reviewers!
Attachment #9446838 - Attachment description: WIP: Bug 1938452 - Update license.yml mapping to browser/extensions/newtab → WIP: Bug 1938452 - Update license.yml mapping to browser/extensions/newtab. r?#linter-reviewers!
Attachment #9446839 - Attachment description: WIP: Bug 1938452 - Update rejected-words.yml mapping to browser/extensions/newtab → WIP: Bug 1938452 - Update rejected-words.yml mapping to browser/extensions/newtab. r?#linter-reviewers!
Attachment #9446840 - Attachment description: WIP: Bug 1938452 - Move newtab tests to browser/extensions/newtab → WIP: Bug 1938452 - Move newtab tests to browser/extensions/newtab. r?#home-newtab-reviewers!
Attachment #9446841 - Attachment description: WIP: Bug 1938452 - Update a bunch of non-permalink references to browser/extensions/newtab. → WIP: Bug 1938452 - Update a bunch of non-permalink references to browser/extensions/newtab. r?#home-newtab-reviewers!
Attachment #9446842 - Attachment description: WIP: Bug 1938452 - Update mots so that New Tab module includes browser/extensions/newtab as well. → WIP: Bug 1938452 - Update mots so that New Tab module includes browser/extensions/newtab as well. r?zeid!
Attachment #9446843 - Attachment description: WIP: Bug 1938452 - Copy browser/components/newtab eslintrc rules to browser/extensions/newtab. → WIP: Bug 1938452 - Copy browser/components/newtab eslintrc rules to browser/extensions/newtab. r?#home-newtab-reviewers!
Attachment #9446832 - Attachment description: WIP: Bug 1938452 - Stub out browser/extensions/newtab. r?#home-newtab-reviewers!,pdahiya! → Bug 1938452 - Stub out browser/extensions/newtab. r?#home-newtab-reviewers!,pdahiya!
Attachment #9446834 - Attachment description: WIP: Bug 1938452 - Move newtab documentation to browser/extensions/newtab. r?#home-newtab-reviewers! → Bug 1938452 - Move newtab documentation to browser/extensions/newtab. r?#home-newtab-reviewers!
Attachment #9446835 - Attachment description: WIP: Bug 1938452 - Move newtab support code to browser/extensions/newtab. r?#home-newtab-reviewers! → Bug 1938452 - Move newtab support code to browser/extensions/newtab. r?#home-newtab-reviewers!
Attachment #9446836 - Attachment description: WIP: Bug 1938452 - Move newtab utility scripts to browser/extensions/newtab. r?#home-newtab-reviewers! → Bug 1938452 - Move newtab utility scripts to browser/extensions/newtab. r?#home-newtab-reviewers!
Attachment #9446837 - Attachment description: WIP: Bug 1938452 - Move newtab content source code and build scripts to browser/extensions/newtab. r?#home-newtab-reviewers! → Bug 1938452 - Move newtab content source code and build scripts to browser/extensions/newtab. r?#home-newtab-reviewers!
Attachment #9446838 - Attachment description: WIP: Bug 1938452 - Update license.yml mapping to browser/extensions/newtab. r?#linter-reviewers! → Bug 1938452 - Update license.yml mapping to browser/extensions/newtab. r?#linter-reviewers!
Attachment #9446839 - Attachment description: WIP: Bug 1938452 - Update rejected-words.yml mapping to browser/extensions/newtab. r?#linter-reviewers! → Bug 1938452 - Update rejected-words.yml mapping to browser/extensions/newtab. r?#linter-reviewers!
Attachment #9446840 - Attachment description: WIP: Bug 1938452 - Move newtab tests to browser/extensions/newtab. r?#home-newtab-reviewers! → Bug 1938452 - Move newtab tests to browser/extensions/newtab. r?#home-newtab-reviewers!
Attachment #9446842 - Attachment description: WIP: Bug 1938452 - Update mots so that New Tab module includes browser/extensions/newtab as well. r?zeid! → Bug 1938452 - Update mots so that New Tab module includes browser/extensions/newtab as well. r?zeid!
Attachment #9446841 - Attachment description: WIP: Bug 1938452 - Update a bunch of non-permalink references to browser/extensions/newtab. r?#home-newtab-reviewers! → Bug 1938452 - Update a bunch of non-permalink references to browser/extensions/newtab. r?#home-newtab-reviewers!
Attachment #9446843 - Attachment description: WIP: Bug 1938452 - Copy browser/components/newtab eslintrc rules to browser/extensions/newtab. r?#home-newtab-reviewers! → Bug 1938452 - Copy browser/components/newtab eslintrc rules to browser/extensions/newtab. r?#home-newtab-reviewers!
Attachment #9446832 - Attachment description: Bug 1938452 - Stub out browser/extensions/newtab. r?#home-newtab-reviewers!,pdahiya! → WIP: Bug 1938452 - Stub out browser/extensions/newtab. r?#home-newtab-reviewers!,pdahiya!
Attachment #9446834 - Attachment description: Bug 1938452 - Move newtab documentation to browser/extensions/newtab. r?#home-newtab-reviewers! → WIP: Bug 1938452 - Move newtab documentation to browser/extensions/newtab. r?#home-newtab-reviewers!
Attachment #9446835 - Attachment description: Bug 1938452 - Move newtab support code to browser/extensions/newtab. r?#home-newtab-reviewers! → WIP: Bug 1938452 - Move newtab support code to browser/extensions/newtab. r?#home-newtab-reviewers!
Attachment #9446836 - Attachment description: Bug 1938452 - Move newtab utility scripts to browser/extensions/newtab. r?#home-newtab-reviewers! → WIP: Bug 1938452 - Move newtab utility scripts to browser/extensions/newtab. r?#home-newtab-reviewers!
Attachment #9446837 - Attachment description: Bug 1938452 - Move newtab content source code and build scripts to browser/extensions/newtab. r?#home-newtab-reviewers! → WIP: Bug 1938452 - Move newtab content source code and build scripts to browser/extensions/newtab. r?#home-newtab-reviewers!
Attachment #9446838 - Attachment description: Bug 1938452 - Update license.yml mapping to browser/extensions/newtab. r?#linter-reviewers! → WIP: Bug 1938452 - Update license.yml mapping to browser/extensions/newtab. r?#linter-reviewers!
Attachment #9446839 - Attachment description: Bug 1938452 - Update rejected-words.yml mapping to browser/extensions/newtab. r?#linter-reviewers! → WIP: Bug 1938452 - Update rejected-words.yml mapping to browser/extensions/newtab. r?#linter-reviewers!
Attachment #9446840 - Attachment description: Bug 1938452 - Move newtab tests to browser/extensions/newtab. r?#home-newtab-reviewers! → WIP: Bug 1938452 - Move newtab tests to browser/extensions/newtab. r?#home-newtab-reviewers!
Attachment #9446841 - Attachment description: Bug 1938452 - Update a bunch of non-permalink references to browser/extensions/newtab. r?#home-newtab-reviewers! → WIP: Bug 1938452 - Update a bunch of non-permalink references to browser/extensions/newtab. r?#home-newtab-reviewers!
Attachment #9446842 - Attachment description: Bug 1938452 - Update mots so that New Tab module includes browser/extensions/newtab as well. r?zeid! → WIP: Bug 1938452 - Update mots so that New Tab module includes browser/extensions/newtab as well. r?zeid!
Attachment #9446843 - Attachment description: Bug 1938452 - Copy browser/components/newtab eslintrc rules to browser/extensions/newtab. r?#home-newtab-reviewers! → WIP: Bug 1938452 - Copy browser/components/newtab eslintrc rules to browser/extensions/newtab. r?#home-newtab-reviewers!
Attachment #9446832 - Attachment description: WIP: Bug 1938452 - Stub out browser/extensions/newtab. r?#home-newtab-reviewers!,pdahiya! → Bug 1938452 - Stub out browser/extensions/newtab. r?#home-newtab-reviewers!,pdahiya!
Attachment #9446834 - Attachment description: WIP: Bug 1938452 - Move newtab documentation to browser/extensions/newtab. r?#home-newtab-reviewers! → Bug 1938452 - Move newtab documentation to browser/extensions/newtab. r?#home-newtab-reviewers!
Attachment #9446835 - Attachment description: WIP: Bug 1938452 - Move newtab support code to browser/extensions/newtab. r?#home-newtab-reviewers! → Bug 1938452 - Move newtab support code to browser/extensions/newtab. r?#home-newtab-reviewers!
Attachment #9446836 - Attachment description: WIP: Bug 1938452 - Move newtab utility scripts to browser/extensions/newtab. r?#home-newtab-reviewers! → Bug 1938452 - Move newtab utility scripts to browser/extensions/newtab. r?#home-newtab-reviewers!
Attachment #9446837 - Attachment description: WIP: Bug 1938452 - Move newtab content source code and build scripts to browser/extensions/newtab. r?#home-newtab-reviewers! → Bug 1938452 - Move newtab content source code and build scripts to browser/extensions/newtab. r?#home-newtab-reviewers!
Attachment #9446838 - Attachment description: WIP: Bug 1938452 - Update license.yml mapping to browser/extensions/newtab. r?#linter-reviewers! → Bug 1938452 - Update license.yml mapping to browser/extensions/newtab. r?#linter-reviewers!
Attachment #9446839 - Attachment description: WIP: Bug 1938452 - Update rejected-words.yml mapping to browser/extensions/newtab. r?#linter-reviewers! → Bug 1938452 - Update rejected-words.yml mapping to browser/extensions/newtab. r?#linter-reviewers!
Attachment #9446840 - Attachment description: WIP: Bug 1938452 - Move newtab tests to browser/extensions/newtab. r?#home-newtab-reviewers! → Bug 1938452 - Move newtab tests to browser/extensions/newtab. r?#home-newtab-reviewers!
Attachment #9446842 - Attachment description: WIP: Bug 1938452 - Update mots so that New Tab module includes browser/extensions/newtab as well. r?zeid! → Bug 1938452 - Update mots so that New Tab module includes browser/extensions/newtab as well. r?zeid!
Attachment #9446841 - Attachment description: WIP: Bug 1938452 - Update a bunch of non-permalink references to browser/extensions/newtab. r?#home-newtab-reviewers! → Bug 1938452 - Update a bunch of non-permalink references to browser/extensions/newtab. r?#home-newtab-reviewers!
Attachment #9446843 - Attachment description: WIP: Bug 1938452 - Copy browser/components/newtab eslintrc rules to browser/extensions/newtab. r?#home-newtab-reviewers! → Bug 1938452 - Copy browser/components/newtab eslintrc rules to browser/extensions/newtab. r?#home-newtab-reviewers!
Blocks: 1942999
Attachment #9446843 - Attachment description: Bug 1938452 - Copy browser/components/newtab eslintrc rules to browser/extensions/newtab. r?#home-newtab-reviewers! → Bug 1938452 - Move browser/components/newtab eslintrc rules to browser/extensions/newtab. r?#home-newtab-reviewers!
Attachment #9446838 - Attachment is obsolete: true
Pushed by mconley@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/cd4fdafb2594 Stub out browser/extensions/newtab. r=pdahiya,home-newtab-reviewers,amy https://hg.mozilla.org/integration/autoland/rev/88df910fa038 Move newtab documentation to browser/extensions/newtab. r=omc-reviewers,firefox-desktop-core-reviewers ,home-newtab-reviewers,pdahiya,mossop,amy https://hg.mozilla.org/integration/autoland/rev/8ca1a633192a Move newtab support code to browser/extensions/newtab. r=home-newtab-reviewers,nbarrett https://hg.mozilla.org/integration/autoland/rev/aef74a3d077d Move newtab utility scripts to browser/extensions/newtab. r=home-newtab-reviewers,amy https://hg.mozilla.org/integration/autoland/rev/f1f41e902e36 Move newtab content source code and build scripts to browser/extensions/newtab. r=home-newtab-reviewers,nbarrett,thecount https://hg.mozilla.org/integration/autoland/rev/ac0a50aaf347 Update rejected-words.yml mapping to browser/extensions/newtab. r=linter-reviewers,sylvestre https://hg.mozilla.org/integration/autoland/rev/c9737e213e42 Move newtab tests to browser/extensions/newtab. r=home-newtab-reviewers,omc-reviewers,frontend-codestyle-reviewers,pdahiya,thecount https://hg.mozilla.org/integration/autoland/rev/9c8837fc4805 Update a bunch of non-permalink references to browser/extensions/newtab. r=sylvestre,search-reviewers,tabbrowser-reviewers,omc-reviewers,android-reviewers,home-newtab-reviewers,frontend-codestyle-reviewers,mcheang,pdahiya,thecount,dao,pollymce https://hg.mozilla.org/integration/autoland/rev/69f385bc90ce Update mots so that New Tab module includes browser/extensions/newtab as well. r=zeid https://hg.mozilla.org/integration/autoland/rev/f6a771e83261 Move browser/components/newtab eslintrc rules to browser/extensions/newtab. r=home-newtab-reviewers,frontend-codestyle-reviewers,Standard8,thecount

Backed out for causing node failures

TEST-UNEXPECTED-FAIL | bundles | Activity Stream bundle out of date
Flags: needinfo?(mconley)
Pushed by mconley@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/e1f12f800782 Stub out browser/extensions/newtab. r=pdahiya,home-newtab-reviewers,amy https://hg.mozilla.org/integration/autoland/rev/cb931e962950 Move newtab documentation to browser/extensions/newtab. r=omc-reviewers,firefox-desktop-core-reviewers ,home-newtab-reviewers,pdahiya,mossop,amy https://hg.mozilla.org/integration/autoland/rev/a440ddfb8782 Move newtab support code to browser/extensions/newtab. r=home-newtab-reviewers,nbarrett https://hg.mozilla.org/integration/autoland/rev/d36adbc21df3 Move newtab utility scripts to browser/extensions/newtab. r=home-newtab-reviewers,amy https://hg.mozilla.org/integration/autoland/rev/d21c04034be4 Move newtab content source code and build scripts to browser/extensions/newtab. r=home-newtab-reviewers,nbarrett,thecount https://hg.mozilla.org/integration/autoland/rev/593932e0893a Update rejected-words.yml mapping to browser/extensions/newtab. r=linter-reviewers,sylvestre https://hg.mozilla.org/integration/autoland/rev/3737fd75977b Move newtab tests to browser/extensions/newtab. r=home-newtab-reviewers,omc-reviewers,frontend-codestyle-reviewers,pdahiya,thecount https://hg.mozilla.org/integration/autoland/rev/425a43d0b287 Update a bunch of non-permalink references to browser/extensions/newtab. r=sylvestre,search-reviewers,tabbrowser-reviewers,omc-reviewers,android-reviewers,home-newtab-reviewers,frontend-codestyle-reviewers,mcheang,pdahiya,thecount,dao,pollymce https://hg.mozilla.org/integration/autoland/rev/5e8c4adce9b0 Update mots so that New Tab module includes browser/extensions/newtab as well. r=zeid https://hg.mozilla.org/integration/autoland/rev/0eaf0ed1dff2 Move browser/components/newtab eslintrc rules to browser/extensions/newtab. r=home-newtab-reviewers,frontend-codestyle-reviewers,Standard8,thecount
Regressions: 1945649
Flags: needinfo?(mconley)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: