"Default search engine" popup dismissed on refresh
Categories
(WebExtensions :: Frontend, defect, P3)
Tracking
(Not tracked)
People
(Reporter: marius.santa, Unassigned)
Details
Attachments
(2 files)
Comment 1•9 years ago
|
||
Updated•9 years ago
|
| Reporter | ||
Comment 2•9 years ago
|
||
Comment 3•9 years ago
|
||
Comment 4•9 years ago
|
||
Comment 5•9 years ago
|
||
Comment 6•9 years ago
|
||
Updated•9 years ago
|
Comment 8•8 years ago
|
||
Updated•8 years ago
|
Comment 10•8 years ago
|
||
Comment 11•8 years ago
|
||
Comment 12•8 years ago
|
||
Comment 13•7 years ago
|
||
I found a solution to this bug:
On successful install of the plugin, try polling firefox’s list of search engines: https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/search. to see if startpage is in the list and if it’s the default with the isDefault property on the search engine object https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/search/get. Then only redirect to success page if it is (aka if the user has clicked “ok” on the “set startpage to the default search engine” popup)
Comment 14•7 years ago
|
||
I found a solution to this bug:
On successful install of the plugin, try polling firefox’s list of search engines: https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/search. to see if your search engine is in the list and if it’s the default with the isDefault property on the search engine object https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/search/get. Then only redirect to success page if it is (aka if the user has clicked “ok” on the “set your search engine to the default search engine” popup)
Comment 15•7 years ago
|
||
(In reply to contactdanielrussell from comment #14)
I found a solution to this bug:
On successful install of the plugin, try polling firefox’s list of search engines: https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/search. to see if your search engine is in the list and if it’s the default with the isDefault property on the search engine object https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/search/get. Then only redirect to success page if it is (aka if the user has clicked “ok” on the “set your search engine to the default search engine” popup)
Daniel this work flow works if user opt in for add-on new search engine. But in case user has not taken any action or opt out of search engine update, currently there is no event in FF to notify add-on so that we can redirect user first run.
Updated•4 years ago
|
Description
•