Closed Bug 468258 Opened 16 years ago Closed 1 year ago

Can't autocomplete using unescaped UTF-8 when typing

Categories

(Camino Graveyard :: Location Bar & Autocomplete, defect, P3)

All
macOS
defect

Tracking

(Not tracked)

RESOLVED INCOMPLETE

People

(Reporter: alqahira, Assigned: chris)

References

()

Details

Attachments

(1 file, 2 obsolete files)

STR: 1) Open http://ar.wikipedia.org/ 2) Visit http://ar.wikipedia.org/wiki/مدينة_عمّان (today's feature article, on Amman) 3) Cmd-L to get back in the location bar 4) Start typing to begin autocomplete 5) When you get done with "/wiki/", enter a م to begin completing the article name (Substitute the Arabic wikipedia with a wikipedia with the non-Roman script of your choice. Note also I did try with ن just in case autocomplete had the page title backwards due to busted RTL) AR: Autocomplete selection moved to http://ar.wikipedia.org/wiki/مدينة_عمّان ER: Autocomplete selection does not change This is a more significant underlying issue, and in practical purposes I think it's unlikely to be hit much (but I'd like to hear from some of our non-Roman-script users/localizers, like Japanese and Russian, to be sure), but I wanted to make sure it was on file, anyway. FWIW, Firefox 3 appears to get this right, but I'm not sure I'm testing correctly since I'm not sure I correctly configured it to match only full url strings (and not characters in titles, or in random places in urls, etc.)
Hardware: Macintosh → All
Japanese has the same problem STR 1. load http://ja.wikipedia.org/wiki/メインページ 2. go somewhere else 3. cmd L, start typing, once done with /wiki/, 3a. switch to katakana input (ctrl-shift K) 3b. type 'me' (for メ), then 'return' to accept the character. AR: no autocomplete Minefield latest build appears to autocomplete, in my set up. And so does Safari. (aside: can't copy paste a nice Jpn url out of Minefield location bar into mail.app/text edit.app/textarea in Camino - works fine with Camino. yay !)
(In reply to comment #0) > This is a more significant underlying issue, and in practical purposes I think > it's unlikely to be hit much (but I'd like to hear from some of our > non-Roman-script users/localizers, like Japanese and Russian, to be sure) By which I meant to ask, how often are users going to be typing in Roman to start the autocomplete and then want to switch keyboards/input methods to finish the autocomplete using the non-Roman script part of the URL?
(In reply to comment #2) > (In reply to comment #0) > > > This is a more significant underlying issue, and in practical purposes I think > > it's unlikely to be hit much (but I'd like to hear from some of our > > non-Roman-script users/localizers, like Japanese and Russian, to be sure) > > By which I meant to ask, how often are users going to be typing in Roman to > start the autocomplete and then want to switch keyboards/input methods to > finish the autocomplete using the non-Roman script part of the URL? Might happen: type 'wiki' (as Wikipedia is called in Japanese), let it autocomplete, delete the last part if needed and start typing. (assuming the autocomplete after 'wiki' doesn't bring up the desired page immediately, or within the first 5 results). I'll have to ask my partner, but I suspect she'll just go to the search box on the Wikipedia page, if the URL she's looking for doesn't pop-up immediately.
(In reply to comment #3) > I'll have to ask my partner, but I suspect she'll just go to the search box on > the Wikipedia page, if the URL she's looking for doesn't pop-up immediately. If the (Wikipedia) page doesn't pop up immediately in the dropdown: Cmd-option F (with Wikipedia search add-on) or google/yahoo.co.jp. (The Wikipedia search box is not visible enough…)
Attached patch Fix v1.0 (obsolete) — Splinter Review
Just escapes the URI before sending it to the autocomplete backend. Smokey, could you please review this for correct behaviour, then send it to smorgan for sr?
Assignee: nobody → trendyhendy2000
Status: NEW → ASSIGNED
Attachment #358634 - Flags: review?(alqahira)
Comment on attachment 358634 [details] [diff] [review] Fix v1.0 This is missing an implementation of escapedURI, so it doesn't build. I think we should probably add to the comment to explain why we're escaping, too.
Attachment #358634 - Flags: review?(alqahira) → review-
Yeah, my bad. I'll hold off for now, and once the escapedURI method is in cvs (as part of Bug 464501) I'll revisit this patch.
Depends on: 464501
Attached patch Fix v1.1 (obsolete) — Splinter Review
Updated version to make the autocomplete behaviour the same as for escaped search strings (highlighting, canceling, arrow keys). Still depends on Bug 464501, but I'm uploading this patch now so I don't forget about it.
Attachment #358634 - Attachment is obsolete: true
We should also be sure to test against the site from bug 309226, http://日本語.jp/
Attached patch Fix v1.2Splinter Review
My work in 464501 has made this patch much simpler.
Attachment #387604 - Attachment is obsolete: true
These are P3 on the 2.1 list, but I think they're at the very bottom of hendy's to-do list.
Priority: -- → P3
Target Milestone: --- → Camino2.1
Pushing all the UTF-8 stuff out, since it's somewhat risky for this stage in the process.
Target Milestone: Camino2.1 → ---
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: