Firefox on Ubuntu fails to save screenshots on certain pages.
Categories
(Firefox :: Screenshots, defect, P2)
Tracking
()
People
(Reporter: rmiyai, Unassigned)
Details
Steps to reproduce:
Environment:
Ubuntu20.04 Desktop
Firefox95.0.1 (64-bit)
- Access this page
https://www.nakabayashi.co.jp/product/detail/72077 - Right click and run "Take a screenshot"
- "Save visible" -> "Download"
Actual results:
The download window shows Failed.
Expected results:
According to my research, it seems to occur when the page title is multibyte and exceeds 70 characters.
This uses the page title as the filename, so it seems that the Linux file size limit has been reached.
But if it's not multibyte, it's okay if the page title is too long.
Comment 1•3 years ago
|
||
The Bugbug bot thinks this bug should belong to the 'Firefox::Screenshots' component, and is moving the bug to that component. Please revert this change in case you think the bot is wrong.
Comment 2•3 years ago
|
||
Thanks for the report, I can reproduce.
The console shows:
OperationError: Could not remove the file at /home/sfoster/Downloads/Screenshot 2022-01-06 at 10-34-05 パーソナルラミネータ イージーラミ2 A3 ホワイト ラミネータ ラミネータ シュレッダ・ラミネータ 製品紹介 ナカバヤシ株式会社:アルバム・製本・シュレッダー・情報整理の総合サ[...].png.part DownloadCore.jsm:2570
_tryToRemoveFile resource://gre/modules/DownloadCore.jsm:2570
..which confirms that we still need to do a better job of making filenames from page titles. Incidentally, if you try to "Save page as.." on that page you get a "Cannot create file as filename is too long" error. And the exact same issue if you try to save a PDF from the print dialog. Given that, I'll make this a P2.
Comment 3•3 years ago
|
||
There does seem to be a bug in the filename creation which guestimates bytes to be 2x string length - which does not hold true for multi-byte characters as seen in the page title in https://www.nakabayashi.co.jp/product/detail/72077
However, even when I fix this, I'm still getting the same exception which makes me think its one of the characters in there, not the length.
I think this is actually a dupe of bug 1744779, so I'll continue investigation there.
Description
•