Closed
Bug 1265241
Opened 9 years ago
Closed 9 years ago
Links in a webpage saved to disk are broken if the title of the webpage's title starts with any word followed with a colon
Categories
(Firefox :: File Handling, defect, P2)
Firefox
File Handling
Tracking
()
RESOLVED
WORKSFORME
People
(Reporter: kontakt, Unassigned)
Details
Attachments
(3 files)
User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:45.0) Gecko/20100101 Firefox/45.0
Build ID: 20160325004906
Steps to reproduce:
Go to any webpage with images or other external resources, which has a title starting with a word followed with a colon, for example: "Recipe: french toast with scrambled eggs". Right-click, select "Save Page As..." and pick "Web Page, complete". Then, try to open the html file from the disk.
Actual results:
All the external resources (images, styles) are missing! It's because the browser thinks that "Recipe:" is a protocol, like http, but does not recognize it
Expected results:
Firefox should remove the colon from the saved webpage's filename and the resources' directory name. The external resources should appear in the saved webpage.
Reporter | ||
Comment 2•9 years ago
|
||
Saving this file as described in the bug will result in an html file with a broken image link
Flags: needinfo?(groovy354)
Reporter | ||
Comment 3•9 years ago
|
||
This is the result of the "save as..." action - you can see that the image is not linked correctly
The difference is in the source code.
1) your local file:
<img src="image:%20firefox%20logo_files/firefox-256.png">
2) my local file:
<img src="example_fichiers/firefox-256.png">
Reporter | ||
Comment 6•9 years ago
|
||
Yes, the whole issue is about how Firefox does not escape the ":" in the resource URLs. I think it could be solved by replacing all ":"s with "%3A" in the filenames and links
Maybe dupe of bug 719905.
Not sure whether it is the same problem, but if I will the above page save as "%20.html", that resource is broken, its address should be double escaped.
Updated•9 years ago
|
Component: Networking → File Handling
Updated•9 years ago
|
Product: Core → Firefox
Version: 45 Branch → unspecified
Comment 9•9 years ago
|
||
Hi, Kuba,
Good day.
We have fixed bug 719905.
Can you still reproduce it on the latest Firefox release?
Flags: needinfo?(groovy354)
Updated•9 years ago
|
Priority: -- → P2
Reporter | ||
Comment 10•9 years ago
|
||
It works fine on Firefox 48. It seems that it now uses the filename of the original document instead of the title of the webpage as the target filename (and dirname). Thank you, you're the best! :)
Status: UNCONFIRMED → RESOLVED
Closed: 9 years ago
Flags: needinfo?(groovy354)
Resolution: --- → WORKSFORME
Comment 11•9 years ago
|
||
(In reply to Kuba Orlik from comment #10)
> It works fine on Firefox 48. It seems that it now uses the filename of the
> original document instead of the title of the webpage as the target filename
> (and dirname). Thank you, you're the best! :)
My pleasure. Thank you, Kuba!
Have a nice day! :)
You need to log in
before you can comment on or make changes to this bug.
Description
•