Commit Graph

67 Commits

Author SHA1 Message Date
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
Florian Quèze
2b1c8dccb6 Bug 1339461 - script-generated patch to convert foo.indexOf(...) == -1 to foo.includes(), r=Mossop. 2018-02-01 20:45:22 +01: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
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
9a7db035d4 Bug 1385815 - Enable more whitespace related ESLint rules for mobile/android. r=sebastian
MozReview-Commit-ID: FuM6Neob0mC

--HG--
extra : rebase_source : 29a9fbbaf74b17f4b02a835a7ef88550413514a0
2017-08-01 16:36:00 +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
Rajesh Kathiriya
48e6bc2124 Bug 1374620 - Enabled the ESLint dot-notation rule across mozilla-central r=standard8
MozReview-Commit-ID: FadrI2li43G

--HG--
extra : rebase_source : b455e846ab79c8141150517e67e542e3e06d630e
2017-07-25 23:45:41 +05:30
Sebastian Hengst
804a36e668 Backed out changeset f5922a7ed25a (bug 1374620) for failing eslint at telemetry/tests/unit/test_TelemetrySend.js:358: ["os"] is better written in dot notation. r=backout 2017-07-31 14:44:34 +02:00
Rajesh Kathiriya
22dfa54ef4 Bug 1374620 - Enabled the ESLint dot-notation rule across mozilla-central r=standard8
MozReview-Commit-ID: FadrI2li43G

--HG--
extra : rebase_source : 5992bdde34bcc2421350433bc8c1e498a6bba848
2017-07-25 23:45:41 +05:30
Jim Chen
296c0b8b43 Bug 1330439 - 4. Convert home panel observers to events; r=sebastian
Convert nsIObserverService observers used in home panels to events that
go through EventDispatcher.
2017-01-25 18:53:58 -05: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
Jim Chen
768eb3905e Bug 1330439 - 2. Convert HomeBanner events to bundle events; r=sebastian
Convert the events in HomeBanner to bundle events. "HomeBanner:Shown" is
removed in favor of using a callback.
2017-01-25 18:53:58 -05:00
Jim Chen
6738ee9866 Bug 1330439 - 1. Convert PanelInfoManager events to bundle events; r=sebastian
Convert the "HomePanels:Data" event to a GeckoBundle/BundleEventListener
event. UI thread event is used because the listener invokes the callback
on the UI thread.
2017-01-25 18:53:58 -05:00
Florian Quèze
fc6379e827 Bug 1329182 - remove trailing newURI null parameters in the rest of the tree, r=jaws. 2017-01-09 20:27:26 +01:00
Tushar Saini
55bca2eed6 Bug 1192788 - Can't install add-on panel at position 0. r=margaret
--HG--
extra : amend_source : 6fe6839cff3763fd35b64c1a1814a3c81bc0f3d8
2016-03-18 09:20:07 +05:30
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
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
Margaret Leibovic
9e60ff8134 Bug 1160346 - Allow home panel add-ons to specify order and make themselves default. r=mfinkle
--HG--
extra : rebase_source : c2bdd73d5673ae699574d5a8597f232f135395e8
2015-05-06 17:44:10 -07: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
Josh Dover
44326022c1 Bug 997328 - Update SharedPreferences.jsm to use scopes and mirror GeckoSharedPrefs. r=nalexander 2014-05-10 08:39:53 -07:00
Margaret Leibovic
886aa576af Bug 1002567 - Support weighted snippets. r=bnicholson 2014-04-30 14:38:02 -07:00
Margaret Leibovic
344a7a150a Bug 996669 - Assert panel exists in oninstall/onuninstall listeners. r=jdover 2014-04-25 16:57:56 -07:00
Josh Dover
1f231c8619 Bug 970707 - Pass refresh to JS callback. r=lucas 2014-04-15 15:51:00 +02:00
Josh Dover
e9bb505768 Bug 970707 - Add refreshEnabled to ViewConfig. r=margaret 2014-04-15 15:48:00 +02:00
Margaret Leibovic
aa799a33df Bug 993666 - Keep track of whether or not to send banner message to Java when a banner is added. r=bnicholson 2014-04-15 10:03:03 -07:00
Margaret Leibovic
26b8d53069 Bug 991190 - Rename Home.panels.authHandler API to Home.panels.auth. r=liuche 2014-04-04 15:55:06 -07:00
Margaret Leibovic
6082f66aa9 Bug 978991 - Add hooks to let an add-on know when a panel is installed/uninstalled. r=liuche 2014-04-04 15:55:03 -07:00
Margaret Leibovic
4e76284655 Bug 942281 - Create a PanelAuthCache to keep track of whether or not panel is authenciated (r=lucasr) 2014-03-27 09:25:04 -07:00
Margaret Leibovic
b11cb7dcd0 Bug 942281 - Add a view for authentication UI to DynamicPanel (r=lucasr) 2014-03-27 09:25:04 -07:00
Margaret Leibovic
55675f1dea Bug 942281 - Create AuthConfig and add authHandler option to Home.panels.register API (r=lucasr) 2014-03-27 09:25:03 -07:00
Margaret Leibovic
a81d9b968d Bug 942281 - Move panel validation into Panel constructor (r=lucasr) 2014-03-03 14:23:06 -08:00
Margaret Leibovic
64121e61cf Bug 975239 - (Part 1) Choose a banner message at random instead of rotating through a queue. r=bnicholson 2014-03-07 11:23:26 -08:00
Josh Dover
1bd84e14ee Bug 974723 - Send shown event when banner message is displayed. r=margaret 2014-02-20 12:38:27 -08:00
Lucas Rocha
f60a15d413 Bug 967286 - Default to Layout.FRAME if layout type isn't specified (r=margaret) 2014-02-25 17:40:50 +00:00
Lucas Rocha
538c44e186 Bug 974139 - Redefine registration logic to return panel options dynamically (r=margaret) 2014-02-25 17:29:49 +00:00
Lucas Rocha
e9757098c8 Bug 976122 - Fix HomePanels:Get handling in Home.jsm (r=margaret) 2014-02-25 11:28:58 +00:00
Lucas Rocha
2bed65afdf Bug 974926 - Rename _panels to _registeredPanels in Home.jsm (r=margaret) 2014-02-24 10:17:05 +00:00
Margaret Leibovic
43bd873e12 Bug 975217 - Don't try to remove a banner message that doesn't exist. r=mcomella 2014-02-22 09:41:31 -08:00
Lucas Rocha
2a9f9f1273 Bug 972306 - Restructure the Home.panels API for clarity (r=margaret) 2014-02-21 10:33:59 +00:00
Lucas Rocha
1d4fe2879c Bug 972306 - Change HomePanels:Uninstall to take an id (r=margaret) 2014-02-21 10:33:59 +00:00
Lucas Rocha
d6c43911f6 Bug 972306 - Rename HomePanels:Remove to HomePanels:Uninstall (r=margaret) 2014-02-21 10:33:58 +00:00
Lucas Rocha
87bde21703 Bug 966022 - Introduce ItemType into HomeConfig/Home.jsm (r=margaret) 2014-02-19 17:36:59 +00:00
Margaret Leibovic
61b6952e2c Bug 963561 - Notify Home.banner consumers when a message is dismissed. r=wesj 2014-02-14 16:51:43 -08:00
Peiyong Lin
1c91d9c0f1 Bug 968378 - Hide private members in Home.jsm using closures. r=mcomella 2014-02-14 11:52:14 -05:00