Global Menu Bar Doesn't Work With Firefox

Bug #347519 reported by tubaplaya187
74
This bug affects 15 people
Affects Status Importance Assigned to Milestone
Globalmenu Project
Unknown
Unknown
Mozilla Firefox
Won't Fix
Wishlist
Ubuntu
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: nautilus

I'm running global menu bar that makes the top panel work like a mac, and rather than displaying file,edit,view,etc... it just says firefox web browser.

ProblemType: Bug
Architecture: amd64
DistroRelease: Ubuntu 8.10
ExecutablePath: /usr/bin/nautilus
NonfreeKernelModules: nvidia
Package: nautilus 1:2.24.1-0ubuntu2
ProcEnviron:
 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: nautilus
Uname: Linux 2.6.27-11-generic x86_64
UnreportableReason: This is not a genuine Ubuntu package

Tags: apport-bug
Revision history for this message
In , Frnchfrgg (frnchfrgg) wrote :

I think that supporting patched GTK isn't reallistic (we already have a hard time supporting vanilla GTK). In any case, not gecko 1.9 material.

Revision history for this message
In , Jakub 'Livio' Rusinek (liviopl-pl) wrote :

Remember that MacMenubar uses GtkMenuBar, while Firefox only uses it to draw the interface.

Revision history for this message
In , Elhyte (elhyte) wrote :

(In reply to comment #2)
> Remember that MacMenubar uses GtkMenuBar, while Firefox only uses it to draw
> the interface.
>
Yes, Jakub, I agree, but Miro is firefox based, isn't it ? So, why does it support the GtkMenubar ?

Revision history for this message
In , Jakub 'Livio' Rusinek (liviopl-pl) wrote :

Miro is pygtk2 based. It embeds gtkmozembed :> .

Revision history for this message
In , Elhyte (elhyte) wrote :

(In reply to comment #4)
> Miro is pygtk2 based. It embeds gtkmozembed :> .
>

Whouaw, what fast response is it !
Ok, But no chance to see this one day (in Firefox 3)?

Revision history for this message
In , Frnchfrgg (frnchfrgg) wrote :

Not in Firefox 3, no. We're too close to release (unless someone comes up with a clean small patch). Perhaps later (which is why it was decided not to close the bug with WONTFIX).

The difficulty is that to get the kind of integration you want, we need to use real GTK menus. Since Firefox is programmed in XUL, that means not creating the XUL widgets for the menus and then convert the XUL menu structure to a GTK one. This sadly means that we abandon the possibility of skining the menus with CSS (this is what Firefox themes do), and we enter a painful world of event/functionnality translation between XUL menus and native menus.

Revision history for this message
In , Elhyte (elhyte) wrote :

Ok, I understand this.
A last question: As a minor upgrade, will it be possible to show it including in a minor release of Firefox ?

Revision history for this message
In , Jakub 'Livio' Rusinek (liviopl-pl) wrote :

I wouldn't be so hopeful...

That will require LOT of work. More than drawing something using GTK.

I think that Firefox 4 will be native :> .

Revision history for this message
In , Elhyte (elhyte) wrote :

Ok, so I have to wait one year to have this functionality :)
I'll be patient...

Revision history for this message
In , Elhyte (elhyte) wrote :

But I have a different idea: instead of creating a real gtkmenubar, why don't we change the patch itself for Firefox compatibility ? It will, by the way, create compatibility of all XUL-based programs.

Revision history for this message
In , Jakub 'Livio' Rusinek (liviopl-pl) wrote :

If only it is possible...

Revision history for this message
In , Elhyte (elhyte) wrote :

I don't know if it is truely possible, but I seen that Gtkmenubar had supported Java/Swing applications for a little moment, si I think it should be possible...

Revision history for this message
In , Jakub 'Livio' Rusinek (liviopl-pl) wrote :

It was ugly hack in GTK. Not ready for reall apps.

I hope you can read. Thread on Ubuntu forums had that notice.

PS: Sorry for being rude.

Revision history for this message
In , Elhyte (elhyte) wrote :

It's to me to be sorry: I'm a perfect newbie...
So, I have two final questions:
First: It can be ready with a little work, isn't it ?
Second: When Firefox 4 will be released :) ?
Sorry for my newbish questions.

Revision history for this message
In , Jakub 'Livio' Rusinek (liviopl-pl) wrote :

1: I don't think so. XUL-based apps are using GTK only TO DRAW.
2: I can't answer, because I don't know.

Revision history for this message
In , Elhyte (elhyte) wrote :

Ok, Thank you
So I'll wait Firefox 4 :)
Anyway, if nobody have something to add, you can close the bug report.

Revision history for this message
In , Bugzilla-mozilla-org-2 (bugzilla-mozilla-org-2) wrote :

(In reply to comment #6)
> The difficulty is that to get the kind of integration you want, we need to use
> real GTK menus. Since Firefox is programmed in XUL, that means not creating the
> XUL widgets for the menus and then convert the XUL menu structure to a GTK one.
FWIW, Firefox has native (or native-looking) menus on Mac:
http://www.dreamsoft.us/tools/help/cache/mac_firefox.html

Revision history for this message
In , Jakub 'Livio' Rusinek (liviopl-pl) wrote :

But this solution in Mac is stable and well known, while this GTK functionality is provided only by patch, which is not supported officialy.

Until patch is accepted for GTK we shouldn't support such functionality.

Revision history for this message
In , Yu Feng (rainwoodman) wrote :

I agree with you and I am working toward to make GlobalMenu ready for real apps.
The problem is that GtkMenuBar is not designed for a global menu, and neither is GTK.

(In reply to comment #13)
> It was ugly hack in GTK. Not ready for reall apps.
>
> I hope you can read. Thread on Ubuntu forums had that notice.
>
> PS: Sorry for being rude.
>

Revision history for this message
In , Yu Feng (rainwoodman) wrote :

(In reply to comment #6)

> XUL widgets for the menus and then convert the XUL menu structure to a GTK one.
> This sadly means that we abandon the possibility of skining the menus with CSS
> (this is what Firefox themes do),

What about shiping with an extra embeded theme along with the default theme, which sets some magic flag of XULRunner to make it use native widgets?

> and we enter a painful world of
> event/functionnality translation between XUL menus and native menus.
>

It is sad and painful, but most code is written solely for this purpose, whenever we want some code reusing from any external-wares, isn't it?

What about writing some GTK and GObject, XPCOM binding first? It might also benefit mozilla in the long term.

Revision history for this message
In , Jakub 'Livio' Rusinek (liviopl-pl) wrote :

> The problem is that GtkMenuBar is not designed for a global menu, and neither
is GTK.

GTK is not so flexible...

> What about shiping with an extra embeded theme along with the default theme,
which sets some magic flag of XULRunner to make it use native widgets?

Is it possible?

I was thinking about copy of Firefox in native GTK with gtkmozembed, which could draw everything but menubar using XUL.

Revision history for this message
In , Yu Feng (rainwoodman) wrote :

>
> I was thinking about copy of Firefox in native GTK with gtkmozembed, which
> could draw everything but menubar using XUL.
>
It will become another 'MyIE', a dirty(but somewhat useful, because lacking of functionality of IE) wrapper over IE activeX control.

I don't see gtkmozembed as intended for writing general purpose web browsers(just as IE activeX Control), despiting the fact that people are doing this. If many people uses a wrapped 'firefox' it will become a shame for firefox. And firefox is not that bad for people to turn toward wrapped versions at all.

If there is a gtk binding for XPCOM, exploding gtk to firefox javascript, I think most of work is just writing an javascript extesnsion which should work in a similiar way as 'Personal Menu' (https://addons.mozilla.org/en-US/firefox/addon/3895). The gtk binding can also be provided in an extension, if I understood the development guide correctly.

Revision history for this message
In , Jakub 'Livio' Rusinek (liviopl-pl) wrote :

I'm not a developer, I was just thinking.

But if GlobalMenu will be ready, and GTK will accept some patches, then we must to quickly make support for GM.

There's no way to not support it if this will become official (I hope so!).

Revision history for this message
In , Jakub 'Livio' Rusinek (liviopl-pl) wrote :

There are two approaches for globalmenu:
* app-drawn menubar, like now
* server-drawn menubar

If server-drawn would get favorised, then it's easier to send some data via DBus/etc, that draw it with a XUL app...

Revision history for this message
In , Yu Feng (rainwoodman) wrote :

Yes.

Server-drawn global menu is applying for a SoC project.
If it is accepted,
An X11 based version will be done at around june.
a DBus version be done at around july.

It also seems to me, that it is easier to make some RPC calling than draw it with XUL app emulating the GTK UI.

Revision history for this message
In , Jakub 'Livio' Rusinek (liviopl-pl) wrote :

That's good that globalmenu has been proposed as SoC project. I wish you good luck :) !

> It also seems to me, that it is easier to make some RPC calling than draw it
> with XUL app emulating the GTK UI.

Of course, Firefox will have less to draw :P .

Revision history for this message
In , Mike Connor (mconnor) wrote :

This is WONTFIX until such time as GNOME adopts this functionality officially.

Revision history for this message
In , Phwelo (phwelo) wrote :

has anyone looked back at this issue since globalmenu no longer requires patched gtk?

Revision history for this message
In , Yu Feng (rainwoodman) wrote :

"This is WONTFIX until such time as GNOME adopts this functionality officially."

 - The mozilla people have already spoken.

Revision history for this message
In , Simon Sthormes (ssthormess-googlemail) wrote :

(In reply to comment #29)
> (In reply to comment #27)
> This is WONTFIX until such time as GNOME adopts this functionality officially.
>
> - The mozilla people have already spoken.

WOW!, i'm really impressed about how Mozilla attends his users requests.

It's REALLY Fair.

Revision history for this message
In , Reed Loden (reed) wrote :

(In reply to comment #28)
> has anyone looked back at this issue since globalmenu no longer requires
> patched gtk?

No, but feel free to do so.

(In reply to comment #30)
> WOW!, i'm really impressed about how Mozilla attends his users requests.
>
> It's REALLY Fair.

At the time this was filed, a patched gtk was required, which didn't make sense to support in core Firefox. If it's true that gtk doesn't need to be patched for this support, then the topic is open for discussion again. Patches welcome.

Revision history for this message
In , Simon Sthormes (ssthormess-googlemail) wrote :

(In reply to comment #31)
> (In reply to comment #28)
> > has anyone looked back at this issue since globalmenu no longer requires
> > patched gtk?
>
> No, but feel free to do so.
>
> (In reply to comment #30)
> > WOW!, i'm really impressed about how Mozilla attends his users requests.
> >
> > It's REALLY Fair.
>
> At the time this was filed, a patched gtk was required, which didn't make sense
> to support in core Firefox. If it's true that gtk doesn't need to be patched
> for this support, then the topic is open for discussion again. Patches welcome.

I feel really better with your response, i'm not part of the "developers" of the Global Menu but i use it and like it.

Revision history for this message
In , Yu Feng (rainwoodman) wrote :

Sorry for posting so late:

Global Menu is applying as a mentor organization in SOC 2009.

Patching XULRunner is proposed as a student project. However we are weak at mentoring this project on the XULRunner side.

If anyone here would like to give us a hand on mentoring the project please send an email to the project list:
gnome-globalmenu at googlegroups dot com
http://code.google.com/p/gnome2-globalmenu/wiki/SummerOfCode2009

or to me.

Thanks.

Revision history for this message
In , Mike Connor (mconnor) wrote :

Well, start with getting GNOME to adopt the functionality, instead of a third-party addon. my comment was pretty clear about what it would take to make support something we'd add to the core application.

Revision history for this message
In , Yu Feng (rainwoodman) wrote :

Well, the goal of the proposed SOC project is not to push the patch into XUL. The goal is to implement the patch, make the solution available. -- You reminded me to state this more clearly in the proposal.

In that case, would you like to help on mentoring: not necessarily being the mentor person but answering some questions with XUL in general?

Revision history for this message
In , Robert-bugzilla (robert-bugzilla) wrote :

This is for a widget and hence isn't a shell integration bug and is a Core -> Widget bug... moving

Revision history for this message
tubaplaya187 (jshevnock) wrote :

Binary package hint: nautilus

I'm running global menu bar that makes the top panel work like a mac, and rather than displaying file,edit,view,etc... it just says firefox web browser.

ProblemType: Bug
Architecture: amd64
DistroRelease: Ubuntu 8.10
ExecutablePath: /usr/bin/nautilus
NonfreeKernelModules: nvidia
Package: nautilus 1:2.24.1-0ubuntu2
ProcEnviron:
 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: nautilus
Uname: Linux 2.6.27-11-generic x86_64
UnreportableReason: This is not a genuine Ubuntu package

Revision history for this message
tubaplaya187 (jshevnock) wrote :
Revision history for this message
A. Walton (awalton) wrote :

This is a gnome2-globalmenu bug, unfortunately launchpad won't let me reassign it there...

Changed in firefox:
status: Unknown → Won't Fix
Stas Sușcov (sushkov)
Changed in globalmenu:
importance: Undecided → Unknown
status: New → Unknown
Revision history for this message
Stas Sușcov (sushkov) wrote :

Updated the remote watch due to it's merge with previous bug id.

Revision history for this message
Stas Sușcov (sushkov) wrote :

Matt has released 0.7.7 version of gnome-globalmenu in his PPA:
https://edge.launchpad.net/~matthaeus123/+archive/ppa

Eclipse, GIMP and other apps were reported to work now is setting up:
---
set env GLOBALMENU_GNOME_ARGS=--patch-only
---

Still Firefox 3.5.2 gives segfault.

Revision history for this message
Stas Sușcov (sushkov) wrote :

I had to recompile the package for Jaunty, otherwise libglobalmenu is uninstallable from Matt's PPA due to Karmic dependencies.
The package is available in my PPA:
https://edge.launchpad.net/~sushkov/+archive/personal

Now I can confirm that Firefox works!
Issue can be closed.

Changed in ubuntu:
status: New → Fix Released
Revision history for this message
LS d^_^b (liquid-skinn) wrote :

what version of Firefox does this work on? I tried installing 0.7.7 from Stas' PPA and Firefox menus still don't show up in the Global Menu. I'm using Firefox 3.5.3. Should I downgrade?

Revision history for this message
Stas Sușcov (sushkov) wrote : Re: [Bug 347519] Re: Global Menu Bar Doesn't Work With Firefox

On Fri, Oct 16, 2009 at 6:46 AM, LS d^_^b <email address hidden> wrote:
> what version of Firefox does this work on? I tried installing 0.7.7 from
> Stas' PPA and Firefox menus still don't show up in the Global Menu. I'm
> using Firefox 3.5.3. Should I downgrade?
>

Currently (afaik), globalmenu has no support for xpcom/xpi above which Mozilla's
applications are build. That's why Firefox and Thunderbird doesn't
work. Still, this is better
than seg faults with globalemnu < v0.7.7.

I don't know when such a feature will be implemented.

--
() Campania Panglicii în ASCII
/\ http://stas.nerd.ro/ascii/

Revision history for this message
Waldir Leoncio (wleoncio) wrote :

It's not working for FF3.5 and globamenu 0.7.8 here.

Changed in ubuntu:
status: Fix Released → Confirmed
Revision history for this message
Philip Muškovac (yofel) wrote :

Can someone please check what the package name in the official ubuntu archive is if this is still an issue and assign the bug to that package? Thanks.

Changed in ubuntu:
status: Confirmed → Incomplete
Changed in firefox:
importance: Unknown → Wishlist
Revision history for this message
In , JP (vectorpoem) wrote :

The global menu bar is now an official, default part of Ubuntu - only with the Netbook Remix in 10.10, but in the regular desktop version as well in 11.04:

https://launchpad.net/indicator-appmenu

XUL application support was deferred for the 10.10 release, but seems to be planned for 11.04. Hopefully Canonical will be reaching out to you guys soon.

Revision history for this message
In , Stas Sușcov (sushkov) wrote : Re: [Bug 347519]

În data de Sb, 30-10-2010 la 22:51 +0000, chmmr a scris:
> The global menu bar is now an official, default part of Ubuntu - only
> with the Netbook Remix in 10.10, but in the regular desktop version as
> well in 11.04:
>
> https://launchpad.net/indicator-appmenu
>
> XUL application support was deferred for the 10.10 release, but seems to
> be planned for 11.04. Hopefully Canonical will be reaching out to you
> guys soon.
>

Just a comment to the above written, you can install it with:
apt-get install indicator-appmenu indicator-applet-appmenu appmenu-gtk

Then just add appmenu applet to your panel.

Revision history for this message
Jeremy Malcolm (terminus) wrote :

This is fixed in 11.04 in the package firefox-globalmenu.

Changed in ubuntu:
status: Incomplete → Fix Released
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.