Bug 48500 - mod_mbox mishandles right-click to open msg in new tab
Summary: mod_mbox mishandles right-click to open msg in new tab
Status: NEW
Alias: None
Product: Apache httpd-2
Classification: Unclassified
Component: mod_mbox (show other bugs)
Version: 2.5-HEAD
Hardware: All All
: P2 normal (vote)
Target Milestone: ---
Assignee: Apache HTTPD Bugs Mailing List
URL: http://mail-archives.apache.org/mod_m...
Keywords:
Depends on:
Blocks:
 
Reported: 2010-01-06 22:20 UTC by Karl Fogel
Modified: 2010-01-11 21:06 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Karl Fogel 2010-01-06 22:20:20 UTC
(I have not tested this with trunk httpd, only the httpd running on apache.org right now.)

To reproduce, visit

http://mail-archives.apache.org/mod_mbox/subversion-dev/201001.mbox/browser

and right-click on one of the messages (picking one at random below) to
open it in a new tab:

http://mail-archives.apache.org/mod_mbox/subversion-dev/201001.mbox/ajax/%3C4B42936D.10107@mark.mielke.cc%3E

(One of Mark Mielke's messages in the "Re: Subversion in 2010" thread.)

The message is displayed in a horribly broken way in the browser.  At
the top, the browser shows a warning bar that says "This XML file does
not appear to have any style information associated with it. The
document tree is shown below.".  Below that, it... shows the document
tree, complete with angle brackets and attributes and everything.  The
body of the message is visible, sort of, but this is surely not the
intended UI :-).

Apparently, the javascript only overrides "onclick", but does not
override "right click".  So a regular click would be handled properly,
but a right click to open a new window is not -- it does not execute the
JavaScript.  Thus the page defaults to the raw href, which is pretty
useless without a style sheet.

I did this in Firefox 3.5.6, by the way, but I doubt the browser version
matters.

HTH,
-Karl
Comment 1 William A. Rowe Jr. 2010-01-11 21:06:06 UTC
See attached URL and resulting thread for further observations.