Last Comment Bug 265478 - When clicking on / away from virtual folders, weird issues with quick search box
: When clicking on / away from virtual folders, weird issues with quick search box
Status: RESOLVED FIXED
: fixed-aviary1.0
Product: Thunderbird
Classification: Client Software
Component: Mail Window Front End (show other bugs)
: unspecified
: x86 Windows 2000
: -- normal (vote)
: Thunderbird0.9
Assigned To: Scott MacGregor
:
:
Mentors:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2004-10-21 11:45 PDT by Scott MacGregor
Modified: 2004-10-22 09:09 PDT (History)
0 users
See Also:
Crash Signature:
(edit)
QA Whiteboard:
Iteration: ---
Points: ---


Attachments
work in progress (3.94 KB, patch)
2004-10-21 15:25 PDT, Scott MacGregor
mozilla: superreview+
Details | Diff | Splinter Review

Description Scott MacGregor 2004-10-21 11:45:05 PDT
Often when I click on a virtual folder I'm noticing us do something strange with
the quick search bar.

If the quick search bar is just showing the greyed criteria text: "Subject or
Sender", then the quick search bar 'forgets' that this is criteria text. The
text shows up with black lettering and is now a searchable text string that
quick search will search on if you were to focus the widget and hit enter.

I'm not sure what the relationship is between opening a virtual folder and using
code in SearchBar.js...
Comment 1 Scott MacGregor 2004-10-21 15:25:16 PDT
Created attachment 162915 [details] [diff] [review]
work in progress

this patch fixes the following scenarios:

1) clicking from a regular folder --> virtual folder that searches one folder,
quick search bar no longer steals focus and clear criteria text.

2) clicking from a regular folder ---> virtual folder that searches multiple
folders, quick search bar now no longer turns the criteria text into black
colored quick search text.

3) clicking from a virtual folder that searches multiple folders --> to a
regular folder, we no longer clear the quick search box and steal focus.

Still broken:

4) Moving focus from a virtual folder that searches one folder to a regular
folder. we are still clearing the quick search bar of its criteria text and
putting focus in the text box. I'm stumped as to what code is doing this.
Nothing in searchbar.js is geting called.
Comment 2 Scott MacGregor 2004-10-21 15:47:22 PDT
interesting, this last problem isn't virtual folder specific. I can also see if
if I'm reading a non VF folder with a view turned on, then i click on another
non VF folder. That steals focus into the quick search bar too.
Comment 3 Scott MacGregor 2004-10-21 15:56:44 PDT
Comment on attachment 162915 [details] [diff] [review]
work in progress

the last remaining issue has me stumped. But I won't hold up the rest of the
fix for it.
Comment 4 Scott MacGregor 2004-10-21 15:58:24 PDT
i added a dump by accident that I'll be taking out before i check in
Comment 5 Scott MacGregor 2004-10-21 16:07:36 PDT
fixed branch and trunk

Note You need to log in before you can comment on or make changes to this bug.