Closed
Bug 660882
Opened 13 years ago
Closed 13 years ago
search window does not allow to open message from result list [currentHeaderData is not defined]
Categories
(SeaMonkey :: MailNews: Message Display, defect)
SeaMonkey
MailNews: Message Display
Tracking
(seamonkey2.2 fixed, seamonkey2.3 fixed)
RESOLVED
FIXED
seamonkey2.4
People
(Reporter: prof, Assigned: InvisibleSmiley)
References
Details
(Keywords: regression)
Attachments
(1 file)
(deleted),
patch
|
mnyromyr
:
review+
neil
:
superreview+
Callek
:
approval-comm-aurora+
Callek
:
approval-comm-beta+
Callek
:
approval-seamonkey2.1-
|
Details | Diff | Splinter Review |
When performing a search via the search window (Tools -> Search Messages) it's impossible to open a message by double-clicking or selcting it and hitting the open button.
The error-message in the error-console differs:
Double click:
Fehler: currentHeaderData is not defined
Quelldatei: chrome://messenger/content/mailWindowOverlay.js
Zeile: 546
Open button:
Fehler: An error occurred executing the cmd_open command: [Exception... "'[JavaScript Error: "currentHeaderData is not defined" {file: "chrome://messenger/content/mailWindowOverlay.js" line: 546}]' when calling method: [nsIController::doCommand]" nsresult: "0x80570021 (NS_ERROR_XPC_JAVASCRIPT_ERROR_WITH_DETAILS)" location: "JS frame :: chrome://global/content/globalOverlay.js :: goDoCommand :: line 96" data: yes]
Quelldatei: chrome://global/content/globalOverlay.js
Zeile: 100
Confirmed for SM2.1RC and SM2.2pre
Assignee | ||
Comment 1•13 years ago
|
||
Reproducible with IMAP, POP3 and Local Folders, but not with News & Blogs.
Hmm, currentHeaderData is defined in/filled by msgHdrViewOverlay.js which is included by msgHdrViewOverlay.xul, which is included by mailWindowOverlay.xul.
I smell a "single message window"-only breakage.
I just hope I didn't regress this through fixing bug 637835.
Keywords: regression,
regressionwindow-wanted
Summary: search window does not allow to open message from result list → search window does not allow to open message from result list [currentHeaderData is not defined]
Assignee | ||
Comment 2•13 years ago
|
||
The fact that it works (only) for feeds is that this breaks in function IsFeedItem (mailWindowOverlay.js) which returns early if the account is an RSS one.
Assignee | ||
Comment 3•13 years ago
|
||
Bah, last known good 2011-05-07, first bad 2011-05-08 -> probably bug 637835. :-(
Keywords: regressionwindow-wanted
Assignee | ||
Comment 4•13 years ago
|
||
OK, so it really was bug 637835 that regressed this:
GetFirstSelectedMessage (msgMail3PaneWindow.js), called from IsFeedItem (mailWindowOverlay.js), used to return null (from the catch, because gDBView was null so gDBView.URIForFirstSelectedMessage could not be accessed) so the currentHeaderData check in IsFeedItem was never reached.
Since the renaming of gSearchView to gDBView in bug 637835, gDBView is now defined, so GetFirstSelectedMessage now returns gDBView.URIForFirstSelectedMessage and the rest of IsFeedItem is checked.
In short, the IsFeedItem code contains a non-obvious assumption that if there is gDBView, there is currentHeaderData. This is bad.
The patch I'll attach in a minute gets rid of that code and the assumption.
Assignee | ||
Comment 5•13 years ago
|
||
Assignee: nobody → jh
Status: NEW → ASSIGNED
Attachment #536403 -
Flags: superreview?(neil)
Attachment #536403 -
Flags: review?(mnyromyr)
Assignee | ||
Comment 6•13 years ago
|
||
Adding relnote keyword for now; if this doesn't make 2.1 final, then surely the first minor release (the patch applies against both comm-central and comm-2.0).
Keywords: relnote
Comment 7•13 years ago
|
||
Comment on attachment 536403 [details] [diff] [review]
patch [Checkin: comment 11]
>- 'content-base' in currentHeaderData));
Presumably this is a port of the relevant parts of bug 474701 (in particular I notice comments 154-156 cover this issue.)
Attachment #536403 -
Flags: superreview?(neil) → superreview+
Assignee | ||
Comment 8•13 years ago
|
||
Comment on attachment 536403 [details] [diff] [review]
patch [Checkin: comment 11]
Karsten: ping for review (has sr=Neil)
Comment 9•13 years ago
|
||
Comment on attachment 536403 [details] [diff] [review]
patch [Checkin: comment 11]
>- if (IsFeedItem() && GetFeedOpenHandler() == 2) {
>+ if (gFolderDisplay.selectedMessageIsFeed && GetFeedOpenHandler() == 2) {
Please fix the { position, while you're at it.
Attachment #536403 -
Flags: review?(mnyromyr) → review+
Assignee | ||
Comment 10•13 years ago
|
||
Comment on attachment 536403 [details] [diff] [review]
patch [Checkin: comment 11]
This is a bad regression (included in 2.1 final) which we should fix for any affected branch that has the potential to ship after 2.1 final.
I take it that the uplift to comm-beta has not happened yet. If I'm wrong, please understand this as requesting permission to land on comm-beta, too.
Attachment #536403 -
Flags: approval-seamonkey2.1?
Attachment #536403 -
Flags: approval-comm-aurora?
Assignee | ||
Comment 11•13 years ago
|
||
Comment on attachment 536403 [details] [diff] [review]
patch [Checkin: comment 11]
http://hg.mozilla.org/comm-central/rev/aeae283c99ef
Attachment #536403 -
Attachment description: patch → patch [Checkin: comment 11]
Assignee | ||
Updated•13 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Comment 12•13 years ago
|
||
Comment on attachment 536403 [details] [diff] [review]
patch [Checkin: comment 11]
We did uplift to comm-beta already.
Attachment #536403 -
Flags: approval-seamonkey2.1?
Attachment #536403 -
Flags: approval-seamonkey2.1-
Attachment #536403 -
Flags: approval-comm-beta+
Attachment #536403 -
Flags: approval-comm-aurora?
Attachment #536403 -
Flags: approval-comm-aurora+
Assignee | ||
Comment 13•13 years ago
|
||
http://hg.mozilla.org/releases/comm-aurora/rev/f0c67fd1c114
http://hg.mozilla.org/releases/comm-beta/rev/e82715ab3680
Target Milestone: --- → seamonkey2.2
Comment 16•13 years ago
|
||
Is the "Target Milestone: seamonkey2.2" true? We have to wait all of the way for 2.2 to get this one fixed? Or could it be snuck into the first security fix for the 2.1 series?
Comment 17•13 years ago
|
||
(In reply to comment #16)
> Is the "Target Milestone: seamonkey2.2" true? We have to wait all of the way
> for 2.2 to get this one fixed? Or could it be snuck into the first security
> fix for the 2.1 series?
2.2 is the first security fix for 2.1 and is expected out in the next few weeks.
Comment 21•13 years ago
|
||
I just received 2.2 via UbuntuZilla this evening. Confirmed fixed with the official Linux build of 2.2. Thanks!
Comment 22•13 years ago
|
||
From: http://forums.mozillazine.org/viewtopic.php?p=11021099#p11021099
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++I have recently upgraded to SM 2.2. This bug is only PARTIALLY fixed. While it is now possible to open a particular message in the message search results by double clicking a given message, after ONE message window is opened, if ANOTHER message in the search results is double clicked WHILE the existing opened message window is STILL open, then the subsequent messages double clicked will FAIL to display in the already opened message window - the FIRST message will remain displayed, even though it's obvious that the opened message window refreshes. The only workaround at this moment in SM 2.2 is to always close the e-mail window opened on the message double clicked, then double click another e-mail. This is not the correct display action in a properly working SM mail client mail search window. I can't believe they did not check something as simple as this. If there's anyone that can re-update the status of this bug entry, it would be appreciated. Thank you.
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comment 23•13 years ago
|
||
It's really true, that only one message can be opened/displayed during an extended search action.
Comment 24•13 years ago
|
||
(In reply to comment #22)
> From: http://forums.mozillazine.org/viewtopic.php?p=11021099#p11021099
>
> +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++I have
> recently upgraded to SM 2.2. This bug is only PARTIALLY fixed. While it is
> now possible to open a particular message in the message search results by
> double clicking a given message, after ONE message window is opened, if
> ANOTHER message in the search results is double clicked WHILE the existing
> opened message window is STILL open, then the subsequent messages double
> clicked will FAIL to display in the already opened message window - the
> FIRST message will remain displayed, even though it's obvious that the
> opened message window refreshes. The only workaround at this moment in SM
> 2.2 is to always close the e-mail window opened on the message double
> clicked, then double click another e-mail. This is not the correct display
> action in a properly working SM mail client mail search window. I can't
> believe they did not check something as simple as this. If there's anyone
> that can re-update the status of this bug entry, it would be appreciated.
> Thank you.
> +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
There was another workaround: click on the button at the bottom "Open Message Folder" the chosen message is highlighted and can be opened.
Assignee | ||
Comment 25•13 years ago
|
||
The actual workaround is to set mailnews.reuse_message_window to false.
Assignee | ||
Comment 26•13 years ago
|
||
(In reply to comment #22)
> From: http://forums.mozillazine.org/viewtopic.php?p=11021099#p11021099
Thanks for the info, moved to bug 671605.
Updated•13 years ago
|
status-seamonkey2.2:
--- → fixed
status-seamonkey2.3:
--- → fixed
Target Milestone: seamonkey2.2 → seamonkey2.4
You need to log in
before you can comment on or make changes to this bug.
Description
•