Closed
Bug 720066
Opened 13 years ago
Closed 13 years ago
Tagging broken, cannot type in the tag field
Categories
(Toolkit :: Autocomplete, defect)
Tracking
()
RESOLVED
FIXED
mozilla12
Tracking | Status | |
---|---|---|
firefox12 | - | --- |
People
(Reporter: ancestor.ak, Assigned: mak)
References
Details
(Keywords: regression)
Attachments
(1 file, 1 obsolete file)
(deleted),
patch
|
Gavin
:
review+
|
Details | Diff | Splinter Review |
Typing works fine as long as there are autocomplete results from your existing tags. As soon as there are no matches, the field gets cleared. I believe it may be caused by the recent autocomplete changes.
Works: http://hg.mozilla.org/mozilla-central/rev/58e933465c36
Broken: http://hg.mozilla.org/mozilla-central/rev/5c2bc94d359c
Pushlog: http://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=58e933465c36&tochange=5c2bc94d359c
Assignee | ||
Comment 1•13 years ago
|
||
taking to not lose it, but feel free to steal it.
Assignee: nobody → mak77
Comment 2•13 years ago
|
||
Tags Field of Bookmark Properties dialog , Edit Bookmark panel and and Library window are also broken.
Regression window(m-c)
Works:
http://hg.mozilla.org/integration/mozilla-inbound/rev/eea95e86541f
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:12.0a1) Gecko/20120119 Firefox/12.0a1 ID:20120119024012
Fails:
http://hg.mozilla.org/integration/mozilla-inbound/rev/19a5e75b8ed8
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:12.0a1) Gecko/20120119 Firefox/12.0a1 ID:20120119033312
Pushlog:
http://hg.mozilla.org/integration/mozilla-inbound/pushloghtml?fromchange=eea95e86541f&tochange=19a5e75b8ed8
Triggered by:
51dcdc85081c Michael Ventnor — Bug 660592 - Allow autocomplete results to hide themselves from the popup. r=mak sr=gavin
Assignee: mak77 → nobody
Blocks: 660592
Component: Bookmarks & History → Autocomplete
OS: Windows 7 → All
Product: Firefox → Toolkit
QA Contact: bookmarks → autocomplete
Hardware: x86_64 → x86
Version: Trunk → 12 Branch
Updated•13 years ago
|
tracking-firefox12:
--- → ?
Comment 4•13 years ago
|
||
had the same problem again after removing some addons and restarting the browser
Updated•13 years ago
|
Hardware: x86 → All
Assignee | ||
Comment 8•13 years ago
|
||
taking to not lose it from my radar, though feel free to steal it if you have a fix.
Assignee: nobody → mak77
Assignee | ||
Comment 9•13 years ago
|
||
So the patch removed a mRowCount == 0 bailout from CompleteDefaultIndex(), cause mRowCount does not take into account typeAheadResults. The problem is tags autocomplete result notifies RESULT_SUCCESS instead of RESULT_NOMATCH even if it has no results, so we actually go through CompleteDefaultIndex even if the complete value is an empty string. The previous check was protecting us from this kind of weirdness.
So I think to add back a protection from these cases (Actually adding a check that the index we try to complete is < than the number of matches), and fix the tags autocomplete implementation to return a proper message.
Assignee | ||
Comment 11•13 years ago
|
||
This would be the patch, looking into a test now, if possible.
Assignee | ||
Comment 12•13 years ago
|
||
Comes with a test now.
I was not sure if we would like to also add a fatal assertion for debug mode there, though it would make impossible to test the fix in debug mode. I may add a warning if you wish, though it will create noise in the test.
Attachment #590741 -
Attachment is obsolete: true
Attachment #590766 -
Flags: review?(gavin.sharp)
Assignee | ||
Updated•13 years ago
|
Status: NEW → ASSIGNED
Flags: in-testsuite+
Comment 14•13 years ago
|
||
Comment on attachment 590766 [details] [diff] [review]
patch v1.1
I was going to suggest putting this check in the loop above, but that'd be more complicated and wouldn't really make much of a difference in practice, so this is fine. This also made me find bug 720598...
Attachment #590766 -
Flags: review?(gavin.sharp) → review+
Assignee | ||
Comment 15•13 years ago
|
||
Target Milestone: --- → mozilla12
Assignee | ||
Comment 16•13 years ago
|
||
follow up to fix a typo, I should not code in cpp and js at the same time, I end up confusing array types :)
https://hg.mozilla.org/integration/mozilla-inbound/rev/f35bd9404ee4
Comment 17•13 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/360bd1a6e72b
https://hg.mozilla.org/mozilla-central/rev/f35bd9404ee4
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Comment 19•13 years ago
|
||
working great in today's nightly over here
well done!
Updated•13 years ago
|
You need to log in
before you can comment on or make changes to this bug.
Description
•