Closed
Bug 102762
Opened 24 years ago
Closed 24 years ago
Cancel does nothing in find dialog when no search text is provided
Categories
(SeaMonkey :: UI Design, defect)
SeaMonkey
UI Design
Tracking
(Not tracked)
VERIFIED
FIXED
mozilla0.9.6
People
(Reporter: arnoudb, Assigned: simmo)
References
Details
(Keywords: access, regression)
Attachments
(3 files)
992 bytes,
patch
|
Details | Diff | Splinter Review | |
1006 bytes,
patch
|
Details | Diff | Splinter Review | |
746 bytes,
patch
|
hewitt
:
superreview+
|
Details | Diff | Splinter Review |
Build: 2001100203 on Win2k
Hitting Cancel in the Find dialog does not close the dialog when there is no
text in the textfield.
Steps to reproduce:
1) Hit CTRL-F
2) Clear the textfield
3) Hit Cancel
Result:
Nothing happens
Expected:
Dialog gets closed.
Once you have typed something in the textfield again, the Cancel button works again
Comment 1•24 years ago
|
||
2001100203 trunk, Windows 98. Seeing the same behavior.
Assignee | ||
Comment 2•24 years ago
|
||
linux/20011003
Seing this exact behaviour.
Comment 3•24 years ago
|
||
(reminder: bugs don't get fixed in Browser-General and definitely not when
assigned to me).
-->XP Apps
Assignee: asa → blakeross
Component: Browser-General → XP Apps: GUI Features
QA Contact: doronr → sairuh
Comment 4•24 years ago
|
||
regression, all platforms.
->joe? reassign if you're unable to fix soon. thx!
Assignee: blakeross → hewitt
Keywords: mozilla0.9.5,
regression
OS: Windows 2000 → All
Hardware: PC → All
Comment 5•24 years ago
|
||
*** Bug 104106 has been marked as a duplicate of this bug. ***
![]() |
||
Comment 7•24 years ago
|
||
*** Bug 104709 has been marked as a duplicate of this bug. ***
*** Bug 104751 has been marked as a duplicate of this bug. ***
Comment 9•24 years ago
|
||
*** Bug 104771 has been marked as a duplicate of this bug. ***
Comment 10•24 years ago
|
||
*** Bug 104782 has been marked as a duplicate of this bug. ***
Comment 11•24 years ago
|
||
I see this also with the File Bookmark dialog. If you clear out the Location
field, Cancel stops functioning. Looking at both of these behaviors, this may
be a general bug with dialogs and not specific to Find. It appears that if the
default button (Find for the Find dialog, OK for the File Bookmark dialog) is
disabled then the Cancel button stops working.
Cancel works in both the Text Zoom and Change Master Password dialogs when OK is
disabled, but both of these are <window>s. Both findDialog.xul and
addBookmark.xul use <dialog>. As hinted in the summary of bug 104782, this bug
seems to surface only for <dialog>s.
Assignee | ||
Comment 12•24 years ago
|
||
Assignee | ||
Comment 13•24 years ago
|
||
This patch fixes the Find dialog aswell as all the other dialogs such as the
File Bookmark dialog. There just happened to be some code that stopped cancel
being pushed if it the OK button was disabled. I put the cancel window.close()
code outside the disabled OK/Find button checking code.
Comment 14•24 years ago
|
||
Comment on attachment 53549 [details] [diff] [review]
patch to fix
>+ if (aDlgType == "cancel") {
>+ window.setTimeout(function() {window.close();}, 1);
>+ }
>+
/*perhaps*/
else
>+ if (aDlgType == "accept") {
/*\perhaps*/
> var button = this.getButton("accept");
> if (!button.disabled) {
> var noCancel = this._fireButtonEvent(aDlgType);
>
> if (noCancel) {
>- if (aDlgType == "accept" || aDlgType == "cancel") {
> // calling window.close() while an oncommand event
> // call is on the stack fails to close the window,
> // so we need to do this ugly setTimeout hack
Assignee | ||
Comment 15•24 years ago
|
||
Updated•24 years ago
|
Comment 16•24 years ago
|
||
Also in this situation the dialog can't be dismissed <Esc> key.
Assignee | ||
Comment 17•24 years ago
|
||
The patch fixes it.
Comment 18•24 years ago
|
||
0.9.5 is out...could this be r/sr'd for checkin into the trunk? thx!
Keywords: mozilla0.9.5 → mozilla0.9.6
Comment 19•24 years ago
|
||
Lets not remove this line:
- if (aDlgType == "accept" || aDlgType == "cancel") {
Because otherwise clicking Help will cause the window to close.
Just make the one line change at the top of the patch:
- var button = this.getButton("accept");
+ var button = this.getButton(aDlgType);
sr=hewitt for that change only
Status: NEW → ASSIGNED
Target Milestone: --- → mozilla0.9.6
Assignee | ||
Comment 20•24 years ago
|
||
Comment 21•24 years ago
|
||
Comment on attachment 53855 [details] [diff] [review]
final patch
sr=hewitt
Attachment #53855 -
Flags: superreview+
Comment 24•24 years ago
|
||
checked in
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
![]() |
||
Comment 25•24 years ago
|
||
*** Bug 105967 has been marked as a duplicate of this bug. ***
Comment 26•24 years ago
|
||
verifying that clicking cancel button now closes the Find dialog on Linux.
Testing w/current CVS.
Comment 27•24 years ago
|
||
*** Bug 106395 has been marked as a duplicate of this bug. ***
Comment 29•24 years ago
|
||
*** Bug 106688 has been marked as a duplicate of this bug. ***
Updated•21 years ago
|
Product: Core → Mozilla Application Suite
You need to log in
before you can comment on or make changes to this bug.
Description
•