Closed Bug 1063211 Opened 10 years ago Closed 10 years ago

URL bar displays %-decoded URLs which may be inconsistent with error pages and actual behaviour

Categories

(Firefox :: Address Bar, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 309671
Tracking Status
firefox33 --- affected

People

(Reporter: kats, Unassigned)

References

()

Details

STR:

1. Go to a page with a link that is incorrectly URL-encoded. In my example, the link is "%72eddit.com" instead of "reddit.com"
2. Click on the link

At this point you should get an error page. The URL bar shows the decoded URL (reddit.com) but the error message shows the encoded URL (%72eddit.com). Hitting the try again button just tries the same encoded URL again which fails again. However putting focus in the location bar and hitting enter will try the decoded URL which works. This behaviour is quite confusing and seems inconsistent. I'm not sure what the correct resolution should be though.

Sample page that reproduces this attached as a data: url in the URL field.
Why incorrectly encoded ? 
The problem is that we do not support perfectly legal percent encoded URLs
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.