Closed Bug 1340884 Opened 8 years ago Closed 8 years ago

"Save Image as" should use title attribute from image as saved filename, especially if it got updated by javascript

Categories

(Firefox :: File Handling, defect)

51 Branch
defect
Not set
normal

Tracking

()

RESOLVED WONTFIX
Tracking Status
firefox51 --- affected
firefox52 --- wontfix
firefox53 --- affected
firefox54 --- affected

People

(Reporter: owyntyler, Unassigned)

Details

User Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:51.0) Gecko/20100101 Firefox/51.0 Build ID: 20170125094131 Steps to reproduce: 1. Open website with <img> with title attribute (e.g. http://imgbox.com/IELq4CtA) 2. change title via javascript or manually after page is loaded 3. click "save as" on the image Actual results: save as suggests old content of title attribute as filename being saved (e.g. 25.jpg) while new title is being ignored Expected results: Firefox should give filenames for saved images based on actual current title attribute
Status: UNCONFIRMED → NEW
Component: Untriaged → General
Ever confirmed: true
Product: Core → Firefox
Summary: "Save as" uses unupdated title attribute form image as saved filename → "Save Image as" uses initial/unupdated title attribute from image as saved filename
The filename comes from the response header Content-Disposition: "inline; filename="25.jpg"" The title attribute is completely ignored.
Status: NEW → UNCONFIRMED
Ever confirmed: false
Summary: "Save Image as" uses initial/unupdated title attribute from image as saved filename → "Save Image as" should use title attribute from image as saved filename, especially if it got updated by javascript
Component: General → File Handling
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:54.0) Gecko/20100101 Firefox/54.0 (20170221030205) I'm able to reproduce the mentioned behavior on latest Nightly and Firefox. When I change the name attribute of an image in the DOM it's ignored when saving the image locally. However Chrome and Edge had the same behavior.
Mass wontfix for bugs affecting firefox 52.
Per comment 1 and comment 2, this is the expected behavior.
Status: UNCONFIRMED → RESOLVED
Closed: 8 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.