Wrong html entity in history dropdown with non-latin tags
Categories
(Firefox :: Address Bar, defect, P1)
Tracking
()
Tracking | Status | |
---|---|---|
firefox-esr60 | --- | unaffected |
firefox-esr68 | 71+ | verified |
firefox67 | --- | unaffected |
firefox68 | --- | unaffected |
firefox69 | --- | wontfix |
firefox70 | --- | wontfix |
firefox71 | --- | verified |
People
(Reporter: zhouck, Assigned: adw)
References
(Regression)
Details
(Keywords: regression)
Attachments
(3 files)
17.20 KB,
image/png
|
Details | |
7.07 KB,
image/png
|
Details | |
47 bytes,
text/x-phabricator-request
|
lizzard
:
approval-mozilla-esr68+
|
Details | Review |
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0
Steps to reproduce:
Open history dropdown
Actual results:
Most of history entries contains some weird unicode entity
Expected results:
History entry should not contains any weird characters
Updated•5 years ago
|
Comment 2•5 years ago
|
||
Could you please post some examples of the tags in unicode chars?
Comment 3•5 years ago
|
||
Could you please post some examples of the tags in unicode chars?
like in screenshot: ьщяшддф, ьшскщіщае etc
These are latin tag entered in cyrillic layout.
Assignee | ||
Comment 5•5 years ago
|
||
Bug 1567301 regressed this.
STR
- Visit https://www.pravda.com.ua/
- Bookmark it and give it the tag ьщяшддф
- Click the history dropdown
The Pravda entry will have a unicode replacement char like in the screenshot in comment 0.
Updated•5 years ago
|
Comment 6•5 years ago
•
|
||
Hello! Here is the STR I use to reproduce the issue so there is no need for Unicode characters:
- Open Firefox and bookmark a random webpage with a random tag(e.g Tags=a).
- Search #NamOfTheTag in the URL bar (e.g. #a).
Attached a screenshot.
Comment 7•5 years ago
|
||
Too late for a fix in 70 but we can still take a patch for 72 and potentially 71.
Drew, can you assign a priority and help find an owner for this bug? Thanks!
Assignee | ||
Comment 8•5 years ago
|
||
Thanks for the further info, Alexandru. I'll look into this.
Assignee | ||
Comment 9•5 years ago
|
||
We extract tags from the result title only when info.style.includes("bookmark")
, but that only captures one of the two cases where we include tags in the title: the "bookmark" style. We also include tags for the "tag" style. So the bug reports in this bug are hitting that "tag" case. It doesn't have anything to do with non-Latin tags afaict (see the bug summary).
I took the opportunity to streamline UnifiedComplete._addFilteredQueryMatch
, which was a little hard to follow. I had to look at it to make sure I captured all the cases where tags are included in the title. I think I've made it easier to follow.
Assignee | ||
Comment 10•5 years ago
|
||
Comment 11•5 years ago
|
||
Pushed by dwillcoxon@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/6ecc1f71e078 Properly extract tags from urlbar results in all cases. r=mak
Comment 12•5 years ago
|
||
bugherder |
Updated•5 years ago
|
Assignee | ||
Updated•5 years ago
|
Assignee | ||
Updated•5 years ago
|
Assignee | ||
Updated•5 years ago
|
Updated•5 years ago
|
Comment 13•5 years ago
|
||
I've reproduce this issue with Fx 71.0a1 (2019-09-07) on Windows 10 x64.
The issue is verified fixed with Fx 72.0a1 (2019-11-03) and Fx 71.0b6 on Windows 10 x64, macOS 10.15 and Ubuntu 18.04 x64.
Comment 14•5 years ago
|
||
This looks pretty ugly, did you want to nominate the patch for ESR68 uplift? It grafts cleanly as-landed.
Assignee | ||
Comment 15•5 years ago
|
||
Comment on attachment 9101026 [details]
Bug 1579612 - Properly extract tags from urlbar results in all cases.
ESR Uplift Approval Request
- If this is not a sec:{high,crit} bug, please state case for ESR consideration: Fixes an ugly regression.
- User impact if declined: In some cases, pages that the user has tagged will show up in the urlbar view with a missing unicode entity.
- Fix Landed on Version: 71
- Risk to taking this patch: Low
- Why is the change risky/not risky? (and alternatives if risky): This patch and the related code has extensive tests. This has baked since 71.
- String or UUID changes made by this patch:
Comment 16•5 years ago
|
||
Comment on attachment 9101026 [details]
Bug 1579612 - Properly extract tags from urlbar results in all cases.
Fix for a fairly bad regression in 68.1esr, let's uplift for 68.3esr.
Updated•5 years ago
|
Comment 17•5 years ago
|
||
bugherder uplift |
Comment 18•5 years ago
|
||
The issue is verified fixed with Fx 68.3esr (treeherder build provided in comment 17) on Windows 10 x64, macOS 10.13 and Ubuntu 18.04 x64.
Updated•2 years ago
|
Description
•