Last Comment Bug 526382 - Menus on the menu bar can't be modified while showing
: Menus on the menu bar can't be modified while showing
Product: Mozilla Labs
Classification: Other
Component: Jetpack Prototype (show other bugs)
: Trunk
: All Mac OS X
-- normal (vote)
: ---
Assigned To: Nobody; OK to take it and work on it
Depends on: 526387
Blocks: 494651
  Show dependency treegraph
Reported: 2009-11-03 18:37 PST by Drew Willcoxon :adw
Modified: 2010-02-26 11:36 PST (History)
2 users (show)
See Also:
Crash Signature:
QA Whiteboard:
Iteration: ---
Points: ---


Description User image Drew Willcoxon :adw 2009-11-03 18:37:42 PST
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:{
    label: "Doesn't Work on OS X :(",
    menu: new jetpack.Menu({
      beforeShow: function (menu) {
        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.
Comment 1 User image Drew Willcoxon :adw 2009-11-03 19:23:40 PST
Platform bug is bug 526387.
Comment 2 User image Daniel Buchner [:dbuc] 2010-02-26 11:36:48 PST
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.

Note You need to log in before you can comment on or make changes to this bug.