Closed
Bug 294050
Opened 20 years ago
Closed 19 years ago
Search in history is case-sensitive for non-ascii letters
Categories
(Firefox :: Bookmarks & History, defect)
Firefox
Bookmarks & History
Tracking
()
RESOLVED
FIXED
People
(Reporter: da_neil, Assigned: jruderman)
Details
(Keywords: fixed1.8, intl, Whiteboard: Steps to reproduce in comment 5 (ISO-8859-1).)
Attachments
(1 file, 2 obsolete files)
|
5.82 KB,
patch
|
mconnor
:
review+
bzbarsky
:
superreview+
asa
:
approval1.8rc1+
|
Details | Diff | Splinter Review |
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.8) Gecko/20050511 Firefox/1.0.4 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.8) Gecko/20050511 Firefox/1.0.4 Search in history do distinguish between uppercase and lowercase non-english letters. This bug make difficulties for searching words and search will produce non-complete results for users not knowing about this bug. Reproducible: Always Steps to Reproduce:
Confirming bug with trunk build from 20050513 on Win XP.
Severity: major → normal
Status: UNCONFIRMED → NEW
Ever confirmed: true
Keywords: intl
Version: unspecified → Trunk
| Reporter | ||
Comment 2•19 years ago
|
||
Can I request a blocker?
Severity: normal → major
Version: Trunk → 1.5 Branch
Will this bug be fixed or the new Fx *again* will be bundled with *one more* broken feature?
| Assignee | ||
Comment 4•19 years ago
|
||
Daniel, can you add specific steps to reproduce? (What language is involved, what pages to visit, what to search for.)
I'm not Daniel, but... Steps to reproduce: 1. Visit http://www.fyndborsen.se/ 2. Open History and type in "fyndb" in the search field. 3. Press Alt+0246 to create a "ö" (latin small letter o with diaeresis) 4. Notice how the entry "FYNDBÖRSEN - Hemelektronik på internet sedan 1997" does not match. 5. Delete the "ö" and press Alt+0214 to create "Ö" (latin capital letter o with diaeresis) and notice the match.
| Assignee | ||
Comment 6•19 years ago
|
||
Thanks. I can reproduce the bug using Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.9a1) Gecko/20051006 Firefox/1.6a1.
Whiteboard: Steps to reproduce in comment 5
| Assignee | ||
Updated•19 years ago
|
Whiteboard: Steps to reproduce in comment 5 → Steps to reproduce in comment 5 (ISO-8859-1).
| Assignee | ||
Comment 7•19 years ago
|
||
nsGlobalHistory::RowMatches uses nsCaseInsensitiveCStringComparator, which is for comparing ASCII strings. According to bug 231782, implementing nsCaseInsensitiveUTF8StringComparator would not be trivial. I will try to fix this bug by using UTF-16 or UCS2 instead of UTF-8 in nsGlobalHistory::RowMatches, since nsCaseInsensitiveStringComparator takes UTF-16 or UCS2.
| Reporter | ||
Comment 8•19 years ago
|
||
But there is a working search field in the Bookmarks sidebar. Wouldn't it be easy just to "copy" its behaviour?
| Assignee | ||
Comment 9•19 years ago
|
||
| Assignee | ||
Updated•19 years ago
|
Attachment #198916 -
Flags: superreview?(bzbarsky)
Attachment #198916 -
Flags: review?(mconnor)
| Assignee | ||
Comment 10•19 years ago
|
||
Attachment #198916 -
Attachment is obsolete: true
Attachment #198917 -
Flags: superreview?(bzbarsky)
Attachment #198917 -
Flags: review?(mconnor)
| Assignee | ||
Updated•19 years ago
|
Attachment #198916 -
Flags: superreview?(bzbarsky)
Attachment #198916 -
Flags: review?(mconnor)
| Assignee | ||
Updated•19 years ago
|
Assignee: nobody → jruderman
Version: 1.5 Branch → Trunk
Comment 11•19 years ago
|
||
*** Bug 311660 has been marked as a duplicate of this bug. ***
Comment 12•19 years ago
|
||
Comment on attachment 198917 [details] [diff] [review] patch >+ const nsString searchText = term->text; Make that |const nsString& searchText| perhaps? sr=bzbarsky with that.
Attachment #198917 -
Flags: superreview?(bzbarsky) → superreview+
Comment 13•19 years ago
|
||
Neil, Ctho, does the other global history need a similar change?
| Assignee | ||
Comment 14•19 years ago
|
||
> >+ const nsString searchText = term->text; > Make that |const nsString& searchText| perhaps? term->text is an nsXPIDLString, so I think |const nsXPIDLString& searchText| would be more clear. |const nsString& searchText| does work (and avoid copying the string buffer) but relies on the fact that nsXPIDLString is a subclass of nsString.
| Assignee | ||
Comment 15•19 years ago
|
||
This patch declares searchText as |const nsXPIDLString&|.
Attachment #198917 -
Attachment is obsolete: true
Attachment #198947 -
Flags: superreview?(bzbarsky)
Attachment #198947 -
Flags: review?(mconnor)
| Assignee | ||
Updated•19 years ago
|
Attachment #198917 -
Flags: review?(mconnor)
Comment 16•19 years ago
|
||
(In reply to comment #13) >Neil, Ctho, does the other global history need a similar change? Almost certainly, which is why I created bug 311660...
Updated•19 years ago
|
Attachment #198947 -
Flags: superreview?(bzbarsky) → superreview+
Updated•19 years ago
|
Attachment #198947 -
Flags: review?(mconnor) → review+
| Assignee | ||
Comment 17•19 years ago
|
||
Checked in on trunk.
Status: NEW → RESOLVED
Closed: 19 years ago
OS: Windows XP → All
Hardware: PC → All
Resolution: --- → FIXED
| Reporter | ||
Comment 18•19 years ago
|
||
On trunk?? Does that mean it won't be fixed for 1.5?? >:-E
| Assignee | ||
Comment 19•19 years ago
|
||
Verified: * [Mac, Win] The fix works as advertised in today's trunk nightlies using normal History sidebar search. * [Mac] All History sidebar modes still work (except for "By Site", which has been broken for ages, see bug 206927). * [Win] The fix works as advertised using the "Enhanced History Manager" extension. * [Win] The "Enhanced History Manager" extension still works. I tested all search mode combinations ("title starts with", etc) and all grouping options. The only oddity I found was that "location is not http://steelgryphon.com/blog/?p=62" caused the remaining items to be re-sorted, but that happens in a trunk build from last week too. * [Mac] The "How'd I Get Here" extension still works.
| Assignee | ||
Updated•19 years ago
|
Attachment #198947 -
Flags: approval1.8rc1?
| Assignee | ||
Comment 20•19 years ago
|
||
I think this bug makes history search pretty broken in some languages, so I'm requesting approval for Firefox 1.5 RC 1.
Updated•19 years ago
|
Flags: blocking1.8rc1?
Updated•19 years ago
|
Attachment #198947 -
Flags: approval1.8rc1? → approval1.8rc1+
Comment 21•19 years ago
|
||
plussing since we approved this patch.
Flags: blocking1.8rc1? → blocking1.8rc1+
Component: History → Bookmarks & History
QA Contact: history → bookmarks
You need to log in
before you can comment on or make changes to this bug.
Description
•