Search from autocomplete input on toolbar opens three gloda tabs
Categories
(Thunderbird :: Search, defect)
Tracking
(thunderbird_esr78 unaffected)
Tracking | Status | |
---|---|---|
thunderbird_esr78 | --- | unaffected |
People
(Reporter: darktrojan, Assigned: lasana)
References
(Depends on 1 open bug, Regression)
Details
(Keywords: regression)
Attachments
(1 file, 1 obsolete file)
6.27 KB,
patch
|
mkmelin
:
review+
|
Details | Diff | Splinter Review |
STR: In the toolbar search widget, type something you know will produce results. Click on one of the suggestions in the drop-down. Three tabs are opened instead of one.
Comment 1•4 years ago
|
||
I see this with 84.0b1.
Alice, can you get a regression range?
Comment 2•4 years ago
•
|
||
What is "toolbar search widget"?
never mind, I see Ctrl+k to focus the search field
Comment 3•4 years ago
|
||
Regression window:
https://hg.mozilla.org/comm-central/pushloghtml?fromchange=06424ba4ea534eee5cf442b720daa0fb7757321e&tochange=2efdb12bede31bf730d98216ac68260e26d4ee9e
https://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=600f47bbfeb2b8dd8feb52dc9b0df0c72e01da9e&tochange=1581160e62e639714efe31ccf89e1f7f3c07d202
Comment 5•3 years ago
|
||
Thanks Alice. That puts a pretty fine point on the cause
Updated•3 years ago
|
Updated•3 years ago
|
Assignee | ||
Updated•3 years ago
|
Assignee | ||
Comment 7•3 years ago
|
||
We have three autocomplete widgets in the messenger.xhtml for global search at the following selectors:
.remote-gloda-search
, #IMSearchInput
and #searchInput
. All three hook into the "autocomplete-did-enter-text" nsIObserver event
to handle clicks on the autocomplete suggestions. The underlying C++ code does not seem to provide the original element as the subject for these events so the current code checks subject.popupElement
value to determine which gloda-autocomplete-input to handle the event.
Unfortunately, the 3 autocompletes are all using the same popupElement
so the checks will always be true.
Assignee | ||
Comment 8•3 years ago
|
||
This changes the check to use document.activeElement
instead of checking the popup element. Also adds some tests to make sure this action opens one tab however it will fail for the chat tab because of the issue in bug 1680587.
Assignee | ||
Comment 9•3 years ago
|
||
Requesting review from Alessandro because of the conversion work in bug 1542720. Bug 1542720 comment 24 is related.
Comment 10•3 years ago
•
|
||
Comment on attachment 9191273 [details] [diff] [review] bug1679113.patch Review of attachment 9191273 [details] [diff] [review]: ----------------------------------------------------------------- This fixes the issue in the gloda search. Good stuff in adding a test to cover this area, but unfortunately the test fails locally on macos. This is the failure log: FAIL uncaught exception - TypeError: can't access property "hasAttribute", window.gBrowser.selectedBrowser is null at AutocompleteInput/<@chrome://global/content/elements/autocomplete-input.js:70:1 testClickingGlobalSearchResultItemOpensOneTab@chrome://mochitests/content/browser/comm/mail/test/browser/global-search-bar/browser_clickResultItem.js:106:11
Assignee | ||
Comment 11•3 years ago
|
||
unfortunately the test fails locally on macos
This patch in bug 1680587 fixes this.
Comment 12•3 years ago
|
||
Comment on attachment 9191273 [details] [diff] [review] bug1679113.patch Review of attachment 9191273 [details] [diff] [review]: ----------------------------------------------------------------- You're right, bug 1680587 fixes the test failure. Updating my review.
Assignee | ||
Comment 13•3 years ago
|
||
Cool! thanks! Just need a resolution for bug 1680587 and this should be fixed.
Assignee | ||
Comment 14•3 years ago
|
||
Skipped the chat search test because my patch for bug 1680587 is unlikely to be accepted. Meanwhile this bug has a direct impact on usability.
Comment 15•3 years ago
|
||
Comment on attachment 9191679 [details] [diff] [review] bug1679113v2.patch Review of attachment 9191679 [details] [diff] [review]: ----------------------------------------------------------------- LGTM
Updated•3 years ago
|
Assignee | ||
Updated•3 years ago
|
Comment 16•3 years ago
|
||
Pushed by thunderbird@calypsoblue.org:
https://hg.mozilla.org/comm-central/rev/db6e5c49fa30
Ensure MozGlodaAutocompleteInput is active element before handling "autocomplete-did-enter-text". r=mkmelin
Description
•