Commit Graph

42 Commits

Author SHA1 Message Date
Kris Maglione
582a21b473 Bug 1456035: Part 5 - Convert manual QueryInterface to ChromeUtils.generateQI. r=mccr8
Manually-implemented QueryInterface functions don't benefit from the
MozQueryInterface optimizaions, and a lot of them are in hot code, and
implement a large number of interfaces.

MozReview-Commit-ID: 8OzglraowZt
2018-04-23 12:58:34 -07:00
Kris Maglione
fd7e9e6a69 Bug 1456035: Part 4 - Convert callers of XPCOMUtils.generateQI to ChromeUtils.generateQI. r=mccr8
This also removes any redundant Ci.nsISupports elements in the interface
lists.

This was done using the following script:

acecb401b7/processors/chromeutils-generateQI.jsm

MozReview-Commit-ID: AIx10P8GpZY
2018-04-22 20:55:06 -07: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
Florian Quèze
c5f15a4700 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
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
Andrew McCreight
68796bc95b Bug 1386036 - Don't spam the console with feeds debug output. r=Gijs
MozReview-Commit-ID: 52wl9i8y9lO
2017-08-01 11:27:09 -07:00
Sebastian Hengst
9e1e2d8b0d Backed out changeset 81cdbfd5bfb0 (bug 1386036) for eslint comment failure at WebContentConverter.js:16. r=backout 2017-08-02 00:16:04 +02:00
Andrew McCreight
971e34be24 Bug 1386036 - Don't spam the console with feeds debug output. r=Gijs
MozReview-Commit-ID: 52wl9i8y9lO
2017-08-01 11:27:09 -07:00
Florian Quèze
35d0023e0b Bug 1369467 - Move a few module imports off of app-startup, r=mconley. 2017-06-02 22:08:21 +02:00
Christoph Kerschbaumer
1acdc61a26 Bug 1361387 - Update callsites of loadURI() within browser/ to pass a triggeringPrincipal. r=gijs 2017-05-03 10:23:59 +02:00
Florian Queze
aca1103c68 Bug 1356569 - Remove appendElement's last parameter when it is false, r=jaws. 2017-04-14 21:51: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
Sebastian Hengst
4189eac09e Backed out changeset e1f191aad863 (bug 1356569) 2017-04-14 23:39:17 +02:00
Florian Queze
6c119a88d3 Bug 1356569 - Remove appendElement's last parameter when it is false, r=jaws. 2017-04-14 21:51:39 +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
Florian Quèze
49d8db6821 Bug 1345294 - script generated patch (+ some hand cleanup) to replace {get,set}ComplexValue for nsISupportsString by {get,set}StringPref, r=Mossop. 2017-03-16 19:26:01 +01:00
Florian Quèze
0b17fc5d60 Bug 1344711 - hand cleanup of cases that were ignored by the script to remove try blocks around get*Pref calls, r=jaws. 2017-03-07 15:29:48 +01:00
Mark Banner
d07f540195 Bug 1328338 - Fix more no-undef eslint issues in toolkit/ and browser/. r=mossop
MozReview-Commit-ID: 78dXLYVW1gC
2017-01-03 11:55:24 +00:00
Jared Wein
242ab87626 Bug 1326511 - Enable brace-style and no-multi-spaces eslint rules for toolkit. r=MattN
MozReview-Commit-ID: FuVu8skcqOe
2016-12-30 21:47:25 -05:00
Iulian Radu
2775f5da70 Bug 1322565 - Remove gecko.handlerService.allowRegisterFromDifferentHost pref, r=gijs
MozReview-Commit-ID: Dlpt96MfoNP
2016-12-16 01:53:50 +02:00
Carsten "Tomcat" Book
0ed7144462 Backed out changeset a6e2d96c1274 (bug 1322565) for eslint failure 2016-12-16 16:41:22 +01:00
Iulian Radu
0a3647f201 Bug 1322565 - Remove gecko.handlerService.allowRegisterFromDifferentHost. r=gijs 2016-12-16 01:53:50 +02:00
Jared Wein
ef8b1e86ca Bug 1316870 - Enable no-shadow eslint rule for browser/. r=mossop 2016-11-15 22:58:30 -05: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
jordan9769
d1858b31a8 Bug 1311343 - Enable eslint of browser/components/feeds/; r=standard8
MozReview-Commit-ID: 6c4nzNeeurk
2016-10-27 12:02:52 +05:30
Boris Zbarsky
5377efb51c Bug 1260511 part 4. Fix some of the places where registerProtocolHandler should be throwing a SECURITY_ERR to actually do so. r=gijs 2016-04-22 16:03:06 -04:00
Boris Zbarsky
1ab311cc3a Bug 1260511 part 1. Fix WebContentConverter to behave consistently in both e10s and non-e10s mode in terms of the argument sanity checking registerContentHandler does. r=gijs 2016-04-22 16:03:05 -04:00
Jonathan Watt
fb3561fe66 Bug 1263045 - Avoid JavaScript strict warning in WebContentConverter.js during startup. r=Gijs 2016-03-23 10:39:18 +00:00
J. Ryan Stinnett
a5d3a1fe97 Bug 1249702 - Fix e10s feed handling with auto content handler prefs. r=Gijs
MozReview-Commit-ID: 3ggmJxUmuxp
2016-02-25 17:26:15 -06:00
Blake Kaplan
dac9f71d37 Bug 1193093 - Tighten up these checks a little. r=Gijs 2016-02-23 16:11:53 -08:00
Tanner Parker
7ab19dce39 Bug 1130449 - fix reuse of accesskey string for protocol handler notification "Add" button, r=gijs
MozReview-Commit-ID: BMJoDh77yIB
2016-02-21 16:05:00 +00:00
George Wright
bf4b31563d Bug 1109714 - Make the feed subscriber UI work in e10s r=mrbkap,jaws 2016-01-04 18:59:44 -05:00
Blake Kaplan
13c7167d41 Bug 940206 - Implement Navigator.registerContentHandler and Navigator.registerProtocolHandler for e10s. r=dao 2015-07-31 17:03:37 -07:00
Ankit Goyal
17bed67637 Bug 1110069 - Replace getBrowser() with gBrowser in /browser. r=dao 2014-12-11 21:48:00 -05:00
Carsten "Tomcat" Book
c830270801 Backed out changeset 85a89a0a4c1c (bug 1110069) 2014-12-12 13:14:57 +01:00
Ankit Goyal
4531cc1be5 Bug 1110069 - Replace getBrowser() with gBrowser. r=dao 2014-12-12 10:40:23 +01:00
Birunthan Mohanathas
57ca3031f0 Bug 1038458 - Part 3: Flatten browser/components/feeds/{public,src}/ directories. r=mak 2014-07-26 09:31:52 -07:00