Closed
Bug 266368
Opened 20 years ago
Closed 19 years ago
Find bar is disabled when closed with "match case" focused
Categories
(Toolkit :: Find Toolbar, defect, P2)
Toolkit
Find Toolbar
Tracking
()
RESOLVED
FIXED
mozilla1.8final
People
(Reporter: mikeclackler, Assigned: asaf)
Details
(Whiteboard: [1.8 Branch ETA 8/9])
Attachments
(1 file, 1 obsolete file)
|
1.70 KB,
patch
|
mconnor
:
review+
cbeard
:
approval1.8b4+
|
Details | Diff | Splinter Review |
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.3) Gecko/20041027 Firefox/1.0RC1 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.3) Gecko/20041027 Firefox/1.0RC1 If the "Match case" option on the find bar has the focus when the bar closes, the bar can not be opened using FAYT, /, or '. Reproducible: Always Steps to Reproduce: 1. Open the Find Bar 2. Select "Match case" 3. Close the find bar (esc or click "x") *** IMPORTANT *** Do not click anywhere after selecting "Match case" which would change the focus from "Match case" (with the posible exception of closing the bar). 4. Try and open the find bar using FAYT, /, or ' Actual Results: The find bar does not open Expected Results: The find bar should open Since "match case" is still focused, the shouldFastFind function disables the keyboard inputs from opening the find bar. There is some code in the closeFindBar function which removes the focus from the findField when the bar closes to prevent this problem from hapening with the findbar text box, but it does not remove the focus from the "match case" option. Note: If you click anywhere on the page to change the focus from "match case", the find bar will again open.
Comment 1•20 years ago
|
||
Confirmed (Firefox 1.0). In fact it can't be opened with ctrl-f either. You need to change focus to something else (e.g. click within the main window) to get it back again.
| Reporter | ||
Comment 2•20 years ago
|
||
Patch to fix the problem. This clears the focus on the toolbar "match case" option when the toolbar closes in the same manner the code cleared the focus on the find bar text field.
| Reporter | ||
Comment 3•20 years ago
|
||
requesting blocking-aviary1.1 since functionality is lost and patch exists
Flags: blocking-aviary1.1?
Updated•20 years ago
|
Attachment #170629 -
Flags: review?(mconnor)
Comment 4•20 years ago
|
||
Comment on attachment 170629 [details] [diff] [review] patch to clear match case focus on toolbar close >+ var elt = document.commandDispatcher.focusedElement; >+ if (elt) { >+ var eltParent = elt.parentNode; >+ if (window == ww.activeWindow && >+ ((eltParent.parentNode == findField) || (eltParent == findToolbar))) the extra parens are bogus here, and we don't really need the extra var. Just use elt.parentNode directly. (elt.parentNode.parentNode == findField || elt.parentNode == findToolbar) >+ _content.focus(); content.focus() here, please (_content was deprecated a while back, this should have been fixed in that change but wasn't).
Attachment #170629 -
Flags: review?(mconnor) → review-
I can confirm this behavior so Changing Status to 'New' and also based on mconnor reviewing the patch...guess he acknowledges the bug is present.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Comment 6•19 years ago
|
||
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b2) Gecko/20050621 Firefox/1.0+ ID:2005062113 I can still reproduce this (before changing match case you need to actually try searching for something) Looking at : http://lxr.mozilla.org/mozilla/source/toolkit/components/typeaheadfind/content/findBar.js#324 The function closeFindBar() appears to have been completly changed so a new solution is required.
Updated•19 years ago
|
Assignee: firefox → mconnor
Flags: blocking-aviary1.1? → blocking1.8b4+
| Assignee | ||
Updated•19 years ago
|
Assignee: mconnor → bugs.mano
OS: Windows XP → All
Priority: -- → P2
Hardware: PC → All
Target Milestone: --- → Firefox1.1
| Assignee | ||
Updated•19 years ago
|
Status: NEW → ASSIGNED
I haven't programmed for three years, so I'd be surprised if this works. But I'll try anyway. Contrary to the comment #6, it seems function delayedCloseFindBar() is now called when closeFindBar() is called. However, only document.commandDispatcher.focusedElement.parentNode.parentNode == findField is checked, again forgetting that an element other than find-field may be focused on FindToolbar. Therefore, line 380 var findToolbar = document.getElementById("FindToolbar"); should be moved to line 370 and line 372 should add a check for an element on FindToolbar being focused, maybe something like && document.commandDispatcher.focusedElement.parentNode.parentNode == FindToolbar but I don't know how many iterations of .parentNode there should be. Sorry for the bugspam. I hope this is more useful than a spam.
| Assignee | ||
Updated•19 years ago
|
Whiteboard: [1.8 Branch ETA 8/9]
| Assignee | ||
Comment 8•19 years ago
|
||
Attachment #192090 -
Flags: review?(mconnor)
| Assignee | ||
Updated•19 years ago
|
Attachment #170629 -
Attachment is obsolete: true
Updated•19 years ago
|
Attachment #192090 -
Flags: review?(mconnor) → review+
| Assignee | ||
Updated•19 years ago
|
Attachment #192090 -
Flags: approval1.8b4?
Updated•19 years ago
|
Attachment #192090 -
Flags: approval1.8b4? → approval1.8b4+
| Assignee | ||
Comment 9•19 years ago
|
||
Checking in findBar.js; /cvsroot/mozilla/toolkit/components/typeaheadfind/content/findBar.js,v <-- findBar.js new revision: 1.21; previous revision: 1.20 done
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Summary: Find Bar disabled when closed with "match case" focus → Find bar is disabled when closed with "match case" focused
Updated•16 years ago
|
Product: Firefox → Toolkit
You need to log in
before you can comment on or make changes to this bug.
Description
•