[Bug 1017247] Re: Cannot get rid of Menu Bar in Nightly

Chris Coulson chris.coulson at canonical.com
Sun Jun 24 23:28:38 UTC 2012


Just to be clear - what happens here is that the "Cleanest Addon
Manager" addon accesses (and hence, causes the initialization of) the
stylesheet service from it's startup() bootstrap method.

Our menubar registers a UA stylesheet in its chrome.manifest which is
used to set the menubar to display: none and the toolbar to min-height:
0. The stylesheet service registers this UA stylesheet when it starts,
but the "Cleanest Addon Manager" causes it to start before extension
chrome is registered for non-restartless addons - such as ours.

This isn't the first time something like this has come up (see
https://bugzilla.mozilla.org/show_bug.cgi?id=693687, which was also
caused by a restartless addon accessing internal services before
extension chrome is registered).

There shouldn't be any reason why this problematic addon couldn't access
the stylesheet service from an idle event, thus avoiding the issue.

However, as this may not be the only addon doing something like this, I
may add a workaround for it in our extension by not relying on chrome
registration to register our stylesheet (and doing it manually instead -
much in the same way as Cleanest Addon Manager does) :(

** Bug watch added: Mozilla Bugzilla #693687
   https://bugzilla.mozilla.org/show_bug.cgi?id=693687

** Project changed: ubuntu-mozilla-ppa-bugs => globalmenu-extension

** Changed in: globalmenu-extension
   Importance: Undecided => Medium

** Changed in: globalmenu-extension
       Status: Invalid => Triaged

** Changed in: globalmenu-extension
     Assignee: (unassigned) => Chris Coulson (chrisccoulson)

** Also affects: firefox (Ubuntu)
   Importance: Undecided
       Status: New

** Also affects: firefox (Ubuntu Quantal)
   Importance: Undecided
       Status: New

** Changed in: firefox (Ubuntu Quantal)
   Importance: Undecided => Medium

** Changed in: firefox (Ubuntu Quantal)
     Assignee: (unassigned) => Chris Coulson (chrisccoulson)

** Changed in: firefox (Ubuntu Quantal)
       Status: New => Triaged

-- 
You received this bug notification because you are a member of Mozilla
Bugs, which is subscribed to firefox in Ubuntu.
https://bugs.launchpad.net/bugs/1017247

Title:
  Cannot get rid of Menu Bar in Nightly

To manage notifications about this bug go to:
https://bugs.launchpad.net/globalmenu-extension/+bug/1017247/+subscriptions




More information about the Ubuntu-mozillateam-bugs mailing list