Firefox address bar: typing a few letters and then clicking the first item in the drop-down runs a (Google) search on the text fragment instead of accessing that first URL (when using dns_first_for_single_words)
Categories
(Firefox :: Address Bar, defect, P1)
Tracking
()
People
(Reporter: bugzilla-mozilla-only-for-adi-20160420, Assigned: daisuke)
References
(Regression)
Details
(Keywords: regression, Whiteboard: [snt-scrubbed] [search-papercut])
Attachments
(3 files, 1 obsolete file)
31.91 KB,
image/png
|
Details | |
110 bytes,
text/plain
|
Details | |
48 bytes,
text/x-phabricator-request
|
dmeehan
:
approval-mozilla-beta+
dmeehan
:
approval-mozilla-release-
|
Details | Review |
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:106.0) Gecko/20100101 Firefox/106.0
Steps to reproduce:
- visit a random website... e.g. https://example.com/
- add it to bookmarks (i added it to "Other Bookmarks" in my case, but i think it might work with any bookmarks section)
- open a fresh tab (or window), close the old one
- start typing the first few letters of that bookmarked address (e.g. "exam" in the case above)
- CLICK (do not press Enter) on the first item that appears in the automatic drop-down (it should be the previously bookmarked URL)
note: i will check the "security" report checkbox in the bug submission form because this bug could result in accidental data leaks of typed data to search engines or unintended visits to other sites.
Actual results:
browser starts to run a (Google) search for the typed text fragment instead of accessing the site.
Expected results:
Browser should access the selected URL instead of sending the typed fragment to a search engine.
adding a screenshot of my current address suggestion settings from about:config
update: i managed to reproduce this bug in the 107.0b9 (64-bit) developers edition of Firefox.
setting the preference "browser.fixup.dns_first_for_single_words" to TRUE will cause this behaviour to happen.
Seems that another attachment is needed if i want to mark as obsolete the previous attachment with the about:config settings for suggestions settings.
possible related bugs:
https://phabricator.services.mozilla.com/D50051
Summary: Bug 1588118 - use the right flag to guard search service use from the URI fixup code, r?mak
https://bugzilla.mozilla.org/show_bug.cgi?id=1588118
Summary:Investigate why URIFixup may fixup to a search when only FIXUP_FLAG_FIX_SCHEME_TYPOS is passed-in
this one next one is ALMOST similar, but pressing Enter will go to that first URL, this time it is the CLICK action that causes the search problem
https://bugzilla.mozilla.org/show_bug.cgi?id=1663577
Summary: Editing URI in URI bar and pressing Enter goes to search instead of loading new URI
Comment 5•2 years ago
•
|
||
Because this isn't something a remote attacker can cause to happen, and because security bugs aren't normally accessible except to a very small set of people, and we should try to get this bug fixed as quickly as possible, I'm removing the flag.
Comment 6•2 years ago
|
||
[Tracking Requested - why for this release]:
Not doing the thing the UI promises to the user is bad.
Updated•2 years ago
|
User-Agent: Mozilla/5.0 (Windows NT 10.0; rv:107.0) Gecko/20100101 Firefox/107.0
User-Agent: Mozilla/5.0 (Windows NT 10.0; rv:108.0) Gecko/20100101 Firefox/108.0
- noticed that Firefox 107.0 stable was released, so i upgraded to it ...
- also upgraded Firefox Developer to version 108.0b1 (64-bit) ...
... the same wrong behaviour happens with browser.fixup.dns_first_for_single_words = true in both versions.
Updated•2 years ago
|
Comment 8•2 years ago
|
||
Reproduced on latest Nightly 109.0a1 with browser.fixup.dns_first_for_single_words
set to True.
Mozregression points to bug 1784455 (run it twice, because this issue doesn't seem related).
Found commit message: Bug 1784455: Unselect element selected by mouse even if mouseup at anywhere. r=adw
Comment 9•2 years ago
|
||
:daisuke, since you are the author of the regressor, bug 1784455, could you take a look? Also, could you set the severity field?
For more information, please visit auto_nag documentation.
Comment 10•2 years ago
|
||
Set release status flags based on info from the regressing bug 1784455
Comment 11•2 years ago
•
|
||
Clearing the selection in mouseup, without any checks, seems quite scary to me. I think we should, at a minumum, check the mouse is not hovering the results panel anymore.
I think the problem here is that we check and navigate to the selected result after mouseup, at that point the listener has cleared the selection.
Assignee | ||
Comment 12•2 years ago
|
||
Thank you for the report!
I take a look at this issue.
Assignee | ||
Comment 13•2 years ago
|
||
Updated•2 years ago
|
Updated•2 years ago
|
Updated•2 years ago
|
Comment 14•2 years ago
|
||
Pushed by dakatsuka.birchill@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/6ecb3a8b642d Unselect the selected element after pickElement(). r=adw
Comment 15•2 years ago
|
||
bugherder |
Comment 16•2 years ago
|
||
The patch landed in nightly and beta is affected.
:daisuke, is this bug important enough to require an uplift?
- If yes, please nominate the patch for beta approval.
- If no, please set
status-firefox108
towontfix
.
For more information, please visit auto_nag documentation.
Assignee | ||
Comment 17•2 years ago
|
||
STR for QA:
Please verify this bug is fixed and the issue of bug 1784455 does not happen.
For this bug with browser.fixup.dns_first_for_single_words pref:
- Turn on browser.fixup.dns_first_for_single_words pref.
- Open https://example.com.
- Bookmark it.
- Open a new tab.
- Close tab that has opened https://example.com.
- Type “ex” on the urlbar. Verify the first row result is for the page of https://example.com.
- Click the row. Verify https://example.com is opened.
For this bug without browser.fixup.dns_first_for_single_words pref:
- Turn off browser.fixup.dns_first_for_single_words pref.
- The rest is the same as above…
For bug 1784455:
- Open a new tab.
- Click on the urlbar. Verify the urlbar result is opened and there are quick action buttons on the result.
- Mouse down on one of quick action button. Verify the background color is changed to the selected color.
- While holding mouse down, move mouse to out side of the urlbar result. Verify the background color is still selected color.
- Mouse release. Verify the background color is changed to normal color.
Assignee | ||
Comment 18•2 years ago
|
||
Comment on attachment 9304006 [details]
Bug 1800380: Unselect the selected element after pickElement().
Beta/Release Uplift Approval Request
- User impact if declined: In case of that “browser.fixup.dns_first_for_single_words” is true, when clicking on the urlbar result, may open unexpected page.
- Is this code covered by automated tests?: Yes
- Has the fix been verified in Nightly?: No
- Needs manual test from QE?: Yes
- If yes, steps to reproduce: Please see comment 17.
- List of other uplifts needed: None
- Risk to taking this patch: Low
- Why is the change risky/not risky? (and alternatives if risky): This revision is to change only the order of processing for mouse release for urlbar results.
- String changes made/needed: None
- Is Android affected?: No
Updated•2 years ago
|
Comment 19•2 years ago
|
||
I have reproduced this issue on Firefox 108.0b5, on Windows 10, following the STR from comment 0 and comment 17 with the pref 'browser.fixup.dns_first_for_single_words' set to true.
This issue is verified as fixed on Firefox 109.0a1 (20221123213526) on Windows 10, Ubuntu 21.04 and macOS 10.15. Regardless of the pref setting (true or false), when typing a few letters and then clicking the first item in the drop-down the browser is opening the bookmarked URL and does not perform a Google search.
Also, I have verified that the issue of bug 1784455 is not reproducible.
Leaving the qe-verify+ flag until this gets verified in beta as well.
Comment 20•2 years ago
|
||
Comment on attachment 9304006 [details]
Bug 1800380: Unselect the selected element after pickElement().
Approved for 108.0b6.
Comment 21•2 years ago
|
||
bugherder uplift |
Comment 22•2 years ago
|
||
Verified as fixed on Firefox 108.0b6 (20221124185931) on Windows 10, Ubuntu 22.04 and macOS 10.15.
Comment 23•2 years ago
|
||
:daisuke, given the severity rating on this, would like to consider this in a dot release ride-along?
Could you add a release uplift request when ready?
Assignee | ||
Comment 25•2 years ago
|
||
Comment on attachment 9304006 [details]
Bug 1800380: Unselect the selected element after pickElement().
Beta/Release Uplift Approval Request
- User impact if declined: In case of that “browser.fixup.dns_first_for_single_words” is true, when clicking on the urlbar result, may open unexpected page.
- Is this code covered by automated tests?: Yes
- Has the fix been verified in Nightly?: Yes
- Needs manual test from QE?: Yes
- If yes, steps to reproduce: Please see comment 17.
- List of other uplifts needed: None
- Risk to taking this patch: Low
- Why is the change risky/not risky? (and alternatives if risky): This revision is to change only the order of processing for mouse release for urlbar results.
- String changes made/needed: None
- Is Android affected?: No
Assignee | ||
Updated•2 years ago
|
Comment 26•2 years ago
|
||
There are conflicts in release with browser/components/urlbar/UrlbarView.sys.mjs
Sorry :daisuke, could you add a patch rebased onto release? We could include it as a ride along in the next dot release
Assignee | ||
Comment 27•2 years ago
|
||
Hi Donal! Thank you very much.
I have one question.
I have never rebased to release before, what repository should I rebase to (what repository should I clone)?
Comment 28•2 years ago
|
||
https://hg.mozilla.org/releases/mozilla-release/
When grafting https://hg.mozilla.org/mozilla-central/rev/6ecb3a8b642d there are conflicts browser/components/urlbar/UrlbarView.sys.mjs
It's too late to fix for 107.0.1, but if you could attach a patch that grafts cleanly then I'll include it as a ride along if we have another 107 dot release.
Updated•2 years ago
|
Comment 29•2 years ago
|
||
Comment on attachment 9304006 [details]
Bug 1800380: Unselect the selected element after pickElement().
Rejecting 107 release uplift
108 is going to RC on 2022-12-05, we don't have a suitable dot-release vehicle before 108 goes live.
Updated•2 years ago
|
Comment 30•1 year ago
|
||
Removing the qe-verify+ flag as this was verified on fixed versions.
Description
•