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)
Tracking
(Not tracked)
VERIFIED
FIXED
People
(Reporter: tuukka.tolvanen, Assigned: naving)
References
Details
(Keywords: regression)
Attachments
(3 files, 1 obsolete file)
|
1.01 KB,
patch
|
Details | Diff | Splinter Review | |
|
1.83 KB,
patch
|
naving
:
review+
Bienvenu
:
superreview+
roc
:
approval+
|
Details | Diff | Splinter Review |
|
801 bytes,
patch
|
naving
:
review+
Bienvenu
:
superreview+
asa
:
approval+
|
Details | Diff | Splinter Review |
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
| Reporter | ||
Comment 1•23 years ago
|
||
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.
| Reporter | ||
Comment 2•23 years ago
|
||
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.
| Reporter | ||
Comment 3•23 years ago
|
||
| Reporter | ||
Comment 4•23 years ago
|
||
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.
Comment 6•23 years ago
|
||
bug 59638 seems to be a wfm for several people (including myself),
but comes back to live with this patch applied.
| Reporter | ||
Comment 7•23 years ago
|
||
perhaps 59638 works right because of ClearMessage() apparently having gotten
somehow broken at some point then...
| Reporter | ||
Comment 8•23 years ago
|
||
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
| Reporter | ||
Updated•23 years ago
|
Attachment #90883 -
Attachment description: patch v2 → patch v2 incl 59638
Attachment #90883 -
Attachment is obsolete: true
| Reporter | ||
Comment 9•23 years ago
|
||
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.
Comment 10•23 years ago
|
||
Seeing this on Win98SE so OS should be changed to ALL
| Assignee | ||
Comment 11•23 years ago
|
||
your patch looks good to me. I applied it and it worksforme. thx.
| Assignee | ||
Comment 12•23 years ago
|
||
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+
| Assignee | ||
Comment 13•23 years ago
|
||
cc bienvenu for sr
Comment 14•23 years ago
|
||
Comment on attachment 90893 [details] [diff] [review]
patch v2.1 incl 59638
sr=bienvenu
Attachment #90893 -
Flags: superreview+
| Reporter | ||
Comment 15•23 years ago
|
||
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+
| Assignee | ||
Comment 17•23 years ago
|
||
fix checked on trunk. tuukka, thx for the patch. From laurel's comment not
needed on branch.
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Comment 18•23 years ago
|
||
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 → ---
Comment 19•23 years ago
|
||
Updated•23 years ago
|
| Assignee | ||
Updated•23 years ago
|
Attachment #91419 -
Flags: review+
| Assignee | ||
Comment 20•23 years ago
|
||
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 21•23 years ago
|
||
Comment on attachment 91419 [details] [diff] [review]
Patch to fix message pane regressions
sr=bienvenu, thx.
Attachment #91419 -
Flags: superreview+
Comment 22•23 years ago
|
||
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 23•23 years ago
|
||
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+
Comment 24•23 years ago
|
||
Fix was checked in by timeless.
Status: REOPENED → RESOLVED
Closed: 23 years ago → 23 years ago
Resolution: --- → FIXED
| Reporter | ||
Comment 25•23 years ago
|
||
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 :)
Comment 26•23 years ago
|
||
OK using aug 29 commercial trunk build: win98, linux rh6.2, mac OS 10.1
Status: RESOLVED → VERIFIED
Updated•20 years ago
|
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.
Description
•