Closed
Bug 1232719
Opened 9 years ago
Closed 3 years ago
Extract search term to display in urlbar by reverse-parsing search url
Categories
(Firefox for Android Graveyard :: General, defect)
Tracking
(firefox46 affected)
RESOLVED
INCOMPLETE
Tracking | Status | |
---|---|---|
firefox46 | --- | affected |
People
(Reporter: liuche, Unassigned)
References
Details
Users can see their highlighted search term in the urlbar only if they haven't clicked on any links, including "next" in search engine result pages. We should show the search term as long as they are on a search results page by reverse-parsing the search url.
Comment 1•9 years ago
|
||
Emily, do you have a link to how we do this for iOS? I know we have some code to do this in the search activity: http://mxr.mozilla.org/mozilla-central/source/mobile/android/search/java/org/mozilla/search/providers/SearchEngine.java#223
Flags: needinfo?(etoop)
We run the risk of having search providers change search urls underneath us, breaking this feature. If we decide to go ahead with it anyway, we should add some error handling to handle an unknown url (which probably will just put the url in the toolbar instead). It'd be good to have some automated tests with live urls for this too. ;)
Comment 3•9 years ago
|
||
You can find the code for extracting the search term from the search templates here: https://github.com/mozilla/firefox-ios/blob/5ac33f075b03887135bf8cd3efccd97f043112aa/Client/Frontend/Browser/OpenSearch.swift#L74
Flags: needinfo?(etoop)
Comment 4•9 years ago
|
||
(In reply to Michael Comella (:mcomella) from comment #2) > We run the risk of having search providers change search urls underneath us, > breaking this feature. If we decide to go ahead with it anyway, we should > add some error handling to handle an unknown url (which probably will just > put the url in the toolbar instead). > > It'd be good to have some automated tests with live urls for this too. ;) Well, worst case, we'll just show what we show right now. While, yes, the providers can redirect, they can't change the URLs we use in our search plugins without us knowing about it. This would be a good candidate for a JUnit test. We have a test for the search activity, but of course it isn't in mozilla-central... https://bugzilla.mozilla.org/show_bug.cgi?id=1072429
Updated•9 years ago
|
Blocks: awesomescreen-search
Updated•9 years ago
|
No longer blocks: awesomescreen-v1
Comment 5•3 years ago
|
||
We have completed our launch of our new Firefox on Android. The development of the new versions use GitHub for issue tracking. If the bug report still reproduces in a current version of [Firefox on Android nightly](https://play.google.com/store/apps/details?id=org.mozilla.fenix) an issue can be reported at the [Fenix GitHub project](https://github.com/mozilla-mobile/fenix/). If you want to discuss your report please use [Mozilla's chat](https://wiki.mozilla.org/Matrix#Connect_to_Matrix) server https://chat.mozilla.org and join the [#fenix](https://chat.mozilla.org/#/room/#fenix:mozilla.org) channel.
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → INCOMPLETE
Assignee | ||
Updated•3 years ago
|
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•