Commit Graph

48 Commits

Author SHA1 Message Date
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
Jan Horak
e7bd43fa44 Bug 1297686 - List GIO handlers in the protocol handler list, in the handlers dialog, and in preferences. r=paolo
The nsGIOService now provides GetAppsForURIScheme which is used to append handlers
for specific scheme in handler list dialog (toolkit/mozapps/handling/content/dialog.js)
and also in Applications section in preferences. In case the default system handler
or user added handler has same name as one of the GIO handlers, the GIO handler
is not appended. The check for not adding handler is by using handler name.

The nsGIOMimeApp class now implements nsIHandlerApp interface. Instead overloaded
GetName methods (nsCString and nsString) we now use nsString variant everywhere.
This require change of nsGNOMERegistry::GetFromType which if fact leads to code
simplification.

The implementation of nsGNOMEShellService::SetDefaultBrowser has been changed
because implementation of CreateAppFromCommand has changed.
The CreateAppFromCommand no longer tries to find the application,
for that FindAppFromCommand has been introduced.

MozReview-Commit-ID: KmfFWRPqV3
2017-12-29 07:27:42 +00:00
Cosmin Sabou
b7fa5a6d8a Backed out changeset 9660ff09c221 (bug 1297686) for xpcshell failures at uriloader/exthandler/tests/unit/test_handlerService_json.js r=backout on a CLOSED TREE 2017-12-28 19:41:50 +02:00
Jan Horak
11243ad3fa Bug 1297686 - List GIO handlers in the protocol handler list, in the handlers dialog, and in preferences. r=paolo
The nsGIOService now provides GetAppsForURIScheme which is used to append handlers
for specific scheme in handler list dialog (toolkit/mozapps/handling/content/dialog.js)
and also in Applications section in preferences. In case the default system handler
or user added handler has same name as one of the GIO handlers, the GIO handler
is not appended. The check for not adding handler is by using handler name.

The nsGIOMimeApp class now implements nsIHandlerApp interface. Instead overloaded
GetName methods (nsCString and nsString) we now use nsString variant everywhere.
This require change of nsGNOMERegistry::GetFromType which if fact leads to code
simplification.

The implementation of nsGNOMEShellService::SetDefaultBrowser has been changed
because implementation of CreateAppFromCommand has changed.
The CreateAppFromCommand no longer tries to find the application,
for that FindAppFromCommand has been introduced.

MozReview-Commit-ID: KmfFWRPqV3
2017-12-28 15:25:32 +00:00
Mark Banner
6f514325ac Bug 1417944 - Enable ESLint rule mozilla/use-services for toolkit/. r=mossop
MozReview-Commit-ID: JhHXYma5Adp
2017-11-22 13:36:34 +00:00
Moritz Brunner
bbd369b751 Bug 366192 - Fixed http/https regex checks. r=mak
MozReview-Commit-ID: FL0AWkM9Ggm
2017-11-02 22:43:19 +01:00
Rajesh Kathiriya
bfb3762076 Bug 1374670 - Enabled the ESLint no-tabs rule across mozilla-central r=standard8
MozReview-Commit-ID: RT5QTipaOW
2017-07-04 21:30:18 +05:30
Andrea Marchesini
70fbece79d Bug 1334975 - Get rid of nsIFilePicker.show() use in gecko, r=ochameau 2017-03-03 09:42:27 +01:00
Florian Quèze
13cfe1d3f3 Bug 1329182 - remove trailing newURI null parameters in toolkit/, r=jaws. 2017-01-09 20:27:25 +01: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
Jared Wein
5edec1c0d9 Bug 1315013 - part 1, remove unnecessary double-slash comments that don't add value and look out of place with the spaced-comment eslint rule. r=mossop
MozReview-Commit-ID: HIUTSdkXxbY
2016-11-03 14:42:06 -04: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
Jared Wein
e8b20b6db5 Bug 1292035 - Enable the space-before-blocks rule for eslint. This patch was generated using 'eslint --fix'. r=markh
MozReview-Commit-ID: 2XVoU05YvES
2016-08-04 03:20:25 -04:00
Wayne Zhang
b122acccf5 Bug 510516 - Improve strings in application picker dialog. r=adw 2016-04-28 12:30:00 -04:00
Dave Townsend
a2ba043d69 Bug 1245649: Turn on no-trailing-spaces. r=Gijs 2016-02-03 14:22:33 -08:00
Felipe Gomes
28cef5fbff Bug 724353. r=Mossop 2015-10-13 20:33:35 -03:00
Phil Ringnalda
a2809d1317 Back out 2 changesets (bug 1116385, bug 724353) for test_unknownContentType_delayedbutton.xul failures
Backed out changeset aaade64d3f28 (bug 724353)
Backed out changeset dca478776c91 (bug 1116385)
2015-10-12 21:37:58 -07:00
Felipe Gomes
926c32ea63 Bug 724353. r=Mossop 2015-10-12 22:05:42 -03:00
Carsten "Tomcat" Book
036e6d2fa3 Backed out 2 changesets (bug 1202902) to recking bug 1202902 to be able to reopen inbound on a CLOSED TREE
Backed out changeset 647025383676 (bug 1202902)
Backed out changeset d70c7fe532c6 (bug 1202902)
2015-10-07 14:03:21 +02:00
Carsten "Tomcat" Book
12369728f5 Backed out 1 changesets (bug 1202902) for causing merge conflicts to mozilla-central
Backed out changeset cfc1820361f5 (bug 1202902)
2015-10-07 12:13:45 +02:00
Shu-yu Guo
474f49adb7 Bug 1202902 - Scripted fix the world. 2015-10-06 14:00:31 -07:00
Marco Zehe
563e9a7ced Bug 968111 - Fix various accessibility markup issues in Toolkit XUL files, r=da0 2014-02-05 17:33:43 +01:00
Gervase Markham
cb6a072c2a Bug 716478 - update licence to MPL 2. 2012-05-21 12:12:37 +01:00
Paolo Amadini
624eaad5e0 Bug 731942 - Replace old synchronous favicons calls in the Toolkit external content handler dialog. r=mak 2012-03-19 20:24:41 +01:00
Gijs Kruitbosch
8614a1d0d3 Bug 496097 - Make app handler dialog label action list. r=Maro Zehe, Neil Rashbrook 2009-07-12 15:47:44 +01:00
Neil Rashbrook
ff1c248a63 Bug 496097 Handlers dialog is not accessible r=gavin,surkov 2009-06-20 23:33:55 +01:00
"Brad Lassey"
7f6d5e27c1 Bug 441636 - Add support for DBus Handler Apps r=biesi 2008-07-25 12:36:07 -04:00
e433bfe9f5 Bug 415218 - "Fix uses of IO.newURI to use nsIIOService instead" [p=philringnalda@gmail.com (Phil Ringnalda) / reed@reedloden.com (Reed Loden) / ehsan.akhgari@gmail.com (Ehsan Akhgari [ehsan]) r=Mano a1.9b3=beltzner] 2008-02-01 16:39:05 -08:00
1a655f3cea Bug 402620 - protocol handling dialog should display icons and hostnames for web applications. r=Mano, ui-r=beltzner, a=blocking-firefox3+ 2008-01-22 15:53:26 -08:00
7de23e6f4a Bug 400473: 'Remember this' checkbox of the proto handler dialog missing an accesskey. r=gavin, a=blocking-firefox3+ 2008-01-07 16:10:24 -08:00
243896207b b=389705. r=gavin. a=blocking-firefox3. Tighten up the launch application dialog 2007-12-03 13:43:33 -08:00
7fe733a610 Improve external protocol handling dialog UE (bug 402771), ui-r=beltzner, r=gavin, a=blocking-1.9+ 2007-12-02 17:55:12 -08:00
872eb7ecc9 Bug 403845 - "Launch Application dialog displays duplicate entries after selection" [p=florian@mozilla.com (Florian Quèze) r=gavin a=blocking-firefox3+] 2007-11-16 20:30:28 -08:00
27e4d1c6ed Bug 392376 - "Double-clicking on the selected application within the file handling dialog should work as "OK" and launch the application" [p=florian r=Mano a=blocking-firefox3+] 2007-11-12 22:48:20 -08:00
4f6424e11b Bug 396635 - "Launch Application" dialog clips buttons on bottom. r=mfinkle, r=gavin, a=vlad 2007-10-26 13:20:12 -07:00
4ae8e64c55 Bug 391407 - Move File Handling dialog into localizable location. r=gavin.sharp, a=blocking1.9 2007-10-10 19:04:05 -07:00
565dc248aa Fix for protocol handling dialog throwing exception when a web handler is selected (bug 392957), r=biesi, sr=mconnor, a=bz 2007-09-02 21:44:25 -07:00
64127855ec Bug 390890 - PHD: Have the UI use all the possible handlers instead of just the preferred one. r=mano, a=blocking-firefox3 2007-08-14 21:15:22 -07:00
0bdc5bac80 Fix review nit from bug 385065 (unnecessary use of 'let') 2007-08-05 02:41:53 -07:00
9e695ebc38 Bug 389899 - Icon does not show up for local handlers that were specified in the past. r=mano 2007-08-03 16:25:00 -07:00
ee15676e47 Bug 389689 - Have the dialog for nsIContentDispatchChooser use the width property. r=mano, ui-r=beltzner 2007-08-03 16:14:25 -07:00
074a01d5a9 Bug 389891 - Protocol Handling dialog does not actually set nsIHandlerInfo::useHelperApp when using a prefilled helper app. r=gavin.sharp, a=schrep 2007-07-27 14:17:04 -07:00
6c0540ee6c Bug 385065 - protocol handling dialog. toolkit: r=mano; uriloader: r=cbiesinger, sr=dmose general: ui-r=beltzner 2007-07-25 21:24:25 -07:00