Use more exact timestamps in screenshot filenames
Categories
(Firefox :: Screenshots, enhancement, P3)
Tracking
()
Tracking | Status | |
---|---|---|
firefox89 | --- | fixed |
People
(Reporter: david, Assigned: kajalsah107)
Details
Attachments
(1 file)
User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:81.0) Gecko/20100101 Firefox/81.0
Steps to reproduce:
Using the screenshot tool multiple times on the same page and using the "Download" button to save them to the disk.
Actual results:
The save file dialog appears with a default file name in the pattern of "Screenshot_{year}-{month}-{day} {title of page}".
I do some web development so I'm often taking multiple screenshots of the same page after I enable/disable some feature to create before/after images, but the screenshot tool's default file name will generate the same file name each time if they're taken less than 24 hours apart.
The formatting is also wildly inconsistent with underscores, dashes, and spaces.
Expected results:
- Use milliseconds in the time stamp, whether that's in a YYYY-MM-DD-HH-MM-MS or YYYY-MM-DD-MS format. Something to realistically give each screenshot a different file name.
- Use underscores instead of spaces and dashes everywhere in the filename, including in the page title
Updated•4 years ago
|
Comment 1•3 years ago
|
||
Thanks for suggesting this!
For consistency with devtools (https://searchfox.org/mozilla-central/rev/f982032c7c7618c626165bb557968f478a1952dc/devtools/shared/locales/en-US/screenshot.properties#84-88), I think we should keep the spaces but introduce minutes and seconds into the timestamp.
So the new file name should be "Screenshot {year}-{month}-{day} at {minute}-{second} {title of page}".
Taking this up as an initial contribution for Outreachy 2021. I will ask if there are any doubts.
Updated•3 years ago
|
Pushed by emalysz@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/12436fa7a836 Use more exact timestamps in screenshot. r=emalysz
Comment 5•3 years ago
|
||
bugherder |
Description
•