Commit Graph

508 Commits

Author SHA1 Message Date
Michael Kaply
41eaa5f8bb Bug 1529312 - Allow DontCheckDefaultBrower policy to be false r=Felipe
Differential Revision: https://phabricator.services.mozilla.com/D20525
2019-02-22 16:15:55 +00:00
YUKI "Piro" Hiroshi
5c6b78d10e Bug 1463680 - Allow to install search engine with POST method via Policy Engine r=Felipe
Differential Revision: https://phabricator.services.mozilla.com/D19467
2019-02-15 00:30:43 +00:00
Michael Kaply
2e254d3821 Bug 1525340 - Disable CFR as part of XPI and shield policies. r=Felipe
Differential Revision: https://phabricator.services.mozilla.com/D19013
2019-02-19 18:01:42 +00:00
Michael Kaply
77bb8376e6 Bug 1527766 - Add enterprise policy for support menu. r=Felipe,flod
Differential Revision: https://phabricator.services.mozilla.com/D19722
2019-02-14 23:25:08 +00:00
Coroiu Cristina
3f63f92e16 Backed out changeset fa4298251cf2 (bug 1463680) for browser-chrome failures at browser/components/enterprisepolicies/tests/browser/browser_policy_search_engine.js 2019-02-12 17:24:32 +02:00
YUKI "Piro" Hiroshi
3bf7ec7301 Bug 1463680 - Allow to install search engine with POST method via Policy Engine r=Felipe
Differential Revision: https://phabricator.services.mozilla.com/D19467
2019-02-12 14:10:04 +00:00
Michael Kaply
baa8f15aab Bug 1526439 - Add an enteprise policy for extension updates. r=Felipe,flod
Differential Revision: https://phabricator.services.mozilla.com/D19200
2019-02-08 20:31:27 +00:00
Michael Kaply
821caf372f Bug 1524089 - Add policy for disabling DNS prefetch r=Felipe,flod
Differential Revision: https://phabricator.services.mozilla.com/D18575
2019-02-04 19:25: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
Michael Kaply
d9407d097d Bug 1523810 - Add a policy for disabling captive portal support. r=Felipe,flod
Differential Revision: https://phabricator.services.mozilla.com/D18007
2019-01-30 23:04:59 +00:00
Myk Melez
5ecc2c1225 Bug 1518283 - prohibit blank lines at the beginning and end of blocks (eslint padded-blocks) r=mossop,Standard8
Differential Revision: https://phabricator.services.mozilla.com/D17526
2019-01-30 17:26:25 +00:00
Cosmin Sabou
bf63534551 Merge mozilla-inbound to mozilla-central. a=merge 2019-01-29 12:01:56 +02:00
Timothy Guan-tin Chien
aabcb0d2fc Bug 1520350 - Lazily load about:preferences markups from hidden panes r=jaws
Because custom elements will be constructed when DOM is constructed,
construct the DOM in the hidden panels will be expensive as we move
more and more widgets to custom elements from XBL.

This patch attempts to counter that by moving all the pane markups
into comment nodes, and use MozXULElement.parseXULToFragment() to
insert it when it is being asked.

They will be loaded lazily from an requestIdleCallback() in findInPage.js.

Differential Revision: https://phabricator.services.mozilla.com/D16787
2019-01-29 00:27:29 +00:00
Andreea Pavel
f475dbf8d0 Backed out changeset ad9834d2b44e (bug 1520350) for failing browser_aboutPrefs_fc_check_otherInstance.js on a CLOSED TREE 2019-01-28 22:21:21 +02:00
Timothy Guan-tin Chien
4df4231bc8 Bug 1520350 - Lazily load about:preferences markups from hidden panes r=jaws
Because custom elements will be constructed when DOM is constructed,
construct the DOM in the hidden panels will be expensive as we move
more and more widgets to custom elements from XBL.

This patch attempts to counter that by moving all the pane markups
into comment nodes, and use MozXULElement.parseXULToFragment() to
insert it when it is being asked.

They will be loaded lazily from an requestIdleCallback() in findInPage.js.

Differential Revision: https://phabricator.services.mozilla.com/D16787
2019-01-28 18:21:59 +00:00
Michael Kaply
7a9352b895 Bug 1522182 - Add policies for SSL version max/min r=Felipe
Differential Revision: https://phabricator.services.mozilla.com/D17520
2019-01-25 19:37:27 +00:00
Michael Kaply
f3d08d85bb Bug 1522202 - Switch policy sorting test to case insensitive. r=Felipe
Differential Revision: https://phabricator.services.mozilla.com/D17403
2019-01-23 19:34:55 +00:00
Kris Maglione
856fa07b17 Bug 1514594: Part 3 - Change ChromeUtils.import API.
***
Bug 1514594: Part 3a - Change ChromeUtils.import to return an exports object; not pollute global. r=mccr8

This changes the behavior of ChromeUtils.import() to return an exports object,
rather than a module global, in all cases except when `null` is passed as a
second argument, and changes the default behavior not to pollute the global
scope with the module's exports. Thus, the following code written for the old
model:

  ChromeUtils.import("resource://gre/modules/Services.jsm");

is approximately the same as the following, in the new model:

  var {Services} = ChromeUtils.import("resource://gre/modules/Services.jsm");

Since the two behaviors are mutually incompatible, this patch will land with a
scripted rewrite to update all existing callers to use the new model rather
than the old.
***
Bug 1514594: Part 3b - Mass rewrite all JS code to use the new ChromeUtils.import API. rs=Gijs

This was done using the followng script:

https://bitbucket.org/kmaglione/m-c-rewrites/src/tip/processors/cu-import-exports.jsm
***
Bug 1514594: Part 3c - Update ESLint plugin for ChromeUtils.import API changes. r=Standard8

Differential Revision: https://phabricator.services.mozilla.com/D16747
***
Bug 1514594: Part 3d - Remove/fix hundreds of duplicate imports from sync tests. r=Gijs

Differential Revision: https://phabricator.services.mozilla.com/D16748
***
Bug 1514594: Part 3e - Remove no-op ChromeUtils.import() calls. r=Gijs

Differential Revision: https://phabricator.services.mozilla.com/D16749
***
Bug 1514594: Part 3f.1 - Cleanup various test corner cases after mass rewrite. r=Gijs
***
Bug 1514594: Part 3f.2 - Cleanup various non-test corner cases after mass rewrite. r=Gijs

Differential Revision: https://phabricator.services.mozilla.com/D16750
2019-01-17 10:18:31 -08:00
Kris Maglione
f498964d86 Bug 1519596: Part 1 - Remove several unnecessary/unused ChromeUtils.import() calls. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D16377
2019-01-11 16:59:23 -08:00
Robert Strong
d92fe3e258 Bug 1520693 - Add test for the About Dialog policyDisabled panel. r=Felipe 2019-01-21 15:50:17 -08:00
Ferenc Nagy
2c01d973a9 Bug 1497928 - Make about:policies report an error if json doesn't contain a 'policies' object. r=felipe 2018-12-18 18:23:18 -02:00
Coroiu Cristina
6e31a6fd5a Backed out 2 changesets (bug 1497928, bug 1494598) for browser-chrome failures at browser/components/enterprisepolicies/tests/browser/browser_policies_macosparser_unflatten.js on a CLOSED TREE
Backed out changeset 58cd47fe1774 (bug 1494598)
Backed out changeset 425ac2d14a27 (bug 1497928)
2018-12-19 00:02:14 +02:00
Ferenc Nagy
b40874f40d Bug 1497928 - Make about:policies report an error if json doesn't contain a 'policies' object. r=felipe 2018-12-18 18:23:18 -02:00
Robert Strong
32ca87427a Bug 1506915 - Move app update auto enabled / disabled to a jsm. r=bytesized,chutten
This moves getting and setting the value of app.update.auto from nsUpdateService.js to UpdateUtils.jsm so nsUpdateService.js isn't loaded during startup
Changes the browser_policy_app_update_URL.js test to check the default pref for app.update.url since the default pref is read by app update
Fixes a NS_NOINTERFACE error in app update xpcshell tests for AppInfo not implementing nsIPlatformInfo

Differential Revision: https://phabricator.services.mozilla.com/D13285
2018-11-28 21:47:03 +00:00
Siddhant085
19ca8b1ad3 Bug 1453264 - Dropping nsIBrowserSearchService::currentEngine in favour of defaultEngine. r=Standard8
All instances of nsIBrowserSearchService::currentEngine have been replaced by nsIBrowserSearchService::defaultEngine. Dropping this variable now.

Differential Revision: https://phabricator.services.mozilla.com/D12223
2018-11-28 15:21:11 +00:00
Felipe Gomes
57ca733685 Bug 1507885 - Screenshots policy test should check for the correct PageAction. r=_6a68
Differential Revision: https://phabricator.services.mozilla.com/D12160
2018-11-16 23:41:41 +00:00
Felipe Gomes
d3154210e9 Bug 1495749 - Allow add-ons to be updated via policy by uninstalling and reinstalling them. r=mkaply 2018-11-09 17:01:18 -02:00
Kirk Steuber
bc6d234bb9 Bug 1458308 - Change lookups of app.update.auto to use nsIApplicationUpdateService::(get|set)AutoUpdateIsEnabled r=rstrong
This patch also contains a few additional minor changes:
- Clears the user value set to the pref app.update.auto after the value is migrated.
- Fixes the app.update.auto pref migration test
- Makes a number of functions asynchronous to allow them to wait for app.update.auto setting changes
- TestAUSHelper's create-update-dir command no longer tries to set the permissions on all files in the update directory.  Fixes a potential race condition when creating the update directory.

Depends on D4594

Differential Revision: https://phabricator.services.mozilla.com/D10315
2018-11-06 21:18:21 +00:00
Andrea Marchesini
dfed330640 Bug 1503551 - Make window.external.AddSearchProvider a dummy function, r=smaug 2018-10-31 18:30:18 +01:00
Erica Wright
cb0f9f12b8 Bug 1501989 - turn "keep until" menu list into a checkbox r=flod,johannh
Remove the keepUntil menulist and label, add a checkbox that toggles the value of 'network.cookie.lifetimePolicy' between 2 and 0.

Differential Revision: https://phabricator.services.mozilla.com/D9955
2018-10-29 16:46:17 +00:00
Brian Grinstead
351e034123 Bug 1493536 - Convert search-one-offs binding to custom element;r=dao
Differential Revision: https://phabricator.services.mozilla.com/D9710
2018-10-25 09:36:15 +00:00
Michael Kaply
787e406539 Bug 1469951 - Update homepage policy to include startpage r=Felipe
Differential Revision: https://phabricator.services.mozilla.com/D8562
2018-10-16 15:09:58 +00:00
Felipe Gomes
2d48ffba97 Bug 1498032 - Support flat policies on Mac. r=spohl
Differential Revision: https://phabricator.services.mozilla.com/D8302
2018-10-11 21:36:56 +00:00
Michael Kaply
73f4e0c480 Bug 1496855 - Switch PDF policy to use pdfjs.disabled. r=Felipe
pdfjs.disabled now works from policy, so use it

Differential Revision: https://phabricator.services.mozilla.com/D8237
2018-10-10 21:57:34 +00:00
Michael Kaply
fffc845d84 Bug 1491664 - Allow true and false for ImportEnterpriseRoots policy. r=Felipe
Differential Revision: https://phabricator.services.mozilla.com/D8137
2018-10-10 22:00:23 +00:00
Michael Kaply
418019a967 Bug 1497722 - Reset locale after test. r=Felipe
Differential Revision: https://phabricator.services.mozilla.com/D8273
2018-10-10 21:56:55 +00:00
Michael Kaply
966c9113c5 Bug 1497549 - Add support for setting locale via policy. r=Felipe,zbraniecki
Differential Revision: https://phabricator.services.mozilla.com/D8112
2018-10-09 20:06:34 +00:00
Michael Kaply
a1e32ce902 Bug 1484843 - Add policy for disabling DNS over HTTPS r=flod,Felipe,jkt
Differential Revision: https://phabricator.services.mozilla.com/D7743
2018-10-09 19:06:57 +00:00
Doug Thayer
6c2f2815de Bug 1426245 - Test changes r=mak
MozReview-Commit-ID: 4fhhzspxLJZ

Depends on D4606

Differential Revision: https://phabricator.services.mozilla.com/D5162
2018-10-09 14:47:31 +00:00
Brian Grinstead
f5fda6062b Bug 1460982 - Convert <searchbar> to a Custom Element;r=adw
Differential Revision: https://phabricator.services.mozilla.com/D5912
2018-09-27 23:09:55 +00:00
Ehsan Akhgari
656d8a6a66 Backout changeset ba6be9a8195b (bug 1494145) because it wasn't the right fix 2018-09-27 14:37:06 -04:00
Ehsan Akhgari
028481d02a Bug 1494145 follow-up: Add the contentblocking prefs to one more test as well a=test-only 2018-09-27 03:03:14 -04:00
Andrea Marchesini
624a129768 Bug 1260399 - Remove deprecated messages in nsICookieManager methods - part 1 - nsICookieManager.add(), r=ehsan 2018-09-24 11:37:56 +02:00
Luca Greco
3d0975d7e5 Bug 1486761 - Add installTelemetryInfo to addon installed from EnterprisePolicies. r=mkaply
Differential Revision: https://phabricator.services.mozilla.com/D5549
2018-09-11 16:22:24 +00:00
Mark Banner
462116b7f9 Bug 1486739 - Add missing dangling commas in browser/, services/, taskcluster/ and toolkit/. r=mossop
Automatic changes by ESLint, except for manual corrections for .xml files.

Differential Revision: https://phabricator.services.mozilla.com/D4439
2018-08-31 05:59:17 +00:00
Kris Maglione
f6a4413b4c Bug 1484496: Part 5a - Convert browser/ nsISimpleEnumerator users to use JS iteration. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D3729
2018-08-18 19:27:33 -07:00
Ehsan Akhgari
e843facd7a Bug 1483378 - Part 5: Remove the old Cookies & Site Data UI; r=johannh,flod 2018-08-20 11:41:29 -04:00
Daniel Varga
5ab29c1092 Merge mozilla-inbound to mozilla-central. a=merge 2018-08-18 00:53:04 +03:00
Ehsan Akhgari
dab182ec59 Bug 1483035 - Add the reject tracker cookie policy to the Cookies enterprise policy; r=mkaply 2018-08-17 12:03:06 -04:00
Noemi Erli
876c1b8bad Backed out changeset 48eed9811f27 (bug 1483035) Linting failure on builds/worker/checkouts/gecko/browser/components/enterprisepolicies/tests/browser/browser_policy_cookie_settings.js CLOSED TREE 2018-08-17 18:50:51 +03:00