Save image as saves containing web page instead




File Handling
10 years ago
8 years ago


(Reporter: Kenneth Porter, Unassigned)


3.0 Branch
Windows 2000

Firefox Tracking Flags

(Not tracked)


(Whiteboard: [CLOSEME 2011-1-30], URL)


(1 attachment)



10 years ago
User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv: Gecko/2008070208 Firefox/3.0.1
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv: Gecko/2008070208 Firefox/3.0.1

Load the above URL, an HTML document with JavaScript that loads the argument image. Right click the image and select "Save image as". The HTML document, not the image, is saved to disk. The HTML also has binary gibberish intermixed in it, but clearly not a JPEG image.

Inspection of the HTML (via Tools | Page info) reveals the true URL of the image.

Reproducible: Always

Comment 1

10 years ago
WFM on Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1a2pre) Gecko/20080822033426 Minefield/3.1a2pre. Are you sure you are clicking on the image, and saving as a .jpg? Also, try in Safe Mode.

Comment 2

10 years ago
Tested again in safe mode without improvement.

I do indeed right-click on the image, and JPEG is the type pre-selected in the file dialog. There appears to be a black background. Right-clicking on that gives me a different context menu that omits the "Save image as..." option, as I would expect clicking on the containing page.

Comment 3

10 years ago
Can you give a screenshot of the right-click, and the context menu, etc?

Comment 4

10 years ago
Created attachment 335200 [details]
Screenshot of context menu and resulting file

Attached. The window behind Firefox on the left is my text editor, showing the previously-downloaded image file (with a "c" appended to the filename).

This was done on a different machine, this time running XP 64.

(To get the screenshot, I right-clicked to get the menu, hit PrtScr, then pasted to Irfanview. Alt-PrtScr (to capture just the application window) won't work because the Alt key dismisses the context menu.)

Comment 5

9 years ago
"Saving an image saves a web page instead" happens to me on my bank's website as well as  The web page saved (in place of the image) is a login page.  I cannot provide a link because you must be logged in.

Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv: Gecko/2009060215 Firefox/3.0.11
Reporter, are you still seeing this issue with Firefox 3.6.13 or later in safe mode? If not, please close. These links can help you in your testing.
Whiteboard: [CLOSEME 2011-1-30]
Version: unspecified → 3.0 Branch
No reply, INCOMPLETE. Please retest with Firefox 3.6.13 or later and a new profile ( If you continue to see this issue with the newest firefox and a new profile, then please comment on this bug.
Last Resolved: 8 years ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.