screenshots icon indicating copy to clipboard operation
screenshots copied to clipboard

Screenshots of IPv6 addresses don't work

Open SuperTux88 opened this issue 6 years ago • 6 comments

I get only an error when I try to take a screenshot of a website with an IPv6 address like http://[1234:5678:90ab:cdef::2]:

"Whoa! Firefox Screenshots went haywire. We're not sure what just happened. Care to try again or take a shot of a different page? Error: Not a URL"

SuperTux88 avatar Jan 07 '18 01:01 SuperTux88

Related to #2778

ianb avatar Jan 10 '18 23:01 ianb

I'm not sure it's related to #2778. The error is from line 44 of shared/shot.js which uses new URL() in isURL() to validate URLs, no regex as far as I can see. EDIT: Derp. It was related, someone already fixed it.

Tacklebox avatar Apr 04 '18 20:04 Tacklebox

Hey @Tacklebox, thanks for the comment. You're correct about isURL(). It looks like the error is from a regex--the one in originFromUrl().

chenba avatar Apr 04 '18 23:04 chenba

Anything happen here? I'm still experiencing this issue, although the IPv6 address I'm accessing isn't part of the public internet, idk if that's part of the problem.

makew0rld avatar Feb 17 '19 16:02 makew0rld

+1 for the request

kevit avatar Apr 04 '19 09:04 kevit

I found a work-around to this. If you navigate to the element you want to screenshot in the devtools document inspector, you can screenshot the node from there successfully.

tomtheisen avatar Apr 02 '20 16:04 tomtheisen