Commit Graph

352 Commits

Author SHA1 Message Date
Michael Kaply
487972bd8b Bug 1463162 - Cache distributionID and move browser.search.order checks to distribution only. r=florian
MozReview-Commit-ID: HLgWcURbk0l
2018-06-21 12:26:00 -05:00
Michael Kaply
77bdcfa59d Bug 1437942 - Remove search engines from langpacks. r=adw
MozReview-Commit-ID: GFCIbfmCc5B
2018-06-04 16:45:50 -05:00
arthur.iakab
d27db38974 Merge inbound to mozilla-central a=merge 2018-06-08 12:55:49 +03:00
Kris Maglione
0847e8227e Bug 1464548: Part 3 - Update callers to use defineLazyGlobalGetters. r=mccr8
MozReview-Commit-ID: 9APGewiDDYB
2018-05-25 17:02:29 -07:00
Michael Kaply
86e0f0612a Bug 1466863 - Just use empty metadata if invalid. r=florian
MozReview-Commit-ID: 30Q5Sdi5ZRt
2018-06-06 15:58:24 -05:00
Narcis Beleuzu
88f7131528 Backed out changeset f4a2094a00c5 (bug 1437942) as requested by pascalc. a=backout 2018-06-06 10:57:52 +03:00
Michael Kaply
1d6f2e697c Bug 1426135 - cache the reset prefs. r=adw
MozReview-Commit-ID: 5W5o4CZZYpk
2018-05-29 17:11:44 -05:00
Michael Kaply
7b69e191fb Bug 1437942 - Remove search engines from langpacks. r=adw.mielczarek
MozReview-Commit-ID: GFCIbfmCc5B
2018-06-04 16:45:50 -05:00
Michael Kaply
9923dd8aa0 Bug 1455261 - Check for null metadata to workaround broken search.json. r=adw
MozReview-Commit-ID: 4D2F30MHaqE
2018-06-01 16:59:03 -05:00
Michael Kaply
47a545ffd0 Bug 1300209 - Remove list.txt support from search service. r=adw
MozReview-Commit-ID: CH3Pya9xdIn
2018-05-21 15:13:16 -05:00
Narcis Beleuzu
0518eb2b95 Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-05-22 14:24:39 +03:00
Kris Maglione
187318b0b7 Bug 1462937: Update callers to use nsIFile::GetDirectoryEntries as a nsIDirectoryEnumerator. r=froydnj
MozReview-Commit-ID: Iv4T1MVAF5
2018-05-19 20:17:45 -07:00
Michael Kaply
8eaab274da Bug 1461345 - Move browser.search.order to list.json. r=adw
MozReview-Commit-ID: 1ulgkNgkAP9
2018-05-21 14:27:06 -05:00
Noemi Erli
51bd3e349a Backed out changeset 80cc5997d8cc (bug 1461345) for xpcshall failures on test_TelemetryEnvironment.js on a CLOSED TREE 2018-05-21 20:16:47 +03:00
Michael Kaply
7e3e553609 Bug 1461345 - Move browser.search.order to list.json. r=adw
MozReview-Commit-ID: 4eaWb8mzIm6
2018-05-18 16:12:32 -05:00
Michael Kaply
a79a560298 Bug 1462010 - Remove unused migrateRegionPrefs and isUS preference. r=adw
MozReview-Commit-ID: BkwiIUcZW7m
2018-05-18 10:10:28 -05:00
Drew Willcoxon
2956900b67 Bug 1239708: Improve awesomebar autofill. Part 1: Core follow-ons. r=mak
MozReview-Commit-ID: 1mfqU6mOyR9
2018-05-14 11:21:47 -07:00
Michael Kaply
3e329fbe2a Bug 1460190 - Handle search regions with default but no enginelist. r=adw
MozReview-Commit-ID: FJM1Q9DLXWR
2018-05-09 23:29:34 -07:00
Michael Kaply
96d0314802 Bug 1352539 - Move default search engine to list.json. r=florian
MozReview-Commit-ID: Kpz4Xb7nZ16
2018-04-20 12:48:02 -05: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
Boris Zbarsky
3f5455bf21 Bug 1453869 part 10. Stop constructing DOMParser by contract. r=mrbkap
MozReview-Commit-ID: A0bHF5RHhs6
2018-04-20 23:04:45 -04:00
Boris Zbarsky
3ef6390e55 Bug 1453869 part 5. Remove nsIDOMParser::ParseFromBuffer. r=mrbkap
MozReview-Commit-ID: 4KuM0HRI2BC
2018-04-20 23:01:25 -04:00
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