Selecting a market result with the keyboard blanks out the input
Categories
(Firefox :: Address Bar, defect, P1)
Tracking
()
People
(Reporter: adw, Assigned: adw)
References
Details
(Whiteboard: [sng])
Attachments
(1 file)
|
48 bytes,
text/x-phabricator-request
|
RyanVM
:
approval-mozilla-beta+
|
Details | Review |
Selecting a market result with keyboard blanks out the urlbar input. The input should show the query that will be performed when you hit Enter. if you then hit Enter, nothing happens.
Updated•1 year ago
|
| Assignee | ||
Comment 1•1 year ago
|
||
I can't reproduce this now. The input is blanked out, but pressing Enter does search for the right query. I could have sworn nothing happened. Maybe I had my own WIP applied that messed it up.
I already wrote a patch that makes some other changes, so I'll go ahead and post it anyway.
| Assignee | ||
Updated•1 year ago
|
| Assignee | ||
Comment 2•1 year ago
|
||
DYNAMIC results can already define payload.input in order to tell
UrlbarInput the value that should be set in the input when the result is
selected [1]. We can't use that here because market results can have many items
that all have their own query.
So this patch lets DYNAMIC results also set element.dataset.query on their
child elements, and it modifies the code at [1] so that it checks the query
defined on the element. I had to modify the related code paths so that the
selected element is passed in.
Since I was doing that, I thought it also made sense to hook up
element.dataset.query to the URL-loading path in UrlbarInput.pickElement().
Now DYNAMIC results can define payload.engine and either payload.query or
element.dataset.query, and UrlbarInput will automatically load the
appropriate search URL, just like it does for SEARCH results.
This also makes some other improvements:
-
Incorporate
datasetinto theUrlbarViewmethod that updates an element in
aDYNAMICrow (renamed from#setDynamicAttributes()to
#updateElementForDynamicType()) -
I moved some things from
MarketSuggestion.getViewTemplate()to
getViewUpdate()because the intended purpose ofgetViewTemplate()(and
view templates generally) is that they are only the DOM structure without any
"interior" data that depends on a givenUrlbarResult. Really the only reason
thatgetViewTemplate()exists at all is to support DOM structures with a
variable number of children. -
In the
MarketSuggestionsview template, I renameditemtoitem_${i}
because names should be unique within a view template.
Comment 4•1 year ago
|
||
| bugherder | ||
| Assignee | ||
Comment 5•1 year ago
|
||
Comment on attachment 9508373 [details]
Bug 1984214 - Update the urlbar input when a market result is selected.
Beta/Release Uplift Approval Request
- User impact if declined/Reason for urgency: This is required for the "carrots" realtime-suggestions Suggest feature in 143.
- Is this code covered by automated tests?: Yes
- Has the fix been verified in Nightly?: Yes
- Needs manual test from QE?: No
- If yes, steps to reproduce:
- List of other uplifts needed: None
- Risk to taking this patch: Low
- Why is the change risky/not risky? (and alternatives if risky): This is a little higher risk than the other "carrots" uplifts I've been requesting because it modifies general urlbar code and not only code specific to the carrots feature, but the changes are still relatively small and the urlbar test suite is extensive.
- String changes made/needed:
- Is Android affected?: No
Updated•1 year ago
|
Comment 7•1 year ago
|
||
Comment on attachment 9508373 [details]
Bug 1984214 - Update the urlbar input when a market result is selected.
Approved for 143.0b4.
Updated•1 year ago
|
Updated•1 year ago
|
Comment 9•1 year ago
|
||
I have verified this issue on the latest Firefox Nightly 144.0a1 (Build ID: 20250825091413) on Windows 11, macOS 15.3, and Ubuntu 24.04 x64.
- The urlbar shows the market keyword in the “<TICKER> stock” format when focusing the market suggestion.
- The “<TICKER> stock” string is still displayed in the urlbar after selecting the market suggestion using keyboard navigation and the SERP is displayed.
Comment 10•1 year ago
|
||
I have verified this issue on the latest Firefox Beta 143.0b4 (Build ID: 20250825091315) on Windows 11, macOS 15.3, and Ubuntu 24.04 x64.
- The urlbar shows the market keyword in the “<TICKER> stock” format when focusing the market suggestion.
- The “<TICKER> stock” string is still displayed in the urlbar after selecting the market suggestion using keyboard navigation and the SERP is displayed.
Description
•