6.0.0-beta1
9/2/25

[#12046] Strange right-click bug in dynamic mode
Summary Strange right-click bug in dynamic mode
Queue IMP
Queue Version 6.0.4
Type Bug
State Not A Bug
Priority 1. Low
Owners
Requester azurit (at) pobox (dot) sk
Created 02/14/2013 (4583 days ago)
Due
Updated 02/19/2013 (4578 days ago)
Assigned 02/17/2013 (4580 days ago)
Resolved 02/18/2013 (4579 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
02/19/2013 06:10:05 AM Michael Slusarz Comment #17 Reply to this comment
I cannot see any segfaults on my PC with Firefox or Chrome.
Regardless, this is a textbook example of a browser + platform bug 
since FF both:

1) does NOT display this issue on other platforms
2) does NOT display this issue with other versions on the same platform

Nothing we can do here.  A broken browser is a broken browser.
02/18/2013 01:20:10 PM azurit (at) pobox (dot) sk Comment #16 Reply to this comment
I cannot see any segfaults on my PC with Firefox or Chrome.
02/18/2013 03:50:26 AM Michael Slusarz Comment #15 Reply to this comment
FWIW, I saw this issue on the server immediately after I tried to 
right-click. No idea whether it is related or not.

[ 9066.833088] chrome[3091]: segfault at 5eccc0b0 ip 5eccc0b0 sp 
bfb3531c error 4 in libGL.so.1.2[62982000+52000]
02/18/2013 03:47:19 AM Michael Slusarz Comment #14
State ⇒ Not A Bug
Reply to this comment
OK - I can reproduce but ONLY on Linux (Ubuntu) and ONLY with specific 
browsers (FF 18.0.2 shows this issue, but FF 16 doesn't).  So this is 
a browser and/or linked library issue specific to Linux and is not a 
Horde/IMP issue.
02/18/2013 01:20:37 AM Michael Slusarz Comment #13 Reply to this comment
Firefox 18.0.2 on linux. It's always reproducable, i can give you 
any other details, just ask what you need.
Short of you tracing the code and telling us exactly *why* the click 
event is not being handled correctly by the ContextSensitive 
javascript code, there is nothing more we can do.

I can point you to horde/js/contextsensitive.js - the 
_rightClickHandler method.  That method is triggered on a right click 
to the message row.  The e parameter contains the Event and 
'e.element()' contains the DOM element that was clicked on (which will 
be the child of the message row).
02/17/2013 11:56:15 PM azurit (at) pobox (dot) sk Comment #12 Reply to this comment
Well, i made some tests before and created really simple HTML e-mail 
(it must be text/html) with numbered lines. When i changed size of the 
preview so only one message from message list was displayed, problem 
appeard right after i scrolled after the first line of e-mail. When 
preview was small and/or opened message was high in the list, i had to 
scroll several lines - at least exactly the size of the length between 
opened message and top of the preview. Firefox 18.0.2 on linux. It's 
always reproducable, i can give you any other details, just ask what 
you need.
02/17/2013 11:43:32 PM Michael Slusarz Comment #11 Reply to this comment
And you are right-clicking on the *selected/opened* message, right?
Yes

02/17/2013 11:00:46 PM azurit (at) pobox (dot) sk Comment #10 Reply to this comment
Except I can minimize the message list to, say, 2 entries and 
display an HTML message that is 2000 lines long, and scroll all the 
way to the bottom, and right-clicking still works fine on the 
message list.
And you are right-clicking on the *selected/opened* message, right? 
Cos right click anywhere else is working fine.
02/17/2013 10:25:32 PM Michael Slusarz Comment #9 Reply to this comment
Ok, i found out where exactly the problem is. Problem appears when i 
scroll down the message in preview long enough so the hidden part 
above is as long (or longer) as the size between the preview and 
selected message. Opened message probably overlaps the message list 
so i'm not right clicking into the message list but into the opened 
message. Do you know what i mean?
Except I can minimize the message list to, say, 2 entries and display 
an HTML message that is 2000 lines long, and scroll all the way to the 
bottom, and right-clicking still works fine on the message list.

In other words: The DOM ID previewPane DIV does extend to the top of 
the browser (and above) when scrolling to the bottom of a longer HTML 
message.  But this is irrelevant because the message rows are 
contained in the 'msglist' DIV, which is a floating element so even if 
the previewPane DIV occupies the same space, it will be displayed 
UNDER the float - not over.

You are going to need to get deeper into the browser fundamentals to 
determine why the right-click DOM event is being triggered/handled by 
this DIV instead of the msglist row.
02/17/2013 10:00:11 PM azurit (at) pobox (dot) sk Comment #8 Reply to this comment
Ok, i found out where exactly the problem is. Problem appears when i 
scroll down the message in preview long enough so the hidden part 
above is as long (or longer) as the size between the preview and 
selected message. Opened message probably overlaps the message list so 
i'm not right clicking into the message list but into the opened 
message. Do you know what i mean?
02/17/2013 09:43:55 PM Michael Slusarz Comment #7 Reply to this comment
I don't doubt that it's happening, but I can't reproduce so I am 
unable to debug/fix any further.  Unless you can provide a solution, 
or another dev can reproduce, this ticket will be stalled.
02/17/2013 09:15:50 PM azurit (at) pobox (dot) sk New Attachment: error.jpg Download
 
02/17/2013 09:15:16 PM azurit (at) pobox (dot) sk Comment #6
New Attachment: ok.jpg Download
Reply to this comment
Attaching two images of the same message with different level of 
scroll as a proof that this is really happening to me in all tested 
browsers :) Looks like only HTML messages are affected. Sometimes i 
have to scroll almost down, sometimes only few lines.
02/17/2013 08:21:15 PM Michael Slusarz Comment #5
State ⇒ Feedback
Reply to this comment
Michael, i sent you an example by email.
I can't reproduce with that sample message.
02/17/2013 09:12:54 AM azurit (at) pobox (dot) sk Comment #4 Reply to this comment
Michael, i sent you an example by email.
02/17/2013 05:24:30 AM Michael Slusarz Comment #3 Reply to this comment
I just noticed that this does not affect all messages. I can 
privately send an example.
You will need to as I can't reproduce.  Does it only happen with HTML 
messages?  Probably an issue with the z-index "cap" we need to put 
over the IFRAME to allow things like click/drag to work properly.
02/16/2013 09:32:13 PM azurit (at) pobox (dot) sk Comment #2 Reply to this comment
I just noticed that this does not affect all messages. I can privately 
send an example.
02/14/2013 07:37:33 PM azurit (at) pobox (dot) sk Comment #1
Priority ⇒ 1. Low
State ⇒ Unconfirmed
Patch ⇒ No
Milestone ⇒
Summary ⇒ Strange right-click bug in dynamic mode
Type ⇒ Bug
Queue ⇒ IMP
Reply to this comment
I'm experiencing a strange right-click bug in dynamic mode (tried 
Firefox 18.0.2 and Chrome 25). When preview is enabled and you open a 
long message, right-click on (selected/opened) message in message list 
is not working properly:
  - when you are at the top of the opened message (using scrollbar at 
the right side), right-click on selected message in message list works 
ok

  - when you scroll the message down sufficiently (at the bottom, for 
example but message must be long enough), right-click stops showing 
IMP menu and shows standard browser right-click menu instead

Always reproducable.

Saved Queries