Commit Graph

595 Commits

Author SHA1 Message Date
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
Ehsan Akhgari
7ee15dd4e4 Bug 1483035 - Add the reject tracker cookie policy to the Cookies enterprise policy; r=mkaply 2018-08-17 11:29:05 -04:00
Brian Grinstead
dd4fd5c38b Bug 1482667 - Migrate mochitest-browser tests in browser/ to use element variations of firstChild, etc;r=paolo
Differential Revision: https://phabricator.services.mozilla.com/D3530
2018-08-17 16:45:52 +00:00
Kanika Saini
cd2eae9995 Bug 1479769 - Homepage Policy no longer needs to use complex prefs. r=felipe 2018-08-10 15:04:05 -03:00
Felipe Gomes
0de08f053e Bug 1470324 - Clean up some unused code in EnterprisePoliciesContent.js. r=kmag
There was some unused code in this file which was wasting memory.

This patch also avoids some more policies from being sent to the content process as they are not really needed there

MozReview-Commit-ID: C4FzesWMQi0
2018-07-27 14:51:12 -03:00
Felipe Gomes
4801e5ef79 Bug 1470324 - Use sharedData instead of initialProcessData in the enterprise policies code. r=kmag
This significantly simplifies the content-side implementation of the enterprise policies code since it doesn't have to listen for updates on the disallowed features list (with that, it also doesn't need to load early in order to set up those listeners)

MozReview-Commit-ID: 3lyZXq1j3D5
2018-07-27 14:51:10 -03:00
Boris Zbarsky
e98236cf07 Bug 1476145 part 3. Stop using getInterface(nsIDOMWindowUtils) in browser/. r=gijs 2018-07-24 19:47:41 -04:00
Michael Kaply
62437e71ca Bug 1471383 - Use iconURL.href and add test r=Felipe
Differential Revision: https://phabricator.services.mozilla.com/D2081
2018-07-19 15:04:06 +00:00
Kanika Saini
d760dc0e42 Bug 1469943 - Enterprise policy to set a custom app update URL. r=felipe 2018-07-12 22:33:50 +05:30
Kirk Steuber
322fa53814 Bug 1420514 - Replace app.update.enabled with app.update.disabledForTesting in enterprise policy tests r=Felipe
MozReview-Commit-ID: HfPvQjmZ7mo
2018-05-22 09:09:31 -07:00
Andreea Pavel
044d437861 Backed out 7 changesets (bug 1420514) for breaking bc on different files on a CLOSED TREE
Backed out changeset 5a46a221b6e8 (bug 1420514)
Backed out changeset 48ed6dfe8772 (bug 1420514)
Backed out changeset 01bf643c77e5 (bug 1420514)
Backed out changeset 5791b17ccb82 (bug 1420514)
Backed out changeset 416e398d942f (bug 1420514)
Backed out changeset de4a4592dbd9 (bug 1420514)
Backed out changeset d3399edf0197 (bug 1420514)
2018-07-12 21:22:32 +03:00
Kirk Steuber
2767df88cc Bug 1420514 - Replace app.update.enabled with app.update.disabledForTesting in enterprise policy tests r=Felipe
MozReview-Commit-ID: HfPvQjmZ7mo
2018-05-22 09:09:31 -07:00
Axel Hecht
28138483f9 Bug 721211: consolidate home page retrieval code, make it support non-localized prefs, r=jaws
Also changes the tooltip on the home button to be independent of the URLs
it opens, per dolske.

Some tests explicitly set browser.startup.homepage, but only through
SpecialPowers.putPrefEnv. That's a good compromise, given the extra
functionality there.

MozReview-Commit-ID: FPLxzi3jQAP
2018-05-28 12:38:01 +02:00
Michael Kaply
bba476914a Bug 1471651 - Allow Non FQDN to be specified in policy. r=Felipe
MozReview-Commit-ID: 4mVbOfTGIak
2018-06-27 12:11:49 -05:00