[Nudges] Implement an experiment API to check whether a tab is the default search engine's web page
Categories
(Firefox :: Address Bar, task, P3)
Tracking
()
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.
Updated•5 years ago
|
Comment 1•5 years ago
|
||
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.
Updated•5 years ago
|
Assignee | ||
Comment 2•5 years ago
|
||
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).
Updated•5 years ago
|
Comment 3•5 years ago
|
||
Merged over on GitHub, so I'll close this bug.
Description
•