Closed
Bug 1207544
Opened 10 years ago
Closed 10 years ago
screenshot --dpi asks for pixels per inch and uses it as devicePixelRatio
Categories
(DevTools Graveyard :: Graphic Commandline and Toolbar, defect)
DevTools Graveyard
Graphic Commandline and Toolbar
Tracking
(firefox42 unaffected, firefox43 affected, firefox44 fixed)
RESOLVED
FIXED
Firefox 44
| Tracking | Status | |
|---|---|---|
| firefox42 | --- | unaffected |
| firefox43 | --- | affected |
| firefox44 | --- | fixed |
People
(Reporter: aryx, Assigned: johankj)
References
Details
(Whiteboard: [polish-backlog][difficulty=easy])
Attachments
(2 files)
|
3.89 KB,
patch
|
jryans
:
review+
|
Details | Diff | Splinter Review |
|
4.00 KB,
patch
|
jryans
:
review+
|
Details | Diff | Splinter Review |
Bug 970625 added the parameter --dpi to the graphical command line's commadn 'screenshot'.
The strings are:
# LOCALIZATION NOTE (screenshotDPIDesc) A very short string to describe
# the 'dpi' parameter to the 'screenshot' command, which is displayed in
# a dialog when the user is using this command.
screenshotDPIDesc=Dots per inch
# LOCALIZATION NOTE (screenshotDPIManual) A fuller description of the
# 'dpi' parameter to the 'screenshot' command, displayed when the user
# asks for help on what it does.
screenshotDPIManual=The number of dots per inch in the screenshot
But the code change contains:
> - const ratio = window.devicePixelRatio;
> + const ratio = args.dpi ? args.dpi : window.devicePixelRatio;
DPI and devicePixelRatio are two different things. The latter one is the count of physical pixels which can be put into one CSS pixel.
So running |screenshot --dpi 150| fails because the image gets too big.
The strings are already on Aurora, so if it needs to get fixed there it has to use dpi and not dpr.
Johan, are you interested in this one?
Flags: needinfo?(jj)
| Assignee | ||
Comment 2•10 years ago
|
||
Something like this?
Comment on attachment 8664871 [details] [diff] [review]
bug1207544_rename_dpi_to_dpr.patch
Review of attachment 8664871 [details] [diff] [review]:
-----------------------------------------------------------------
Great, thanks!
Attachment #8664871 -
Flags: review?(jryans) → review+
Johan, could you push this to try? Or I can if you don't get to it first.
Flags: needinfo?(jj)
| Assignee | ||
Comment 5•10 years ago
|
||
Flags: needinfo?(jj)
Hmm, it seems like there are many failures, especially in browser_cmd_screenshot.js.
Whiteboard: [polish-backlog]
Updated•10 years ago
|
Whiteboard: [polish-backlog] → [polish-backlog][difficulty=easy]
| Reporter | ||
Comment 7•10 years ago
|
||
Issue was that in the localization file, "screenshotDPIManual" hadn't yet been changed to "screenshotDPRManual".
Attachment #8670912 -
Flags: review?(jryans)
Comment on attachment 8670912 [details] [diff] [review]
patch, v2
Review of attachment 8670912 [details] [diff] [review]:
-----------------------------------------------------------------
Ah, of course.
Do you have try access to do another run? If not, ni? me so I can take care of it.
Attachment #8670912 -
Flags: review?(jryans) → review+
| Reporter | ||
Comment 9•10 years ago
|
||
Pushed to Try with Johan's Try config: https://treeherder.mozilla.org/#/jobs?repo=try&revision=47dcb82e71b2
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 44
Updated•7 years ago
|
Product: Firefox → DevTools
Updated•7 years ago
|
Product: DevTools → DevTools Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•