Closed Bug 1327858 Opened 7 years ago Closed 7 years ago

It's not possible to save image that I already opened in browser (in some cases)

Categories

(Firefox :: File Handling, defect)

defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 1327844

People

(Reporter: arni2033, Unassigned)

Details

>>>   My Info:   Win7_64, Nightly 49, 32bit, ID 20160526082509
STR_1:
1. Open http://www.ecigtalk.ru/forum/f168/t56979-p998.html
2. Open any image hosted on site http://radikal.ru/ . You can use selector   img[src*="radikal"]
3. Test "save file" feature:
 3.1. Press Ctrl+S, then in native save dialog add " 1" to file name, then click "Save"
 3.2. Right-click on image, click "Save image as", in save dialog add " 2" to file name, click "Save"
 3.3. Drag image to downloads button
 3.4. Press Ctrl+S, then in native save dialog add " 3" to file name, then click "Save"


STR_2:
1. Open this url in private window:   http://2static.fjcdn.com/pictures/Tumblr_ea821a_5849134.jpg
 [you'll be automatically redirected to funnyjunk]
2. On funnyjunk page Shift+Middle�lick image with "ea821a_5849134.jpg" in "src" to open it in new tab
   You can use selector   img[src*="ea821a_5849134.jpg"]
3. Test "save file" feature:
 3.1. Press Ctrl+S, then in native save dialog add " 1" to file name, then click "Save"
 3.2. Right-click on image, click "Save image as", in save dialog add " 2" to file name, click "Save"
 3.3. Drag image to downloads button
 3.4. Press Ctrl+S, then in native save dialog add " 3" to file name, then click "Save"


AR:  Images saved at steps 3.1, 3.2 are OK. Images saved at steps 3.3, 3.4 don't open - they're broken
ER:  Images should be saved correctly all 4 times

Workaround:
 Right-click on image, click "Inspect element", right-click on the actual <img> tag in markup, click
 "Copy" -> "Image Data-Url", open new tab, paste copied string there, press Enter. Save the image.

Note:  Probably "Referer" in request headers is involved - I haven't checked.
No longer blocks: 1277113
Component: Untriaged → File Handling
Looking at network requests from STR_2, we get different server responses after the request is done from the drag-and-drop to the Downloads button, os it's likely a cookie or referrer issue. This would be solved if drag-and drop was not allowed or equivalent to Ctrl+S, as indicated in bug 1327844.
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.