Граф коммитов

151 Коммитов

Автор SHA1 Сообщение Дата
maliu e830e5cda0 Bug 1320072 - Support direct search from intent, r=sebastian
MozReview-Commit-ID: GAoC4jKVyl7

--HG--
extra : rebase_source : 1df217a86397aac7958885bd9ee7853d47c33e5a
2016-11-30 20:25:32 +08:00
maliu 1bf966a5c8 Bug 1319302 - RTL support for Firefox for Android, r=sebastian
MozReview-Commit-ID: bKzW07YBDy

--HG--
extra : rebase_source : 591b8f98a7a287dbf2b7748a97211c81a3ac11aa
2016-11-11 16:10:21 +08:00
Tushar Saini (:shatur) d57c05a9ea Bug 1261041 - Remove feature11Plus-feature15Plus flags. r=sebastian
MozReview-Commit-ID: J4uXtUrjuKr

--HG--
extra : rebase_source : e21e02831ddc3c32a2d0be508b217e8c7b08cb12
2016-09-22 21:20:23 +05:30
Jim Chen d2272de7cb Bug 1298161 - d. Use application context to prevent BrowserApp leaks; r=sebastian
Use application context for delayed callbacks to prevent leaking the
BrowserApp instance. Also, use application context for accessing
Distribution, to prevent leaking old BrowserApp instances, and to avoid
using a destroyed Context. Finally, attach AudioFocusAgent to the
application context instead of the BrowserApp context to avoid leaking
BrowserApp.
2016-08-30 14:49:38 -04:00
Tom Tromey 5538d692d3 Bug 1286877 - do not set c-basic-offset for python-mode; r=gps
This removes the unnecessary setting of c-basic-offset from all
python-mode files.

This was automatically generated using

    perl -pi -e 's/; *c-basic-offset: *[0-9]+//'

... on the affected files.

The bulk of these files are moz.build files but there a few others as
well.

MozReview-Commit-ID: 2pPf3DEiZqx

--HG--
extra : rebase_source : 0a7dcac80b924174a2c429b093791148ea6ac204
2016-07-14 10:16:42 -06:00
Jim Chen f0bbcb4728 Bug 1164027 - Run search activity in a separate process; r=margaret
We suspect running WebView instances in the same process as Gecko could
be one cause of excessive GPU memory mappings.
2016-04-18 07:34:06 -04:00
Michael Comella 8ee25b0cf3 Bug 1249288 - review: Correct concurrency issues with searchEngineManager. r=sebastian
Additionally, added WeakReferences to the SEM in its callbacks so we can
GC ASAP if the Activity (and thus the SEM) gets GC'd. This is important
since we hold a reference to Context which can be a rather large object.

Furthermore, I added some related thread annotations where I felt they
were useful.

MozReview-Commit-ID: KaWlw14uOoN

--HG--
extra : rebase_source : 71e8363985179834aaa21b9885a66bd46ae1a361
2016-03-24 11:18:58 -07:00
Michael Comella d71b3f2d7e Bug 1249288 - Move om.search.providers.SearchEngine\* to omg.search. r=nalexander
We want to reuse this code for the main Activity.

MozReview-Commit-ID: BZxIrgmJI2r

--HG--
rename : mobile/android/search/java/org/mozilla/search/providers/SearchEngine.java => mobile/android/base/java/org/mozilla/gecko/search/SearchEngine.java
rename : mobile/android/search/java/org/mozilla/search/providers/SearchEngineManager.java => mobile/android/base/java/org/mozilla/gecko/search/SearchEngineManager.java
extra : rebase_source : 0a4cd7c64ecfbb5270fa2811924b7d22a87741cb
2016-02-23 17:27:24 -08:00
Sebastian Kaspari 85bb5808c6 Bug 1257941 - Use LeakCanary to watch for fragment leaks. r=ahunt
MozReview-Commit-ID: GhqcSH1SML

--HG--
extra : rebase_source : 9439dd3cd0aae5e68f647289ac67619cf13230e7
extra : amend_source : 3afffb2fc47600cfba6fce61452830500c3d6d3a
2016-03-18 20:00:49 +01:00
Sebastian Kaspari d785077dda Bug 1255162 - Replace NineOldAndroids with system API. r=liuche
NineOldAndroids is a backport of the animation API that was introduced with Honeycomb.
Since we stopped supporting Gingerbread we do not need this library anymore and can
just use the system API.

MozReview-Commit-ID: Fv6ALlIktt5

--HG--
extra : rebase_source : 1b0b40303edb985361a23536921de38d5295604a
2016-03-10 13:38:28 +01:00
Michael Comella 6b061b93b8 Bug 1255208 - Remove unused search strings. r=sebastian
MozReview-Commit-ID: DkHcLAkZD6S

--HG--
extra : rebase_source : 688c8d3752eebd0d10f94bd62a7ac868b43f5f12
2016-03-09 15:43:09 -08:00
Jalpreet Singh Nanda d5530d2198 Bug 1193208 - Replace ColorUtils.getColor() with ContextCompat.getColor(). r=sebastian
MozReview-Commit-ID: 8ZRF3Kuc1Bl

--HG--
extra : rebase_source : 8d6250254ea389a5088d75489c904ac1d250945c
2016-03-09 12:41:11 +05:30
Nathan Toone b139a57e27 Bug 1243931 - Use Context.getPackageName() instead of AppConstants.ANDROID_PACKAGE_NAME. r=nalexander
This patch just modifies the search widget to use the Android Context function instead of the hard-coded (at compile time) value.
2016-01-28 16:30:52 -07:00
Mark Finkle a27e407f25 Bug 1183320 - Remove FHR from android/base r=rnewman 2016-01-11 23:08:07 -05:00
Mark Finkle 0969383180 Bug 1234449 - Cleanup homescreen telemetry r=margaret 2015-12-22 09:32:04 -05:00
Christian Schmitz 6fa1737ccc Bug 1210242 - Support assist icon for Search Activity in Lollipop. r=mcomella 2015-10-15 19:26:38 +02:00
Allison Naaktgeboren 192690c713 Bug 1208520 - Add missing CATEGORY_BROWSABLE.r=mcomella 2015-10-08 17:24:14 -07:00
Sebastian Kaspari 455c551aba Bug 1211467 - Use new Fragment.onAttach() API (support library 23). r=mcomella
--HG--
extra : commitid : Iex7CMTsDuU
extra : rebase_source : 7b2a620cf98b39d8b9c08f1a8455ac32463311be
2015-10-07 09:14:10 +02:00
Sebastian Kaspari c17bda6e17 Bug 1208580 - PostSearchFragment: Suppress deprecation warning for onReceivedError(). r=nalexander
The new API for onReceivedError() has just been introduced in API 23 / Android 6.0.
However our minSdkVersion is 9 currently.

--HG--
extra : commitid : 7fnyh1z1PeS
extra : rebase_source : e3d2682b357a66027c9a33546c929b6bf7106255
extra : amend_source : c4545b7b0cb8fbf3866a53d1753849f0cdf5c10a
2015-10-02 13:37:04 +02:00
Sebastian Kaspari ab42648987 Bug 1169435 - Replace deprecated Resources.getColor() with call to ColorUtils.getColor(). r=mcomella
--HG--
extra : commitid : 1QLzM3Rs5lx
2015-08-11 11:09:37 +02:00
Michael Comella ea4537aef2 Bug 1175355 - Add AsyncQueryHandlerImpl in SearchActivity. r=nalexander
This avoids the "HandlerLeak" Android Lint warning.

--HG--
extra : commitid : 3sLO4YQ6Gjk
extra : rebase_source : 84cd05b1c4848895271e7f577ffa94b72de0281a
2015-06-24 16:58:06 -07:00
Michael Comella 001dfd4130 Bug 1173228 - Suppress SetJavaScriptEnabled linter warning. r=margaret
The function is required for a greasemonkey script and the code is expected to
be secure.

--HG--
extra : commitid : 4pQfBCCYBoK
extra : rebase_source : c952a45c6bad183e036b8557cdd7747993ae805d
extra : histedit_source : 9acabb865440c606cedd02d8cc7a02fe5c82dbb4
2015-06-09 18:52:12 -07:00
Jim Chen eda68cee3d Bug 1166309 - Make GeckoJarReader load mozglue if necessary; r=mfinkle r=rnewman 2015-06-10 00:25:01 -04:00
Michael Comella 9b602eedc2 Bug 1170886 - Replace use of NewApi suppression with @TargetApi. r?nalexander
TargetApi is specific, and preferred.

--HG--
extra : commitid : ACndrW0PUOa
extra : source : 00d5a9768b9d80956912bfc3499924c376119129
2015-06-02 20:02:30 -07:00
Martyn Haigh 770abc3d6b Bug 1159368 - After queueing a tab, I get put into the search activity (r=rnewman) 2015-05-06 17:57:45 +01:00
Nathan Toone 0f9afa9766 Bug 1161195 - Part 2: Rename variables. r=nalexander
Rename variables to be consistent with the name used in confvars.sh.
2015-05-05 20:11:15 -06:00
Nathan Toone 79c3b4b7be Bug 1161195 - Part 1: Set java class names at compile time. r=nalexander
Rather than hardcoding the following classes in AppConstants.java.in and AndroidManifest.xml, they are set in
confvars.sh:
   org.mozilla.gecko.GeckoApplication (Specified using MOZ_ANDROID_APPLICATION_CLASS)
   org.mozilla.gecko.BrowserApp       (Specified using MOZ_ANDROID_BROWSER_INTENT_CLASS)
   org.mozilla.search.SearchActivity  (Specified using MOZ_ANDROID_SEARCH_INTENT_CLASS)
2015-05-05 20:10:50 -06:00
Nathan Toone 1ffb06aa28 Bug 1158906 - Catch hardware keyboard return. r=margaret
In addition to keying off of the IME_ACTION_SEARCH, we also key of of IME_ACTION_UNSPECIFIED which is what is sent by the android emulator hardware keyboard.

--HG--
extra : rebase_source : 2a522a3a2dd8e9c5e8ab53900ff2312084d7bacf
2015-04-27 14:15:13 -06:00
Sebastian Kaspari 1a3cb616c2 Bug 1143280 - SearchBar: Suppress deprecation warnings in constructor to allow building with API level 22. r=rnewman 2015-03-16 16:44:22 +01:00
ronak 670e12b805 Bug 1122767 - Remove lockscreen code from SearchWidget. r=wesj 2015-02-26 06:17:00 -05:00
Mark Finkle dedbfe0adb Bug 1131438 - SearchEngineManager doesn't scan the distro searchplugins locale folders or fallback to a distro locale r=margaret 2015-02-22 16:59:33 -05:00
Richard Newman d97cea2a4a Bug 1126240 - Correctly encode APK paths in SearchEngineManager. r=margaret
This is the approach we already take everywhere else we make a jar🫙 URI.

I've unified those places into GeckoJarReader, cleaned up imports, fixed a
typo, and wrote a trivial test for this case.

I made a few utility methods static to facilitate testing and future refactoring.
2015-02-10 16:11:24 -08:00
Wes Kocher dc611f6b0a Backed out changeset ea1ed091f31e (bug 1126240) for android build failures
--HG--
extra : rebase_source : 604d42d88e5221777ea441da8aed6199ae523b26
2015-02-10 16:42:39 -08:00
Richard Newman bc3c2931e6 Bug 1126240 - Correctly encode APK paths in SearchEngineManager. r=margaret
This is the approach we already take everywhere else we make a jar🫙 URI.

I've unified those places into GeckoJarReader, cleaned up imports, fixed a
typo, and wrote a trivial test for this case.

I made a few utility methods static to facilitate testing and future refactoring.
2015-02-10 16:11:24 -08:00
Mark Finkle 7e23895133 Bug 1129576 - Rename the stumbler API key to the generic mozilla API key r=nalexander 2015-02-06 17:08:35 -05:00
Mark Finkle 49ed2e2392 Bug 1129576 - Fetch the country code in the Search Activity r=margaret f=rnewman 2015-02-06 17:08:31 -05:00
Margaret Leibovic 86a215aeba Bug 1128521 - Don't use API 17+ method in search activity. r=mfinkle
--HG--
extra : rebase_source : 84dcdf3e202095ca403b1aac13ed976953f87ce2
2015-02-03 12:00:04 -08:00
Margaret Leibovic 15e7fe4b99 Bug 1089653 - Make sure the search activity hasn't been destroyed before touching views in onAnimationEnd. r=mfinkle
--HG--
extra : rebase_source : 933da02719118c78528f4676710789bd64a8af49
2015-01-29 13:37:51 +01:00
Richard Newman 61c6d42006 Bug 1124492 - Allow for distribution intent processing to occur after first use. r=margaret 2015-01-26 10:02:39 -08:00
Margaret Leibovic 83f80afb6b Bug 1107925 - Don't launch fennec on search redirects. r=bnicholson
--HG--
extra : rebase_source : 0e99b01c7b2d1fbd78e1dff646d9137684ed3af8
extra : amend_source : a4d5ca535158dd1bc0197d92738d8296d55c53c7
2015-01-08 12:48:23 -08:00
Richard Newman 6adb3eb176 Bug 907768 - Rewrite search suggestion test hooks, fix network bypass in SuggestClient. r=bnicholson
This patch fixes all testSearchSuggestions intermittent failures, except for those that appear to be caused by update checks on 2.3.

It also replaces all waitForTest (deprecated) calls with waitForCondition.
2015-01-05 15:12:03 -08:00
Margaret Leibovic a55507efbe Bug 1114589 - Add compatibility layer for Uri.getQueryParameterNames. r=rnewman
--HG--
extra : rebase_source : 3b7d1fa11409cf3de9855df3a6575319b5a6f93c
2014-12-22 13:35:41 -05:00
Margaret Leibovic 0fbd54f296 Bug 1105316 - Look in Gecko chrome registry for fallback locale in search activity. r=rnewman
--HG--
extra : rebase_source : 42e908cf3c6d08cb8a108d6f7b11b169ef3ab0dd
2014-12-09 12:45:13 -08:00
Richard Newman 833c18887f Bug 1109000 - Split statics out of BrowserLocaleManager. r=nalexander, a=java-only on a CLOSED TREE
--HG--
rename : mobile/android/base/LocaleAware.java => mobile/android/base/Locales.java
2014-12-09 18:07:07 +00:00
Richard Newman 56f1111e87 Bug 1108252 - Remove launcher icon for search activity. r=mfinkle 2014-12-09 16:37:58 +00:00
Margaret Leibovic 4025761744 Bug 1105290 - Add null check to createEngineFromFileList. r=rnewman
--HG--
extra : rebase_source : 5a02f71a93659a297de3f8b2a8facb7c6a32f37e
extra : amend_source : 9ff1f1b354f6a50d5d49b060d1e1eac118ad712e
2014-12-08 11:12:44 -08:00
Margaret Leibovic 0eff74a910 Bug 1085386 - Finish preference activity when hitting action bar "up" button. r=liuche 2014-11-17 11:42:47 -08:00
Margaret Leibovic 611d572f7f Bug 1091728 - Use correct gecko default search engine in search activity. r=rnewman 2014-11-13 14:32:03 -08:00
Chris Kitching d9529470c9 Bug 1098082: Merge identical catch branches. r=rnewman 2014-11-13 01:21:10 +00:00
Wes Kocher 2cfa0606c7 Backed out changeset 64a320318bf9 (bug 1098082) for android build bustage 2014-11-12 18:22:25 -08:00