Closed Bug 1568133 Opened 5 years ago Closed 3 years ago

React to DOM changes in Mac Menu

Categories

(Core :: Widget: Cocoa, defect, P3)

defect

Tracking

()

RESOLVED FIXED
86 Branch
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:

  1. Open Firefox on MacOS
  2. Open Browser Console
  3. document.getElementById("file-menu").label = "Foo";
  4. Notice that File menu changed to Foo`
  5. document.getElementById("menu_preferences").label = "Bar";
  6. 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.

Stephen - can you unblock me here?

Flags: needinfo?(spohl.mozilla.bugs)

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.

Flags: needinfo?(spohl.mozilla.bugs)
See Also: → 1333781

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).

Flags: needinfo?(spohl.mozilla.bugs)

I've gone ahead and assigned a priority, but since:

  1. I'm typically the one working on these issues,
  2. this is not a straightforward thing to fix,
  3. the fact that I am about to be on PTO for two weeks, and
  4. 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.

Flags: needinfo?(spohl.mozilla.bugs)
Priority: -- → P2

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.

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?

Blocks: 1579477
No longer blocks: 1501886
Flags: needinfo?(spohl.mozilla.bugs)

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.

Flags: needinfo?(spohl.mozilla.bugs)

I have some patches I'll put up in a bit that should get us most of the way.

  1. Don't build the application menu until l10n is ready
  2. 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.

Assignee: nobody → bdahl

Enables using fluent for the application menu bar strings.

See Also: → 1581952
Severity: normal → S3
Component: Widget: Cocoa → Localization

@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?

Flags: needinfo?(spohl.mozilla.bugs)
Component: Localization → Widget: Cocoa
Flags: needinfo?(spohl.mozilla.bugs)
Priority: P2 → P3
See Also: → 1665222
Blocks: 588710

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?

Flags: needinfo?(bdahl)

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.

Flags: needinfo?(bdahl)
Blocks: 1683419

Let me see if I can sort out that migration.

Tentatively commandeering. Let me know if I'm out of line here, bdahl.

Assignee: bdahl → mconley
Attachment #9093404 - Attachment description: Bug 1568133 - Migrate the rest of the menubar to fluent. r=zbraniecki → Bug 1568133 - Migrate the rest of the menubar to Fluent. r=Gijs,flod
Attachment #9093403 - Attachment description: Bug 1568133 - Wait to load MacOS app menu until l10n is ready. r=spohl → Bug 1568133 - Wait to load MacOS app menu until l10n is ready. r=mstange
Attachment #9093404 - Attachment description: Bug 1568133 - Migrate the rest of the menubar to Fluent. r=Gijs,flod → Bug 1568133 - Migrate the rest of the menubar to Fluent. r=Gijs!,flod!

Going to wait for bug 1660848 lands before I land this.

Depends on: 1660848
Attachment #9093403 - Attachment description: Bug 1568133 - Wait to load MacOS app menu until l10n is ready. r=mstange → Bug 1568133 - Wait to load MacOS app menu until l10n is ready. r=mstange!
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
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 86 Branch
QA Whiteboard: [qa-86b-p2]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: