UITour needs a way to detect which engine is currently selected

RESOLVED FIXED in Firefox 34

Status

()

defect
RESOLVED FIXED
5 years ago
5 years ago

People

(Reporter: Gavin, Assigned: Felipe)

Tracking

Trunk
Firefox 36
Points:
2
Dependency tree / graph
Bug Flags:
firefox-backlog +
qe-verify -

Firefox Tracking Flags

(firefox34+ verified, firefox35+ fixed, firefox36+ fixed)

Details

Attachments

(1 attachment, 2 obsolete attachments)

We may use this to inform the tour people get if we switch default search engines (e.g. if people are already using the existing default, don't show them anything about the change).

We can probably use getConfiguration for this, and just add a "selectedSearch" type that returns the selected search engine's identifier (to be consistent with other UITour search-related APIs).
Group: mozilla-employee-confidential
Posted patch getSelectedEngine (obsolete) — Splinter Review
Who should review this?
Attachment #8526123 - Flags: review?(gavin.sharp)
Posted patch getSelectedEngine (obsolete) — Splinter Review
Being cautious and wrapping the code around a Services.search.init
Attachment #8526143 - Flags: review?(gavin.sharp)
Attachment #8526143 - Flags: review?(dolske)
Attachment #8526123 - Attachment is obsolete: true
Attachment #8526123 - Flags: review?(gavin.sharp)
Comment on attachment 8526143 [details] [diff] [review]
getSelectedEngine

I think we should only send the identifier, I don't see any valid uses for the name and it could be potentially confusing.

The test should also in theory use the async init API.

r=me with those.
Attachment #8526143 - Flags: review?(gavin.sharp)
Attachment #8526143 - Flags: review?(dolske)
Attachment #8526143 - Flags: review+
(In reply to :Gavin Sharp [email: gavin@gavinsharp.com] from comment #3)
> Comment on attachment 8526143 [details] [diff] [review]
> getSelectedEngine
> 
> I think we should only send the identifier, I don't see any valid uses for
> the name and it could be potentially confusing.

I thought the name would be useful if the tour wants to expose the name of the engine to the user (instead of just using the identifier for some internal comparison)
Removed engine name and updated test
Attachment #8526143 - Attachment is obsolete: true
Attachment #8526161 - Flags: review+
Depends on: 1103127
No longer depends on: 1103127
Points: --- → 2
Flags: qe-verify?
Flags: firefox-backlog+
https://hg.mozilla.org/mozilla-central/rev/10950600b75b
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 37
Iteration: --- → 37.1
Target Milestone: Firefox 37 → Firefox 36
Verified as fixed using the following environment:

FF 34
Build Id:20141125180439
OS: Win 7 x64, Mac Os X 10.9.5, Ubuntu 14.04 x64

Manual verification was possible only on FF 34 the searchbar ui tour is available.
This was already verified on Firefox 34, and I don't think it needs further verification on 35 and 36.
Flags: qe-verify? → qe-verify-
You need to log in before you can comment on or make changes to this bug.