Commit Graph

70 Commits

Author SHA1 Message Date
Shane Caraveo
1034bc2ebf Bug 1705835 remove unused engineAdded extension setting r=rpl
Differential Revision: https://phabricator.services.mozilla.com/D112432
2021-04-22 15:33:51 +00:00
Mark Banner
c9be59b5ad Bug 1702454 - Re-enabling an add-on that overrides search engine parameters shouldn't cause a prompt. r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D110562
2021-04-15 15:57:41 +00:00
Shane Caraveo
f259d96a14 Bug 1698619 fix updating homepage setting on updates and for localization r=robwu
Differential Revision: https://phabricator.services.mozilla.com/D110717
2021-04-12 18:58:27 +00:00
Shane Caraveo
b46aa07a7d Bug 1646338 ask to set as default again when enabling a search addon r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D107132
2021-03-29 15:42:23 +00:00
Erica Wright
702fb9a86f Bug 1595858 - Allow users to select or deselect addons for homepage and newtab without disabling the addons. r=preferences-reviewers,Gijs,mixedpuppy,ahal
Differential Revision: https://phabricator.services.mozilla.com/D93584
2020-11-20 21:40:14 +00:00
Bogdan Tara
ff248efb24 sBacked out changeset 26f7d3a8b1b6 (bug 1595858) for overrides related mochitest failures CLOSED TREE 2020-11-18 01:42:59 +02:00
Erica Wright
e6b0316387 Bug 1595858 - Allow users to select or deselect addons for homepage and newtab without disabling the addons. r=preferences-reviewers,Gijs,mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D93584
2020-11-17 19:49:36 +00:00
Bogdan Tara
07d282afc6 Backed out changeset d86e4d6c2be4 (bug 1595858) for browser_ext_chrome_settings_overrides_home.js failures CLOSED TREE 2020-11-13 06:11:35 +02:00
Erica Wright
5855481ca4 Bug 1595858 - Allow users to select or deselect addons for homepage and newtab without disabling the addons. r=preferences-reviewers,Gijs,mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D93584
2020-11-13 02:02:47 +00:00
Mark Banner
88ece2d4ce Bug 1643858 - When an add-on is uninstalled at early startup, ensure that we also remove associated search engines. r=mixedpuppy,daleharvey
Differential Revision: https://phabricator.services.mozilla.com/D95540
2020-11-04 11:20:45 +00:00
Mark Banner
bc781a0864 Bug 1638888 - Make disabling and enabling a WebExtension restore the default search engine correctly. r=mixedpuppy,extension-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D76503
2020-06-16 08:54:24 +00:00
Mark Banner
7fc2b2098c Bug 1638888 - Simplify processSearchProviderManifestEntry to handle the not setting as default engine case first. r=mixedpuppy,extension-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D79271
2020-06-16 08:54:16 +00:00
Mark Banner
2b1410dfe5 Bug 1641261 - Handle the case when an app provided engine is hidden/removed, and a WebExtension wants to select as default. r=daleharvey
Differential Revision: https://phabricator.services.mozilla.com/D77429
2020-05-31 12:19:18 +00:00
Mihai Alexandru Michis
ffc388df9a Backed out changeset d82a23f070f6 (bug 1641261) for causing xpcshell failures in test_override_allowlist.js
CLOSED TREE
2020-05-30 11:19:08 +03:00
Mark Banner
097b0ab538 Bug 1641261 - Handle the case when an app provided engine is hidden/removed, and a WebExtension wants to select as default. r=daleharvey
Differential Revision: https://phabricator.services.mozilla.com/D77429
2020-05-29 23:09:34 +00:00
Mark Banner
a4bd46c2dd Bug 1635235 - Ensure browser_ext_settings_overrides_default_search.js can wait for search engine setup to complete to avoid intermittents. r=mixedpuppy
Depends on D76480

Differential Revision: https://phabricator.services.mozilla.com/D76910
2020-05-26 19:53:42 +00:00
Mark Banner
be3d4dc1e4 Bug 1635235 - Implement reading the allow override default search engine allowlist from remote settings. r=daleharvey
This implements reading the list from remote settings. We only read it at startup if necessary, or on add-on installation.

We do not check for updates - if something is removed, we'll wait until next startup before processing it.

Also adds lots of tests for canOverride as this seems a critical part to get right.

Differential Revision: https://phabricator.services.mozilla.com/D76473
2020-05-26 19:40:42 +00:00
Mihai Alexandru Michis
cc78e5f718 Backed out 2 changesets (bug 1635235, bug 1635239) for causing Bug 1640583.
CLOSED TREE

Backed out changeset 97ecda13df18 (bug 1635239)
Backed out changeset c9f80397bbec (bug 1635235)
2020-05-25 16:43:03 +03:00
Mark Banner
6c826e7ba0 Bug 1635235 - Implement reading the allow override default search engine allowlist from remote settings. r=daleharvey
This implements reading the list from remote settings. We only read it at startup if necessary, or on add-on installation.

We do not check for updates - if something is removed, we'll wait until next startup before processing it.

Also adds lots of tests for canOverride as this seems a critical part to get right.

Differential Revision: https://phabricator.services.mozilla.com/D76473
2020-05-24 21:45:41 +00:00
Mark Banner
5beee96289 Bug 1635231 - Allow overriding and setting as default specific search engines according to a allowlist. r=daleharvey,mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D75613
2020-05-21 10:42:20 +00:00
Dale Harvey
688a142a4d Bug 1621892 - Maintain engine settings when upgrading extension r=Standard8,mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D68247
2020-04-07 15:58:05 +00:00
Mark Banner
b7230156ea Bug 1590803 - Clean up uses of SearchService.getDefaultEngines where we can now use engine.isAppProvided. r=daleharvey
Differential Revision: https://phabricator.services.mozilla.com/D69235
2020-04-03 11:36:35 +00:00
Dorel Luca
7eec6ba613 Backed out 2 changesets (bug 1590803) for browser-chrome failures in browser/browser_placeholder.js. CLOSED TREE
Backed out changeset 6256694a9047 (bug 1590803)
Backed out changeset efd1d1868d70 (bug 1590803)
2020-04-02 18:39:32 +03:00
Mark Banner
ba85723ecd Bug 1590803 - Clean up uses of SearchService.getDefaultEngines where we can now use engine.isAppProvided. r=daleharvey
Depends on D69233

Differential Revision: https://phabricator.services.mozilla.com/D69235
2020-04-02 14:31:45 +00:00
Shane Caraveo
82889634a5 Bug 1578513 make disable/enable during safe mode update extension settings r=robwu
Differential Revision: https://phabricator.services.mozilla.com/D44595
2019-11-27 20:00:08 +00:00
Shane Caraveo
f559d8e729 Bug 1578513 make uninstall during safemode remove extension settings r=robwu
Differential Revision: https://phabricator.services.mozilla.com/D44594
2019-11-27 22:19:15 +00:00
monikamaheshwari
edb30ffaec Bug 1578683 Turn on ESLint rule prefer-boolean-length-check for toolkit and browser r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D45629
2019-09-14 09:39:26 +00:00
mandy cheang
861abbb961 Bug 1566489 - Avoid reading extension-setting.json on start-up, read it lazily. r=aswan,mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D40860
2019-08-08 16:15:17 +00:00
Mark Banner
967c3814e1 Bug 1535049 - Add telemetry for the homepage ignore actions. r=daleharvey,chutten,mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D40394
2019-08-05 21:53:09 +00:00
Mark Banner
bf6f936245 Bug 1535049 - Disallow setting homepages to ignored urls. r=daleharvey,mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D40393
2019-08-05 21:52:59 +00:00
Brindusan Cristian
fa58466122 Backed out 2 changesets (bug 1556789) on request from aryx for causing Bug 1565836. a=backout
Backed out changeset ca5fdf3a0ddd (bug 1556789)
Backed out changeset 19419ff4e756 (bug 1556789)
2019-07-13 20:52:45 +03:00
Shane Caraveo
d24d4ba91c Bug 1556789 - Refactor extension install in searchservice to use promises r=robwu,daleharvey
This provides a set of promises that the searchservice resolves once the search engine has been configured

Differential Revision: https://phabricator.services.mozilla.com/D33660
2019-07-12 19:33:32 +00:00
Gurzau Raul
719f78a402 Backed out 2 changesets (bug 1556789) for assertion failures in FF functional tests on a CLOSED TREE.
Backed out changeset 2d10e95cf0cd (bug 1556789)
Backed out changeset 0acf6bafda0f (bug 1556789)
2019-07-12 04:45:46 +03:00
Shane Caraveo
5e55c6af34 Bug 1556789 - Refactor extension install in searchservice to use promises r=robwu,daleharvey
This provides a set of promises that the searchservice resolves once the search engine has been configured

Differential Revision: https://phabricator.services.mozilla.com/D33660
2019-07-11 18:42:00 +00:00
Noemi Erli
b0fe69e20f Backed out 2 changesets (bug 1556789) for failures in test_engines_on_restart.py
Backed out changeset 5488dbd0fa34 (bug 1556789)
Backed out changeset 021d8cd8ba70 (bug 1556789)
2019-07-11 03:37:26 +03:00
Shane Caraveo
3aca06f599 Bug 1556789 - Refactor extension install in searchservice to use promises r=robwu,daleharvey
This provides a set of promises that the searchservice resolves once the search engine has been configured

Differential Revision: https://phabricator.services.mozilla.com/D33660
2019-07-10 22:47:02 +00:00
Victor Porof
8eb72fd3fc Bug 1561435 - Format browser/components/, a=automatic-formatting
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D36042
2019-07-05 09:53:32 +02:00
Andrew Swan
c0ee1b6276 Bug 1549192 Fix extension apis that handle addon disabling r=kmag
API implementations that check shutdownReason for values other than
APP_SHUTDOWN during extension shutdown are inherently broken since an
addon may be disabled or uninstalled between browser sessions, in which
case code that is meant to run in these cases will not get executed.
This patch fixes existing api implementations that are broken in this way.

Also ensure that APIs' onDisabled methods get called properly when an
extension is disabled between browser sessions.

Differential Revision: https://phabricator.services.mozilla.com/D30604
2019-05-09 19:59:21 -07:00
Shane Caraveo
b53bd5c5ef Bug 1541317 fix extension failures when setting homepage on upgrade r=aswan
Differential Revision: https://phabricator.services.mozilla.com/D29912
2019-05-08 01:30:25 +00:00
Dale Harvey
58a8a68238 Bug 1549122: Duct tape to prevent deadlock when search extensions upgraded on startup. r=mikedeboer a=Aryx
Differential Revision: https://phabricator.services.mozilla.com//D30004
2019-05-06 13:06:34 +02:00
Shane Caraveo
22782c87a5 Bug 1544965 only remove search engines for an extension if the extension actually has one r=rpl
Differential Revision: https://phabricator.services.mozilla.com/D29411
2019-05-01 14:55:12 +00:00
Noemi Erli
813ba27d62 Backed out changeset f706ae697922 (bug 1541317) for failures in test_ext_settings_overrides_search.js 2019-04-27 02:01:58 +03:00
Shane Caraveo
28c8a8e5ce Bug 1541317 support homepage setting on upgrade r=rpl,mkaply
Differential Revision: https://phabricator.services.mozilla.com/D28265
2019-04-26 18:54:19 +00:00
Dale Harvey
062752de53 Bug 1496075 - Part 1: Extensions changes to support search extensions. r=mixedpuppy,robwu
Differential Revision: https://phabricator.services.mozilla.com/D25244
2019-04-11 21:30:47 +00:00
Shane Caraveo
b371837b78 Bug 1532165 use prefs to support extension newtab and homepage on startup. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D25808
2019-04-08 22:36:26 +00:00
Rob Wu
b51d89ac07 Bug 1525729 - Stop blocking extension startup on searchInitialized r=aswan
Depends on D23311

Differential Revision: https://phabricator.services.mozilla.com/D19701
2019-03-13 18:48:57 +00:00
Andrew Swan
3753935bea Bug 1534796 Tweak default search prompts r=mkaply
Differential Revision: https://phabricator.services.mozilla.com/D23227
2019-03-12 14:32:24 -07:00
Narcis Beleuzu
fa44140bd3 Backed out changeset 52747743fe65 (bug 1525729) for XPCShell failures on test_ext_chrome_settings_overrides_update.js . CLOSED TREE 2019-02-28 22:59:55 +02:00
Rob Wu
5fa40d4191 Bug 1525729 - Ignore searchInitialized promise on shutdown r=aswan
Differential Revision: https://phabricator.services.mozilla.com/D19701
2019-02-28 17:39:18 +00:00
Mike de Boer
39f20cd843 Bug 1524593 - nsISearchService (aka nsIBrowserSearchService, previously) refactor to be mostly an asynchronous, in preparation of WebExtension engines. r=daleharvey
This is a rollup of all the patches that have landed on the cedar project branch:

891252fdd0
Bug 1492475 - Part 1: Migrate most, if not all nsSearchService consumers to use async APIs. r=florian

79b2eb2367
Bug 1492475 - Part 2: Move nsIBrowserSearchService.idl to toolkit/components/search/nsISearchService.idl and update references. r=florian

a947d3cdf0
Bug 1492475 - Part 3: The search service init() method should simply return a Promise. r=florian

c1e172dfac
Bug 1492475 - Part 4: Remove the synchronous initialization flow. r=florian

cd41189eac
Bug 1492475 - Part 5: Since async initialization of the search service now is implicit behavior, remove the distinctive verbiage used internally. r=florian

2ae7189dfa
Bug 1492475 - Part 6: Update the cache build task to work with an actual Promise and re-initialize only once at the same time - all to fix race conditions here. r=florian

c8ee92973f
Bug 1492475 - Part 7: Make the region fetch not block the init flow, to ensure it's as fast as possible. r=florian

c44e674e16
Bug 1492475 - Part 8: Introduce an init flag, which can only be used privately, that allows to explicitly skip waiting for the region check process to complete. r=florian

6c79eaf1d3
Bug 1492475 - Part 9: Update unit tests to stop using 'currentEngine', in favor of 'defaultEngine'. r=Standard8

21b3aa17ee
Bug 1492475 - Part 10: Update unit tests to be fully aware of the new, async signatures of the search service API and remove sync init flow tests. r=mkaply,florian

ce5ba69019
Bug 1492475 - Part 11: Repair incorrect usage of the `identifier` property of nsISearchEngine instances. r=florian

fd177a7994
Bug 1518543 - Fix up the Android (Fennec) nsISearchService shim to work with the new asynchronous API. r=florian

3653d8ee22
Bug 1523708 - Change the search service interaction in the show-heartbeat action to use the new async API. r=florian

Differential Revision: https://phabricator.services.mozilla.com/D18355
2019-02-02 11:27:21 +00:00