Closed Bug 673500 Opened 13 years ago Closed 13 years ago

Firefox location bar character escaping issue

Categories

(Firefox :: Address Bar, defect)

All
Other
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: jonathan_haas, Unassigned)

References

Details

User Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:8.0a1) Gecko/20110721 Firefox/8.0a1
Build ID: 20110721030828

Steps to reproduce:

Open http://www.wolframalpha.com/
Enter "a²" (without quotes) and hit enter
location bar should display
http://www.wolframalpha.com/input/?i=a²

Click in the location bar and hit enter again


Actual results:

Browser navigates to
http://www.wolframalpha.com/input/?i=a%B2

Wolfram Alpha does not understand, weird question-mark character displayed in tab title.


Expected results:

Browser navigates to
http://www.wolframalpha.com/input/?i=a²
again and displays the same page as before.
Confirmed against Mozilla/5.0 (Windows NT 5.1; rv:8.0a1) Gecko/20110722 Firefox/8.0a1 ID:20110722030827 (and back to Firefox 3.0 Branch).

Setting "network.standard-url.encode-query-utf8" to non-default Value "true" makes the Issue go away.

Shouldn't the above non-ASCII Char containing URL be "converted" to "http://www.wolframalpha.com/input/?i=a%C2%B2" when reloading the Site using "Enter" Key?

It's done properly when you reload using the Button/(CTRL +)F5 or copy/paste the URL to a Text Editor.
Ugh, lazy me now digged through several older Reports concerning this kind of Issue (and others) like Bug 333859/Bug 393246/Bug 461304/Bug 552273/Bug 647403.

Seems to be quite a Mess :-(
Depends on: 461304
We could reload instead of starting a new load if we detect that the location bar value hasn't changed, but detecting that reliably can be a bit tricky.
(In reply to comment #3)
> We could reload instead of starting a new load if we detect that the
> location bar value hasn't changed, but detecting that reliably can be a bit
> tricky.

I don't think that would be the right solution. For example if I have 
www.wolframalpha.com/input/?i=a²
loaded maybe I manually want to edit the term in the urlbar. Or if the url is a search query, maybe I want to be able to edit that without escaping issues.

I think a better way to fix this would be the approach I described in bug 461304 comment 14.
The problem described in comment #0 was fixed by bug 461304.
But you cannot edit the url on the location bar yet.
Jonathan -> Is this issue resolved by the bug mentioned in comment 5? I am unable to reproduce comment 0 with Mozilla/5.0 (Windows NT 5.1; rv:12.0a1) Gecko/20111223 Firefox/12.0a1 ID:20111223032107
Yes, seems to be fixed by bug 461304.
Status: UNCONFIRMED → RESOLVED
Closed: 13 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.