Doesn't work with some bootstrapped extensions

Bug #1027050 reported by Lain_13
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Global menubar extension
Fix Released
Undecided
Unassigned

Bug Description

Hi,
I've encountered problem with global menu integration when installed some of "restartless" extensions. In particular it's url-addon-bar extension (https://addons.mozilla.org/en-US/firefox/addon/url-addon-bar/).
When it's installed there is no problems but on restart menu does not integrates and shown on separate panel.
I've checked bootstrap.js code and wasn't able to locate any any really bad code there.

Steps to reproduce:
1. Go to url https://addons.mozilla.org/en-US/firefox/addon/url-addon-bar/
2. Install extension.
3. Restart browser.

Expected result: menu integrated into Unity (actually I'm using Unity 2D) panel.

Actual result: Menu shown below on separate panel inside Fx window.

Point to check in url-addon-bar extension:

        let win = aWindow.docShell.QueryInterface(Ci
            .nsIInterfaceRequestor).getInterface(Ci.nsIDOMWindow);

This command alone breaks integration. Adding event-listener to the located windows on the next step could be removed or commented out. Extension will not work but integration still will be broken. Disabling this command fixes integration but extension does not work.

BTW, I've seen similar code in multiple extensions and all of them breaks integration as well.

Revision history for this message
Chris Coulson (chrisccoulson) wrote :

The addon you've linked works fine here

Revision history for this message
Lain_13 (lain-halfbit) wrote :

Here is more precise testcase:

1. Run firefox with key -p and create new profile.
2. Run: firefox -p new_profile_name
    At this point you will have firefox with totally clean profile.
3. Open addon manager and check there are only system-wide extensions (UFM and yours).
    Actually UFM one is not important and could be disabled but lets leave as-is.
4. Go to url https://addons.mozilla.org/en-US/firefox/addon/url-addon-bar/ and install extension.
5. Enable Addon Bar from context menu and drop some icons on it through panels customization.
    Just to make sure extension works fine.
6. Close browser.
7. Start it again (same as at step 2).

I've tested it twice and in both cases I had the same issue. Menu was not integrated _after_ browser restart.

Revision history for this message
Lain_13 (lain-halfbit) wrote :

Just to make sure it's not DE-specific bug I have logged out and logged in into standard Ubuntu session (I'm using Ubuntu 2D which is based on Unity 2D). Bug are still reproduced.

Revision history for this message
Lain_13 (lain-halfbit) wrote :

I thought something is missing... yep, that's it. Technical details. Here they are.

Revision history for this message
Lain_13 (lain-halfbit) wrote :
Revision history for this message
Lain_13 (lain-halfbit) wrote :

Um-m... Any news? I'm still experiencing this bug.
Are you still unable to reproduce this problem even with all that data which I provided?

Revision history for this message
Lain_13 (lain-halfbit) wrote :

Hi, update to Fx15 and latest global-menu extension fixed problem. You can mark it as fixed now.

Changed in globalmenu-extension:
status: New → Fix Released
Revision history for this message
Lain_13 (lain-halfbit) wrote :

Um... I did it myself.

Revision history for this message
Thaodan (theodorstormgrade) wrote :

Its nor fixed. For me it don't works, im using the latest version from bzr.

My System:
Architecture: x86_64
Distrubtion: Arch Linux
Linux Version: 3.5.4
Desktop Enviroment: KDE 4.9
Globalmenu Widget: : kdeplasma-applets-menubar 0.1.18
Depencies: libdbusmenu 0.6-1
libdbusmenu-gtk2 0.6.1

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.