Commit Graph

51 Commits

Author SHA1 Message Date
Florian Quèze
f6add2cafd Bug 1433175 - scripted patch to replace Components.classes[, Components.interfaces.nsI, Components.utils. and Components.results. with Cc, Ci, Cu and Cr, r=Mossop. 2018-02-28 18:51:33 +01:00
Florian Quèze
f1a55f73f8 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
272cee1e65 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
2018-02-06 09:36:57 -08: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
Dan Banner
5af4450327 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
Florian Quèze
ff53eb9a63 Bug 1353542 - massive script-generated patch converting Task.async and Task.spawn calls, and generators clearly identifiable as tasks, rs=Mossop. 2017-05-12 14:42:39 +02:00
Florian Queze
d3c36892fa Bug 1356569 - Remove addObserver's last parameter when it is false, r=jaws. 2017-04-14 21:51:38 +02:00
Sebastian Hengst
42670ceca0 Backed out changeset 322fde2d53bf (bug 1356569) so bug 1355161 can be backed out. r=backout 2017-04-14 23:39:22 +02:00
Florian Queze
9b4f73599f Bug 1356569 - Remove addObserver's last parameter when it is false, r=jaws. 2017-04-14 21:51:38 +02:00
Gijs Kruitbosch
65da082651 Bug 1309946 - remove all traces of add-on performance monitoring, r=Yoric
This removes all the code for add-on performance watching from the
perfmonitoring component. This should mean that for add-on
compartments, we no longer trigger jank or CPOW monitoring in the JS
engine. This should result in minor performance improvements. As a
result, about:performance no longer reports on add-on performance
(but still reports on web page performance).

It also removes the AddonWatchers.jsm module and the related Nightly-
only UI (disabled in the parent commit) and strings. This UI wasn't
ready for release, there wasn't sufficient data it was creating
value for users, and there was some evidence that it didn't always
correctly identify the cause of performance issues, thus potentially
leading to user confusion or annoyance. Removing it therefore seemed
the right thing to do.

MozReview-Commit-ID: LsRwuaUtq6L
2017-03-29 11:03:47 +01:00
Jared Wein
e3149c378f Bug 1325464 - Enable object-shorthand rule and run 'mach eslint --fix' with the rule enabled. r=MattN
MozReview-Commit-ID: 7E7LPorrEje
2016-12-29 18:34:54 -05:00
Wes Kocher
2d7553dcfd 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
34e228f767 Bug 1325464 - Enable object-shorthand rule and run 'mach eslint --fix' with the rule enabled. r=MattN
MozReview-Commit-ID: 8WoGr8i6oCR
2016-12-29 15:20:47 -05:00
Dave Townsend
12596ced47 Bug 1316882: Turn on space-infix-ops eslint rule. r=jaws
MozReview-Commit-ID: HBpjT2uHJaZ
2016-11-10 14:48:04 -08:00
Jared Wein
0c024fa9ca Bug 1312486 - Enable no-extra-boolean-cast, no-new-object, no-shadow-restricted-names, and spaced-comment rules for eslint. r=standard8
MozReview-Commit-ID: 7Gx90a5y8t6
2016-10-24 13:14:19 -04:00
Dave Townsend
769fc8f245 Bug 1257246: Update toolkit for eslint 2. r=Gijs
Most of this is fixing functions that in some cases return a value but then
can also run to completion without returning anything. ESLint 2 catches this
where previous versions didn't. Unless there was an obvious other choice I just
made these functions return undefined at the end which is effectively what
already happens.

MozReview-Commit-ID: KHYdAkRvhVr
2016-04-05 11:33:48 -07:00
Dave Townsend
a2ba043d69 Bug 1245649: Turn on no-trailing-spaces. r=Gijs 2016-02-03 14:22:33 -08:00
David Rajchenbach-Teller
3bfbd5af5c Bug 1221761 - Probe.prototype.release() now swallows NS_ERROR_NOT_AVAILABLE. r=felipe
During shutdown, we may find ourselves attempting to release and shutdown a probe while the PerformanceStats service is already shutdown. In this case, since the probe is already shutdown, we can simply ignore the error.
2016-01-28 11:17:49 +01:00
Dave Townsend
dd9da1fea1 Bug 1229519: Fix miscellaneous parts of toolkit to pass eslint checks. r=MattN 2015-12-03 10:02:45 -08:00
David Rajchenbach-Teller
8df2cada0d Bug 1186491 - An API for watching slow performance alerts (js-level);r=felipe 2015-11-24 13:37:19 +01:00
David Rajchenbach-Teller
5df0e0f41f Bug 1189799 - Make sure that about:performance displays each add-on only once (back-end);r=felipe 2015-08-25 17:05:02 +02: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
David Rajchenbach-Teller
ab5273ba58 Bug 1189513 - Get rid of separation between e10s and non-e10s probes;r=felipe 2015-07-30 23:14:03 +02:00
David Rajchenbach-Teller
0f1a30c9e3 Bug 1184486 - Let PerformanceStats.jsm play nicer with process-per-tab. r=mconley 2015-07-16 12:19:17 +02:00
Ryan VanderMeulen
0ba883337d Backed out changeset 82fac7af188e (bug 1184486) for Static Analysis failures. 2015-07-29 09:11:52 -04:00
David Rajchenbach-Teller
1b943fd2f1 Bug 1184486 - Let PerformanceStats.jsm play nicer with process-per-tab. r=mconley 2015-07-16 12:19:17 +02:00
David Rajchenbach-Teller
005b7ffaf6 Bug 1147664 - Detailed mode for PerformanceStats (high-level). r=mossop 2015-06-12 21:52:06 +02:00
Wes Kocher
042e3e091c Backed out 2 changesets (bug 1147664) for b2g xpcshell failures in test_compartments.js
Backed out changeset cfd27d5ffc58 (bug 1147664)
Backed out changeset cace9a3246c1 (bug 1147664)
2015-07-23 18:39:43 -07:00
David Rajchenbach-Teller
44b387d6f4 Bug 1147664 - Detailed mode for PerformanceStats (high-level). r=felipe 2015-06-12 21:52:06 +02:00
Ryan VanderMeulen
47fb0f3f04 Backed out changesets 49667763013b and 83fa8af8140b (bug 1147664) for test_compartments.js xpcshell failures. 2015-07-23 11:35:55 -04:00
David Rajchenbach-Teller
09d5857c54 Bug 1147664 - Detailed mode for PerformanceStats (high-level). r=mossop 2015-06-12 21:52:06 +02:00
Ryan VanderMeulen
3cf75b379d Backed out changesets 9eb2e0c7b864 and 19bdfb755eeb (bug 1147664) for various test failures. 2015-07-22 13:18:54 -04:00
David Rajchenbach-Teller
b01122346b Bug 1147664 - Detailed mode for PerformanceStats (high-level). r=mossop 2015-06-12 21:52:06 +02:00
Ryan VanderMeulen
ce92bbe868 Bug 1175098 - Remove duplicate isContent declaration causing B2G xpcshell failures. r=mconley 2015-07-21 14:58:09 -04:00
David Rajchenbach-Teller
55072f455d Bug 1175098 - Fix double-loading of PerformanceStats content script. r=mconley 2015-07-18 09:36:58 +02:00
David Rajchenbach-Teller
b31412d6b3 Bug 1175098 - PerformanceStats for e10s. r=felipe, r=mconley
CLOSED TREE
2015-06-16 14:26:11 +02:00
Ryan VanderMeulen
503e8c046c Backed out changeset 653179afb65f (bug 1175098) for frequent WinXP browser_compartments.js failures.
CLOSED TREE
2015-07-15 21:28:00 -04:00
David Rajchenbach-Teller
ae61b679d3 Bug 1175098 - PerformanceStats for e10s. r=felipe, r=mconley 2015-06-16 14:26:11 +02:00
Ryan VanderMeulen
9905a022fe Backed out changeset 0a0302b9ed20 (bug 1175098) for e10s browser_compartments.js failures. 2015-07-13 11:46:45 -04:00
David Rajchenbach-Teller
d3c99c49d1 Bug 1175098 - PerformanceStats for e10s. r=felipe, r=mconley 2015-06-16 14:26:11 +02:00
David Rajchenbach-Teller
7f158ab368 Bug 1157870 - Performance Groups should have a unique ID (high-level). r=mossop 2015-05-18 16:40:34 +02:00
David Rajchenbach-Teller
9940453e73 Bug 1156264 - Activate/deactivate jank and CPOW monitoring separately (high-level). r=mossop 2015-06-04 13:12:27 +02:00
David Rajchenbach-Teller
6840ca9ae7 Bug 1154239 - Rework PerformanceStats.jsm for modularity and asynchronicity. r=Mossop 2015-04-14 16:29:40 +02:00
David Rajchenbach-Teller
902d7aebd5 Bug 1149486 - Extract a window title and window ID for PerformanceStats. r=mossop 2015-05-18 10:40:20 +02:00
Ryan VanderMeulen
8b6b195d54 Backed out changesets da71c4aefb3a and 98603c32c9a3 (bug 1149486) for browser_compartments.js permafail.
CLOSED TREE
2015-05-29 12:59:23 -04:00
David Rajchenbach-Teller
0ad0390e27 Bug 1149486 - Extract a window title and window ID for PerformanceStats. r=mossop 2015-05-18 10:40:20 +02:00