Full page screenshot tool is not functional after page refresh
Categories
(DevTools :: General, defect, P1)
Tracking
(firefox70 verified)
Tracking | Status | |
---|---|---|
firefox70 | --- | verified |
People
(Reporter: jashby2, Assigned: transfusion, NeedInfo)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36
Steps to reproduce:
- First enable the screenshot tool in Developer Tools per https://developer.mozilla.org/en-US/docs/Tools/Taking_screenshots.
- Navigate to a web page, e.g. https://www.mozilla.org
- Open Developer Tools
- Click screenshot tool (camera icon in top right of dev tools). Screenshot is successfully saved to Downloads folder.
- With Developer Tools still open, refresh the page
- Click screenshot tool again...nothing happens. No flash of screen and no screen shot happens.
Actual results:
Per step 6, nothing happens. No flash of screen and no screen shot is saved in Downloads folder.
Expected results:
- Screen should flash to indicate screenshot was taken
- Screenshot png should be saved in Downloads folder
FYI, closing and reopening Developer Tools fixes it as a workaround.
![]() |
||
Updated•6 years ago
|
Comment 2•6 years ago
|
||
Moving to DevTools component. The Screenshots component this was filed in is a different product.
Comment 3•6 years ago
|
||
Thanks for filing. I was able to reproduce (on macOS with Firefox beta 66 if that makes any difference).
I'm going to set this as a P1 because this is an important feature that is completely broken, so we should try to find a fix quickly.
When the problem occurs, I can see the following errors in the browser console:
Error while calling actor 'screenshot's method 'capture' can't access dead object
createScreenshotDataURL@resource://devtools/shared/screenshot/capture.js:51:7
captureScreenshot@resource://devtools/shared/screenshot/capture.js:41:10
capture@resource://devtools/server/actors/screenshot.js:26:12
handler@resource://devtools/shared/protocol.js:1206:21
onPacket@resource://devtools/server/main.js:1279:15
receiveMessage@resource://devtools/shared/transport/child-transport.js:66:5
Comment 4•6 years ago
|
||
Seems like the ScreenshotActor
introduced in bug 1483173 has a this.document
property but it does not renew its value when page navigation occurs. I think it should listen to the proper root actor events to do that.
Assignee | ||
Comment 6•6 years ago
|
||
Comment 8•6 years ago
|
||
There's a r+ patch which didn't land and no activity in this bug for 2 weeks.
:transfusion, could you have a look please?
For more information, please visit auto_nag documentation.
Comment 10•6 years ago
|
||
bugherder |
Updated•6 years ago
|
Updated•6 years ago
|
Comment 11•6 years ago
|
||
Reproduced issue with 67.0a1(2019-02-14) on Windows 10.
Fix verified with 70.0b7 on Windows 10, macOS 10.12, Ubuntu16.04.
Description
•