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

30 Коммитов

Автор SHA1 Сообщение Дата
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 691543ee89 Bug 1486739 - Add missing dangling commas in browser/, services/, taskcluster/ and toolkit/. r=mossop
Automatic changes by ESLint, except for manual corrections for .xml files.

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

--HG--
extra : moz-landing-system : lando
2018-08-31 05:59:17 +00:00
Felipe Gomes 6e2a493f16 Bug 1369466 - Change consumers to the new location of RemotePageManager. r=mossop
MozReview-Commit-ID: 66YVrSfIpYj

--HG--
extra : rebase_source : 594e8b1ecd3338804efd598f65cc3d61b800306c
2018-07-26 22:09:12 -03:00
Ursula Sarracini 95af8b91ca Bug 1474410 - Move ActivityStream instantiation and uninit into AboutNewTab r=Mardak
MozReview-Commit-ID: 5PupSQra62m

--HG--
extra : rebase_source : ae481f0884f827e61eb6d611a5e5a154f824a58e
2018-07-16 11:58:35 -04:00
Erica Wright dc93192a58 Bug 1448918 - Create about:welcome page in preparation for firstrun migration. r=dmose
MozReview-Commit-ID: L34uRsOeziS

--HG--
extra : rebase_source : 9e783e9ba1a8473c8867aa9c2a87337005acbab2
2018-04-23 15:47:57 -04:00
Cosmin Sabou 75fd9783c8 Backed out changeset 047536b1a60a (bug 1448918) for browser chrome failures on browser_urlbar_blanking.js. CLOSED TREE 2018-04-19 21:52:24 +03:00
Erica Wright b8d83d9bf4 Bug 1448918 - Create about:welcome page in preperation for firstrun migration. r=dmose
MozReview-Commit-ID: CoXu6R20GhM

--HG--
extra : rebase_source : 3155bc18a5071e554de325495820b4476c0ef5ce
2018-04-13 14:39:38 -04: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
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
Andrei Oprea 63f279cbf5 Bug 1392324 - Add pref to enable Activity Stream on about:home. r=Mardak
MozReview-Commit-ID: 8aRn6vWWpF0

--HG--
extra : rebase_source : 109a378df1463df44720b34ffa53e37db0c97fb1
2017-08-23 10:37:33 +02:00
ahillier 2a610d7f14 Bug 1385090 - Pass Remote Pages instance from AboutNewTab on override r=mossop
MozReview-Commit-ID: 7oBsmIUpQXs

--HG--
extra : rebase_source : 820f50652c905aabe59ce7c3b248179608896157
2017-08-01 15:08:16 -04:00
Sebastian Hengst 6c737f2554 Backed out changeset ae8bd889b02d (bug 1385090) for eslint failures in AboutNewTab.jsm and RemotePageManager.jsm. r=backout on a CLOSED TREE 2017-08-01 20:55:03 +02:00
ahillier 7babb467c7 Bug 1385090 - Pass Remote Pages instance from AboutNewTab on override r=mossop
MozReview-Commit-ID: 7oBsmIUpQXs

--HG--
extra : rebase_source : 63df4d8968031e23fd1973bce56bc95bfe6705be
2017-08-01 14:22:40 -04:00
gasolin 40422612bd Bug 1361286 - add in-page messages support for Automigration module; r=Gijs
MozReview-Commit-ID: I4xK2PkuHp3

--HG--
extra : rebase_source : 4e307d616ebe237c225ea131f9993c4df34d13ac
2017-05-24 16:56:00 +08:00
Sebastian Hengst b01db289d2 Backed out changeset 2612892f2785 (bug 1361286) for typos in its strings. r=backout 2017-05-27 10:27:02 +02:00
gasolin 9dbb25e1ad Bug 1361286 - add in-page messages support for Automigration module; r=Gijs
MozReview-Commit-ID: I4xK2PkuHp3

--HG--
extra : rebase_source : e29603a260163534dfcc83bf2886994688aa97e1
2017-05-24 16:56:00 +08:00
k88hudson 1da4448e89 Bug 1344372: Add override for RemotePageManager in AboutNewTab.jsm;r=mconley
MozReview-Commit-ID: 9hpJMtagXur

--HG--
extra : rebase_source : 2ffe6ffdad1ee61ce49ddd0101436020d649ed52
2017-03-07 14:22:33 -05:00
Gijs Kruitbosch 66df3660b9 Bug 1322730 - display undo migration message on about:newtab, r=Dolske
MozReview-Commit-ID: 8nIGdD9XyFH

--HG--
extra : rebase_source : edb3034962fb0f29e7bd245974096b6609718313
2017-01-04 19:05:50 +00:00
Sebastian Hengst e5329fbf68 Backed out changeset 9647d2c82af4 (bug 1322730) for eslint failures. r=backout 2017-01-04 20:05:06 +01:00
Gijs Kruitbosch 71aae2ba87 Bug 1322730 - display undo migration message on about:newtab, r=Dolske
MozReview-Commit-ID: 8nIGdD9XyFH

--HG--
extra : rebase_source : 82e1ca0b02602a69510da54de9a329289b5d57ce
2016-12-15 16:54:36 +00:00
Jared Wein ecab54a7c9 Bug 1325464 - Enable object-shorthand rule and run 'mach eslint --fix' with the rule enabled. r=MattN
MozReview-Commit-ID: 7E7LPorrEje

--HG--
extra : rebase_source : 0572a35415a766a3f31d266760ecd07f0dcc3f72
2016-12-29 18:34:54 -05:00
Wes Kocher 0dfb7c2b5c Backed out 3 changesets (bug 1325464) for xpcshell failures a=backout
Backed out changeset 562ddc32cc21 (bug 1325464)
Backed out changeset cd10db6087dd (bug 1325464)
Backed out changeset 4079437c4648 (bug 1325464)
2016-12-29 14:05:44 -08:00
Jared Wein 7255df4e9a Bug 1325464 - Enable object-shorthand rule and run 'mach eslint --fix' with the rule enabled. r=MattN
MozReview-Commit-ID: 8WoGr8i6oCR

--HG--
extra : rebase_source : da7172285d43b820421557ed3b05887e091ff939
2016-12-29 15:20:47 -05:00
Shu-yu Guo 64db2267cf Bug 1202902 - Mass replace toplevel 'let' with 'var' in preparation for global lexical scope. (rs=jorendorff) 2015-09-15 11:19:45 -07:00
Ursula d7ea881063 Bug 1168589 - Convert newtab-customize-panel into an HTML element. r=mconley, feedback=emtwo.
--HG--
extra : commitid : 82LlZsyBQH6
extra : rebase_source : f02239b28e596503b50801b606336db2bdaa1efe
extra : amend_source : ee648b4c9521cdfd6ce35a994dc688133881fec9
2015-06-15 15:36:43 -04:00