Closed Bug 575449 Opened 14 years ago Closed 14 years ago

Firefox Menu Button appears on Javascript PopUp Windows - but Not in the Title bar

Categories

(Firefox :: General, defect)

x86
Windows 7
defect
Not set
normal

Tracking

()

RESOLVED FIXED
Firefox 4.0b2

People

(Reporter: ronin.achilles, Assigned: dao)

References

()

Details

Attachments

(3 files)

User-Agent:       Mozilla/5.0(Windows; U; Windows NT 5.2; rv:1.9.2) Gecko/20100101 Firefox/3.6
Build Identifier: Mozilla/5.0(Windows; U; Windows NT 5.2; rv:1.9.2) Gecko/20100101 Firefox/3.6

The popup windows opened via javascript commands currently show the titlebar in the old style. The Firefox Button is pushed downwards, whereas it should either:
- Not appear at all OR
- Appear in the Title Bar

Reproducible: Always
Blocks: 513162
This is the probably the same or similar to bug 575291 but that bug doesn't have a screenshot.
Mozilla/5.0 (Windows; U; Windows NT 6.1; WOW64; en-US; rv:2.0b2pre) Gecko/20100629 Minefield/4.0b2pre

Same issue.  Reproducible for me, will try with a clean profile.
(In reply to comment #3)
> Created an attachment (id=454861) [details]
> Same issue in a slightly different position
> 
> Mozilla/5.0 (Windows; U; Windows NT 6.1; WOW64; en-US; rv:2.0b2pre)
> Gecko/20100629 Minefield/4.0b2pre
> 
> Same issue.  Reproducible for me, will try with a clean profile.

Thanks for pointing this out, was just working on it. Do you have a site that reproduces this? (It's a different bug really -  bug 575228.)
(In reply to comment #4)
> (In reply to comment #3)
> > Created an attachment (id=454861) [details] [details]
> > Same issue in a slightly different position
> > 
> > Mozilla/5.0 (Windows; U; Windows NT 6.1; WOW64; en-US; rv:2.0b2pre)
> > Gecko/20100629 Minefield/4.0b2pre
> > 
> > Same issue.  Reproducible for me, will try with a clean profile.
> 
> Thanks for pointing this out, was just working on it. Do you have a site that
> reproduces this? (It's a different bug really -  bug 575228.)

(I guess maybe espn might be a good guess..) ;)
OS: Windows Server 2003 → Windows 7
Blocks: 574435
No longer blocks: 513162
Status: UNCONFIRMED → NEW
Ever confirmed: true
Assignee: nobody → dao
Dao, any idea why we're picking up the maximized state from the other window on a popup window?
Would it be in the javascript?
I hadn't even noticed this yet. Must be a widget bug, I think. I'll test if this happens on Linux as well.
Also happens on Linux...
And with Firefox 3.6.3.
The really simple explanation for why the sizemode attribute is inherited to the popup is that the window element in browser.xul persists it. But I guess the persisted attribute is applied too late or some other code fails to clobber it.
filed bug 575725 on the sizemode issue
Depends on: 575725
Attached patch patchSplinter Review
Attachment #455405 - Flags: review?(gavin.sharp)
Comment on attachment 455405 [details] [diff] [review]
patch

>diff --git a/browser/base/content/browser.js b/browser/base/content/browser.js

>+  var displayAppButton = menubarHidden &&
>+    document.documentElement.getAttribute("chromehidden").indexOf("menubar") == -1;

!window.menubar.visible
Attachment #455405 - Flags: review?(gavin.sharp) → review+
http://hg.mozilla.org/mozilla-central/rev/519d798e7855
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 3.7b2
I think this landed alongside Bug 571813. The Full Screen issue is resolved but I still see the App Button on Popup Windows. Will wait for the next hourly and report if it persists.

To reproduce - use the bookmarklet here... http://www.facebook.com/share_options.php
(In reply to comment #16)
> I still see the App Button on Popup Windows. 
> 
> To reproduce - use the bookmarklet here...
> http://www.facebook.com/share_options.php

This popup now returns the standard titlebar with text, no app menu, no custom titlebar and a location bar.  Did you try without any extensions or custom styling, clean profile?  Before it was the custom titlebar and app menu.
(In reply to comment #17)
> (In reply to comment #16)
> > I still see the App Button on Popup Windows. 
> > 
> > To reproduce - use the bookmarklet here...
> > http://www.facebook.com/share_options.php
> 
> This popup now returns the standard titlebar with text, no app menu, no custom
> titlebar and a location bar.  Did you try without any extensions or custom
> styling, clean profile?  Before it was the custom titlebar and app menu.

:) Very Strange... if you have browser.tabs.closeWindowWithLastTab set to False... you will see the Menu Button in Pop Up window... go figure!!
(In reply to comment #18)
> (In reply to comment #17)
> > (In reply to comment #16)
> > > I still see the App Button on Popup Windows. 
> > > 
> > > To reproduce - use the bookmarklet here...
> > > http://www.facebook.com/share_options.php
> > 
> > This popup now returns the standard titlebar with text, no app menu, no custom
> > titlebar and a location bar.  Did you try without any extensions or custom
> > styling, clean profile?  Before it was the custom titlebar and app menu.
> 
> :) Very Strange... if you have browser.tabs.closeWindowWithLastTab set to
> False... you will see the Menu Button in Pop Up window... go figure!!

Confirming, that case shows custom titlebar and app menu.
(In reply to comment #19)
> (In reply to comment #18)
> > browser.tabs.closeWindowWithLastTab set to False... you will see the Menu Button in Pop Up window

> Confirming, that case shows custom titlebar and app menu.

Or the regular titlebar I seen again with the appmenu showing.  Might want to file a separate bug for that.
Depends on: 577382
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: