Closed Bug 48424 Opened 24 years ago Closed 24 years ago

if a message is selected, Double Clicking on column header opens up a stand alone window

Categories

(SeaMonkey :: MailNews: Message Display, defect, P2)

x86
All
defect

Tracking

(Not tracked)

VERIFIED FIXED
mozilla0.8

People

(Reporter: pratikd, Assigned: sspitzer)

References

Details

(Whiteboard: [nsbeta1+])

Attachments

(1 file)

This happens only with Imap accounts. 
Using Build Id: 2000-08-09-08 M18  

Steps to Reproduce:
1) Open Mail
2) Double Click on a column header

Actual: Opens up a stand alone window
Expected: Should sort the column twice
Can you do one click, pause, followed by another click to sort?
I hit this bug even when I clock pause for less than a second and click back
again. I found this bug when I was trying to sort by sender to find a message. 
Keywords: nsbeta3
Target Milestone: --- → M18
mail triage marking nsbeta3+
Priority: P3 → P2
Whiteboard: [nsbeta3+]
Whiteboard: [nsbeta3+] → [nsbeta3+] HAVE FIX
fix checked in.
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
Using Build Id: 2000-08-21-08 M18 on Mac, Linux and NT4.
Verified: Fixed
Status: RESOLVED → VERIFIED
QA Contact: lchiang → pratikd
My fix for this caused worse regressions so I had to back it out.  This bug will 
now exist again.
Status: VERIFIED → REOPENED
Resolution: FIXED → ---
second pass: - per mail triage
Whiteboard: [nsbeta3+] HAVE FIX → [nsbeta3-][cut 8/28]
*** Bug 58306 has been marked as a duplicate of this bug. ***
i take it that the lack of rtm means that this won't get ifxed for N6.  I know
that this isn't data loss, but it sure is annoying.

any chance?  whadddayasay?
sorry, this won't make it for NS6.
reassigning to sspitzer
Assignee: putterman → sspitzer
Status: REOPENED → NEW
Keywords: mail3
*** Bug 59536 has been marked as a duplicate of this bug. ***
QA Contact: pratikd → nbaca
marking nsbeta1+ and moving to mozilla0.8
Keywords: nsbeta3nsbeta1
Whiteboard: [nsbeta3-][cut 8/28] → [nsbeta1+]
Target Milestone: M18 → mozilla0.8
note: this is a frequently seen problem according to DecisionOne (support)
accepting and investigating...
Status: NEW → ASSIGNED
ok, here's what's going on:

in our threadPane.xul, we have an onclick handler for the treecells in the

<tree onclick="foo()">

<treehead>
	<treerow>
			<treecell onclick="bar()"/>
	</treerow>
</treehead>

</tree>

when the user clicks on the column, both foo() and bar() get called.
first bar(), then foo().

I would expect just bar() to be called.  perhaps hyatt can shed some light?

I've got a simple fix to tree's onclick handler to bail out if we double click
on a treehead's treecell.

I'll attach my fix.
updating summary.  if a message wasn't selected, this would not open a a
stand-alone message window.  (we'd get a js error that prevented it.)

here comes my fix, seeking feedback from hyatt about the onclick handlers.

(and a sr= from bienvenu?)
Summary: Double Clicking on column header opens up a stand alone window → if a message is selected, Double Clicking on column header opens up a stand alone window
sr=bienvenu, but feedback from Hyatt would be reassuring :-)
fix checked in, but I'll talk to hyatt before marking this fixed.
The click event will bubble up the tree, so both 'bar()' and 'foo()' should be
called unless you were to cancel the bubbling while in function 'bar()'.
do I cancel the bubbling by returning false?  I'll try that, and if it works
I'll propose a new fix.
Um. Made me go think (and I still don't know if this is optimal, but ...)

You can call 'event.stopPropagation();' to kill the bubbling. (This is what
is done to deal with the case where, on linux, you want a middlemouse to load 
the URL that is on the clipboard, unless that middlemouse is over a scrollbar 
[which should instead just move the scroll position].)

(stopPropagation was known as (apparently) preventBubble in an earlier draft 
of the DOM L2 Events spec, but either will work. However, consult your nearest
hyatt or joki for a blessing that I'm not completely on crack).

So this works for me (prints barMouseDown()\n fooMouseDown()\n barClick()\n)

  <script>
    function barClick(event) { 
      dump("barClick()\n");
      event.stopPropagation();           
    }
    function barMouseDown(event) { dump("barMouseDown()\n"); }
    function fooClick(event)     { dump("fooClick()\n"); }
    function fooMouseDown(event) { dump("fooMouseDown()\n"); }
  </script>
  <tree onclick="fooClick(event);" 
        onmousedown="fooMouseDown(event);">
    <treehead>
      <treerow>
        <treecell onclick="barClick(event);" 
                  onmousedown="barMouseDown(event);" 
                  value="Click me. Look in console."/>
      </treerow>
    </treehead>
  </tree>


Status: ASSIGNED → RESOLVED
Closed: 24 years ago24 years ago
Resolution: --- → FIXED
marking fixed to get it off the radar.  I'll open a new bug to make sure we fix
the fix to use "event.stopPropagation();"
Build 2001-01-2204: NT4, Mac 9.04
Build 2001-01-1908: Linux 6.2
Verified Fixed. A stand alone window no longer appears.
Status: RESOLVED → VERIFIED
Product: Browser → Seamonkey
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: