Menus on the menu bar can't be modified while showing

RESOLVED WONTFIX

Status

Mozilla Labs
Jetpack Prototype
RESOLVED WONTFIX
8 years ago
8 years ago

People

(Reporter: adw, Unassigned)

Tracking

(Depends on: 1 bug)

Trunk
All
Mac OS X
Dependency tree / graph

Details

(Reporter)

Description

8 years ago
On OS X only, menus in the menu bar can't be modified while they're showing.  Trying to modify a menu in the menu bar as the result of some asynchronous call just before the menu is shown, for example, will appear to do nothing:

  jetpack.menu.add({
    label: "Doesn't Work on OS X :(",
    menu: new jetpack.Menu({
      beforeShow: function (menu) {
        menu.set("Loading...");
        foo(function (stringArray) menu.set(stringArray));
      }
    })
  });

where foo() is some asynchronous function, like an XHR.  The menu will continue to show the "Loading..." item even after foo() returns.  (If foo() is synchronous, no problem.)

This is due to missing functionality in Gecko unfortunately.  I'll file a bug there and make the dependency.  If/when that bug is fixed, this one will be, too.
(Reporter)

Updated

8 years ago
Depends on: 526387
(Reporter)

Comment 1

8 years ago
Platform bug is bug 526387.
(Reporter)

Updated

8 years ago
Blocks: 494651
We will be monitoring all these issues after the rebooted Jetpack code base is released in the first week of March to ensure their causes are not duplicated. Many of the bugs/issues with the prototype version of Jetpack will be made irrelevant given the structure of the new SDK.
Status: NEW → RESOLVED
Last Resolved: 8 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.