Commit graph

191 commits

Author SHA1 Message Date
Axel Hecht
5bdc727943 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

--HG--
extra : rebase_source : c2b014f2fb1c78ce04859344bd1803ef48d5d68d
2018-05-28 12:38:01 +02:00
Kanika Saini
e5fda270a7 Bug 1465953 - Create the basic structure for an about:policies page. r=felipe 2018-06-26 18:13:37 +05:30
Coroiu Cristina
caf49f9745 Backed out changeset a21149d9d236 (bug 1465953) for browser-chrome failures at browser/base/content/test/static/browser_all_files_referenced.js
--HG--
extra : rebase_source : 7ae744bf8fb568992e63fb5a15d1a64d69a3cb8e
2018-07-04 23:48:08 +03:00
Kanika Saini
a79aa16a78 Bug 1465953 - Create the basic structure for an about:policies page. r=felipe 2018-06-26 18:13:37 +05:30
Felipe Gomes
6bc4e8af53 Bug 1467593 - Add strict=false to the schema of some policies. r=mkaply
This allows mistakes given to URL and origin params to be less severe to the end user.

MozReview-Commit-ID: 3HXM6adjCo0

--HG--
extra : rebase_source : 2dba2e27e645ecf05752ecb5cf8332d986d9f0ab
2018-06-29 15:54:54 -03:00
Michael Kaply
df559c955a Bug 1463846 - Switch enterprise only policies to be machine on Windows. r=Felipe
MozReview-Commit-ID: 3lWwfzjVbhS

--HG--
extra : rebase_source : ab618361eed0ceaba64a50865ff4c628101c5922
2018-06-28 14:33:32 -05:00
Michael Kaply
0a4b780d16 Bug 1471355 - Block all chrome URLS if about: policy is active. r=Felipe
MozReview-Commit-ID: Ei1HglhfHjo

--HG--
extra : rebase_source : db67b71f759a3ae398d4c181e1354bb8b120387d
2018-06-26 16:08:16 -05:00
Michael Kaply
1a987ee809 Bug 1471651 - Allow Non FQDN to be specified in policy. r=Felipe
MozReview-Commit-ID: 4mVbOfTGIak

--HG--
extra : rebase_source : ed5527a6a2910f63ad80d3d9b6611ab486580bc9
2018-06-27 12:11:49 -05:00
Cosmin Sabou
f4b3baf021 Merge mozilla-inbound to mozilla-central. a=merge 2018-06-28 13:04:23 +03:00
Michael Kaply
2ae80170f9 Bug 1463902 - Remove first_available annotation. r=Felipe DONTBUILD
MozReview-Commit-ID: 1pJ1ZmoVMqt

--HG--
extra : rebase_source : 994e919cbb0eb9110bffae1adf6a22f23044fc62
2018-06-27 13:49:45 -05:00
Kanika Saini
7200618ade Bug 1465950 - Keep parsed policies stored by EnterprisePolicies.js to display them on about:policies page. r=felipe 2018-06-20 22:48:12 +05:30
Andreea Pavel
6fdc08bb18 Backed out changeset ce5b67578d0c (bug 1465950) for failing eslint at /builds/worker/checkouts/gecko/browser/components/enterprisepolicies/tests/browser/browser_policies_getActivePolicies.js on a CLOSED TREE 2018-06-27 20:24:23 +03:00
Kanika Saini
54c056cf0b Bug 1465950 - Keep parsed policies stored by EnterprisePolicies.js to display them on about:policies page. r=felipe 2018-06-20 22:48:12 +05:30
Gurzau Raul
78f3442000 Backed out changeset 04352a50d097 (bug 1465950) for linting failure on /enterprisepolicies/tests/browser/browser_policies_getActivePolicies.js on a CLOSED TREE 2018-06-27 06:55:53 +03:00
Kanika Saini
4a97b2fd54 Bug 1465950 - Keep parsed policies stored by EnterprisePolicies.js to display them on about:policies page. r=felipe 2018-06-20 22:48:12 +05:30
Kirk Steuber
9da04e18ce Bug 1460082 - Allow DisableAppUpdate and DisableSystemAddonUpdate policies outside of the ESR r=Felipe
Changing enterprise_only to machine_only will allow these policies outside of the ESR, but not in HKEY_CURRENT_USER.

MozReview-Commit-ID: UAT6CPFOWO

--HG--
extra : rebase_source : e3e49d347241803e6ecd48e037c496ab15b566d5
2018-06-21 07:42:11 -07:00
Kanika Saini
34337d5c9b Bug 1452533 - JsonSchemaValidator should output URL types as URL objects instead of nsIURIs. r=felipe 2018-06-05 19:20:40 +05:30
Kanika Saini
df87c5f07c Bug 1467062 - Permissions Policy added to configure camera, microphone, location and notifications r=Felipe
MozReview-Commit-ID: IqpEboxHjjt

--HG--
extra : rebase_source : 114f6513c39f1d81d7ff203552e149e5ca7eeaa7
2018-06-06 15:43:26 +05:30
Kanika Saini
e22513785d Bug 1466484 - Added remove to SearchEngines Policy r=Felipe
MozReview-Commit-ID: 6g3qp6q605i

--HG--
extra : rebase_source : 139d1d894b0df19eb394ace421c9bea58a86aa27
2018-06-11 21:36:15 +05:30
Joel Maher
50b91c0a14 Bug 1405428 - skip-if = verify on mochitests which do not pass test-verify. r=gbrown 2018-06-10 05:01:47 -04:00
Kris Maglione
7b7264f453 Bug 1464548: Part 3 - Update callers to use defineLazyGlobalGetters. r=mccr8
MozReview-Commit-ID: 9APGewiDDYB

--HG--
extra : rebase_source : 2931dd0eec0e4206414b698a9700fc20d922eb3a
2018-05-25 17:02:29 -07:00
Felipe Gomes
b370cc0222 Bug 1463895 - Allow some policies to be machine-only. r=mkaply
Machine-only policies can only be triggered from sources that require user privileges to make machine-wide changes. Currently, that means the policies.json file in the installation folder, or the HKEY_LOCAL_MACHINE registry root. In other words, it currently excludes the HKEY_CURRENT_USER registry root

MozReview-Commit-ID: G9wxEM19yVb

--HG--
extra : rebase_source : 8343d247fa308313f5ca466290f515716fa33ba0
2018-05-28 18:35:15 -03:00
Kanika Saini
0c62db9546 Bug 1453350 - Search Engines Policy runs on modification r=Felipe
MozReview-Commit-ID: DXfC6ldE63T

--HG--
extra : rebase_source : 9961373c51cc966857b7f0d86813f3815ce69473
2018-06-04 14:07:14 +05:30
Kirk Steuber
e4bec62788 Bug 1460086 - Disable pref: browser.policies.alternatePath except in testing and Nightly r=Felipe,mkaply
MozReview-Commit-ID: GA5Ntp7izPl

--HG--
extra : rebase_source : 8c998651a182f17622f303f09b0a7fc34e407976
2018-05-22 14:54:25 -07:00
kanika
776c97f433 Bug 1452740 - Added Policy: Disable Hardware Acceleration r=Felipe
MozReview-Commit-ID: FVrpCRtwQLh

--HG--
extra : rebase_source : ae6ec66f11537b46b0631b195f148ffea580971f
2018-05-15 20:22:39 +05:30
kanika
45a99bf084 Bug 1455888 - Added a check to Policies.jsm addAllowDenyPermissions to throw an error when the user tries to add built-in sites to the permission manager r=Felipe
MozReview-Commit-ID: JIRr6BtK3x8

--HG--
extra : rebase_source : bd6420a0e2f07408d7ca21b62268b0888e2ca9ab
2018-05-16 21:36:25 +05:30
Tooru Fujisawa
c12bdc0642 Bug 1420574 - Add CustomizableUITestUtils.prototype.{addSearchBar,removeSearchBar} to show search bar in nav bar and verify it does not overflow. r=Paolo 2018-05-09 09:48:40 +09:00
Andrew Halberstadt
ee69aa133e Bug 1451159 - [testing/profiles] Store profile data in actual profile look alike folders r=gbrown
This moves testing/profiles/prefs_general.js to
testing/profiles/common/user.js. It also adds an 'extensions' folder to the
common profile. Dropping extension files here will get them installed in all
test harnesses (useful for testing on try).

The idea is that all test harnesses will eventually use this 'common' profile.
We'll also create some new per harness profiles, e.g testing/profiles/mochitest
and testing/profiles/reftest. This way there will be a single location
developers can go to set preferences, both for a specific harness, and across
all harnesses.

MozReview-Commit-ID: 8sqBqLiypgU

--HG--
rename : testing/profiles/prefs_general.js => testing/profiles/common/user.js
extra : rebase_source : 72a4a4b691e93c77479c7e70647b0ca373862c51
2018-04-19 16:12:26 -04:00
Bogdan Tara
b7924c2ed2 Backed out 4 changesets (bug 1451159) for linux build bustages CLOSED TREE
Backed out changeset 72926ae685af (bug 1451159)
Backed out changeset f90a99682382 (bug 1451159)
Backed out changeset 3914937893de (bug 1451159)
Backed out changeset 79931e4a2bfb (bug 1451159)

--HG--
rename : testing/profiles/common/user.js => testing/profiles/prefs_general.js
2018-05-04 00:25:56 +03:00
Andrew Halberstadt
fd23fd839b Bug 1451159 - [testing/profiles] Store profile data in actual profile look alike folders r=gbrown
This moves testing/profiles/prefs_general.js to
testing/profiles/common/user.js. It also adds an 'extensions' folder to the
common profile. Dropping extension files here will get them installed in all
test harnesses (useful for testing on try).

The idea is that all test harnesses will eventually use this 'common' profile.
We'll also create some new per harness profiles, e.g testing/profiles/mochitest
and testing/profiles/reftest. This way there will be a single location
developers can go to set preferences, both for a specific harness, and across
all harnesses.

MozReview-Commit-ID: 8sqBqLiypgU

--HG--
rename : testing/profiles/prefs_general.js => testing/profiles/common/user.js
extra : rebase_source : 7599913e547533f2f57b597ad0f238c6cd391c82
2018-04-19 16:12:26 -04:00
Kris Maglione
a259026c9d Bug 1456035: Part 4 - Convert callers of XPCOMUtils.generateQI to ChromeUtils.generateQI. r=mccr8
This also removes any redundant Ci.nsISupports elements in the interface
lists.

This was done using the following script:

acecb401b7/processors/chromeutils-generateQI.jsm

MozReview-Commit-ID: AIx10P8GpZY

--HG--
extra : rebase_source : a29c07530586dc18ba040f19215475ac20fcfb3b
2018-04-22 20:55:06 -07:00
k88hudson
f37daeac63 Bug 1448971 - Replace "when Firefox starts" section in about:preferences#general with checkbox r=flod,jaws
MozReview-Commit-ID: JHL20S5gZq2

--HG--
extra : rebase_source : 7b6462b85cf44f69ac978115656b724a59a935a6
2018-04-04 12:28:22 -04:00
Kris Maglione
882b43fb78 Bug 1454202: Part 5b-c - Remove interstitial callback argument from getInstall* APIs. r=aswan
***
Bug 1454202: Part 5b - Remove interstitial callback argument from getInstall* APIs. r=aswan

MozReview-Commit-ID: ATKWozPZF4d
***
Bug 1454202: Part 5c - Update callers for new getInstall* signature. r=aswan

MozReview-Commit-ID: FWzZ2dxZOGs

--HG--
extra : rebase_source : f5460c6c7cb7dbd844c03edb6158cfdeb5e1dd9f
extra : absorb_source : d112aeea40576383a9acc7573cc4cde71b5150fb
extra : histedit_source : fb0ac000504068db820193823bcf1e6fac9fa3cf
2018-04-15 14:22:55 -07:00
Kris Maglione
877eae8863 Bug 1454202: Part 1 - Update legacy callers to use Promise-based AddonManager APIs. r=aswan
***
Bug 1454202: Part 1a - Auto-replace uses of callback-based AddonManager APIs with Promise-based versions. r=aswan

This was done using the following script:

4cd5ae9597/processors/aom-api-generators.jsm

MozReview-Commit-ID: 8hobLz15a66
***
Bug 1454202: Part 1b - Manually fix eslint errors after auto-rewrite. r=aswan

This also deletes an obsolete test whose xpcshell variant was already deleted.

MozReview-Commit-ID: DM9W9Q2SVIE
***
Bug 1454202: Part 1c - Manually fix non-eslint issues after auto-rewrite. r=aswan

MozReview-Commit-ID: DtMscWZuExc

--HG--
extra : rebase_source : d4c2f80bdf02ec4a07e3713a9ae1823145d25942
2018-04-14 19:38:18 -07:00
Mike Cooper
ab318eabb2 Bug 1440782 Part 1 - Move PolicyEngine's JSON schema validator to toolkit r=Felipe
MozReview-Commit-ID: 41K9xzry21w

--HG--
rename : browser/components/enterprisepolicies/PoliciesValidator.jsm => toolkit/components/utils/JsonSchemaValidator.jsm
rename : toolkit/components/normandy/test/browser/.eslintrc.js => toolkit/components/utils/test/browser/.eslintrc.js
rename : browser/components/enterprisepolicies/tests/browser/browser_policies_validate_and_parse_API.js => toolkit/components/utils/test/browser/browser_JsonSchemaValidator.js
extra : rebase_source : ea227390d924cc14a8c5b0f8dde64efcc14bbcd1
2018-04-17 16:36:05 -07:00
Sebastian Hengst
83a3e86872 Bug 1453970 - Failures for enterprise policy tests should be filed in Firefox::Enterprise Policies by default. DONTBUILD r=Felipe
MozReview-Commit-ID: JZS5998tjEx

--HG--
extra : rebase_source : fefaa61918919af1445294942f39d8d7bb965be0
2018-04-13 16:48:10 +02:00
Kirk Steuber
584905a52f Bug 1451024 - Cookie settings should be disabled when the related prefs are locked r=jaws
Also adds too the cookie tests to ensure this takes effect.

MozReview-Commit-ID: A85kv20BcnI

--HG--
extra : rebase_source : bd724ac1fb358d6ed1d4bfbe0d903f33619da647
2018-04-10 15:05:42 -07:00
Michael Kaply
f6606f0720 Bug 1452104 - Final tweaks to policy names and params. r=Felipe
MozReview-Commit-ID: CxxCqnyavfL

--HG--
extra : rebase_source : 88447d2d92b1565a7268e46ca2008f3e9634d1a4
2018-04-06 13:35:14 -05:00
shindli
a894ff1e68 Backed out changeset 13d1bdd6e8ce (bug 1452104) per developer's request on IRC on a CLOSED TREE 2018-04-06 23:14:49 +03:00
Michael Kaply
86af47e7de Bug 1452104 - Final tweaks to policy names and params. r=Felipe
MozReview-Commit-ID: CxxCqnyavfL

--HG--
extra : rebase_source : 409d9c64f3017f91f729c302ec7e43f52fea8547
2018-04-06 13:35:14 -05:00
Kirk Steuber
823f7f78af Bug 1429164 - Add enterprise policy to prevent showing the profile import wizard r=Felipe,Gijs
MozReview-Commit-ID: Lg7r1NrFbKl

--HG--
extra : rebase_source : d81e065a5e99e15c24dcb4a64dff4b0341f6efc4
2018-04-04 10:56:20 -07:00
Michael Kaply
81ca7c367c Bug 1449226 - Add better debug information for GPO. r=Felipe
MozReview-Commit-ID: GCw0kARRuJ5

--HG--
extra : rebase_source : b3eec8e1db10513a37d90893eda3d2d64c1cfe17
2018-04-03 17:24:08 -05:00
Narcis Beleuzu
58b4822076 Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-04-05 01:09:42 +03:00
Felipe Gomes
eb4b0ebf2f Bug 1429161. Policy follow-up: hide instead of disabling the Forget button. r=jaws 2018-04-04 16:22:24 -03:00
Felipe Gomes
f24699c293 Bug 1450761 - Policy to disable the Add Exception button on certificate error pages. r=jaws 2018-04-04 15:56:27 -03:00
Kanika Saini
5dac44183c Bug 1443242 - Disable about:debugging in InstallAddons Policy. r=felipe 2018-04-04 23:49:22 +05:30
Michael Kaply
51864e0561 Bug 1429179 - Add policy to clear data on shutdown. r=felipe
MozReview-Commit-ID: canswg76ZN
2018-04-03 15:59:52 -05:00
Kirk Steuber
17077953e2 Bug 1429157 - Create an enterprise policy to prevent profile refreshes r=Felipe,Gijs
MozReview-Commit-ID: K7yxDm0H7eH

--HG--
extra : rebase_source : 200cd53aa37f41eeb85baaa78f93c70a80d18539
2018-03-28 09:44:07 -07:00
Kirk Steuber
0499d2f215 Bug 1429157 - Change PoliciesPrefTracker.restoreDefaultValues to delete prefs that were previously non-existant r=Felipe
This is required to write a functional test for the enterprise policy that prevents profile refreshes.

MozReview-Commit-ID: G9SaT4UQWkw

--HG--
extra : rebase_source : 52acf037e698c8e41fbc709c4e6bbdfce575de85
2018-04-03 13:58:04 -07:00
Margareta Eliza Balazs
210797c4c1 Merge inbound to mozilla-central. a=merge 2018-04-04 12:43:55 +03:00