Commit Graph

565 Commits

Author SHA1 Message Date
Mike Kaply
59f1aaef9f Bug 1710796 - Don't show URL bar update hints if update is disabled. r=emalysz,mhowell
Differential Revision: https://phabricator.services.mozilla.com/D115245
2021-05-27 22:32:22 +00:00
Mike Kaply
f9e9c4ef97 Bug 1692159 - Disable saved password preference if disabled by policy. r=mixedpuppy,preferences-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D115655
2021-05-24 17:30:33 +00:00
Michelle Goossens
6cb6ba7640 Bug 1711498 - Remove checks for protonAppMenuEnabled or protonToolbarEnabled smart pref getters from tests r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D115651
2021-05-21 15:51:13 +00:00
Csoregi Natalia
bcd752b188 Backed out changeset e753adfbdc7d (bug 1710796) for failures on browser_policy_disable_app_update.js. CLOSED TREE 2021-05-21 00:32:39 +03:00
Mike Kaply
136e85bb64 Bug 1710796 - Don't show URL bar update hints if update is disabled. r=emalysz,mhowell
Differential Revision: https://phabricator.services.mozilla.com/D115245
2021-05-20 17:00:10 +00:00
Michelle Goossens
692ff0bb41 Bug 1711497 - Remove browser.proton.enabled checks/setters from tests r=Gijs,marionette-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D115539
2021-05-20 13:03:51 +00:00
Mike Kaply
01a5b74ee4 Bug 1710749 - If a website is blocked via policy, block about:reader r=emalysz
Differential Revision: https://phabricator.services.mozilla.com/D115066
2021-05-17 18:52:38 +00:00
Silke Hofmann
ee069252cb Bug 1710273 - Stop using ChromeUtils.import(..., null) for importing EnterprisePolicies.jsm. r=nhnt11,extension-reviewers,preferences-reviewers,zombie
Differential Revision: https://phabricator.services.mozilla.com/D115024
2021-05-12 23:16:33 +00:00
Markus Stange
d767385d17 Bug 1705120 - When a menu item in a native menu is activated, hide and close any non-native menus at the right times. r=harry
Differential Revision: https://phabricator.services.mozilla.com/D114441
2021-05-07 17:00:22 +00:00
Valentin Gosu
66643c5bf0 Bug 1574475 - Remove FTP proxy code r=necko-reviewers,preferences-reviewers,mixedpuppy,mkaply,dragana
Differential Revision: https://phabricator.services.mozilla.com/D111248
2021-04-28 09:33:46 +00:00
Mike Kaply
4a29ffd947 Bug 1706119 - Add enterprise policy for open-protocol-handler permission. r=emalysz,fluent-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D113034
2021-04-26 19:17:11 +00:00
Narcis Beleuzu
359bfccedf Backed out 8 changesets (bug 1574475, bug 1699222) for build bustages on moz.build . CLOSED TREE
Backed out changeset 6c2c039872b3 (bug 1574475)
Backed out changeset 8a2a04743c5f (bug 1699222)
Backed out changeset 9437c60798d6 (bug 1574475)
Backed out changeset 7ef1884ac11b (bug 1574475)
Backed out changeset ec8c237d5298 (bug 1574475)
Backed out changeset 4a760b3f5d53 (bug 1574475)
Backed out changeset b229b0eea1e7 (bug 1574475)
Backed out changeset 03d34a2f10a6 (bug 1574475)
2021-04-22 18:10:59 +03:00
Valentin Gosu
52e46d11c4 Bug 1574475 - Remove FTP proxy code r=necko-reviewers,preferences-reviewers,mixedpuppy,mkaply,dragana
Differential Revision: https://phabricator.services.mozilla.com/D111248
2021-04-22 13:41:34 +00:00
Harry Twyford
9d064bf33b Bug 1705142 - Make browser_policy_managedbookmarks.js work with native context menus. r=mac-reviewers,mstange
Differential Revision: https://phabricator.services.mozilla.com/D112059
2021-04-15 13:45:47 +00:00
Kirk Steuber
932e0a6f30 Bug 1703302 - Remove app.background.experimental to show background update UI unconditionally r=nalexander,preferences-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D111199
2021-04-14 17:50:07 +00:00
Sarah Ukoha
d6f3a5ba00 Bug 1703813 - Replaced BrowserTestUtils.waitForCondition with TestUtils.waitForCondition in browser_policy_extensions.js. r=prathiksha
Differential Revision: https://phabricator.services.mozilla.com/D111263
2021-04-08 20:17:51 +00:00
Mike Kaply
58478d588c Bug 1696948 - Make sure password field displays when DisablePasswordReveal is used r=emalysz
Differential Revision: https://phabricator.services.mozilla.com/D110119
2021-03-31 18:10:52 +00:00
Emma Malysz
4825c023d7 Bug 1700792, fix intermittent test failure by closing app menu r=mkaply
Differential Revision: https://phabricator.services.mozilla.com/D110117
2021-03-29 16:55:50 +00:00
Mike Kaply
175a292324 Bug 1679826 - Allow disabling updates for addons installed by policy. r=emalysz,mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D103381
2021-03-26 15:30:13 +00:00
Emma Malysz
c0ba2b2262 Bug 1700503, insert enterprise policy support menu item to app menu r=mkaply
Differential Revision: https://phabricator.services.mozilla.com/D109569
2021-03-24 20:48:28 +00:00
Scott
7d50c41836 Bug 1693376 - Move save to Pocket to the toolbar. r=Gijs,fluent-reviewers,gvn,flod
Differential Revision: https://phabricator.services.mozilla.com/D107744
2021-03-23 20:06:03 +00:00
Kirk Steuber
cb4ede06b8 Bug 1483399 - Add tests for the about:preferences UI for app.update.background.enabled r=nalexander
Differential Revision: https://phabricator.services.mozilla.com/D108707
2021-03-22 20:40:28 +00:00
Mike Kaply
33db4189e4 Bug 1691551 - Add enterprise policy for showing the home button. r=emalysz,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D108963
2021-03-19 22:07:05 +00:00
Mike Kaply
b1da93faf8 Bug 1697566 - Correct implementation of SkipOnboarding policy. r=emalysz
Differential Revision: https://phabricator.services.mozilla.com/D107894
2021-03-12 20:02:49 +00:00
Kirk Steuber
3940adf848 Bug 1691495 - Add tests for app.update.background.enabled and its policy r=nalexander,mkaply
Note that I made this a browser test rather than an xpcshell test, despite not using any particular browser functionality. I made this choice because I expect to expand this test a bit later, adding checking for preferences UI, much like the browser_policy_app_auto_update.js test in the same directory does.

Depends on D107922

Differential Revision: https://phabricator.services.mozilla.com/D107923
2021-03-10 22:12:24 +00:00
Jens Stutte
3b47cc9695 Bug 1689953: Harmonize shutdown phase definitions across nsTerminator and AppShutdown r=dthayer,chutten
This patch wants to solve several quirks around the shutdown terminator.

 - Use the same shutdown phase definitions in AppShutdown and nsTerminator. This touches quite a few files.
 - Ensure that the terminator phase shift is handled before any shutdown observer notifications are sent and reduce its heartbeat duration.
 - Add missing phases to the shutdown telemetry.

Please note that this changes the unit of "tick" to 100ms rather than 1s.
As a side effect, we also remove the obsolete "shutdown-persist" context.

While the existing test coverage continues to prove the most important functions, we acknowledge the wish for better test coverage with [[ https://bugzilla.mozilla.org/show_bug.cgi?id=1693966 | bug 1693966 ]].

Differential Revision: https://phabricator.services.mozilla.com/D103626
2021-02-27 14:38:14 +00:00
Butkovits Atila
d0aa372d80 Backed out changeset be43a81b35f9 (bug 1689953) for causing failure at test_terminator_record.js. CLOSED TREE 2021-02-27 05:03:11 +02:00
Jens Stutte
3fddfccde0 Bug 1689953: Harmonize shutdown phase definitions across nsTerminator and AppShutdown r=dthayer,chutten
This patch wants to solve several quirks around the shutdown terminator.

 - Use the same shutdown phase definitions in AppShutdown and nsTerminator. This touches quite a few files.
 - Ensure that the terminator phase shift is handled before any shutdown observer notifications are sent and reduce its heartbeat duration.
 - Add missing phases to the shutdown telemetry.

Please note that this changes the unit of "tick" to 100ms rather than 1s.
As a side effect, we also remove the obsolete "shutdown-persist" context.

While the existing test coverage continues to prove the most important functions, we acknowledge the wish for better test coverage with [[ https://bugzilla.mozilla.org/show_bug.cgi?id=1693966 | bug 1693966 ]].

Differential Revision: https://phabricator.services.mozilla.com/D103626
2021-02-26 21:33:29 +00:00
Emma Malysz
e2150da0fa Bug 1690858: add safemode toggle to help menu r=mconley,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D104747
2021-02-16 16:51:45 +00:00
Mark Banner
c991d8611e Bug 1608272 - Remove 'this' as the second argument to 'ChromeUtils.import', use object destructuring instead (test-only changes). r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D104683
2021-02-11 22:02:15 +00:00
Andrew Osmond
0aba05519a Bug 1686946 - Ship Software WebRender to OSX early beta/nightly users without (full) WebRender. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D101933
2021-02-11 17:53:40 +00:00
Luca Greco
ecc3c2550a Bug 1525179 - Use aboutaddons.html at the root of about:addons. r=robwu
- Moved aboutaddons.html at the root of the about:addons page
- renamed aboutaddons.js `initialize` global function to `initializeView` (and renamed `show` and `hide` global functions accordingly)
- Simplify initial load logic a bit more:
  - remove gCategories
  - moved responsability of the CategoriesBox initialization to the `initializationView` function
  - replaced initialization logic based on `gPendingInitializations` and `notifyInitialized` with
    a `promiseInitialized` global resolved when `initializeView` method has been called and its return value resolved
- Fix test helpers and test failures
  - InlineOptionsBrowser: take into account that browser-custom-element does opt-in the delayedConnectedCallback behavior
    and browser.loadURI may throw if called while the document is still loading.

Differential Revision: https://phabricator.services.mozilla.com/D96472
2021-02-03 17:08:14 +00:00
Daisuke Akatsuka
ce770ca251 Bug 1607245: Batch notification of bookmark-removed events. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D103155
2021-02-03 11:56:52 +00:00
Mike Conley
08ae3982d7 Bug 1689632 - Simplify the Help menu a bit. r=emalysz,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D103489
2021-02-01 15:31:30 +00:00
Tim Nguyen
c73c17d40f Bug 1689727 - Stop using XUL <deck> for #updateDeck. r=preferences-reviewers,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D103519
2021-01-30 15:02:35 +00:00
Magnus Melin
e24622e760 Bug 1688857 - remove leftover reference to the old xul about:config page. r=mkaply
Differential Revision: https://phabricator.services.mozilla.com/D103034
2021-01-26 19:25:05 +00:00
Mark Banner
da7df5a68d Bug 1649164 - Add an encoding option for policy search engines and change the default to UTF-8. r=mkaply
This will cause the default for any new policy engine in a profile, or an updated engine, to be UTF-8, unless specified by the policy.

Differential Revision: https://phabricator.services.mozilla.com/D100666
2021-01-05 09:48:52 +00:00
Michael Kaply
2028255e17 Bug 1680095 - Block Save Link As if site is blocked by policy. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D98527
2020-12-07 16:37:12 +00:00
Andrew McCreight
929d05c0ac Bug 1678413 - Release listeners for nsViewSourceChannel. r=necko-reviewers,dragana
Release the two kinds of listeners that view source channel has
if AsyncOpen fails, or in OnStop. This matches the behavior of
HttpChannelChild. The former change fixes a leak when view source
channels are blocked by enterprise policies.

It looks like clang-format deleted the double include of
nsViewSourceChannel.h.

Differential Revision: https://phabricator.services.mozilla.com/D98223
2020-11-30 21:09:31 +00:00
Marco Bonardo
5fee7240ed Bug 1677408 - Part 4 - Replace onItemVisited with page-visited. r=Standard8
Rather than fetching bookmarks from the disk for each page-visited notification,
we just let the result to recursively find and update children in the memory
structure.

Differential Revision: https://phabricator.services.mozilla.com/D97277
2020-11-23 16:28:04 +00:00
Butkovits Atila
c08d529090 Backed out 7 changesets (bug 1677408) for bustages on nsNavHistory.cpp. CLOSED TREE
Backed out changeset 1e0dc9aaa979 (bug 1677408)
Backed out changeset 4198bc35198c (bug 1677408)
Backed out changeset ff93f264138b (bug 1677408)
Backed out changeset 0f2d72d2ed5a (bug 1677408)
Backed out changeset 996cbd111957 (bug 1677408)
Backed out changeset b0c23854e117 (bug 1677408)
Backed out changeset f7d6cc5e4457 (bug 1677408)
2020-11-23 16:49:31 +02:00
Marco Bonardo
ae29233b62 Bug 1677408 - Part 4 - Replace onItemVisited with page-visited. r=Standard8
Rather than fetching bookmarks from the disk for each page-visited notification,
we just let the result to recursively find and update children in the memory
structure.

Differential Revision: https://phabricator.services.mozilla.com/D97277
2020-11-23 12:56:40 +00:00
Erica Wright
af69c5ca7d Bug 1677836 - Default off highlights section on New Tab. r=Mardak
Differential Revision: https://phabricator.services.mozilla.com/D97360
2020-11-20 17:25:21 +00:00
Michael Kaply
fac1267397 Bug 1465847 - If a website is blocked via policy, block view source. r=emalysz
Differential Revision: https://phabricator.services.mozilla.com/D94366
2020-11-19 19:42:14 +00:00
David Parks
fbdc676852 Bug 1675349: Update tests under browser/components for the removal of plugins. r=jmathies,mixedpuppy
UPDATED
-------

browser/components/extensions/test/browser/browser_ext_browsingData_pluginData.js
Test plugindata part of the browsingData extension's use of nsIClearDataService.
Have test attempt to clear non-existent data.  Test that browsingData APIs do not cause exceptions.

REMOVED
-------
browser/components/enterprisepolicies/tests/browser/browser_policy_disable_flash_plugin.js
Bug 1429169
Flash ctp/disabled by enterprise policy.

Differential Revision: https://phabricator.services.mozilla.com/D95907
2020-11-18 15:57:10 +00:00
Bogdan Tara
d1cceb4cfb Backed out 19 changesets (bug 1675349) for lint failures on browser_ext_browsingData_pluginData and test_archive CLOSED TREE
Backed out changeset 244e0f2b410c (bug 1675349)
Backed out changeset ba5724069dd4 (bug 1675349)
Backed out changeset 37fca259c7e9 (bug 1675349)
Backed out changeset f2b16caca1fc (bug 1675349)
Backed out changeset 28835d4935be (bug 1675349)
Backed out changeset eb913f58953a (bug 1675349)
Backed out changeset 19e3cb80f469 (bug 1675349)
Backed out changeset d9723f3a3a7e (bug 1675349)
Backed out changeset c888dfcdf70e (bug 1675349)
Backed out changeset 48f153341af6 (bug 1675349)
Backed out changeset 7fc67a9b2932 (bug 1675349)
Backed out changeset 1cee4d97f801 (bug 1675349)
Backed out changeset 59a0cb79c7c1 (bug 1675349)
Backed out changeset 43d349fa37b1 (bug 1675349)
Backed out changeset c84bfb6eae59 (bug 1675349)
Backed out changeset 38e9af69ae57 (bug 1675349)
Backed out changeset 3255c1ab3059 (bug 1675349)
Backed out changeset 2f3eaf9c342c (bug 1675349)
Backed out changeset 769e5c0db4c2 (bug 1675349)
2020-11-18 06:06:36 +02:00
David Parks
bee2db51bd Bug 1675349: Update tests under browser/components for the removal of plugins. r=jmathies,mixedpuppy
UPDATED
-------

browser/components/extensions/test/browser/browser_ext_browsingData_pluginData.js
Test plugindata part of the browsingData extension's use of nsIClearDataService.
Have test attempt to clear non-existent data.  Test that browsingData APIs do not cause exceptions.

REMOVED
-------
browser/components/enterprisepolicies/tests/browser/browser_policy_disable_flash_plugin.js
Bug 1429169
Flash ctp/disabled by enterprise policy.

Differential Revision: https://phabricator.services.mozilla.com/D95907
2020-11-18 03:11:46 +00:00
Michael Kaply
054c11bbe5 Bug 1660810 - Theme installed via policy should be enabled. r=emalysz
Differential Revision: https://phabricator.services.mozilla.com/D96621
2020-11-12 01:00:21 +00:00
Michael Kaply
585bda1945 Bug 1676439 - Don't show import button if DisableProfileImport policy is active. r=jaws
Differential Revision: https://phabricator.services.mozilla.com/D96600
2020-11-10 17:43:21 +00:00
Ricky Stewart
31b8ca9716 Bug 1654103: Standardize on Black for Python code in mozilla-central.
Allow-list all Python code in tree for use with the black linter, and re-format all code in-tree accordingly.

To produce this patch I did all of the following:

1. Make changes to tools/lint/black.yml to remove include: stanza and update list of source extensions.

2. Run ./mach lint --linter black --fix

3. Make some ad-hoc manual updates to python/mozbuild/mozbuild/test/configure/test_configure.py -- it has some hard-coded line numbers that the reformat breaks.

4. Make some ad-hoc manual updates to `testing/marionette/client/setup.py`, `testing/marionette/harness/setup.py`, and `testing/firefox-ui/harness/setup.py`, which have hard-coded regexes that break after the reformat.

5. Add a set of exclusions to black.yml. These will be deleted in a follow-up bug (1672023).

# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D94045
2020-10-26 18:34:53 +00:00