Closed Bug 358839 Opened 18 years ago Closed 11 years ago

Popup window taskbar button depends on background color of window

Categories

(Toolkit Graveyard :: XULRunner, defect)

x86
Windows XP
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INCOMPLETE

People

(Reporter: robert, Unassigned)

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1) Gecko/20061010 Firefox/2.0
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1) Gecko/20061010 Firefox/2.0

Creating a popup window ('popup=yes') with a transparent background causes a button for the window to appear in the Windows taskbar.  Add a background color, and the button doesn't appear.

Reproducible: Always

Steps to Reproduce:
1. Create a popupbug.xul file with the following content:

<?xml version="1.0"?>

<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" style="background-color:#fff">
    <label value="Some Random Content" />
</window>

2. Open it from with XULRunner using a command like the following:
    var w = open('popupbug.xul', '_blank', 'chrome,dialog=yes,titlebar=no,popup=yes');

3. Notice that no button for the window appears in the taskbar

4. Now delete the 'style="background-color:#fff"' attribute in the <window> element

5. Open the window again, as before.

6. Notice that this time a window button appears in the taskbar :-P
Actual Results:  
Window taskbar button appears when it shouldn't

Expected Results:  
The presence (or lack thereof) of a button in the taskbar should not depend on the background color of the window.

Note: A workaround for this problem is to give the window a background color in the style attribute (or corresponding CSS file), and then programatically set window.document.documentElement.style.backgroundColor = 'transparent'.

Oh, and this is running XULRunner 1.8.0.4, on WinXP (no service pack)
I'm unable to reproduce this bug in Firefox 2.0.
Status: UNCONFIRMED → RESOLVED
Closed: 11 years ago
Resolution: --- → INCOMPLETE
Product: Toolkit → Toolkit Graveyard
You need to log in before you can comment on or make changes to this bug.