Open
Bug 637052
Opened 13 years ago
Updated 2 years ago
Redirect Local Html File to HTTPS
Categories
(Firefox :: General, defect)
Tracking
()
UNCONFIRMED
People
(Reporter: mystiq, Unassigned)
Details
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:2.0b13pre) Gecko/20110226 Firefox/4.0b13pre Build Identifier: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:2.0b13pre) Gecko/20110226 Firefox/4.0b13pre I had a page saved in C:\Stuff\. Opening it in Firefox greets me with the following error: Server not found. Firefox can't find the server at c. Quick inspection of the address bar reveals the problem: "https://c/Stuff/file.html" After trying to figure out if it's a Firefox issue or Windows issue, looking at the page contents shows why Firefox insists on trying to redirect a local file to https: if(window.location.protocol!="https:") { if(window.location.replace) { window.location.replace("https"+window.location.href.substr(4)); } else { window.location.href="https"+window.location.href.substr(4) } } As soon as I removed this code the page was fine. If this happens to a non-technical user it's likely they'll think their computer is broken and won't know what to do. Reproducible: Always Steps to Reproduce: 1. Save a website locally that wants to force itself to use HTTPS by changing the URL with Javascript. 2. Open the page locally. Actual Results: Firefox complies with the Javascript and attempts to re-open the local page using HTTPS. Expected Results: The Javascript redirect should probably be ignored if going from file://someaddress to https://thesamesomeaddress.
Updated•13 years ago
|
Version: unspecified → Trunk
Updated•2 years ago
|
Severity: minor → S4
You need to log in
before you can comment on or make changes to this bug.
Description
•