Mis-focus on different item when using right-click/save as to save content




15 years ago
10 years ago


(Reporter: mbuchmann, Assigned: hyatt)


Windows XP

Firefox Tracking Flags

(Not tracked)





15 years ago
User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5b) Gecko/20030906
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5b) Gecko/20030906

clipart.com requires registration before allowing one to save the full-sized
images. to prevent downloading the sample images, they have some javascript to
disable right-click. However, in Mozilla, this does not work. If you right-click
on any image, you get their javascript alert() popup as expected, but upon
trying to dismiss it by clicking on Ok, you get the context menu which allows
you to save the image as if there was no javascript preventing you.

However, rather than saving whichever image you'd originally clicked on, the
browser will actually try to save whatever is under the mouse when you dismiss
the alert() popup. If the popup is not directly over the image you clicked on to
save, you get something else (html, image, flash, etc...).

Reproducible: Always

Steps to Reproduce:
1. Load up any page of clipart from clipart.com
2. Pick an image at random and right-click on it
3. Upon right clicking, you get a javascript alert() popup asking you to register
4. Use the mouse to dismiss the popup, at which point you get the normal context
5. Select save as in the context menu that shows up

- or - 

4. move the mouse elsewhere on the page, other than the image you clicked or the
5. hit space to dismiss the popup()
6. then use the mouse to select "save as" in the context menu.

Actual Results:  
You receive a normal "Save As" dialog window, prompting you to save the content
(an image, or the page's html) that's under the mouse at the moment you
dismissed the alert() popup.

Expected Results:  
It should prompt to save the image you'd originally clicked on.

clipart.com's javascript is broken, as we're still receiving the context-menu,
but this mis-saving is rather odd...

Comment 1

15 years ago
I see the context menu after the alert().  But it it always displays the image
that I first clicked on.
LInux 2004010607

Comment 2

15 years ago
Confirmed for Mozilla 1.6/WinXP. It seems that document.popupNode is calculated
based on current mouse coordinates instead of taking the coordinates from the event.
This is an automated message, with ID "auto-resolve01".

This bug has had no comments for a long time. Statistically, we have found that
bug reports that have not been confirmed by a second user after three months are
highly unlikely to be the source of a fix to the code.

While your input is very important to us, our resources are limited and so we
are asking for your help in focussing our efforts. If you can still reproduce
this problem in the latest version of the product (see below for how to obtain a
copy) or, for feature requests, if it's not present in the latest version and
you still believe we should implement it, please visit the URL of this bug
(given at the top of this mail) and add a comment to that effect, giving more
reproduction information if you have it.

If it is not a problem any longer, you need take no action. If this bug is not
changed in any way in the next two weeks, it will be automatically resolved.
Thank you for your help in this matter.

The latest beta releases can be obtained from:
Firefox:     http://www.mozilla.org/projects/firefox/
Thunderbird: http://www.mozilla.org/products/thunderbird/releases/1.5beta1.html
Seamonkey:   http://www.mozilla.org/projects/seamonkey/
This bug has been automatically resolved after a period of inactivity (see above
comment). If anyone thinks this is incorrect, they should feel free to reopen it.
Last Resolved: 13 years ago
Resolution: --- → EXPIRED


10 years ago
Component: XP Toolkit/Widgets: Menus → XUL
QA Contact: shrir → xptoolkit.widgets
You need to log in before you can comment on or make changes to this bug.