Closed
Bug 501516
Opened 16 years ago
Closed 16 years ago
right click folder -> search causes the search to be in the displayed folder, not the selected one
Categories
(Thunderbird :: Folder and Message Lists, defect)
Thunderbird
Folder and Message Lists
Tracking
(Not tracked)
RESOLVED
FIXED
Thunderbird 3.0b4
People
(Reporter: rain1, Assigned: rain1)
References
Details
(Keywords: regression)
Attachments
(1 file, 2 obsolete files)
|
23.24 KB,
patch
|
Bienvenu
:
review+
asuth
:
review+
clarkbw
:
ui-review+
|
Details | Diff | Splinter Review |
We use gFolderDisplay.displayedFolder at <http://mxr.mozilla.org/comm-central/source/mail/base/content/mailWindowOverlay.js?rev=520d3adf13f9#3381>, which doesn't work out for the context menu.
| Assignee | ||
Updated•16 years ago
|
Summary: right click folder -> search selects displayed folder, not selected one → right click folder -> search causes the search to be in the displayed folder, not selected one
| Assignee | ||
Updated•16 years ago
|
Summary: right click folder -> search causes the search to be in the displayed folder, not selected one → right click folder -> search causes the search to be in the displayed folder, not the selected one
Updated•16 years ago
|
Flags: blocking-thunderbird3+
Target Milestone: --- → Thunderbird 3.0b4
| Assignee | ||
Comment 1•16 years ago
|
||
Assignee: nobody → sid.bugzilla
Status: NEW → ASSIGNED
| Assignee | ||
Comment 2•16 years ago
|
||
Per discussion with Bryan, this includes a fix for multiple search windows as well.
Attachment #394406 -
Attachment is obsolete: true
| Assignee | ||
Updated•16 years ago
|
Attachment #394649 -
Flags: ui-review?(clarkbw)
Attachment #394649 -
Flags: review?(bugmail)
Attachment #394649 -
Flags: review?(bienvenu)
| Assignee | ||
Comment 3•16 years ago
|
||
Comment on attachment 394649 [details] [diff] [review]
patch, v1
asking r? bienvenu for the fix, asuth for tests, and clarkbw for the UX.
Bryan, please ui-r- if this doesn't work well.
| Assignee | ||
Updated•16 years ago
|
Whiteboard: [needs review asuth][needs review bienvenu][needs ui-review clarkbw]
| Assignee | ||
Comment 4•16 years ago
|
||
Try builds:
Linux: http://s3.mozillamessaging.com/build/try-server/2009-08-15_07:01-sid.bugzilla@gmail.com-501516-right-click-search/sid.bugzilla@gmail.com-501516-right-click-search-mail-try-linux.tar.bz2
Mac: http://s3.mozillamessaging.com/build/try-server/2009-08-15_07:01-sid.bugzilla@gmail.com-501516-right-click-search/sid.bugzilla@gmail.com-501516-right-click-search-mail-try-mac.dmg
Windows coming up.
Comment 5•16 years ago
|
||
Comment on attachment 394649 [details] [diff] [review]
patch, v1
> <menuitem id="folderPaneContext-searchMessages"
> label="&folderContextSearchMessages.label;"
> accesskey="&folderContextSearchMessages.accesskey;"
>- command="cmd_search"/>
>+ oncommand="gFolderTreeController.searchMessages();"/>
This looks wrong.
| Assignee | ||
Comment 6•16 years ago
|
||
(In reply to comment #5)
> (From update of attachment 394649 [details] [diff] [review])
> > <menuitem id="folderPaneContext-searchMessages"
> > label="&folderContextSearchMessages.label;"
> > accesskey="&folderContextSearchMessages.accesskey;"
> >- command="cmd_search"/>
> >+ oncommand="gFolderTreeController.searchMessages();"/>
>
> This looks wrong.
Why? The way I've done is is that the default for MsgSearchMessages() (accel-shift-F or anything else that triggers the cmd_search command) should be the displayed folder, while the default for gFolderTreeController.searchMessages() should be the selected one. This was the best way I could find to express this logic.
| Assignee | ||
Comment 7•16 years ago
|
||
Windows zip: http://s3.mozillamessaging.com/build/try-server/2009-08-15_07:01-sid.bugzilla@gmail.com-501516-right-click-search/sid.bugzilla@gmail.com-501516-right-click-search-mail-try-win32.zip
Windows installer: http://s3.mozillamessaging.com/build/try-server/2009-08-15_07:01-sid.bugzilla@gmail.com-501516-right-click-search/sid.bugzilla@gmail.com-501516-right-click-search-mail-try-win32.installer.exe
Comment 8•16 years ago
|
||
Yeah looks good on a second look :)
Should probably add a check for canSearchmessages to the context menu setup code though. (Not that that was done earlier either.)
Comment 9•16 years ago
|
||
The patch seems to fix the bug for me, but the mozmill test fails. I'm leery now about my mozmill setup, but the other tests you changed seem to work fine. When I run this test, I don't see the folder list expanded, nor does a window open up.
TEST-PASS | setupModule
TEST-UNEXPECTED-FAIL | test_open_search_window_with_nothing_selected
EXCEPTION: Thought we would find row null at 10,0 but we found -1
at: test-folder-display-helpers.js line 620
Error("Thought we would find row null at 10,0 but we found -1") 0
_row_click_helper([object XULElement],null,2) test-folder-display-helpers.js 620
right_click_on_folder([object XPCWrappedNative_NoHelper]) test-folder-display-helpers.js 731
open_search_window_from_context_menu([object XPCWrappedNative_NoHelper]) test-search-window-helpers.js 94
test_open_search_window_with_nothing_selected() test-right-click-to-open-search-window.js 61
frame.js 452
frame.js 504
frame.js 546
frame.js 409
frame.js 557
server.js 164
server.js 168
TEST-UNEXPECTED-FAIL | test_open_search_window_with_existing_single_selection
EXCEPTION: Desired selection is: RightClickToOpenSearchWindowA but actual selection is: tinderbox@invalid.com
at: test-folder-display-helpers.js line 1553
Error("Desired selection is: RightClickToOpenSearchWindowA but actual selection is: tinderbox 0
assert_folders_selected([object XPCWrappedNative_NoHelper]) test-folder-display-helpers.js 1553
assert_folders_selected_and_displayed([object XPCWrappedNative_NoHelper]) test-folder-display-helpers.js 1602
test_open_search_window_with_existing_single_selection() test-right-click-to-open-search-window.js 72
frame.js 452
frame.js 504
frame.js 546
frame.js 409
frame.js 557
server.js 164
server.js 168
TEST-UNEXPECTED-FAIL | test_open_search_window_with_one_thing_selected
EXCEPTION: Desired selection is: RightClickToOpenSearchWindowA but actual selection is: tinderbox@invalid.com
at: test-folder-display-helpers.js line 1553
Error("Desired selection is: RightClickToOpenSearchWindowA but actual selection is: tinderbox 0
assert_folders_selected([object XPCWrappedNative_NoHelper]) test-folder-display-helpers.js 1553
assert_folders_selected_and_displayed([object XPCWrappedNative_NoHelper]) test-folder-display-helpers.js 1602
test_open_search_window_with_one_thing_selected() test-right-click-to-open-search-window.js 85
frame.js 452
frame.js 504
frame.js 546
frame.js 409
frame.js 557
server.js 164
server.js 168
| Assignee | ||
Comment 10•16 years ago
|
||
oops
Attachment #394649 -
Attachment is obsolete: true
Attachment #394909 -
Flags: ui-review?(clarkbw)
Attachment #394909 -
Flags: review?(bugmail)
Attachment #394909 -
Flags: review?(bienvenu)
Attachment #394649 -
Flags: ui-review?(clarkbw)
Attachment #394649 -
Flags: review?(bugmail)
Attachment #394649 -
Flags: review?(bienvenu)
Comment 11•16 years ago
|
||
Comment on attachment 394909 [details] [diff] [review]
patch v1.01
test passes now...
Attachment #394909 -
Flags: review?(bienvenu) → review+
Updated•16 years ago
|
Attachment #394909 -
Flags: review?(bugmail) → review+
Comment 12•16 years ago
|
||
Comment on attachment 394909 [details] [diff] [review]
patch v1.01
fantastic work on the unit tests
Comment 13•16 years ago
|
||
Comment on attachment 394909 [details] [diff] [review]
patch v1.01
sorry for the delay. thanks!
Attachment #394909 -
Flags: ui-review?(clarkbw) → ui-review+
| Assignee | ||
Updated•16 years ago
|
Whiteboard: [needs review asuth][needs review bienvenu][needs ui-review clarkbw] → [needs landing]
| Assignee | ||
Comment 14•16 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Whiteboard: [needs landing]
| Assignee | ||
Comment 15•16 years ago
|
||
(In reply to comment #8)
> Should probably add a check for canSearchmessages to the context menu setup
> code though. (Not that that was done earlier either.)
Filed bug 511060.
Updated•16 years ago
|
Keywords: regression
You need to log in
before you can comment on or make changes to this bug.
Description
•