Open
Bug 2062209
Opened 9 days ago
Updated 1 hour ago
[MCAB HNT] Phase 1: Render <moz-urlbar> on about:newtab via the New Tab external component registry
Categories
(Firefox :: Address Bar, enhancement, P2)
Firefox
Address Bar
Tracking
()
ASSIGNED
People
(Reporter: dao, Assigned: dao, NeedInfo)
References
(Blocks 4 open bugs)
Details
(Keywords: leave-open, Whiteboard: [sng][mcab-hnt])
Attachments
(2 files)
Part of the MCAB HNT roadmap: putting <moz-urlbar> on the Home / New Tab page. Builds on the IPC Urlbar infrastructure.
Render <moz-urlbar> on about:newtab through EXPO, the New Tab external component registry (bug 2004784, AboutNewTabComponents.sys.mjs) -- the same mechanism the handoff searchbar already uses.
- Extend the Urlbar actor registration in
DesktopActorRegistry.sys.mjsto matchabout:newtabandabout:home, relaxing theincludeChrome-only scoping. - Add
"privilegedabout"to the actor'sremoteTypes, locked to["parent"]today (bug 2049496). It must never be a web content process: bug 2047680 refuses to load actors in web content unless they setsafeForUntrustedWebProcess, which the Urlbar actor should not. - Acquire the actor from the content realm.
windowGlobalChild.getActoris[ChromeOnly], so this depends on the IPC Urlbar content-realm actor-acquisition shim (window.UrlbarActorPort). - Register
{ componentURL, tagName: "moz-urlbar" }under thebrowser-newtab-external-componentcategory from a registrant gated on a newbrowser.urlbar.newtab.featureGatepref, superseding the handoff bar only while the gate is on. Follow theSearchNewTabComponentsRegistrantpattern inSearchUIUtils.sys.mjs: adeclareLazypref getter withonUpdate: () => this.updated(), so a live pref flip swaps handoff bar and moz-urlbar without a restart. - Default the gate to
falseon every channel --["newtab.featureGate", false]inPREF_URLBAR_DEFAULTS(UrlbarPrefs.sys.mjs) andpref("browser.urlbar.newtab.featureGate", false);infirefox.js. That default is what lets this and the later phases develop in-tree without release risk. - Deliver
UrlbarInput.mjs,UrlbarView.mjsand their CSS to the content document as thecomponentURL; they are chrome-only (chrome://browser/content/urlbar/) today and need a content-accessible URL. - Carry over the
sap-name, popover andunifiedsearchbutton-availableattributes the chrome instances set.
Done when opening about:newtab shows a focused <moz-urlbar> that performs a query and renders results end-to-end through the actor. Styling is a separate phase.
Updated•9 days ago
|
Updated•9 days ago
|
Severity: -- → N/A
Priority: -- → P2
| Assignee | ||
Updated•6 days ago
|
Assignee: nobody → dao+bmo
Status: NEW → ASSIGNED
| Assignee | ||
Comment 1•5 days ago
|
||
| Assignee | ||
Comment 2•5 days ago
|
||
Not ready to land: <moz-urlbar> can't load in a content process yet, so
flipping the gate on would leave New Tab without a search bar. That will be
fixed before this lands.
Updated•1 day ago
|
Attachment #9626743 -
Attachment description: Bug 2062209 - Register <moz-urlbar> as New Tab's search component behind a feature gate. r?#urlbar-reviewers!,mconley! → WIP: Bug 2062209 - Register <moz-urlbar> as New Tab's search component behind a feature gate. r?#urlbar-reviewers!,mconley!
Updated•1 day ago
|
Attachment #9626742 -
Attachment description: Bug 2062209 - Scope the Urlbar actor to about:newtab and about:home. r?#urlbar-reviewers!,mconley! → WIP: Bug 2062209 - Scope the Urlbar actor to about:newtab and about:home. r?#urlbar-reviewers!,mconley!
Updated•1 day ago
|
Attachment #9626742 -
Attachment description: WIP: Bug 2062209 - Scope the Urlbar actor to about:newtab and about:home. r?#urlbar-reviewers!,mconley! → Bug 2062209 - Scope the Urlbar actor to about:newtab and about:home. r?#urlbar-reviewers!,mconley!
Updated•1 day ago
|
Attachment #9626743 -
Attachment description: WIP: Bug 2062209 - Register <moz-urlbar> as New Tab's search component behind a feature gate. r?#urlbar-reviewers!,mconley! → Bug 2062209 - Register <moz-urlbar> as New Tab's search component behind a feature gate. r?#urlbar-reviewers!,mconley!
| Assignee | ||
Updated•21 hours ago
|
Keywords: leave-open
Pushed by dgottwald@mozilla.com:
https://github.com/mozilla-firefox/firefox/commit/e00a96bdf858
https://hg.mozilla.org/integration/autoland/rev/39f8c66f261a
Scope the Urlbar actor to about:newtab and about:home. r=mconley,mbeier
Pushed by sstanca@mozilla.com:
https://github.com/mozilla-firefox/firefox/commit/4abe827f6c93
https://hg.mozilla.org/integration/autoland/rev/2ba38cc40930
Revert "Bug 2062209, Bug 2064279, Bug 2064185, Bug 2062987, Bug 2064277, Bug 2064276 - Scope the Urlbar actor to about:newtab and about:home. r=mconley,mbeier" for causing mochitests failures in browser_searchbar_new.js.
Comment 5•14 hours ago
|
||
Reverted this because it was causing mochitests failures in browser_searchbar_new.js.
- Revert link
- Push with failures
- Failure Log
- Failure line: TEST-UNEXPECTED-FAIL | accessible/tests/browser/tree/browser_searchbar_new.js | test_searchbar_a11y_tree - [DOM node id: searchbar-new, role: grouping, address: [xpconnect wrapped nsIAccessible]] has an extra child at index 1 : [role: section, address: [xpconnect wrapped nsIAccessible]]
Flags: needinfo?(dao+bmo)
Pushed by dgottwald@mozilla.com:
https://github.com/mozilla-firefox/firefox/commit/2249487a6342
https://hg.mozilla.org/integration/autoland/rev/c7442cd23880
Scope the Urlbar actor to about:newtab and about:home. r=mconley,mbeier
Pushed by sstanca@mozilla.com:
https://github.com/mozilla-firefox/firefox/commit/91c8ca3faa6c
https://hg.mozilla.org/mozilla-central/rev/1125f63f232f
Revert "Bug 2062209, Bug 2064279, Bug 2064185, Bug 2062987, Bug 2064277, Bug 2064276 - Scope the Urlbar actor to about:newtab and about:home. r=mconley,mbeier" for causing mochitests failures in browser_searchbar_new.js.
Comment 8•12 hours ago
|
||
| bugherder | ||
Pushed by archaeopteryx@coole-files.de:
https://github.com/mozilla-firefox/firefox/commit/449eb52bd631
https://hg.mozilla.org/integration/autoland/rev/04c5149b0b49
Revert "Bug 2062209 - Scope the Urlbar actor to about:newtab and about:home. r=mconley,mbeier" for causing merge conflict with its own backout
Comment 10•11 hours ago
|
||
Comment 11•10 hours ago
|
||
Pushed by dgottwald@mozilla.com:
https://github.com/mozilla-firefox/firefox/commit/4b2111d9ec12
https://hg.mozilla.org/integration/autoland/rev/fd6defb82b68
Scope the Urlbar actor to about:newtab and about:home. r=mconley,mbeier
https://github.com/mozilla-firefox/firefox/commit/82def3f8a6f0
https://hg.mozilla.org/integration/autoland/rev/7c36dc8533d1
Register <moz-urlbar> as New Tab's search component behind a feature gate. r=mconley,urlbar-reviewers,search-reviewers,daleharvey
Comment 12•1 hour ago
|
||
| bugherder | ||
You need to log in
before you can comment on or make changes to this bug.
Description
•