manikishan
02874947cf
Bug 1431050 - Replace NS_ASSERT with conditional exceptions/console.assert and remove the debug.js module. r=mak
...
console.assert keeps the same semantics as NS_ASSERT in that it doesn't throw an exception,
but a lot of the places code was using it in a way that would be better served by throwing
an exception when the condition is false.
MozReview-Commit-ID: DEF5HSfYO36
2018-02-03 11:32:25 +05:30
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
Valentin Gosu
b9160f5ce8
Bug 1433958 - Change code that sets nsIURI.userPass to use nsIURIMutator r=mayhemer
...
* Code in XMLHttpRequestMainThread is converted to set the username and password individually. This is because when the parameters are empty, it ended up calling SetUserPass(":") which always returns an error.
MozReview-Commit-ID: 3cK5HeyzjFE
2018-02-26 20:43:46 +01:00
Thomas Wisniewski
6ba7255647
Bug 792808 - Change toolkit/ to import and instantiate XHRs from global properties rather than using Cc.createInstance(Ci.nsIXMLHttpRequest); r=aswan
...
MozReview-Commit-ID: CUrMOocHBNu
2018-02-08 20:09:57 -05:00
Michael Kaply
345fe1a31c
Bug 1371367 - Treat langpack search engines as default. r=florian
...
MozReview-Commit-ID: AVYhWRk2Alk
2018-02-14 10:34:25 -06:00
Gijs Kruitbosch
b34b68c23a
Bug 1436559 - stop doing busy-work in setOverLink and make textToSubURI available on Services.jsm, r=florian
...
MozReview-Commit-ID: F63kE4GE67B
2018-02-07 22:07:08 +00:00
Cosmin Sabou
26073c5b2c
Backed out changeset 46c758115832 (bug 1436559) for ESlint failure on /browser/components/search/test/browser_426329.js on a CLOSED TREE
2018-02-08 20:37:13 +02:00
Gijs Kruitbosch
7b292fc484
Bug 1436559 - stop doing busy-work in setOverLink and make textToSubURI available on Services.jsm, r=florian
...
MozReview-Commit-ID: F63kE4GE67B
2018-02-07 22:07:08 +00: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
Michael Kaply
ddf7c33e31
Bug 1426081 - Migrate legacy search engines to WebExtensions. r=florian
...
MozReview-Commit-ID: JfSwJwMC46F
2017-12-21 12:58:56 -06:00
Michael Kaply
19ffb8f0f6
Bug 1415727 - resetToOriginalDefaultEngine should unhide engine. r=florian
...
MozReview-Commit-ID: 2Z2osvN3Ir5
2017-12-05 09:08:07 -06:00
Andrea Marchesini
7245afe6b9
Bug 1421655 - Using imgITools::decodeImageFromArrayBuffer instead coping data into a string, r=aosmond
2017-11-30 14:48:47 +01:00
Andrea Marchesini
605591950f
Bug 1420223 - createImageBitmap must work with nsIAsyncInputStream - part 4 - ImageBitmap must use imgITools::decodeImageBuffer, r=aosmond
2017-11-27 17:05:57 +01:00
Zibi Braniecki
693dbb7a5d
Bug 1420255 - Fix a regression from bug 1410736. r=florian
...
MozReview-Commit-ID: H9pxFHecYip
2017-11-23 13:11:07 -06:00
Florian Quèze
962ba47cd1
Bug 1419941 - Reset the engine of users having a default engine likely installed by a legacy add-on, r=adw.
2017-11-23 01:51:15 +01:00
Florian Quèze
6e98cdd01a
Bug 1405670 - stop importing old search metadata from search-metadata.json, r=adw.
2017-11-17 12:04:44 +01:00
Florian Quèze
b21977a979
Bug 1405670 - stop saving the last modification date of directories we loaded engines from, r=adw.
2017-11-17 12:04:27 +01:00
Florian Quèze
10d7ea2982
Bug 1405670 - stop importing old search plugins from <profile>/searchplugins/*.xml when the cache file is missing, r=adw.
2017-11-17 12:03:52 +01:00
Andrea Marchesini
91e44393ce
Bug 1347515 - Get rid of nsIJSON.decodeFromStream, r=qdot
2017-11-10 00:27:22 +01:00
Mark Banner
6067ef1cb5
Bug 1412893 - Change instances of using getService to Services.jsm where possible in toolkit/components - Part 2. r=florian
...
MozReview-Commit-ID: 44oBXPP88Lc
2017-10-30 17:22:17 +00:00
Zibi Braniecki
5a4d89fcda
Bug 1410736 - Replace remaining uses of general.useragent.locale with LocaleService API. r=jfkthame
...
MozReview-Commit-ID: F0Ofe2lHHEo
2017-11-03 17:08:34 -07:00
Sebastian Hengst
af49e62d03
Backed out changeset 0637dca8a971 (bug 1410736) for eslint failure at toolkit/components/extensions/test/xpcshell/test_ext_i18n_css.js:130: Unexpected var, use let or const instead. r=backout on a CLOSED TREE
2017-11-04 00:51:02 +01:00
Zibi Braniecki
88f8e991b0
Bug 1410736 - Replace remaining uses of general.useragent.locale with LocaleService API. r=jfkthame
...
MozReview-Commit-ID: CmXBFcKxOkX
2017-11-02 14:11:41 -07:00
Marco Bonardo
d2ae92d9b8
Bug 361923 - Can't use remote search engine icons larger than 10KB. r=florian
...
MozReview-Commit-ID: D0lmhAwabb3
2017-10-31 17:21:35 +01:00
Michael Kaply
e49135c13f
Bug 1413298 - Allow search encoding to be specifed by WebExtension. r=florian,mixedpuppy
...
MozReview-Commit-ID: 4O73NlqIfjm
2017-10-31 20:15:49 -05:00
Csoregi Natalia
367f35bbc9
Backed out 1 changesets (bug 1413298)
...
Backed out changeset 2b8095d47140 (bug 1413298) for failing ESLINT browser_ext_settings_overrides_search.js:37 r=backout on a CLOSED TREE
2017-11-01 15:11:39 +02:00
Michael Kaply
dfba44429f
Bug 1413298 - Allow search encoding to be specifed by WebExtension. r=florian,mixedpuppy
...
MozReview-Commit-ID: 4O73NlqIfjm
2017-10-31 20:15:49 -05:00
Mark Banner
e47ccbfec3
Bug 1411368 - Automatically fix no-multi-spaces issues raised when using ESLint 4. r=mossop
...
MozReview-Commit-ID: H5YVp3rnzGo
2017-10-26 11:47:01 +01: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
Michael Kaply
9ec409563c
Bug 1369778 - Reset search expiration on major updates. r=florian
...
MozReview-Commit-ID: Jcr2dx9Bbza
2017-09-28 14:32:47 -05:00
Kris Maglione
7d8f35e2b4
Bug 1394556: Part 1 - Fix strict mode errors in JSM scripts. r=Mossop
...
MozReview-Commit-ID: 4LmJQql7Y2c
2017-08-30 01:50:27 -07:00
Masatoshi Kimura
747aea1659
Bug 938704 - Make OS.File support modern iterators. r=florian,Yoric
...
MozReview-Commit-ID: 8F1DtgakxM3
2017-08-19 15:04:13 +09:00
Michael Kaply
c16086a6ba
Bug 1374695 - Add extensionID to addEngine API. r=florian
...
MozReview-Commit-ID: 5hxzvCXhMxi
2017-08-14 15:51:12 -05:00
Masatoshi Kimura
2478017dcd
Bug 1389723 - Remove @deprecated nsIMIMEInputStream.addContentLength. r=dragana
...
MozReview-Commit-ID: 9b45aozatin
2017-08-12 13:34:02 +09:00
Masatoshi Kimura
3c76d68c08
Bug 1389738 - Remove @deprecated nsIHttpEventSink. r=mcmanus
...
MozReview-Commit-ID: 5TaiTc6fSLK
2017-08-12 18:26:23 +09:00
Michael Kaply
3bcb626923
Bug 1380771 - Add support for suggest_url to addEngineWithDetails. r=florian
...
MozReview-Commit-ID: LoUlLwXqSOH
2017-08-11 16:16:41 -05:00
Wes Kocher
5e5decd9d7
Backed out changeset 16c09e5f2758 (bug 1380771) for failures in test_hasEngineWithURL.js and browser_ext_settings_overrides_search.js a=backout
...
MozReview-Commit-ID: 75JIIqWhS7W
2017-08-11 15:53:50 -07:00
Michael Kaply
e9539acb81
Bug 1380771 - Add support for suggest_url to addEngineWithDetails. r=florian
...
MozReview-Commit-ID: LoUlLwXqSOH
2017-08-11 16:16:41 -05:00
Michael Kaply
715d4ca431
Bug 1384709 - Store extension ID in loadPath. r=florian
...
MozReview-Commit-ID: GPYdRtJd8Bz
2017-08-08 13:49:22 -07:00
Kris Maglione
0fb6b2e73c
Bug 1388215: Part 3 - Use JIT-friendly defineLazy*Getters methods when defining many lazy imports. r=florian
...
MozReview-Commit-ID: APoFwUhDFdj
2017-08-09 13:03:36 -07:00
Masatoshi Kimura
0af76969af
Bug 1375125 - Stop using nsILocalFile in the tree. r=froydnj
...
This mechanically replaces nsILocalFile with nsIFile in
*.js, *.jsm, *.sjs, *.html, *.xul, *.xml, and *.py.
MozReview-Commit-ID: 4ecl3RZhOwC
2017-08-04 17:49:22 +09:00
Rajesh Kathiriya
fefc455410
Bug 1374620 - Enabled the ESLint dot-notation rule across mozilla-central r=standard8
...
MozReview-Commit-ID: FadrI2li43G
2017-07-25 23:45:41 +05:30
Sebastian Hengst
1326418a49
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
0d920ece6a
Bug 1374620 - Enabled the ESLint dot-notation rule across mozilla-central r=standard8
...
MozReview-Commit-ID: FadrI2li43G
2017-07-25 23:45:41 +05:30