Popup window taskbar button depends on background color of window

RESOLVED INCOMPLETE

Status

Toolkit Graveyard
XULRunner
RESOLVED INCOMPLETE
12 years ago
2 years ago

People

(Reporter: Robert Kieffer, Unassigned)

Tracking

Details

(Reporter)

Description

12 years ago
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)
(Reporter)

Comment 1

12 years ago
I'm unable to reproduce this bug in Firefox 2.0.

Updated

5 years ago
Status: UNCONFIRMED → RESOLVED
Last Resolved: 5 years ago
Resolution: --- → INCOMPLETE
(Assignee)

Updated

2 years ago
Product: Toolkit → Toolkit Graveyard
You need to log in before you can comment on or make changes to this bug.