React to DOM changes in Mac Menu
Categories
(Core :: Widget: Cocoa, defect, P3)
Tracking
()
Tracking | Status | |
---|---|---|
firefox86 | --- | fixed |
People
(Reporter: zbraniecki, Assigned: mconley)
References
(Blocks 1 open bug)
Details
Attachments
(2 files)
MacOS does not react to changes to DOM in the menubar. This prevents Fluent migration and runtime language changes.
STR:
- Open Firefox on MacOS
- Open Browser Console
document.getElementById("file-menu").label = "Foo";
- Notice that
File
menu changed to Foo` document.getElementById("menu_preferences").label = "Bar";
- Expand the
Firefox
menu
Current result:
Preferences
label doesn't get updated to Bar
Expected result:
Preferences
label gets updated to Bar
The two attributes that will get pulled out of L10n are label
and accesskey
.
Reporter | ||
Comment 1•5 years ago
|
||
Stephen - can you unblock me here?
Comment 2•5 years ago
|
||
It looks like you are running into what is described in bug 1333781 comment 0. That's specific to access keys, but it must be applicable to labels as well.
Reporter | ||
Comment 3•5 years ago
|
||
Stephen - can you triage this? We're now ready to migrate the startup path to Fluent and this bug is the only blocker for the menu bar migration (bug 1501886).
Comment 4•5 years ago
|
||
I've gone ahead and assigned a priority, but since:
- I'm typically the one working on these issues,
- this is not a straightforward thing to fix,
- the fact that I am about to be on PTO for two weeks, and
- that there is a lot of other work I need to wrap up before my PTO
I am not confident that this will be addressed from the widget/cocoa side on a particularly fast timeline. If there is someone on your team with macOS experience I would recommend that they take a look instead.
Reporter | ||
Comment 5•5 years ago
|
||
Thanks!
I don't think there is. I went ahead and removed the 6 strings from the bug 1501886 and put the comment that we need to wait for this bug to migrate them.
I'll likely move this bug to block the wider "migrate startup path off of DTD" meta-bug.
Reporter | ||
Comment 6•5 years ago
|
||
Hi Stephen, this is blocking bug 1579477 which we're going to focus on next. Would you be able to provide any ETA assuming current priorities?
Reporter | ||
Updated•5 years ago
|
Comment 7•5 years ago
|
||
Unfortunately, I don't expect to be able to work on this before November. We are currently putting together a proposal to focus more on macOS-specific issues such as this one, but even if approved it would only become a Q1 2020 OKR.
Comment 8•5 years ago
|
||
I have some patches I'll put up in a bit that should get us most of the way.
- Don't build the application menu until l10n is ready
- Ensure the application menu is rebuilt when the application menu changes in the hidden window
This still doesn't let us have an application menu per window, but for most of what fluent needs it should suffice.
Comment 9•5 years ago
|
||
Enables using fluent for the application menu bar strings.
Comment 10•5 years ago
|
||
Depends on D46202
Updated•4 years ago
|
Reporter | ||
Comment 11•4 years ago
|
||
@sphol - the issue is not related to localization, but Widget: Cocoa. It requires Cocoa bindings in Cocoa component in Gecko to work. Can you please revisit your last change?
Updated•4 years ago
|
Reporter | ||
Comment 12•3 years ago
|
||
Brendan - can you assess this? It's blocking some of the Fluent migrations. Is there something actionable that I could do to help you with landing this?
Comment 13•3 years ago
|
||
It's stuck on the fluent migration (maybe it's easier now). If someone can update the migration I can get a review for the code changes.
Assignee | ||
Comment 14•3 years ago
|
||
Let me see if I can sort out that migration.
Assignee | ||
Comment 15•3 years ago
|
||
Tentatively commandeering. Let me know if I'm out of line here, bdahl.
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
Assignee | ||
Comment 16•3 years ago
|
||
Going to wait for bug 1660848 lands before I land this.
Updated•3 years ago
|
Comment 17•3 years ago
|
||
Pushed by mconley@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/991140be037c Wait to load MacOS app menu until l10n is ready. r=mstange https://hg.mozilla.org/integration/autoland/rev/b559da4d69e5 Migrate the rest of the menubar to Fluent. r=fluent-reviewers,flod,Gijs
Comment 18•3 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/991140be037c
https://hg.mozilla.org/mozilla-central/rev/b559da4d69e5
Updated•3 years ago
|
Description
•