Closed
Bug 518753
Opened 15 years ago
Closed 15 years ago
Search bar doesn't remember setting in new windows
Categories
(Thunderbird :: Search, defect, P3)
Thunderbird
Search
Tracking
(Not tracked)
RESOLVED
FIXED
Thunderbird 3.0rc1
People
(Reporter: bzbarsky, Assigned: rain1)
References
Details
(Whiteboard: [no l10n impact])
Attachments
(1 file, 1 obsolete file)
(deleted),
patch
|
Bienvenu
:
review+
|
Details | Diff | Splinter Review |
BUILD: 2009-09-17 Shredder build
STEPS TO REPRODUCE:
1) Select some mail folder.
2) Click on the little arrow at the left edge of the search bar (the one in the
top-right hand corner of the mailnews window).
3) Select "Subject or From filter"
4) Context-click (right-click, or ctrl-click on Mac) on the currently selected
folder.
5) Select "Open"
6) In the new window, look at the text in the search bar
7) In the new window, click on the little arrow as in step 2
EXPECTED RESULTS: After step 6, the search bar says "Subject or From filter". After step 7, the selected option in the dropdown is "Subject or From filter".
ACTUAL RESULTS: After step 6, the search bar says "Search everywhere". After step 7, the selected option in the dropdown is "Search everywhere".
Comment 1•15 years ago
|
||
Confirmed. Note that this also requires step 0: configure in Settings/Advanced/Reading Display -> Open messages in a new window
Updated•15 years ago
|
Flags: blocking-thunderbird3?
Reporter | ||
Comment 2•15 years ago
|
||
I don't have that set, in fact. Mine's set to open in a new tab. Note that the "open" I'm selecting in step 5 is for the _folder_ (in the folder pane), not for any message in that folder.
Comment 3•15 years ago
|
||
Ah, both good points. The root cause is the same -- the search widget picks up as a default the current view when creating a new tab, but for new windows, it picks up the global default.
Updated•15 years ago
|
Assignee: nobody → david.ascher
Flags: blocking-thunderbird3? → blocking-thunderbird3+
Target Milestone: --- → Thunderbird 3.0rc1
Updated•15 years ago
|
Whiteboard: [no l10n impact]
Comment 4•15 years ago
|
||
This is actually fairly messy, as it deals w/ persistence across 3-pane windows, which is broken for this feature, for sure, but likely for others as well. I've spent a couple of hours on it w/ no successful outcome so far.
Things to note whenever someone gets to this:
The key decision point is openFirstTab in tabmail.xml, which somehow needs to know for first-tabs-in-new-3pane windows, what searchmode it should be using. I've been poking at the idea that it should look at the current search mode of the topmost 3-pane window, and have a patch that kinda does that, but it fails randomly because the tab persistence code seems to somehow get involved, probably because we don't have session-restore, we just have "restoring N tabs for 1 3-pane window".
I suspect we'll have to live w/ this for 3.0.
Comment 5•15 years ago
|
||
One aside: I was actually surprised when "Open" on the context menu in the folder pane actually opened in a new window. I'm actually thinking that there's a bug there which is that Open should use the preference of tabs vs. windows, not always open a window. That would diminish the incidence of this bug, although obviously not solve it for people who want the multi-window behavior.
Updated•15 years ago
|
Assignee: david.ascher → nobody
Comment 6•15 years ago
|
||
Sid0 mentioned that he'd be up for working on some blockers starting on Thurs Oct 15 or so. I'm hoping this would be a good choice...
Assignee: nobody → sid.bugzilla
Comment 7•15 years ago
|
||
Can reproduce STR in comment #0 with the same result of Boris.
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.5pre) Gecko/20091018 Lightning/1.0pre Shredder/3.0pre ID:20091018031417
Changed OS related
OS: Mac OS X → All
Updated•15 years ago
|
Priority: -- → P3
Hardware: x86 → All
Assignee | ||
Updated•15 years ago
|
Whiteboard: [no l10n impact] → [no l10n impact][working on a patch]
Assignee | ||
Comment 9•15 years ago
|
||
This seems to work.
Assignee | ||
Comment 10•15 years ago
|
||
I've tried to tread lightly to avoid the stuff we've had to fix previously with removed search bars. Please r- if this needs more tests.
Attachment #410617 -
Attachment is obsolete: true
Attachment #410658 -
Flags: review?(bienvenu)
Assignee | ||
Updated•15 years ago
|
Whiteboard: [no l10n impact][working on a patch] → [no l10n impact][has patch + tests][needs review bienvenu]
Comment 11•15 years ago
|
||
Comment on attachment 410658 [details] [diff] [review]
patch, v1
looks good, sid, and certainly better than what we have now.
Attachment #410658 -
Flags: review?(bienvenu) → review+
Updated•15 years ago
|
Whiteboard: [no l10n impact][has patch + tests][needs review bienvenu] → [no l10n impact][has patch + tests]
Updated•15 years ago
|
Whiteboard: [no l10n impact][has patch + tests] → [no l10n impact][has patch, reviews, needs checkin sid0]
Assignee | ||
Comment 12•15 years ago
|
||
http://hg.mozilla.org/comm-central/rev/be02a29bf00d
http://hg.mozilla.org/releases/comm-1.9.1/rev/2d005532a15d
Status: NEW → RESOLVED
Closed: 15 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Whiteboard: [no l10n impact][has patch, reviews, needs checkin sid0] → [no l10n impact]
Assignee | ||
Comment 13•15 years ago
|
||
Turns out getZOrderDOMWindowEnumerator doesn't work on Linux (bug 156333), so I've switched to getEnumerator instead. I don't think it matters too much, because the case where a new 3pane window is opened and the opener isn't an old one doesn't happen too often.
http://hg.mozilla.org/comm-central/rev/266904e7f07f
http://hg.mozilla.org/releases/comm-1.9.1/rev/a85e8dd72aa1
You need to log in
before you can comment on or make changes to this bug.
Description
•