Commit Graph

102 Commits

Author SHA1 Message Date
Molly Howell
39c252e415 Bug 1709978 - Disable app update when running as a packaged app. r=agashlin,preferences-reviewers
This patch disables the update service as if it were disabled by policy
whenever a package identify is present. User interfaces are treated as if
the updater had not been included in the build, because that prevents any of
our usual update UI from being shown, and in particular ensures that we do not
generate messages about an administrator handling updates, as would normally
happen when disabling updates via policy.

The telemetry environment's update.enabled flag is deliberately left alone in
this patch, because the mere fact of using an app package does not really say
anything about whether the user intends to allow automatic updating or not.

Depends on D114427

Differential Revision: https://phabricator.services.mozilla.com/D114886
2021-07-15 20:58:21 +00:00
Csoregi Natalia
3c1b358566 Backed out changeset cec939837018 (bug 1709978) for causing failures on app update. CLOSED TREE 2021-07-14 22:21:53 +03:00
Molly Howell
9b2e4a1c87 Bug 1709978 - Disable app update when running as a packaged app. r=agashlin,preferences-reviewers
This patch disables the update service as if it were disabled by policy
whenever a package identify is present. User interfaces are treated as if
the updater had not been included in the build, because that prevents any of
our usual update UI from being shown, and in particular ensures that we do not
generate messages about an administrator handling updates, as would normally
happen when disabling updates via policy.

The telemetry environment's update.enabled flag is deliberately left alone in
this patch, because the mere fact of using an app package does not really say
anything about whether the user intends to allow automatic updating or not.

Differential Revision: https://phabricator.services.mozilla.com/D114886
2021-07-14 18:23:41 +00:00
Bernard Igiri
43e8d2bc1c Bug 1660848 - Add a check for updates option to application menus r=fluent-reviewers,jaws,harry,Gijs,flod,mkaply
Adding a check for updates option to the application menu, changing the about dialog styling to match the mockup, and adding a minimum delay to the checking for updates message.

Differential Revision: https://phabricator.services.mozilla.com/D95195
2021-01-15 14:26:58 +00:00
Bogdan Tara
a1eb81316f Backed out changeset 8dc3f02e20ca (bug 1660848) for multiple mochitest failures CLOSED TREE 2021-01-12 03:22:03 +02:00
Bernard Igiri
9fd6b8d74d Bug 1660848 - Add a check for updates option to application menus r=fluent-reviewers,jaws,harry,Gijs,flod,mkaply
Adding a check for updates option to the application menu, changing the about dialog styling to match the mockup, and adding a minimum delay to the checking for updates message.

Differential Revision: https://phabricator.services.mozilla.com/D95195
2021-01-11 22:37:05 +00:00
Emma Malysz
281e7584b2 Bug 1677801, adds UTM parameters to about dialog r=bigiri
Differential Revision: https://phabricator.services.mozilla.com/D97488
2020-12-07 21:16:33 +00:00
Michael Kaply
15e9428482 Bug 1644184 - allow hiding distro info for Mozilla distros. r=mhowell
Differential Revision: https://phabricator.services.mozilla.com/D78823
2020-06-10 05:31:45 +00:00
Victor Porof
a3641f184a Bug 1561435 - Format browser/base/, a=automatic-formatting
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D36041
2019-07-05 09:48:57 +02:00
Michael Kaply
f0599201e8 Bug 1535592 - Don't resizeToContent until all content is modified. r=jaws
Differential Revision: https://phabricator.services.mozilla.com/D30721
2019-05-10 21:02:37 +00:00
Kris Maglione
2b996c2f42 Bug 1514594: Follow-up: Fix more Mac bustage in the same script. r=bustage 2019-01-28 19:14:34 -08:00
Kris Maglione
9df78922c7 Bug 1514594: Follow-up: Fix Mac merge bustage. r=bustage 2019-01-28 17:27:32 -08: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
Yuan Cheng
60914e32ba Bug 1518220 - Replace the usage of formatValues with Fluent arguments, r=jaws,flod
Differential Revision: https://phabricator.services.mozilla.com/D16772
2019-01-18 18:03:18 +00:00
Michael Kaply
8c57b34d71 Bug 1507614 - Identify ESR with MOZ_APP_VERSION_DISPLAY. r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D12067
2018-11-19 23:14:05 +00:00
Qinghao_Jack_Song
22793ab15f Bug 1491672 - Migrate About Dialog to use Fluent for localization r=flod,zbraniecki,jaws
Differential Revision: https://phabricator.services.mozilla.com/D7206
2018-11-05 16:13:12 +00:00
Michael Kaply
327a04f5a9 Bug 1443771 - Add ESR name to the about dialog. It is not translated. r=Felipe,jaws
MozReview-Commit-ID: FYjA7IrTGYt
2018-03-14 17:41:26 -05:00
Kris Maglione
0bb74efdf1 Bug 1431533: Part 5a - Auto-rewrite code to use ChromeUtils import methods. r=florian
This was done using the following script:
37e3803c7a/processors/chromeutils-import.jsm

MozReview-Commit-ID: 1Nc3XDu0wGl
2018-01-29 15:20:18 -08:00
Cosmin Sabou
f09d6d985d Backed out 3 changesets (bug 1431533) for Android mochitest failures on testEventDispatcher on a CLOSED TREE
Backed out changeset a1eca62826a1 (bug 1431533)
Backed out changeset 34c999fa006b (bug 1431533)
Backed out changeset e2674287e57f (bug 1431533)
2018-01-30 07:17:48 +02:00
Kris Maglione
fd67f090b2 Bug 1431533: Part 5a - Auto-rewrite code to use ChromeUtils import methods. r=florian
This was done using the following script:
37e3803c7a/processors/chromeutils-import.jsm

MozReview-Commit-ID: 1Nc3XDu0wGl
2018-01-29 15:20:18 -08:00
Brindusan Cristian
483ba301cb Backed out 2 changesets (bug 1431533) for ESlint failures on a CLOSED TREE
Backed out changeset 6e56f4c8843e (bug 1431533)
Backed out changeset 12fc4dee861c (bug 1431533)
2018-01-30 02:32:43 +02:00
Kris Maglione
683a97d172 Bug 1431533: Part 5a - Auto-rewrite code to use ChromeUtils import methods. r=florian
This was done using the following script:
37e3803c7a/processors/chromeutils-import.jsm

MozReview-Commit-ID: 1Nc3XDu0wGl
2018-01-29 15:20:18 -08:00
Jared Wein
b707396e36 Bug 1419042 - Only use the distroVersion if the pref contains a value, otherwise leave it out of the version string. r=evanxd
MozReview-Commit-ID: Pign2W4RfE
2017-11-20 10:50:23 -05:00
Evan Tseng
9d1311a9ea Bug 1390561 - Add a new param "buttonAutoFocus" for appUpdater object to focus the button automatically because we need auto focus in about dialog but do not need it in preferences page. r=jaws
MozReview-Commit-ID: KcQVPguaP1o
2017-08-18 16:11:34 +08:00
Evan Tseng
14c5adbe2e Bug 1373570 - Focus the update button in about dialog once there is one visible. r=jaws
MozReview-Commit-ID: JFokKUdDAaY
2017-06-28 16:03:38 -07:00
Matthew Noorenberghe
264d0a6055 Bug 1279805 - Use app.releaseNotesURL to control release notes in the about dialog. r=florian
MozReview-Commit-ID: 7sqDACxFfJQ
2017-04-10 18:26:23 -04:00
Mark Banner
1b6f3efb6e Bug 1352969 - Fix various ESLint no-undef issues in browser/base (no-undef is not enabled yet). r=mossop
MozReview-Commit-ID: BuTyJAfUoWR
2017-02-22 17:02:59 +00:00
Florian Quèze
c1bca211b8 Bug 1345294 - add an eslint rule to reject usage of {get,set}ComplexValue for nsISupportsString and suggest {get,set}StringPref instead, and make it pass, r=Mossop. 2017-03-16 19:26:02 +01:00
Jared Wein
242ab87626 Bug 1326511 - Enable brace-style and no-multi-spaces eslint rules for toolkit. r=MattN
MozReview-Commit-ID: FuVu8skcqOe
2016-12-30 21:47:25 -05:00
Chris Peterson
7d8664f92c Bug 597738 - Display build architecture (32-bit or 64-bit) to the About dialog. r=dolske 2016-09-06 21:25:35 -07:00
Jared Wein
8860cdf2c1 Bug 1294547 - Enable the comma-spacing rule for eslint. r=felipe
MozReview-Commit-ID: RCSDEvvk2I
2016-08-16 15:44:15 -04:00
Robert Strong
0f0d448ce7 Bug 1262880 - browser changes - Remove add-on compatibility check from application update. r=felipc 2016-04-29 10:01:00 -07:00
Felipe Gomes
e2ae8d08b3 Bug 1228655 - Remove ifdefs in aboutDialog.js. r=Gijs 2015-12-01 20:06:02 -02:00
Sebastian Hengst
17b9ac85f2 Bug 1224834 - Remove infinite improbability drive. r=Gijs 2015-11-14 19:42:38 +01:00
Dave Townsend
f657500ff0 Bug 1192924: Expose the update URL formatting code a new UpdateUtils module. r=rstrong
The GMP manager uses a copy of the update service's url formatting code and has
since fallen out of sync. We'll also want to use the same formatting code for
the system add-on update checks so this just exposes it in a shared API.

I've moved the contents of UpdateChannel.jsm to UpdateUtils.jsm and exposed
formatUpdateURL there as well as a few properties that the update service still
needs access to.

UpdateUtils.UpdateChannel is intended to be a lazy getter but isn't for now
since tests expect to be able to change the update channel at runtime.
2015-09-14 11:04:19 -07:00
Wes Kocher
69b522405d Backed out 3 changesets (bug 1192924) for Android bustage CLOSED TREE
Backed out changeset 30d612836685 (bug 1192924)
Backed out changeset a6860f880e01 (bug 1192924)
Backed out changeset 10e1fa2cc23a (bug 1192924)
2015-09-22 11:02:55 -07:00
Dave Townsend
eef8701d19 Bug 1192924: Expose the update URL formatting code a new UpdateUtils module. r=rstrong
The GMP manager uses a copy of the update service's url formatting code and has
since fallen out of sync. We'll also want to use the same formatting code for
the system add-on update checks so this just exposes it in a shared API.

I've moved the contents of UpdateChannel.jsm to UpdateUtils.jsm and exposed
formatUpdateURL there as well as a few properties that the update service still
needs access to.

UpdateUtils.UpdateChannel is intended to be a lazy getter but isn't for now
since tests expect to be able to change the update channel at runtime.
2015-09-14 11:04:19 -07:00
Shu-yu Guo
37989840cd Bug 1202902 - Mass replace toplevel 'let' with 'var' in preparation for global lexical scope. (rs=jorendorff) 2015-09-15 11:19:45 -07:00
Paolo Amadini
7d087e0223 Bug 1192242 - Adjust the button design in some circumstances. r=Gijs 2015-08-08 08:42:42 +01:00
Hector Zhao
9f85d7b94b Bug 1035400 - Fix "restart to update" button. r=felipe 2015-01-14 17:39:01 +08:00
Michael Pruett
39110c1eb6 Bug 1004903 - Update about dialog to use UpdateChannel.jsm. r=gavin 2014-05-15 13:55:41 -05:00
YFdyh000
c93415dec2 Bug 1001794 - ""Help, About" does not show proper update channel in 29rc updated on beta channel" r=gavin 2014-04-30 17:03:00 +02:00
Sachin Hosmani
e7e80d7245 Bug 897735 - Support regular expression filters for name and creator in extension blocks. r=Unfocused
CLOSED TREE
2014-01-06 14:16:32 +05:30
Ryan VanderMeulen
efc7a0223b Backed out changeset 933bf791b773 (bug 897735) for Windows test bustage.
CLOSED TREE
2014-01-14 11:10:33 -05:00
Sachin Hosmani
1f3982def1 Bug 897735 - Support regular expression filters for name and creator in extension blocks. r=Unfocused 2014-01-06 14:16:32 +05:30
Steffen Wilberg
2393b22628 Bug 950357: The About dialog shouldn't check for updates without asking if the 'Never check for updates' option is selected. Instead, present a 'Check for Updates' button. r=felipe 2013-12-16 22:55:44 +01:00
Steffen Wilberg
735b1934fb Bug 600500: About Dialog should check for updates automatically, but not trick the user into installing them if updates are set to manual. ui-review=faaborg and shorlander, r=felipe 2013-12-12 00:14:58 +01:00
Steffen Wilberg
0176a6d00d Backed out changeset 43d16a0ca410 2013-12-12 00:08:39 +01:00
Steffen Wilberg
0c7373648c Bug 600500: About Dialog should check for updates automatically, but not trick the user into installing them if updates are set to manual. ui-review=faaborg and shorlander, r=felipe 2013-12-12 00:01:17 +01:00
Robert Strong
1d26a9f014 Bug 900925 - don't report error except when it isn't expected. r=mconnor 2013-11-20 16:22:44 -08:00