Taking screenshot of web page and putting it directly into clipboard should not create image file with screenshot
Categories
(DevTools :: General, defect, P3)
Tracking
(firefox90 verified)
Tracking | Status | |
---|---|---|
firefox90 | --- | verified |
People
(Reporter: aryx, Assigned: siddhantgupta3)
References
(Blocks 2 open bugs)
Details
(Keywords: good-first-bug)
Attachments
(1 file)
Firefox 90.0a1
What were you doing?
- Open the developer tools.
- Open their settings.
- Enable 'Screenshot to clipboard'.
- Load a web page.
- Use the screenshot button in the developer tools toolbar.
What happened?
'Download' notification for screenshot file
What should have happened?
No screenshot file created.
Comment 1•3 years ago
|
||
Looks like we always pass file: true
when using the screenshot tool, even if the clipboard option is enabled:
const args = { fullpage: true, file: true };
if (clipboardEnabled) {
args.clipboard = true;
}
From the discussion in https://bugzilla.mozilla.org/show_bug.cgi?id=1257913 where the feature was added, it seems that it was the intention to have the screenshot saved both to file & clipboard when enabling the clipboard feature.
We might revisit, or at least rewrite the option so that it's clear that it's only saving to clipboard on top of saving to a file (eg "Screenshot to clipboard" -> "Also copy screenshot to clipboard" or something)
Comment 2•3 years ago
|
||
Thanks for reporting this Sebastian!
We've discussed this at our team meeting and here are some comments for anyone interested in fixing this bug:
- It makes sense to copy to clipboard only and we might want to change the option label to: "Screenshot to clipboard only" (the string key should also be changed, when changing the string)
- There could be a small notification that the screenshot goes to the clipboard only (screen flash, etc.), but this can be done in a follow up bug (there might be a discussion about how exactly the UI should look like)
Honza
Hi, first-time contributor here!
Can I work on this issue?
Comment 4•3 years ago
|
||
Assigned to you, thank you for helping with this one
Updated•3 years ago
|
Updated•3 years ago
|
Comment 7•3 years ago
|
||
Pushed at https://treeherder.mozilla.org/jobs?repo=try&revision=a0063453e5405621c18d4827e7c2f2c028467578
Comment 9•3 years ago
|
||
bugherder |
Updated•3 years ago
|
Comment 10•3 years ago
|
||
Reproduced the issue with 90.0a1 (20210514215821) on Windows 10x64.
Verified fixed with 90.0b5 (20210608185546) on Windows 10x64, macOS 11.3 and Ubuntu 18.04.
Description
•