Closed Bug 49196 Opened 24 years ago Closed 24 years ago

Buttons not showing up in common dialogs

Categories

(MailNews Core :: Composition, defect, P3)

x86
Windows 2000

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: mikepinkerton, Assigned: sfraser_bugs)

References

Details

- open mail compose window
- enter some text to get it to be modified
- click closebox

expected:
- do you want to save? yes/no/cancel dialog
- clicking no closes window

actual:
- message not sent, save or cancel? save/cancel dialog
- clicking cancel doesn't close window.

There's no way to close a mail window w/out saving it.
cc'ing hyatt, he recently touched the common dialog stuff.
I see the problem here. The platform dialog overlay uses hidden="true" on the 
extra buttons, but hyatt changed commonDialogs.js to only set/unset "collapsed"
Summary: Can't close unsent mail compose window → Buttons not showing up in common dialogs
Patch (which fixes Mac, at least)
Index: mozilla/xpfe/global/resources/content/mac/platformDialogOverlay.xul
===================================================================
RCS file: /cvsroot/mozilla/xpfe/global/resources/content/mac/
platformDialogOverlay.xul,v
retrieving revision 1.16
diff -w -r1.16 platformDialogOverlay.xul
14,15c14,15
<     <button class="exit-dialog" id="Button3" value="" hidden="true" oncommand=
"doButton3();"/>
<     <button class="exit-dialog" id="Button2" value="" hidden="true" oncommand=
"doButton2();"/>
---
>     <button class="exit-dialog" id="Button3" value="" collapsed="true" oncommand="doButton3();"/>
>     <button class="exit-dialog" id="Button2" value="" collapsed="true" oncommand="doButton2();"/>
22,23c22,23
<     <button class="exit-dialog" id="Button3" value="" hidden="true" oncommand=
"doButton3();"/>
<     <button class="exit-dialog" id="Button2" value="" hidden="true" oncommand=
"doButton2();"/>
---
>     <button class="exit-dialog" id="Button3" value="" collapsed="true" oncommand="doButton3();"/>
>     <button class="exit-dialog" id="Button2" value="" collapsed="true" 
oncommand="doButton2();"/>
Here is the diff for WIndow:

Index: platformDialogOverlay.xul
===================================================================
RCS file: 
/cvsroot/mozilla/xpfe/global/resources/content/win/platformDialogOverlay.xul,v
retrieving revision 1.14
diff -r1.14 platformDialogOverlay.xul
15,16c15,16
<     <button class="exit-dialog" id="Button2" value="&cancelButton.label;" 
hidden="true" onclick="doButton2()"/>
<     <button class="exit-dialog" id="Button3" value="&cancelButton.label;" 
hidden="true" onclick="doButton3()"/>
---
>     <button class="exit-dialog" id="Button2" value="&cancelButton.label;" 
collapsed="true" onclick="doButton2()"/>
>     <button class="exit-dialog" id="Button3" value="&cancelButton.label;" 
collapsed="true" onclick="doButton3()"/>
24,25c24,25
<     <button class="exit-dialog" id="Button2" value="&cancelButton.label;" 
hidden="true" onclick="doButton2()"/>
<     <button class="exit-dialog" id="Button3" value="&cancelButton.label;" 
hidden="true" onclick="doButton3()"/>
---
>     <button class="exit-dialog" id="Button2" value="&cancelButton.label;" 
collapsed="true" onclick="doButton2()"/>
>     <button class="exit-dialog" id="Button3" value="&cancelButton.label;" 
collapsed="true" onclick="doButton3()"/>
Reassign to sfraser has he found the problem. BTW, r=ducarroz
Assignee: ducarroz → sfraser
*** Bug 49218 has been marked as a duplicate of this bug. ***
*** Bug 49219 has been marked as a duplicate of this bug. ***
Fix checked in.
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
*** Bug 49238 has been marked as a duplicate of this bug. ***
QA Contact: lchiang → pmock
*** Bug 49260 has been marked as a duplicate of this bug. ***
*** Bug 49275 has been marked as a duplicate of this bug. ***
*** Bug 49315 has been marked as a duplicate of this bug. ***
*** Bug 49315 has been marked as a duplicate of this bug. ***
marking as verified
Status: RESOLVED → VERIFIED
*** Bug 49328 has been marked as a duplicate of this bug. ***
*** Bug 50111 has been marked as a duplicate of this bug. ***
Product: MailNews → Core
Product: Core → MailNews Core
You need to log in before you can comment on or make changes to this bug.