Closed Bug 156368 Opened 23 years ago Closed 23 years ago

quicksearch fails if focus was in threadpane before search box

Categories

(SeaMonkey :: MailNews: Message Display, defect)

x86
Linux
defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: tuukka.tolvanen, Assigned: naving)

References

Details

(Keywords: regression)

Attachments

(3 files, 1 obsolete file)

linux trunk cvs 2002-07-08 str: 1. select a newsgroup or mail message in threadpane 2. ctrl-shift-tab or click to focus quicksearch bar 3. type some characters results: Message is deselected in threadpane: blurred-selection disappears, message-related mail buttons get disabled. Messages are not filtered. expected: Message stays selected, filter messages in threadpane according to search string. This is a fairly recent regression, two weeks max or so bonus level: 4. hit backspace -> quicksearch happens. Reproducible: Always
Error: window.frames.messagepane has no properties Source File: chrome://messenger/content/msgMail3PaneWindow.js Line: 874 only on first pause in typing into qs box after moving focus from thread pane.
gMessagePaneFrame = top.frames['messagepane']; in function GetMessagePaneFrame() throws js strict warnings: Warning: reference to undefined property top.frames.messagepane Source File: chrome://messenger/content/msgMail3PaneWindow.js Line: 787 also line 878 in the same file and line 452 in mailWindow.js give the warning. Patch changes line 787 in GetMessagePaneFrame() to mimic GetMessagePane(): - gMessagePaneFrame = document.getElementById("messagepane"); + gMessagePaneFrame = document.getElementById("messagepane"); so GetMessagePaneFrame() works; and lines 874-875: - if (GetMessagePaneFrame().currentURI != "about:blank") - GetMessagePaneFrame().loadURI("about:blank"); + if (GetMessagePaneFrame().currentURI != "about:blank") + GetMessagePaneFrame().loadURI("about:blank"); so ClearMessagePane() uses that.
Keywords: patch, review
Attached patch patchSplinter Review
er, s/878/874/ in comment 2, and the GetMessagePaneFrame().currentURI|loadUri bits were window.frames["messagepane"].location, I'll have to learn to copypaste right sometime :|
Just for clarification: trunk only, not regressed on commercial branch.
bug 59638 seems to be a wfm for several people (including myself), but comes back to live with this patch applied.
perhaps 59638 works right because of ClearMessage() apparently having gotten somehow broken at some point then...
Blocks: 156556
Attached patch patch v2 incl 59638 (obsolete) — Splinter Review
The previous patch fixes bug 156556 (another symptom of ClearMessagePane() not working) as well. This version also fixes bug 59638 that was "fixed" as a symptom of same, and "regressed" as such by the previous patch version. I moved the ClearMessagePane call up in FolderPaneSelectionChange, so now the message pane is cleared when the folder changing begins, instead of after the folder change when the message pane has possibly been updated with a message. In the original code the ClearMessagePane call would not have been done if (gAccountCentralLoaded || gFakeAccountPageLoaded), but that would at least theoretically lead to a race where 1) select a message 2) select an account 3) select a folder at step 3 the message pane is displayed before being cleared, so the message might flash. I actually saw that happen, like, twice, ever. :) If this looks right, please review this and obsolete attacment 90601, thanks
Attachment #90883 - Attachment description: patch v2 → patch v2 incl 59638
Attachment #90883 - Attachment is obsolete: true
Whoops. Missed the return statement in the middle of FolderPaneSelectionChange, which makes it not do stuff on dismissing a context menu on a not-current folder/account, at least... Patch v2 did clear msg pane in this case. Moved the ClearMessagePane call to right before ChangeFolderByURI so the msg pane is cleared only when the folder pane selection is _really_ going to be changed.
Seeing this on Win98SE so OS should be changed to ALL
your patch looks good to me. I applied it and it worksforme. thx.
Comment on attachment 90893 [details] [diff] [review] patch v2.1 incl 59638 r=naving if you want I can check it in for you.
Attachment #90893 - Flags: review+
cc bienvenu for sr
Comment on attachment 90893 [details] [diff] [review] patch v2.1 incl 59638 sr=bienvenu
Attachment #90893 - Flags: superreview+
yes naving pls checkin for me after a=. I mailed drivers for trunk approval.
Comment on attachment 90893 [details] [diff] [review] patch v2.1 incl 59638 a=roc+moz for TRUNK
Attachment #90893 - Flags: approval+
fix checked on trunk. tuukka, thx for the patch. From laurel's comment not needed on branch.
Status: NEW → RESOLVED
Closed: 23 years ago
Keywords: patch, reviewregression
Resolution: --- → FIXED
Somthing, possibly this patch, but possibly not, has caused two regressions: 1. Clicking in the message pane doesn't show the focus ring 2. Can't use the keyboard to scroll the message pane after Ctrl+Tab
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Keywords: patch, review
Attachment #91419 - Flags: review+
Comment on attachment 91419 [details] [diff] [review] Patch to fix message pane regressions r=naving. Have you checked it doesn't cause anything else, unexpected ? Please test because we don't want to break it again before shipping
Comment on attachment 91419 [details] [diff] [review] Patch to fix message pane regressions sr=bienvenu, thx.
Attachment #91419 - Flags: superreview+
Yes, I have tested this, I have not seen any other problems caused by my patch. Older versions of Mozilla returned an [object Window] from GetMessagePaneFrame() as does my patch whereas Tuukka's patch returned an [object XULElement].
Comment on attachment 91419 [details] [diff] [review] Patch to fix message pane regressions a=asa (on behalf of drivers) for checkin to 1.1
Attachment #91419 - Flags: approval+
Fix was checked in by timeless.
Status: REOPENED → RESOLVED
Closed: 23 years ago23 years ago
Resolution: --- → FIXED
For the record, re comment 18, no, my patch (2002-07-12) didn't cause those regressions, I suppose they appeared ~2002-07-09 along with bug 156556 (which my patch fixed) and bug 156447 (which Neil's patch fixed). It was a sloppy fix though (I didn't properly check the callers of GetMessagePaneFrame() were getting what they expected), thanks for cleaning up :)
OK using aug 29 commercial trunk build: win98, linux rh6.2, mac OS 10.1
Status: RESOLVED → VERIFIED
Product: Browser → Seamonkey
Component: MailNews: Search → MailNews: Message Display
QA Contact: laurel → search
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: