Migrate browser-menubar to Fluent
Categories
(Firefox :: Menus, enhancement, P3)
Tracking
()
Tracking | Status | |
---|---|---|
firefox70 | --- | fixed |
People
(Reporter: zbraniecki, Assigned: zbraniecki)
References
Details
Attachments
(3 files, 3 obsolete files)
Assignee | ||
Updated•6 years ago
|
Updated•6 years ago
|
Updated•6 years ago
|
Assignee | ||
Comment 1•6 years ago
|
||
Assignee | ||
Comment 2•6 years ago
|
||
Assignee | ||
Comment 3•6 years ago
|
||
Assignee | ||
Comment 4•6 years ago
|
||
Assignee | ||
Comment 5•6 years ago
|
||
Comment 6•6 years ago
|
||
Comment 7•6 years ago
|
||
Comment 8•6 years ago
|
||
Assignee | ||
Comment 9•6 years ago
|
||
Assignee | ||
Comment 10•6 years ago
|
||
Assignee | ||
Comment 11•6 years ago
|
||
Updated•6 years ago
|
Assignee | ||
Comment 12•6 years ago
|
||
Updated•6 years ago
|
Assignee | ||
Comment 13•6 years ago
|
||
It seems that bug 1552714 fixed it for us.
Single FTL string vs central - https://treeherder.mozilla.org/perf.html#/compare?originalProject=try&originalRevision=c1a9623c2c56f38cfcef106d2a41b1c8fa058f3d&newProject=try&newRevision=2b5aaba72a5856b507b5741faf4c4ac2ce28ec98
Menubar migrated vs. central - https://treeherder.mozilla.org/perf.html#/compare?originalProject=try&originalRevision=c1a9623c2c56f38cfcef106d2a41b1c8fa058f3d&newProject=try&newRevision=e71d091aa4b5ec691a50b8bdc13fe34b6b310377
I'm open to continue exploring bug 1441035 for potential gains, but I'd like to first migrate this.
Assignee | ||
Comment 14•6 years ago
|
||
Updated•6 years ago
|
Updated•6 years ago
|
Assignee | ||
Comment 15•6 years ago
|
||
Updated•6 years ago
|
Assignee | ||
Comment 16•6 years ago
|
||
With the landing of bug 1517880 this patch now has no talos impact: https://treeherder.mozilla.org/perf.html#/compare?originalProject=try&originalRevision=a3a6c44eef1c9e2c5b66a787fab860e4122815b9&newProject=try&newRevision=374c6906f4166581ebd8e6942b40f25c25d0e40e
We can finalize and land it!
Comment 17•6 years ago
|
||
Comment 18•6 years ago
|
||
Backed out for failing bc at browser_window_menu_list.js and browser_bookmarkMenu_hiddenWindow.js
Push that started the failures: https://treeherder.mozilla.org/#/jobs?repo=autoland&group_state=expanded&resultStatus=testfailed%2Cbusted%2Cexception&revision=7a06c08bf26762fabba8806bb87c2ef31ee62510&selectedJob=259503275
Failure logs: https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=259503275&repo=autoland&lineNumber=9909
https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=259490689&repo=autoland&lineNumber=1095
Backout: https://hg.mozilla.org/integration/autoland/rev/22bda3da7ce3439a1ccafce4753ad59ad098bddc
Assignee | ||
Comment 19•6 years ago
|
||
Brendan - so, the backout happened because I added
<linkset>
<html:link rel="localization" href="branding/brand.ftl"/>
<html:link rel="localization" href="browser/branding/sync-brand.ftl"/>
<html:link rel="localization" href="browser/menubar.ftl"/>
</linkset>
to browser/base/content/macWindow.inc.xul
which gets included all around, and in one place, there was no html
namespace. It was browser/base/content/hiddenWindowMac.xhtml
.
When I added it, the test passes, but the browser doesn't start on Mac with:
0:02.86 GECKO(20102) JavaScript error: resource://gre/modules/Fluent.jsm, line 636: TypeError: res.body is undefined
I assume this is because of https://searchfox.org/mozilla-central/source/dom/base/Document.cpp#5701 ?
Does it mean that we treat browser.xhtml specially, but not browser/base/content/hiddenWindowMac.xhtml ?
Can you help me get the body
in there as well?
Assignee | ||
Comment 20•6 years ago
|
||
The bug is reproducible with this patch on MacOS.
Assignee | ||
Comment 21•6 years ago
|
||
d'uh, I really shouldn't be allowed to set NI in the evening...
The reason it failed was because hiddenWindowMac.xhtml was loaded before browser.xhtml, and it triggered async loading of the 3 FTL files, and then browser.xhtml tried to load the same files but sync.
I added a warning in L10nRegistry to not return from cache if the cached value is a Promise and we want sync - this should help us discover the cases better than with a meaningless body.res is undefined
.
Comment 22•6 years ago
|
||
Comment 23•6 years ago
|
||
bugherder |
Comment 25•6 years ago
|
||
Zibi, next time you do Fluent changes that remove stuff we use and cause a "burning tree" on a Saturday morning (bug 1571181), could you please let us know. Thanks in advance.
Description
•