Closed
Bug 1101670
Opened 10 years ago
Closed 10 years ago
UITour: ability to set a search term and show the search popup
Categories
(Firefox :: General, defect)
Tracking
()
People
(Reporter: benjamin, Assigned: Felipe)
References
Details
Attachments
(1 file)
(deleted),
patch
|
Dolske
:
review+
Gavin
:
approval-mozilla-beta+
|
Details | Diff | Splinter Review |
For the UITour, we want to be able to show the new search dropdown from the UI tour: the best way to do this is to fill in a predefined search term.
Updated•10 years ago
|
Group: mozilla-employee-confidential
Comment 1•10 years ago
|
||
We don't clear the search box after performing a search, so some users will have text in the input from their last search... Should the tour restore that text after finishing the tour? [I assume not: I expect it's not useful most of the time (we've have requests to auto-clear it), and it's not like people store their theis there.]
Similarly... Should UITour handle clearing the demo search after closing the tour?
Reporter | ||
Comment 2•10 years ago
|
||
At this point, the answer to both of those questions is "no". We'll overwrite and leave it.
Comment 3•10 years ago
|
||
Do we want the first-use UI from bug 1101654 to show as part of this or do we want a way to bypass it in this case?
Flags: needinfo?(benjamin)
Reporter | ||
Comment 4•10 years ago
|
||
It will just show up as normal, no special-casing here.
Flags: needinfo?(benjamin)
Assignee | ||
Updated•10 years ago
|
Assignee: nobody → felipc
Status: NEW → ASSIGNED
Updated•10 years ago
|
status-firefox34:
--- → affected
status-firefox35:
--- → affected
status-firefox36:
--- → affected
tracking-firefox34:
--- → +
tracking-firefox35:
--- → +
tracking-firefox36:
--- → +
Assignee | ||
Comment 5•10 years ago
|
||
on IRC bsmedberg mentioned that two separate APIs would be better (one for setting the value, one for opening the popup), so I made them like that.
Attachment #8526946 -
Flags: review?(benjamin)
Assignee | ||
Comment 6•10 years ago
|
||
Comment on attachment 8526946 [details] [diff] [review]
setSearchTerm and openSearchPanel
I meant to tag Dolske
Attachment #8526946 -
Flags: review?(benjamin) → review?(dolske)
Comment 7•10 years ago
|
||
Comment on attachment 8526946 [details] [diff] [review]
setSearchTerm and openSearchPanel
Review of attachment 8526946 [details] [diff] [review]:
-----------------------------------------------------------------
::: browser/components/search/content/search.xml
@@ +667,5 @@
> </method>
> </implementation>
> <handlers>
> + <handler event="input" action="this.inputChanged();"/>
> + <handler event="drop" action="this.inputChanged();"/>
I think you can avoid these changes / addition of inputChanged() by using searchbar.setUserInput() in UITour instead of setting searchbar.value directly. (See bug 1025483) Assuming the XUL input supports that, if not this is fine. :)
::: browser/modules/UITour.jsm
@@ +519,5 @@
> + let targetPromise = this.getTarget(window, "search");
> + targetPromise.then(target => {
> + let searchbar = target.node;
> + searchbar.value = data.term;
> + searchbar.inputChanged();
With a change to setUserInput(), this should probably be paranoid here, and explicitly clear the input when the existing value is the same as the "new" value. (Or else I suspect the various events don't fire? Not 100% sure, or if it matters?)
Attachment #8526946 -
Flags: review?(dolske) → review+
Comment 8•10 years ago
|
||
Comment on attachment 8526946 [details] [diff] [review]
setSearchTerm and openSearchPanel
You can use ".textbox" instead of "._textbox" everywhere.
Please update https://etherpad.mozilla.org/uitour-ff34 accordingly with the new API info.
Attachment #8526946 -
Flags: approval-mozilla-beta+
Assignee | ||
Comment 9•10 years ago
|
||
Changed to .textbox and updated etherpad.
https://hg.mozilla.org/releases/mozilla-beta/rev/86ac124fa5fc
Updated•10 years ago
|
Comment 10•10 years ago
|
||
Comment on attachment 8526946 [details] [diff] [review]
setSearchTerm and openSearchPanel
Review of attachment 8526946 [details] [diff] [review]:
-----------------------------------------------------------------
::: browser/modules/UITour.jsm
@@ +526,5 @@
> + }
> +
> + case "openSearchPanel": {
> + let targetPromise = this.getTarget(window, "search");
> + targetPromise.then(target => {
This API could have been implemented as showMenu("searchPanel") instead of adding a new top-level action. It already supports a callback too.
Updated•10 years ago
|
Flags: qe-verify+
QA Contact: catalin.varga
Updated•10 years ago
|
Points: --- → 2
Flags: firefox-backlog+
Comment 11•10 years ago
|
||
Verified as fixed using:
FF 43.RC1
Build Id:20141125180439
OS: Win7 x64, Ubuntu 14.04 x64, Mac Os X 10.9.5
with the demo environment from https://www-demo5.allizom.org/en-US/firefox/34.0/whatsnew/?oldversion=33.1.0
Assignee | ||
Comment 12•10 years ago
|
||
Comment 13•10 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 37
Updated•10 years ago
|
Iteration: --- → 37.1
Assignee | ||
Updated•10 years ago
|
Target Milestone: Firefox 37 → Firefox 36
Assignee | ||
Comment 14•10 years ago
|
||
Comment 15•10 years ago
|
||
Verified as fixed using:
FF 35.0b2
Build Id:20141208150535
using https://www.mozilla.org/en-US/firefox/35.0/whatsnew/?oldversion=33.1.0 link
Comment 16•10 years ago
|
||
Verified as fixed using:
FF36
Build Id:20141210004006
using https://www.mozilla.org/en-US/firefox/35.0/whatsnew/?oldversion=33.1.0 link.
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•