Commit graph

237 commits

Author SHA1 Message Date
Florian Quèze
e23e1d16b4 Bug 1203167 - Keep user-installed engines when refreshing an outdated cache, r=adw. 2015-10-30 09:54:51 +01:00
Florian Quèze
856c27d449 Bug 1203167 - stop serializing user-installed engines to XML files, r=adw. 2015-10-30 09:54:51 +01:00
Tooru Fujisawa
65e2703499 Bug 1217082 - Remove for-each from toolkit/. r=Gijs
--HG--
extra : commitid : Ewr7Bixammr
extra : rebase_source : 91e560a7b8b8d4b78debb1db2512867262b18375
2015-10-19 04:57:14 +09:00
Florian Quèze
4fd72298c0 Bug 1209920 - Drop support for <MozParam condition="defaultEngine", r=adw. 2015-10-01 15:05:59 +02:00
Florian Quèze
c0702597fd Bug 1209916 - _hidden shouldn't be stored in both the cache and the metadata, r=adw. 2015-10-01 15:04:53 +02:00
Florian Quèze
93eb22c6b6 Bug 1209914 - Use toJSON methods instead of explicit _serializeToJSON calls, r=adw. 2015-10-01 15:04:03 +02:00
Tooru Fujisawa
accd89d4fd Bug 1207498 - Part 1: Remove use of expression closure from toolkit/components/, except tests. r=Gijs
--HG--
extra : commitid : 5yrVqfOUmEG
extra : rebase_source : e2ec30261bd76c1966b0e61fd7e08c2924f270b0
2015-09-24 20:32:23 +09:00
Tooru Fujisawa
e5f587574b Backed out changeset 036615ba3257 (bug 1207498) for Linux pgo M(oth) failure
--HG--
extra : commitid : 4RedbQZ6Rzu
2015-09-27 23:42:50 +09:00
Tooru Fujisawa
b92d75e47c Bug 1207498 - Part 1: Remove use of expression closure from toolkit/components/, except tests. r=Gijs
--HG--
extra : commitid : 2Gx1wpjvr9w
extra : rebase_source : 0a378fd51f45d3fe71430ad8a37a79a8862bfa76
2015-09-24 20:32:23 +09:00
Florian Quèze
239d577df1 Bug 862148 - remove the DATA_* and TYPE_* constants from nsISearchEngine, r=adw. 2015-09-23 12:05:37 +02:00
Florian Quèze
5be3117fa4 Bug 862148 - remove the _parseAsOpenSearch method, r=adw. 2015-09-23 12:05:37 +02:00
Florian Quèze
7872d93497 Bug 862148 - stop parsing Sherlock plugins, r=adw. 2015-09-23 12:05:36 +02:00
Florian Quèze
7f751627bc Bug 862148 - stop supporting installation of Sherlock plugins through Services.search.addEngine, r=adw. 2015-09-23 12:05:36 +02:00
Christoph Kerschbaumer
9f1e9e2eaa Bug 1048048 - add preload content policy types for images (r=seth)
--HG--
extra : source : 88c2333ff7455b6988eb8d6ccc5e92b414a7ccf8
2015-09-20 14:55:59 -07:00
Wes Kocher
cd079d2bf9 Backed out 7 changesets (bug 1048048) for android crashes in various chunks CLOSED TREE
Backed out changeset b5abe23a4ea5 (bug 1048048)
Backed out changeset 4f91b10e8be0 (bug 1048048)
Backed out changeset 450d4a13c90e (bug 1048048)
Backed out changeset 6a727c40eb68 (bug 1048048)
Backed out changeset 88c2333ff745 (bug 1048048)
Backed out changeset 740ab1ecd079 (bug 1048048)
Backed out changeset 02c6d6aef163 (bug 1048048)
2015-09-21 09:08:34 -07:00
Christoph Kerschbaumer
19dc79ddbb Bug 1048048 - add preload content policy types for images (r=seth) 2015-09-20 14:55:59 -07:00
Wes Kocher
3eef2f434b Merge m-c to inbound, a=merge 2015-09-15 17:20:16 -07:00
Florian Quèze
78cb85f9a9 Bug 1203161 - remove the browser.search.cache.enabled pref, r=adw. 2015-09-11 14:18:15 +02:00
Shu-yu Guo
64db2267cf Bug 1202902 - Mass replace toplevel 'let' with 'var' in preparation for global lexical scope. (rs=jorendorff) 2015-09-15 11:19:45 -07:00
Florian Quèze
e966fcb5ac Bug 1169459 - remove the loadFromJars/jarURIs prefs, r=Mossop. 2015-09-04 11:50:49 +02:00
Florian Quèze
2d82cfc143 Bug 438599 - the currentEngine attribute of nsIBrowserSearchService should never be null, r=Mossop. 2015-09-04 11:39:08 +02:00
Chris Manchester
885fc65599 Bug 1131325 - Update search service and tests for moving countryCode from gfxInfo2 to sysinfo. r=markh
--HG--
extra : commitid : AsTqKOkSpTn
2015-07-28 22:25:34 -07:00
Florian Quèze
39412da8a8 Bug 1194265 - Some default search engines should only be visible in specific countries, r=Mossop.
--HG--
rename : toolkit/components/search/tests/xpcshell/test_async.js => toolkit/components/search/tests/xpcshell/test_hidden.js
2015-08-15 11:08:58 +02:00
Florian Quèze
3b370060f6 Bug 1177443 - Add 'system' purpose for searches coming from outside Firefox, r=MattN. 2015-08-12 16:57:43 +02:00
Florian Quèze
6a69a8d036 Bug 1184974 - The submissionURL should not be recorded for packed add-ons in the profile, r=markh. 2015-07-21 23:12:07 +02:00
Florian Quèze
af833ef045 Bug 1175218 - The original default engine should be set per region rather than per locale, r=markh.
--HG--
extra : rebase_source : 98eed0fe583dfaef7b83eccba4534b6e46c5accf
2015-07-10 21:06:24 +02:00
Florian Quèze
46202ff411 Bug 1109354 - prefer Firefox default engines over profile-installed plugins with the same name, r=markh.
--HG--
extra : rebase_source : cdf4cb2b3969a9ac797f61c3f0b4f081353582e4
2015-06-15 18:32:09 +02:00
Florian Quèze
e09d0ceffd Bug 1164159 - Stop using a wrappedJSObject hack to access nsIBrowserSearchService.getDefaultEngineInfo, r=markh. 2015-06-10 11:18:08 +02:00
Florian Quèze
a9ec9ab1eb Bug 1164159 - Send information about the default search engines through Telemetry, r=markh,gfritzsche. 2015-06-10 11:17:31 +02:00
Mike Connor
0c23f1fbeb Bug 1171730 - Funnelcake builds should use geo-specific defaults. r=florian 2015-06-05 08:30:00 -04:00
Florian Quèze
16ae82064b Bug 1159717 - Loading the search form from an empty search bar should send the purpose, r=markh. 2015-05-21 11:53:15 +02:00
Florian Quèze
9bf022ea63 Bug 1162569 - default engine files should be in the omni.ja file, r=markh,glandium. 2015-05-19 15:57:08 +02:00
André Reinald
abcbead4d2 Bug 1075157 - Support action: reset search. r=gfritzsche, r=florian, r=bholley 2015-04-24 17:57:52 +02:00
Tooru Fujisawa
fe0cf643e7 Bug 1131107 - Part 13: Do not use non-standard flag argument of String.prototype.replace in toolkit/. r=gavin 2015-03-09 23:02:57 +09:00
Roy Li
5f7a4ca890 Bug 896688 - Replace finite state machine with flag in nsSearchService. r=smacleod 2015-02-12 16:37:42 -06:00
Mark Hammond
769856eeb5 Bug 1130132 - add telemetry to determine how consistent our geoip country code is with Windows. r=gavin 2015-02-12 12:49:18 +11:00
Christoph Kerschbaumer
fe39ce0539 Bug 1087744: Make JS callers of ios.newChannel call ios.newChannel2 in toolkit/ (r=gijs) 2014-10-24 15:25:34 -07:00
Mark Hammond
a015a83aaf Bug 1121340 - add telemetry to determine how consistent our geoip country code is with the platform's. r=gavin 2015-02-05 12:24:06 +11:00
Mark Hammond
0a544c73ea Bug 1123974 - geoip result should not override users already with browser.search.isUS=true. r=florian
--HG--
rename : toolkit/components/search/tests/xpcshell/test_location.js => toolkit/components/search/tests/xpcshell/test_location_migrate_no_countrycode_isUS.js
rename : toolkit/components/search/tests/xpcshell/test_location.js => toolkit/components/search/tests/xpcshell/test_location_migrate_no_countrycode_notUS.js
2015-02-04 14:20:19 +11:00
Mark Finkle
73ee4fdf9e Bug 1117186 - fix geo-specific search defaults interaction with the defaultEngine getter/setter and use a helper for getting geo-specific prefs f=gavin,r=markh 2015-01-21 23:05:48 -05:00
Mark Hammond
dcde811e7d Bug 1116404 - better timeout semantics for search service geoip lookups. r=felipe 2015-01-09 13:43:29 +11:00
Gavin Sharp
f0118ffb88 Bug 1106150: fix condition="defaultEngine" MozParam. r=markh 2014-12-30 08:54:23 +11:00
Gavin Sharp
5914eb88f1 Bug 1110420: need to not do geo-specific defaults for distribution builds. r=markh 2014-12-29 10:10:58 +11:00
Alexander J. Vincent
0d6d7b0e1a Bug 1108168 - Check the type of a preference type before trying to call getBoolPref. r=dao 2014-12-08 12:49:50 -08:00
Mark Hammond
8dc853f068 Bug 1109120 - use a geoip xhr request for more reliable country detection for search. r=gavin 2014-12-23 22:17:12 +11:00
Gavin Sharp
69a6c5091b Bug 1108627: market-specific search defaults broke default engine behavior for Fennec, so make it desktop Firefox-only, r=dolske 2014-12-08 13:54:17 -08:00
Gavin Sharp
ce93d8354d Bug 1102416: make Yahoo the default search plugin for en-US in American time zones, r=dolske, a=me 2014-11-23 20:38:22 -08:00
Richard Newman
7dc2972638 Bug 1097542 - Use explicit collation in nsSearchService. r=Waldo,adw
On Android, String.prototype.localeCompare ends up calling strcoll(), which results in an undesirable sort order for search engines.

This patch alters nsSearchService to use nsICollation.compareString directly, which should yield a consistent order across all platforms.

We use kCollationCaseInsensitiveAscii, which ignores case on ASCII characters but preserves ordering between accented and non-accented characters. We can revisit this decision if necessary.
2014-11-17 22:21:43 -08:00
Nick Alexander
d84d5b2511 Bug 986544 - Don't try to parse searchplugins list as XML. r=rnewman
XHR requests default to text/xml.  This just avoids trying to interpret
list.txt as XML.
2014-10-23 11:05:47 -07:00
Henri Sivonen
072cc3fe96 Bug 1069954 - Remove us-ascii as a Gecko-canonical encoding name. r=emk. 2014-09-22 16:15:34 +03:00
Dave Townsend
57dd686aab Bug 1070223: Ignore exceptions thrown from nsIBrowserSearchInitObserver. r=MattN 2014-09-19 16:04:41 -07:00
Tim Taubert
14ff946437 Bug 1047472 - Make parseSubmissionURL return the string offset for each search term r=paolo 2014-08-06 20:36:35 +02:00
Tim Taubert
843e826a17 Bug 1040931 - Add extensionID parameter to addEngineWithDetails r=gavin 2014-08-27 16:38:20 +02:00
Bill McCloskey
0f6b688b48 Bug 1046964 - Fix some JS warnings (r=ttaubert) 2014-08-19 17:27:58 -07:00
Paolo Amadini
d500d97e10 Bug 1053357 - Search terms with multiple spaces are displayed with plus signs in the location bar. r=gavin 2014-08-15 10:19:31 +01:00
Tomasz Kołodziejski
2d4a66b7c9 Bug 1052734 - Use FileUtils.PERMS_FILE instead of magic octal constants in nsSearchService.js. r=MattN
--HG--
extra : rebase_source : 5e1870bdd08625ca395ad92a064ac212533930c2
2014-08-12 17:07:00 -07:00
Birunthan Mohanathas
770cc01f6a Bug 1049979 - Fix 'functions may be declared only at top level or immediately within another function' warnings. r=gavin 2014-08-10 11:16:32 -07:00
Florian Quèze
3c6fe6df80 Bug 1029148 - store current search engine configuration outside of prefs - add a disclaimer in the salt, r=gavin. 2014-08-05 01:02:20 +02:00
Florian Quèze
f98d92de79 Bug 1029148 - store current search engine configuration outside of prefs, r=MattN. 2014-08-05 01:02:19 +02:00
Paolo Amadini
2d0a634cff Bug 1040721 - The search service should provide details for parsing search result URLs. r=gavin 2014-07-31 15:57:02 +01:00
Richard Newman
bce02b3a15 Bug 1043627 - Only re-initialize nsSearchService on locale change in Fennec. r=adw 2014-07-25 11:34:23 -07:00
Richard Newman
f704f37465 Bug 1018240 - Part 1: reinitialize nsSearchService when the browser locale changes. r=adw
This patch makes nsSearchService watch for changes in the
general.useragent.locale pref, asynchronously reiniting itself when the pref
changes.

reinit-complete and reinit-failed events are broadcast on the usual search
service topic.
2014-07-21 10:54:55 -07:00
Mike Connor
584e14f367 Bug 1006103 - add speculativeConnect() method to search engines, API + browser change, r=gavin
* * *
bug 1006103 - use speculativeConnect() method on nsISearchEngine in Fennec, r=margaret

--HG--
extra : rebase_source : 63739b6a876b373945ccf8b326a42150a5bb3cef
2014-05-06 12:47:22 -04:00
David Rajchenbach-Teller
7193d2912a Bug 1034975 - Search Service depends on OS.File, not on profileBeforeChange. r=mossop 2014-07-06 12:09:00 +02:00
Roberto A. Vitillo
426f09dacc Bug 988023 - Telemetry on how often we hit search service synchronous fallback. r=gavin 2014-05-14 05:36:00 -04:00
Birunthan Mohanathas
647a167d5e Bug 1003109 - Replace TaskUtils.spawn with Task.spawn. r=Yoric 2014-04-30 08:17:00 -04:00
Roberto A. Vitillo
9fe5a4bbe7 Bug 785487 - Have AboutHomeUtils use the asynchronous search service initialization API and adjust browser_aboutHome.js accordingly. r=felipe, r=gavin 2014-04-30 11:33:58 +01:00
Mike Connor
5c29c59501 Bug 999851 - remove topN support from search service, r=gavin
--HG--
extra : rebase_source : 4bce31c2fb6e078aa14ba31a3d06185f884f9ac1
2014-04-24 16:24:36 -04:00
Mike Connor
9612265476 Bug 997432 - log failures when MozParams don't include a condition attribute, r=gavin
--HG--
extra : rebase_source : e1f3712e88265d6e298b47e59e55d7e2feaf2484
2014-04-16 19:35:28 -04:00
Paolo Amadini
935a3ba73e Bug 991750 - Convert remaining legacy uses of promise.js to Promise.jsm. rs=Yoric 2014-04-07 16:18:43 +02:00
Gavin Sharp
c0c539b182 Bug 557665 - Allow specifying SearchForm as a normal <Url> in engine description files (part 1, main patch). r=adw 2010-04-01 22:51:26 -04:00
Marco Bonardo
fb58538bf3 Bug 959576 - Create a component to get the list of priority domains. r=gavin 2014-03-22 14:24:36 +01:00
Paolo Amadini
44cf767a29 Bug 940408 - Rework DeferredTask to allow asynchronous tasks and support AsyncShutdown. r=Mossop 2013-12-03 13:21:08 +01:00
Carsten "Tomcat" Book
b3c508ce3e Backed out changeset 295b75fac0c8 (bug 940408) for test failures in B2g Desktop Linux & B2G ICS Emulator Opt 2013-12-03 12:53:27 +01:00
Paolo Amadini
fb18739bb4 Bug 940408 - Rework DeferredTask to allow asynchronous tasks and support AsyncShutdown. r=Mossop 2013-12-03 10:15:22 +01:00
L. David Baron
b9bfaa7462 Bug 940446: Log a variable that's guaranteed to exist, so we don't throw an exception from the exception handler and break the URL bar and search bar. r=smacleod 2013-11-26 15:28:17 -08:00
Chenxia Liu
40c7f4e4ff Bug 937870 - nsSearchService displays duplicate engine prompt regardless of confirmation set by caller. r=gavin 2013-11-18 10:27:46 -08:00
Raymond Lee
7846d37db1 Bug 725943 - Refactor nsSearchService to generalize use of Lazy. r=MattN 2013-11-07 05:48:12 +08:00
Rodrigo Silveira
608efc5a34 Bug 900137 - add support for multple icon sizes to the search service r=yoric sr=gavin 2013-09-22 20:01:01 -07:00
Raymond Lee
092eb74ddd Bug 862179 - Implement asynchronous loading of search engines. r=gavin 2013-11-06 14:18:27 +08:00
Steven MacLeod
1f3a7b8500 Bug 887868 - Remove search.sqlite migration code. r=gavin 2013-11-05 14:23:58 -05:00
Henri Sivonen
5ac2a5be04 Bug 910192 non-UI part - Get rid of intl.charset.default as a localizable pref and deduce the fallback from the locale. r=bzbarsky. 2013-11-04 13:24:33 +02:00
Carsten "Tomcat" Book
6646962e49 Backed out changeset 88e0c01e2d81 (bug 910192) bustage on a CLOSED TREE 2013-11-04 13:04:02 +01:00
Henri Sivonen
7af818f242 Bug 910192 non-UI part - Get rid of intl.charset.default as a localizable pref and deduce the fallback from the locale. r=bzbarsky. 2013-11-04 13:24:33 +02:00
Brad Lassey
a891a3b3da bug 923795 - Add condition to MozParam to detect top 2 (or N) position r=gavin 2013-10-11 13:26:15 -04:00
Mike de Boer
0dd746c947 Bug 900865: Make about:home call nsISearchEngine.getSubmission for all searches. r=gavin 2013-08-30 18:20:22 +02:00
Ryan VanderMeulen
dfe10b3ffb Backed out changeset 41729438f597 (bug 900865) for Windows mochitest-bc crashes. 2013-08-29 15:48:29 -04:00
Mike de Boer
5b03824427 Bug 900865: Make about:home call nsISearchEngine.getSubmission for all searches. r=gavin 2013-08-28 13:36:48 +02:00
Dão Gottwald
7565581ba1 Backed out fe1213d6035d (bug 887868) because it seems to have caused bug 898713. CLOSED TREE 2013-07-27 15:47:36 +02:00
Mike de Boer
d3a98caab4 Bug 890690 - Add postDataString property to nsISearchSubmission. r=gavin
--HG--
extra : transplant_source : %F8%86%BD%9A%0Bt%95%F8%DC%E5%FA%BD%C8%3BP%87%A1%CB/%95
2013-07-19 19:56:38 +02:00
Steven MacLeod
d9fa136acb Bug 887868 - Remove migration from old Search Service DB. r=gavin 2013-07-24 17:48:30 -04:00
Gavin Sharp
935768b349 Bug 890085: don't throw in the currentEngine/defaultEngine setters if the defaultenginename pref is invalid, r=mikedeboer
--HG--
extra : transplant_source : I%18%BA%EB%E8%B1%95V%FA%BF%FA%F5L%14%60%BD%FC%A2DK
2013-07-10 14:35:30 -07:00
Gavin Sharp
68fd54dac6 Bug 885351: make sure defaultEngine and currentEngine are always in sync, including when the prefs have invalid values or after an upgrade from <FF23, r=MattN
--HG--
extra : transplant_source : Z%E3%AE%91%1D%D5%930%DE%F7%EA%F4dG%C7%B2%0B%9F0i
2013-07-01 16:46:07 -07:00
Gavin Sharp
a53dcdb333 Bug 493051: avoid having addEngine select the engine by default, by adding an optional callback to let callers observe the successful addition of the engine, r=MattN
--HG--
extra : rebase_source : 1e67f4fbed4324e2d5b8d132cf07be60b3010cf9
2013-06-18 09:39:02 -04:00
Gavin Sharp
aff9b97c87 Back out 423d565f5637 (bug 493051) for xpcshell bustage 2013-06-17 16:54:06 -04:00
Gavin Sharp
659a01fbc0 Bug 867108: hiding and then restoring the default search engine leads to the wrong engine being returned from searchService.defaultEngine until a restart, r=mikedeboer
--HG--
rename : toolkit/components/search/tests/xpcshell/test_engineselect.js => toolkit/components/search/tests/xpcshell/test_defaultEngine.js
extra : transplant_source : %2C%EE2%EF%EA%8Ak%D8%18%21%BB%98%18%14%BE%E9t%82%7C%BF
2013-06-17 14:00:11 -04:00
Gavin Sharp
72bebb943c Bug 493051: avoid having addEngine select the engine by default, by adding an optional callback to let callers observe the successful addition of the engine, r=MattN
--HG--
extra : transplant_source : M%40%CB%E5%8F%D9RMc%BA%23%20%C7%EC%9A%84H%DB%1B%81
2013-04-17 17:51:25 -07:00
Mike de Boer
c2547136e0 Bug 860560: make sure that defaultEngine and currentEngine stay in sync, r=gavin
--HG--
extra : transplant_source : %83%A6%F6%02%C5a6%08%09/%3C%D4p%23%0BI%EF%EE%C0%16
2013-05-27 17:21:47 +02:00
Caitlin Potter
7423a235e5 Bug 356821 - Update add-search-engine-as-current checkbox label. r=mak 2013-03-22 14:09:40 -04:00
Gavin Sharp
816a1e26a4 Backout 498f79c24e70 (bug 860560) for browser-chrome bustage 2013-06-07 11:43:26 -07:00