Commit Graph

189 Commits

Author SHA1 Message Date
Richard Newman
c8ab377d06 Bug 1043627 - Only re-initialize nsSearchService on locale change in Fennec. r=adw 2014-07-25 11:34:23 -07:00
Paolo Amadini
a8ff4c87ca Bug 1041534 - Refactor search tests to remove some code duplication. r=MattN 2014-07-25 10:28:45 +01:00
Richard Newman
6b1cd2581c 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
5b1395f25f 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
35afa92f5e Bug 1034975 - Search Service depends on OS.File, not on profileBeforeChange. r=mossop 2014-07-06 12:09:00 +02:00
Jim Blandy
b6b202b6bb Bug 914753: Make Emacs file variable header lines correct, or at least consistent. DONTBUILD r=ehsan
The -*- file variable lines -*- establish per-file settings that Emacs will
pick up. This patch makes the following changes to those lines (and touches
nothing else):

 - Never set the buffer's mode.

   Years ago, Emacs did not have a good JavaScript mode, so it made sense
   to use Java or C++ mode in .js files. However, Emacs has had js-mode for
   years now; it's perfectly serviceable, and is available and enabled by
   default in all major Emacs packagings.

   Selecting a mode in the -*- file variable line -*- is almost always the
   wrong thing to do anyway. It overrides Emacs's default choice, which is
   (now) reasonable; and even worse, it overrides settings the user might
   have made in their '.emacs' file for that file extension. It's only
   useful when there's something specific about that particular file that
   makes a particular mode appropriate.

 - Correctly propagate settings that establish the correct indentation
   level for this file: c-basic-offset and js2-basic-offset should be
   js-indent-level. Whatever value they're given should be preserved;
   different parts of our tree use different indentation styles.

 - We don't use tabs in Mozilla JS code. Always set indent-tabs-mode: nil.
   Remove tab-width: settings, at least in files that don't contain tab
   characters.

 - Remove js2-mode settings that belong in the user's .emacs file, like
   js2-skip-preprocessor-directives.
2014-06-24 22:12:07 -07:00
Roberto A. Vitillo
27887a005c Bug 988023 - Telemetry on how often we hit search service synchronous fallback. r=gavin 2014-05-14 05:36:00 -04:00
Birunthan Mohanathas
62e127fd69 Bug 1003109 - Replace TaskUtils.spawn with Task.spawn. r=Yoric 2014-04-30 08:17:00 -04:00
Roberto A. Vitillo
a6791b2423 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
52a7e1a15e 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
17f4aac5f1 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
bb2ad048fa Bug 991750 - Convert remaining legacy uses of promise.js to Promise.jsm. rs=Yoric 2014-04-07 16:18:43 +02:00
Drew Willcoxon
436eb615cc Bug 557665 - Allow specifying SearchForm as a normal <Url> in engine description files (part 2, tests). r=gavin 2014-03-24 20:41:15 -07:00
Gavin Sharp
d2cd30e3ef 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
9120a58848 Bug 959576 - Create a component to get the list of priority domains. r=gavin 2014-03-22 14:24:36 +01:00
Gregory Szorc
1f28da1c9c Bug 969021 - Part 1: Consolidate moz.build data into parent moz.build files; r=ted
Many moz.build files define things that could be defined in parent
moz.build files. Keeping the number of moz.build files low helps with
build times due to less I/O and fewer directories traversed.

This patch eliminates a lot of moz.build files by moving their content
into parent moz.build files.

--HG--
extra : rebase_source : 0cfdf2697d10532e5b03cd27fbaadb41f42b837c
extra : amend_source : 0119d4e4881217f105e0e4ba1dfa9c8f7295f3e9
extra : histedit_source : eb49e62c67af2005fdc08d9c9a07f56bee98d558%2C50951e960e450f9b0e48fc7e8ec369d8666a63b0
2014-02-06 13:00:20 -08:00
Steven MacLeod
bfc2d9d473 Bug 943571 - Introduce a test for invalid engine files loaded from a dir. r=gavin 2013-12-11 14:15:16 -05:00
Paolo Amadini
25f6956af8 Bug 940408 - Rework DeferredTask to allow asynchronous tasks and support AsyncShutdown. r=Mossop 2013-12-03 13:21:08 +01:00
Carsten "Tomcat" Book
42e49d853e 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
907908c2b9 Bug 940408 - Rework DeferredTask to allow asynchronous tasks and support AsyncShutdown. r=Mossop 2013-12-03 10:15:22 +01:00
Mike Hommey
fdd3247a81 Bug 874266 - Move all DEFINES that can be moved to moz.build. r=mshal 2013-11-27 22:55:07 +09:00
Mike Hommey
2f727b6d62 Backout changeset 3fd4b546eed4 (bug 874266) and changeset a35d2e3a872f (bug 942043) for ASAN build bustage and Windows test bustage
--HG--
extra : amend_source : f20d09aeff1c8b5cbd0f1d24c7ce04e86f3aed1d
2013-11-28 14:24:05 +09:00
Mike Hommey
b038245b8d Bug 874266 - Move all DEFINES that can be moved to moz.build. r=mshal 2013-11-28 13:08:16 +09:00
L. David Baron
2ea13ecf58 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
Mike Hommey
f0d1cd1e10 Bug 939044 - Remove most definitions of MODULE. r=mshal 2013-11-19 11:47:39 +09:00
Chenxia Liu
3c86ddffeb 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
3e5f24c8ad Bug 725943 - Refactor nsSearchService to generalize use of Lazy. r=MattN 2013-11-07 05:48:12 +08:00
Rodrigo Silveira
445562244b Bug 900137 - xpcshell tests r=yoric 2013-10-02 17:08:34 -07:00
Rodrigo Silveira
8ae0469a6e 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
ca4a215109 Bug 862179 - Implement asynchronous loading of search engines. r=gavin 2013-11-06 14:18:27 +08:00
Anup
48d97e5389 Bug 468267 - Catch and report errors in search suggestions JSON response. r=gavin 2013-11-06 09:01:54 -05:00
Steven MacLeod
2a34a90619 Bug 887868 - Remove search.sqlite migration code. r=gavin 2013-11-05 14:23:58 -05:00
Henri Sivonen
5bf0b8c647 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
c01cac29f1 Backed out changeset 88e0c01e2d81 (bug 910192) bustage on a CLOSED TREE 2013-11-04 13:04:02 +01:00
Henri Sivonen
e5a75a933d 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
30c9d18caa bug 923795 - Add condition to MozParam to detect top 2 (or N) position r=gavin 2013-10-11 13:26:15 -04:00
David Rajchenbach-Teller
4fa1d4664e Bug 845190 - Reactivate tests blocked by bug 888347. r=yoric 2013-09-25 11:43:48 -04:00
Gregory Szorc
160a20817c Bug 901990 - Part 2: Upgrade xpcshell manifests; r=ted
--HG--
rename : toolkit/mozapps/extensions/test/xpcshell-unpack/head_unpack.js => toolkit/mozapps/extensions/test/xpcshell/head_unpack.js
2013-09-24 11:50:08 -07:00
Willian Gustavo Veiga
bb9ed1b84b Bug 344536 - Limit the number of history items displayed the search bar history dropdown, so that some suggestions are always visible. r=gavin 2013-09-19 08:50:21 -04:00
Mike Hommey
05b3f24e0e Bug 912293 - Remove now redundant boilerplate from Makefile.in. r=gps 2013-09-05 09:01:46 +09:00
Mike de Boer
4b78a28954 Bug 900865: Make about:home call nsISearchEngine.getSubmission for all searches. r=gavin 2013-08-30 18:20:22 +02:00
Ryan VanderMeulen
b53a496903 Backed out changeset 41729438f597 (bug 900865) for Windows mochitest-bc crashes. 2013-08-29 15:48:29 -04:00
Mike de Boer
db6d7f59cc Bug 900865: Make about:home call nsISearchEngine.getSubmission for all searches. r=gavin 2013-08-28 13:36:48 +02:00
Dão Gottwald
ed2711d6ab 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
d844cdcfda 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
eb67e8a1a6 Bug 887868 - Remove migration from old Search Service DB. r=gavin 2013-07-24 17:48:30 -04:00
Gavin Sharp
4dcfb0badd 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
Mihnea Dobrescu-Balaur
a59543436f Bug 888550 - Use a dynamic port in search/ xpcshell tests so they can be run in parallel. r=MattN 2013-07-09 10:46:25 -07:00
Joey Armstrong
44ade60e99 bug 870370: EXTRA_COMPONENTS cleanup for conversion patches #1 & #2. 2013-07-03 12:01:06 -04:00
Gavin Sharp
4420e82a70 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