Closed Bug 1570749 Opened 5 years ago Closed 5 years ago

[Nudges] Implement an experiment API to check whether a tab is the default search engine's web page

Categories

(Firefox :: Address Bar, task, P3)

task
Points:
3

Tracking

()

RESOLVED FIXED
Iteration:
72.2 - Nov 4 - 17

People

(Reporter: okonaraddi, Assigned: bugzilla)

References

Details

Implement browser.urlbar.isTabDefaultSearchEnginePage for privileged web extensions to check whether a given tab object is the default search engine's web page. This would be useful for Bug 1568594 where the search tips web extension wants to set a contextual tip on a default search engine's webpage but would need to determine whether the current tab is the default search engine's webpage.

Assignee: okonaraddi → nobody
Status: ASSIGNED → NEW
Iteration: 70.2 - Jul 22 - Aug 4 → ---
Priority: -- → P3
Blocks: 1568594

Morphing this a little. We need this for the tips/nudges experiment, but we should implement it as a webextension experiment API (inside the webextension) rather than in mozilla-central.

Mentor: adw
Summary: Privileged web extensions should be able to check whether a tab is the default search engine's web page → [Nudges] Implement an experiment API to check whether a tab is the default search engine's web page
Assignee: nobody → htwyford
Iteration: --- → 72.2 - Nov 4 - 17

I spoke with Drew and we've decided that it doesn't make a lot of sense/isn't feasible to do this as a general-case WebExt API. It's just going to be a method in the add-on's background.js that checks if the current page is the homepage of the user's default engine, if that engine is in a predefined set of en-US search engines (Google, Bing, DDG).

Status: NEW → ASSIGNED

Merged over on GitHub, so I'll close this bug.

Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.