Граф коммитов

46 Коммитов

Автор SHA1 Сообщение Дата
Victor Porof e999ae1989 Bug 1561435 - Format mobile/, a=automatic-formatting
# ignore-this-changeset

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

--HG--
extra : source : eafb1052afc7712c969e57552da5affc63093e9e
2019-07-05 10:53:35 +02:00
Ian Moody 50dc489a10 Bug 1538766 - mobile/ manual ESLint no-throw-literal fixes. r=petru
Differential Revision: https://phabricator.services.mozilla.com/D24732

--HG--
extra : moz-landing-system : lando
2019-03-26 08:29:54 +00: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
Mark Banner 89c3a48f36 Bug 1515729 - Remove Task.jsm usage from mobile/android. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D15464

--HG--
extra : moz-landing-system : lando
2018-12-28 22:36:18 +00:00
Mark Banner ceaeb93550 Bug 1486741 - Enable ESLint rule comma-dangle for all of mozilla-central (automatic fixes). r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D8389

--HG--
extra : moz-landing-system : lando
2018-10-19 12:55:39 +00:00
Florian Quèze 682b1ec3b2 Bug 1440284 - change this.EXPORTED_SYMBOLS back to var EXPORTED_SYMBOLS in JS modules, r=mccr8. 2018-02-23 20:50:01 +01:00
Mark Banner aa71c1a3b2 Bug 1439380 - Remove uses of Promise.jsm from mobile/android. r=nechen
MozReview-Commit-ID: KzrWz3K6vva

--HG--
extra : rebase_source : 1b112deaf4b0cea1742ec1742981460513bd6242
2018-02-19 15:50:26 +00:00
Andrew McCreight 5dec0e0beb Bug 1432992, part 1 - Remove definitions of Ci, Cr, Cc, and Cu. r=florian
This patch was autogenerated by my decomponents.py

It covers almost every file with the extension js, jsm, html, py,
xhtml, or xul.

It removes blank lines after removed lines, when the removed lines are
preceded by either blank lines or the start of a new block. The "start
of a new block" is defined fairly hackily: either the line starts with
//, ends with */, ends with {, <![CDATA[, """ or '''. The first two
cover comments, the third one covers JS, the fourth covers JS embedded
in XUL, and the final two cover JS embedded in Python. This also
applies if the removed line was the first line of the file.

It covers the pattern matching cases like "var {classes: Cc,
interfaces: Ci, utils: Cu, results: Cr} = Components;". It'll remove
the entire thing if they are all either Ci, Cr, Cc or Cu, or it will
remove the appropriate ones and leave the residue behind. If there's
only one behind, then it will turn it into a normal, non-pattern
matching variable definition. (For instance, "const { classes: Cc,
Constructor: CC, interfaces: Ci, utils: Cu } = Components" becomes
"const CC = Components.Constructor".)

MozReview-Commit-ID: DeSHcClQ7cG

--HG--
extra : rebase_source : d9c41878036c1ef7766ef5e91a7005025bc1d72b
2018-02-06 09:36:57 -08: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
Dan Banner 7caa92d5d8 Bug 1408777 - Automatically fix instances of missing semicolons in the tree. r=Standard8
MozReview-Commit-ID: Jm8BRgt6mIv
2017-10-15 20:50:39 +01:00
Dan Banner 4f8c0ecb0f Bug 1385815 - Enable brace-style and quotes ESLint rules for mobile/android. r=sebastian
MozReview-Commit-ID: 5IFF4IPpPVY

--HG--
extra : rebase_source : 69ec5e1ae3333c42cfc00dc47bb09d910ba07409
2017-08-01 16:43:56 +01:00
Dan Banner 12a96894b3 Bug 1385815 - Enable whitespace related ESLint rules for mobile/android. r=sebastian
MozReview-Commit-ID: 6B79zhklsYR

--HG--
extra : rebase_source : e32d5454c793f443b2d3336b9c9aacb8cdf2f63b
2017-08-01 16:34:11 +01:00
Florian Quèze cd762cc83c Bug 1344711 - script-generated patch to remove try blocks around get*Pref calls, r=jaws.
--HG--
extra : rebase_source : c6e20e6e79b0ca5de751c52712d96cbea9432d26
2017-03-07 15:29:48 +01:00
Jim Chen dfcdeb5ce1 Bug 1330439 - 3. Convert HomePanelsManager events to bundle events; r=sebastian
Convert events used in HomePanelsManager to bundle events. Background
thread events are used because HomePanelsManager processes panel changes
in the background thread. Changing to background thread events also lets
us make the change queue a simple ArrayList instead of a
ConcurrentLinkedQueue, because there is no longer multiple threads
involved.
2017-01-25 18:53:58 -05:00
Tooru Fujisawa 25ecae81fc Bug 1321226 - Remove legacy generator from mobile/. r=sebastian 2016-12-15 16:54:46 +09:00
Sebastian Kaspari 51b272a9fa backout c084008baf54 for busting home panel add-ons (bug 1178703)
--HG--
extra : commitid : DWADozj8J3Z
extra : rebase_source : d6993096aed0b65be9a7966fbe33ade512093ba2
2015-07-03 17:02:59 +02:00
Margaret Leibovic 38e143854d backout 8cab4b5abe7f for busting home panel add-ons (bug 1178739) 2015-06-30 13:51:39 -07:00
Michael Comella 0e096f7e43 Bug 1177774 - Fix issues in HomeProvider. r=margaret
--HG--
extra : commitid : H8Br4O297Mp
extra : rebase_source : 59971df614a4038f418537b22b0fc1345d07b8cf
2015-06-26 15:07:29 -07:00
Michael Comella 70c086d8fe Bug 1177774 - Explicitly declare generator functions. r=margaret
Use `function* () { ... }`.

--HG--
extra : commitid : GUwUuiF2wyN
extra : rebase_source : 5b84afc83026b7476d0c92cd6452c627057be558
2015-06-26 13:31:09 -07:00
Sebastian Kaspari f511089b41 Bug 1157539 - Create "speed dial" dynamic home panel layout. r=mhaigh
--HG--
extra : commitid : J69tandSl6o
extra : rebase_source : 0b7b26a376938ae42beb7d0f872b3f1df68eb7c3
2015-06-16 13:53:59 +02:00
Brian Nicholson 58055f5a0b Bug 1043633 - Change sendMessageToJava to Messaging.sendRequest. r=wesj 2014-09-02 11:59:05 -07:00
Jim Blandy 7e20285e70 Bug 914753: Make Emacs file variable header lines correct, or at least consistent. DONTBUILD r=ehsan
The -*- file variable lines -*- establish per-file settings that Emacs will
pick up. This patch makes the following changes to those lines (and touches
nothing else):

 - Never set the buffer's mode.

   Years ago, Emacs did not have a good JavaScript mode, so it made sense
   to use Java or C++ mode in .js files. However, Emacs has had js-mode for
   years now; it's perfectly serviceable, and is available and enabled by
   default in all major Emacs packagings.

   Selecting a mode in the -*- file variable line -*- is almost always the
   wrong thing to do anyway. It overrides Emacs's default choice, which is
   (now) reasonable; and even worse, it overrides settings the user might
   have made in their '.emacs' file for that file extension. It's only
   useful when there's something specific about that particular file that
   makes a particular mode appropriate.

 - Correctly propagate settings that establish the correct indentation
   level for this file: c-basic-offset and js2-basic-offset should be
   js-indent-level. Whatever value they're given should be preserved;
   different parts of our tree use different indentation styles.

 - We don't use tabs in Mozilla JS code. Always set indent-tabs-mode: nil.
   Remove tab-width: settings, at least in files that don't contain tab
   characters.

 - Remove js2-mode settings that belong in the user's .emacs file, like
   js2-skip-preprocessor-directives.
2014-06-24 22:12:07 -07:00
Margaret Leibovic 167a073a75 backout a8aeb5b375fb for causing bug 1017554 2014-05-29 14:08:42 -07:00
Zack Liu 878c4c670a Bug 990066 - Add star for generator functions. r=margaret 2014-05-26 23:45:00 -04:00
Margaret Leibovic 158c4ff827 Bug 999756 - Add parameter to HomeStorage.save to allow replacing existing items. r=lucasr 2014-05-13 09:13:31 +01:00
Margaret Leibovic d0c32c9b17 Bug 999756 - Delay sending "HomePanels:RefreshDataset" message to Java. r=lucasr 2014-05-13 09:13:31 +01:00
Margaret Leibovic e82b4d8b30 Bug 965452 - Limit number of items stored per dataset. r=rnewman 2014-05-13 09:13:30 +01:00
Margaret Leibovic 0cc253138e backout 3d0d92f2406b for not working properly 2014-04-21 15:00:08 -07:00
Lucas Rocha 5cdf6d897c Bug 969043 - Log warning in save()/deleteAll() calls outside of sync window (r=margaret) 2014-03-20 15:31:42 +00:00
Lucas Rocha 60cbf7f188 Bug 972098 - Refresh DynamicPanels when the dataset changes (r=margaret) 2014-03-20 15:28:22 +00:00
Lucas Rocha 9fa56eee26 Bug 963817 - Wrap HomeStorage data insertion loop in a transaction (r=margaret) 2014-03-12 17:02:50 +00:00
Lucas Rocha 98f01b68cf Bug 969055 - Validate items being saved with HomeProvider API (r=margaret) 2014-03-12 16:37:02 +00:00
Chenxia Liu 5d0d402f6f Bug 965606 - Part 0: Change home sync pref name, and type from boolean to ints. r=margaret 2014-03-07 15:28:48 -08:00
Lucas Rocha eabeb8bdbf Bug 975841 - Bootstrap schema upgrade path in HomeProvide.jsm (r=margaret) 2014-03-04 16:57:43 +00:00
Lucas Rocha 060511cade Backed out changeset 70bccf82bbfa (forgot to add reviewer) 2014-03-04 16:54:32 +00:00
Lucas Rocha 4b882661e7 Bug 975841 - Bootstrap schema upgrade path in HomeProvide.jsm 2014-03-04 16:52:13 +00:00
Josh Dover 70ca3b4484 Bug 942295 - Add basic filter support to Hub panels. r=lucasr 2014-02-05 11:00:06 -08:00
Margaret Leibovic 33e94a6056 Bug 965460 - Create helper method for database creation and migration. r=mcomella 2014-02-06 18:08:09 -08:00
Margaret Leibovic ff80549e7d Bug 964447 - Add sync APIs to HomeProvider. r=mcomella 2014-02-06 18:08:07 -08:00
Margaret Leibovic d3afd99c0d Bug 965033 - Hook up DynamicPanel to HomeProvider. r=lucasr 2014-01-28 16:43:09 -08:00
Margaret Leibovic 8ad019dff3 Bug 952310 - (Part 2) Unify JS and Java representations of HomeProvider schema. r=lucasr
--HG--
rename : mobile/android/base/resources/raw/fake_list_items.json => mobile/android/base/resources/raw/fake_home_items.json
2014-01-27 13:50:56 -08:00
Margaret Leibovic 7226569b14 Bug 942288 - Gecko data storage for home panels. r=wesj 2014-01-24 15:11:17 -08:00