Commit graph

121 commits

Author SHA1 Message Date
Gijs Kruitbosch
402b55c414 Bug 1738056 - use fluent to insert channel ref into about dialog instead of hoping nothing gets retranslated, r=mkaply,fluent-reviewers,flod
The extant code would fail if the user switched languages while the dialog was
open, as fluent would throw the manually-inserted content away. This patch
properly uses fluent to insert the channel, which also means we don't need to
wait for it to happen after `load` (because of the previous patch in this
stack), it'll be there immediately.

Differential Revision: https://phabricator.services.mozilla.com/D172299
2023-03-14 00:03:42 +00:00
Gijs Kruitbosch
c1ce490e37 Bug 1738056 - stop initializing the about window asynchronously and manually sizing it, r=emilio,mconley
Differential Revision: https://phabricator.services.mozilla.com/D172007
2023-03-14 00:03:42 +00:00
Iulian Moraru
2c92c7a07f Backed out changeset b352f130099f (bug 1738056) for causing bc failures on browser_aboutDialog_distribution.js. CLOSED TREE 2023-03-09 21:01:23 +02:00
Gijs Kruitbosch
28ac807b9e Bug 1738056 - stop initializing the about window asynchronously and manually sizing it, r=emilio,mconley
Differential Revision: https://phabricator.services.mozilla.com/D172007
2023-03-09 17:17:29 +00:00
Butkovits Atila
cb6b23ff4f Backed out changeset e8b15a7eb6ae (bug 1738056) for causing failures at browser_aboutDialog_AppUpdater_stop_ready_for_restart.js. CLOSED TREE 2023-03-09 02:52:54 +02:00
Gijs Kruitbosch
5184a1bb4d Bug 1738056 - stop initializing the about window asynchronously and manually sizing it, r=emilio,mconley
Differential Revision: https://phabricator.services.mozilla.com/D172007
2023-03-08 22:51:53 +00:00
Mike Kaply
729633726b Bug 1769265 - Disabling updater for packages should not be Windows specific. r=bhearsum,settings-reviewers,application-update-reviewers,bytesized
Differential Revision: https://phabricator.services.mozilla.com/D160069
2022-10-28 12:49:24 +00:00
Cristian Tuns
3927e0215d Backed out changeset 2fd5aae2c05a (bug 1769265) for causing xpcshell failures on win 2004 CLOSED TREE 2022-10-27 13:25:48 -04:00
Mike Kaply
23c4c15e90 Bug 1769265 - Disabling updater for packages should not be Windows specific. r=bhearsum,settings-reviewers,application-update-reviewers,bytesized
Differential Revision: https://phabricator.services.mozilla.com/D160069
2022-10-27 15:18:35 +00:00
Mark Banner
2ffde1e92f Bug 1792341 - Migrate more toolkit/modules consumers to use direct ES module import. r=Gijs,webdriver-reviewers,perftest-reviewers,necko-reviewers,geckoview-reviewers,preferences-reviewers,application-update-reviewers,pip-reviewers,credential-management-reviewers,sgalich,owlish,bytesized,AlexandruIonescu,whimboo,mconley,mixedpuppy
Mainly automated changes. Some manual ESLint fixes and whitespace cleanup.

Differential Revision: https://phabricator.services.mozilla.com/D158452
2022-10-18 11:21:26 +00:00
Emilio Cobos Álvarez
cd55c72212 Bug 1793259 - Make about dialog content-sized again. r=bytesized
In some locales, the actual size of the bottom boxes can be big enough
to overflow.

Instead of fixing the size to 620px, let the dialog be content-sized,
but limit the right box to take 500px by default (which seems
reasonable, as everything in there should wrap reasonably).

Make the release notes label actually flex (and thus wrap if there's not
enough space instead of overflowing).

Differential Revision: https://phabricator.services.mozilla.com/D158453
2022-10-04 07:16:59 +00:00
Emilio Cobos Álvarez
06278f99e5 Bug 1792862 - Try to minimize flickering of about dialog. r=bytesized
Differential Revision: https://phabricator.services.mozilla.com/D158353
2022-09-30 00:48:59 +00:00
Emilio Cobos Álvarez
ab8ce397d0 Bug 1792337 - Add a more convenient API to size a window constrained to a default size. r=bytesized,extension-reviewers,robwu,TYLin
Differential Revision: https://phabricator.services.mozilla.com/D158235
2022-09-30 00:45:36 +00:00
Emilio Cobos Álvarez
8eeec7dfa8 Bug 1792337 - Make about dialog use modern flexbox emulation, and size to a smaller width. r=Gijs,bytesized,application-update-reviewers,preferences-reviewers
That was presumably the intention of the explicit width in the CSS but
that wasn't working.

While at it, use a proper deck rather than a hand-rolled one.

Differential Revision: https://phabricator.services.mozilla.com/D158223
2022-09-28 20:27:57 +00:00
Csoregi Natalia
da0a8212cb Backed out changeset bb9421c2629c (bug 1792337) as requested. CLOSED TREE 2022-09-28 08:49:42 +03:00
Emilio Cobos Álvarez
cdc5370413 Bug 1792337 - Make about dialog use modern flexbox emulation, and size to a smaller width. r=Gijs,bytesized,application-update-reviewers
That was presumably the intention of the explicit width in the CSS but
that wasn't working.

While at it, use a proper deck rather than a hand-rolled one.

Differential Revision: https://phabricator.services.mozilla.com/D158223
2022-09-28 02:37:03 +00:00
Tooru Fujisawa
bf93d07148 Bug 1667455 - Part 5: Stop importing Services.jsm from chrome-priv JS code, top-level single-line cases. r=kmag,webdriver-reviewers,perftest-reviewers,webcompat-reviewers,geckoview-reviewers,extension-reviewers,application-update-reviewers,pip-reviewers,twisniewski,m_kato,jdescottes,mconley,AlexandruIonescu,mossop
Differential Revision: https://phabricator.services.mozilla.com/D150894
2022-07-11 12:41:50 +00:00
Mike Kaply
0f2af8604b Bug 1632058 - Always get distribution values from default prefs. r=preferences-reviewers,jaws
Differential Revision: https://phabricator.services.mozilla.com/D93805
2022-01-24 20:46:38 +00:00
Mike Kaply
f2649915eb Bug 1720389 - Add IS_ESR to AppConstants and rename ESR #ifdef to MOZ_ESR. r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D120371
2021-07-22 20:00:26 +00:00
Molly Howell
c8456941cf 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
e3638062b6 Backed out changeset cec939837018 (bug 1709978) for causing failures on app update. CLOSED TREE 2021-07-14 22:21:53 +03:00
Molly Howell
c797d0b164 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
bb0ba02a14 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
47070cef21 Backed out changeset 8dc3f02e20ca (bug 1660848) for multiple mochitest failures CLOSED TREE 2021-01-12 03:22:03 +02:00
Bernard Igiri
f6d19cf7e6 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
d9e09b568e 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
6fa498c582 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
f9f5914039 Bug 1561435 - Format browser/base/, a=automatic-formatting
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D36041

--HG--
extra : source : 96b3895a3b2aa2fcb064c85ec5857b7216884556
2019-07-05 09:48:57 +02:00
Michael Kaply
1338327760 Bug 1535592 - Don't resizeToContent until all content is modified. r=jaws
Differential Revision: https://phabricator.services.mozilla.com/D30721

--HG--
extra : moz-landing-system : lando
2019-05-10 21:02:37 +00:00
Kris Maglione
4f0a4ba33f Bug 1514594: Follow-up: Fix more Mac bustage in the same script. r=bustage 2019-01-28 19:14:34 -08:00
Kris Maglione
678976229b Bug 1514594: Follow-up: Fix Mac merge bustage. r=bustage 2019-01-28 17:27:32 -08:00
Kris Maglione
e930b89c34 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

--HG--
extra : rebase_source : 359574ee3064c90f33bf36c2ebe3159a24cc8895
extra : histedit_source : b93c8f42808b1599f9122d7842d2c0b3e656a594%2C64a3a4e3359dc889e2ab2b49461bab9e27fc10a7
2019-01-17 10:18:31 -08:00
Yuan Cheng
ec3f6109ec Bug 1518220 - Replace the usage of formatValues with Fluent arguments, r=jaws,flod
Differential Revision: https://phabricator.services.mozilla.com/D16772

--HG--
extra : moz-landing-system : lando
2019-01-18 18:03:18 +00:00
Michael Kaply
f9feeeb63b Bug 1507614 - Identify ESR with MOZ_APP_VERSION_DISPLAY. r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D12067

--HG--
extra : moz-landing-system : lando
2018-11-19 23:14:05 +00:00
Qinghao_Jack_Song
511029a72d Bug 1491672 - Migrate About Dialog to use Fluent for localization r=flod,zbraniecki,jaws
Differential Revision: https://phabricator.services.mozilla.com/D7206

--HG--
extra : moz-landing-system : lando
2018-11-05 16:13:12 +00:00
Michael Kaply
c4e0dd8f57 Bug 1443771 - Add ESR name to the about dialog. It is not translated. r=Felipe,jaws
MozReview-Commit-ID: FYjA7IrTGYt

--HG--
extra : rebase_source : 2b0a6773e5098e1963792a38b5251066f758a3ce
2018-03-14 17:41:26 -05:00
Kris Maglione
918ed6c474 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

--HG--
extra : source : 12fc4dee861c812fd2bd032c63ef17af61800c70
extra : intermediate-source : 34c999fa006bffe8705cf50c54708aa21a962e62
extra : histedit_source : b2be2c5e5d226e6c347312456a6ae339c1e634b0
2018-01-29 15:20:18 -08:00
Cosmin Sabou
9a65a40178 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
6476f95b13 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

--HG--
extra : source : 12fc4dee861c812fd2bd032c63ef17af61800c70
2018-01-29 15:20:18 -08:00
Brindusan Cristian
af8879d1eb 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
c276bb9375 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

--HG--
extra : rebase_source : c004a023389f1f6bf3d2f3efe93c13d423b23ccd
2018-01-29 15:20:18 -08:00
Jared Wein
6096e28d6c 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

--HG--
extra : rebase_source : 93f786f999639e3422c48526fefc7f3e75cdbe51
2017-11-20 10:50:23 -05:00
Evan Tseng
c79b0f2c8b 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

--HG--
extra : rebase_source : e9d46363c10556536bd7aecb8fcddf305cd6be5d
2017-08-18 16:11:34 +08:00
Evan Tseng
777b1ee41c Bug 1373570 - Focus the update button in about dialog once there is one visible. r=jaws
MozReview-Commit-ID: JFokKUdDAaY

--HG--
extra : rebase_source : b821eadc8f02569d2c763613c88afd4f188795bd
2017-06-28 16:03:38 -07:00
Matthew Noorenberghe
7a5289d1ca Bug 1279805 - Use app.releaseNotesURL to control release notes in the about dialog. r=florian
MozReview-Commit-ID: 7sqDACxFfJQ

--HG--
extra : rebase_source : ec87655250dc1899213c5073112ceff270d0395d
2017-04-10 18:26:23 -04:00
Mark Banner
1087fc1884 Bug 1352969 - Fix various ESLint no-undef issues in browser/base (no-undef is not enabled yet). r=mossop
MozReview-Commit-ID: BuTyJAfUoWR

--HG--
extra : rebase_source : 482bdc039362347f35aec9fd15e07a143dccb860
2017-02-22 17:02:59 +00:00
Florian Quèze
be00c3b9e8 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
9141469edf Bug 1326511 - Enable brace-style and no-multi-spaces eslint rules for toolkit. r=MattN
MozReview-Commit-ID: FuVu8skcqOe

--HG--
extra : rebase_source : 8ab34c4e46a7c3075b459bf44786ec184d10d203
2016-12-30 21:47:25 -05:00
Chris Peterson
7a2e464c59 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
e6276ea7f5 Bug 1294547 - Enable the comma-spacing rule for eslint. r=felipe
MozReview-Commit-ID: RCSDEvvk2I
2016-08-16 15:44:15 -04:00