Commit Graph

195 Commits

Author SHA1 Message Date
Andrzej Hunt
a957702d89 Bug 1278221 - Manually find the toolbar in order to show options menu r=sebastian
Workaround for an Android support library bug

MozReview-Commit-ID: GD023N7tEWu

--HG--
extra : amend_source : 32aedac981aed488b144e67b74d41f5c89fa2218
2016-06-06 14:16:35 -07:00
Grigory Kruglov
7023147d0d Bug 1274029 - Part 3: Update aggregates during syncing r=sebastian
MozReview-Commit-ID: 9WyBE0Lk3Tp

--HG--
extra : rebase_source : 8dd2af4cf71d810a94620a67734d6ca492574a76
2016-06-01 15:02:46 -07:00
Kit Cambridge
02d8a1e5d9 Bug 1265593 - Forward app server keys to Autopush on Android. r=nalexander
MozReview-Commit-ID: 3J4mM1k0pcY

--HG--
extra : rebase_source : c5a33f2f7043321307da17a6915dedfac66f1fc9
extra : histedit_source : 0357740fc62df416635c90a1ad075f6ee5e492e8
2016-03-22 12:09:31 -07:00
Michael Comella
6b6e47cfcb Bug 1243585 - Remove unused BackgroundService & related code. r=sebastian
Note: this is still not expected to compile.

MozReview-Commit-ID: KTMyKTHm1RS

--HG--
extra : rebase_source : 8cfc2e306f3f23bbc077571f266f5f3e6444067a
2016-04-20 14:26:57 -07:00
Sebastian Kaspari
ad5a8c61b9 Bug 1263390 - Post: Fix new "Registered" lint errors. r=mcomella
* GeckoActivity, LocaleAwareAppCompatActivity, LocaleAwareFragmentActivity, LocaleAwareActivity:
  Those activities are never instantiated directly. Make them abstract.
* CrashReporter: This activity is only registered if MOZ_CRASHREPORTER is set. Supress warning.

Unfortunately I had to downgrade this lint check from "error" to "warning" because the current
gradle plugin doesn't recognize the SupressLint annotation for the "Registered" check:
https://code.google.com/p/android/issues/detail?id=204846

MozReview-Commit-ID: Hy56pZB8ZdB

--HG--
extra : rebase_source : 2f40d84792baaaffd4093e8cb2b17eb1155df5c3
2016-04-20 10:18:33 +02:00
Andrzej Hunt
f2c30c0d28 Bug 1246238 - Pre: Implement SimpleHelperUI r=sebastian
This provides a basic helper UI that can be customised with images/text.
We need a very similar helper for both reader-view offline bookmarking related
helpers (Bug 1236328 and Bug 1247689), hence it's useful to have a common
class implementing most of the required functionality.

Most of the new helper is borrowed from the existing HomeScreenPrompt. I will
extract the common functionality in a followup Bug.

MozReview-Commit-ID: Byc5VnVFffj

--HG--
extra : rebase_source : 1e20ab501f47dbdfd17d243ce8db4676ac841ab4
extra : source : b52ab3637d1e0eadd3c465a541324a74e6461af3
2016-04-23 10:56:17 +02:00
Grigory Kruglov
22abdf585b Bug 1266232 - be extra careful and mindful of performance when migrating visits r=mcomella
1) Use prepared SQL insert statement for insertions
1.2) Use ON CONFLICT IGNORE for our inserts, to avoid failing on possible data clashes
2) Don't synthesize "visits since last sync" - it's bound to cause problems, for not much benefit
3) Fix up some minor issues, cleanup code and add sanity checks
4) If there's evidence Sync was enabled at some point, mark synthsized visits as remote. Otherwise, as local.

MozReview-Commit-ID: Gd94A6r4rW

--HG--
extra : rebase_source : e4f74e3d1d286e1107e5a1764ae8ea3fd5ff3ff2
2016-04-22 23:18:04 -07:00
Chenxia Liu
27a0c4c5ee Bug 1262343 - Remove old Synced panel code. r=sebastian
MozReview-Commit-ID: FjRaX14gJ17

--HG--
extra : rebase_source : a5648748db28e6f2618bf8b0e447225b2ff371ee
extra : histedit_source : 5db443112959057f8e27f70891540cc26c9180da
2016-04-20 11:55:48 -07:00
Grigory Kruglov
53f2edfa45 Bug 1046709 - Post: remove dead code r=nalexander
MozReview-Commit-ID: K75KTg6pDEV

--HG--
extra : transplant_source : %93%E6%25%C9%C2%EF%96%11%E2%90%04%E9g%0A%CA%15%B9zo%AA
2016-04-07 19:08:42 -04:00
Grigory Kruglov
a8a4a8f16c Bug 1046709 - Part 5: Delete history db extensions related stuff r=nalexander,rnewman
- class
- tests

MozReview-Commit-ID: LwHo5Ej2FGS

--HG--
extra : transplant_source : %DFt%9B%C6gy%F3q%90%7Fc%FE%22%B5%BD%F85%FE%E4%1A
2016-04-12 15:52:53 -07:00
Grigory Kruglov
774870136d Bug 1046709 - Part 4: Sync changes r=nalexander,rnewman
- insert/merge visits on "sync down"
- ensure to attach visits on "sync up"
- tests

MozReview-Commit-ID: 4OmyQS5JSm7

--HG--
extra : transplant_source : %F0%A8fs%AB%90%EC%2C-%8B%7D1%E1h%FF%97%DAVT%28
2016-04-13 16:33:36 -07:00
Grigory Kruglov
1dab7ae855 Bug 1046709 - Part 2: CRUD for Visits - query/insert/delete; tests. r=nalexander,rnewman
Note: need to set package name in robolectric.properties so that Robolectric reads correct resources

MozReview-Commit-ID: 6wrh8kzJlXI

--HG--
extra : transplant_source : %86T%8BUB%ABe%0A%DF8%F0%81%0C%ACi%D1Rx%E2%EC
2016-04-16 02:19:53 -07:00
Andrzej Hunt
b3549fb619 Bug 1264138 - Upgrade FxAccountStatusActivity to use AppCompatActivity too r=sebastian
Our theming inheritance around Preferences still seems quite messy, however given we'll
need to uplift this I'm planning to tackle this in a separate bug.

We add the LocaleAwareAppCompatActivity in order to avoid affecting other consumers
of LocaleAwareFragementActivity (primarily the SearchActivity). We will investigate
those separately.

MozReview-Commit-ID: KVEZbDdza1s

--HG--
extra : amend_source : 3b296714b2f1d1aa2fd09f4ea8ee7641d0bb36fb
2016-04-14 08:35:13 -07:00
Sebastian Kaspari
e518bddf29 Bug 1264243 - Prevent "Add to home screen" button from overlaying page icon. r=ahunt
MozReview-Commit-ID: JPK1y5B1HbD

--HG--
extra : rebase_source : 1f2b0352351e098f379c1b072f76f9ecb40c4d31
2016-04-13 12:59:51 +02:00
Nick Alexander
fba2aa9c7b Bug 1261995 - Quiet infer NullPointerException warnings. r=mcomella
MozReview-Commit-ID: C0LPj4kGbPk

--HG--
extra : rebase_source : b22a0264605eb1e82d22cb751fcbd2f37c1478ce
extra : source : 6f36a3110086453834ec269f83887b2ad5d8d846
extra : histedit_source : e143a318bd45f27b43275bdc50d1d06d88dc74a8
2016-04-05 16:32:01 -07:00
Sebastian Kaspari
c72ce17279 Bug 1232706 - Promote "Add to home screen" for frequently visited websites. r=margaret
MozReview-Commit-ID: 2OW7GKxuQmr

--HG--
extra : rebase_source : 5cbcfe4183a7bef66f30e4797d5362053eda22c4
2016-04-06 09:41:34 +02:00
Katie Broida
0170b7f16b Bug 1257599 - Rename 'Unsorted Bookmarks' into 'Other Bookmarks'. r=jaws a=kwierso
MozReview-Commit-ID: 7iMM0vg9rUo
2016-03-31 16:17:30 -07:00
Michael Comella
77453d3db4 Bug 1258769 - Don't wrap import line. r=nalexander
The checkstyle checks should pass now.

MozReview-Commit-ID: HMRC2D8u8JT

--HG--
extra : rebase_source : ea2c096114dd1830054eae4864ee4426dddda499
extra : histedit_source : bf0fe0b9d7b0b29bea7869c9816214c1f818bae3
2016-03-22 14:19:51 -07:00
Narek Babajanyan
d10220e17f Bug 1257901 - Remove references to Old Sync. r=nalexander
MozReview-Commit-ID: 9WGu7NzmIOa

--HG--
extra : rebase_source : e6fd5329292e72797df2d23ed2189b15ba4ef039
2016-03-21 12:54:27 -07:00
Dinesh Polathula
b7f062d41f Bug 1255204 - Use sentence casing in Settings prefs. r=margaret
- Clear Private Data > Clear private data

Sync
-----
 - Terms of Service > Terms of service
 - Privacy Notice > Privacy notice

Privacy
-----
 - Tracking protection > Tracking Protection

--HG--
extra : histedit_source : 0dba954af1df974035430fb589570501b88a8272
2016-03-20 01:54:00 -04:00
Michael Comella
257c949d70 Bug 1255208 - Remove unused services strings. r=sebastian
MozReview-Commit-ID: AKuSLp7NZ9e

--HG--
extra : rebase_source : 82a0b8a94d59100cdac24cd356831ae8849256cb
2016-03-09 15:56:29 -08:00
Michael Comella
cbd69115b3 Bug 1255208 - Remove unused services resources. r=sebastian
MozReview-Commit-ID: 3DiEqOz0KCC

--HG--
extra : rebase_source : ff2e82f5ef4919b223d6fb9783596793784942bd
2016-03-09 15:19:49 -08:00
Nick Alexander
3bc32c10a8 Bug 1207714 - Pre: Tweaks to the autopush client. r=me
MozReview-Commit-ID: INWEkLJfVDQ

--HG--
extra : rebase_source : aa358e6914932fd7372e56703a53797336633093
extra : histedit_source : ccbfde18086e41010302188fa0667898367d2081
2016-03-01 16:59:49 -08:00
Nick Alexander
80f80e3127 Bug 1207714 - Pre: Expose synchronous executor to product code. r=rnewman
MozReview-Commit-ID: 3eDVh0nk7Nc

--HG--
extra : rebase_source : 3bd81e142b1733953bfd07bffc1de0293d1f4c00
extra : histedit_source : 8930a677515d115078c7098a639bfb1c38a0f72b
2016-02-25 09:30:28 -08:00
vivek
a7642a13bb Bug 946857 - Part 2: Add Android LoginsProvider. r=nalexander
LoginsProvider is an all-Android implementation of PasswordsProvider.
PasswordsProvider is an SQLite database backed by the version of
SQLite that ships with Gecko.  It is concurrently accessed from Gecko
and it runs with a special lifecycle that includes a separate
heavy-weight process.  Eventually we'll migrate the Gecko-side
passwords interface to use the new Android-side LoginsProvider, but
for now we just want to get the new provider landed and the tests
running.

MozReview-Commit-ID: Bx19D68tMtI
***
Bug 946857 - Fold into part2: review nits.

MozReview-Commit-ID: LmPwIvebfrr

--HG--
extra : rebase_source : 0caccd0773f3e2feb80d72fb4b52ac086c25f7d2
2016-02-15 16:14:31 -08:00
Wes Kocher
1be03a2b61 Backed out 2 changesets (bug 946857) for testBrowserDatabaseHelperUpgrades failures
Backed out changeset 9e4c8d1ffd3c (bug 946857)
Backed out changeset ca822e985ba5 (bug 946857)

MozReview-Commit-ID: DkVkUgEX7AJ
2016-03-02 14:42:04 -08:00
vivek
9a2769a8b0 Bug 946857 - Part 2: Add Android LoginsProvider. r=nalexander
LoginsProvider is an all-Android implementation of PasswordsProvider.
PasswordsProvider is an SQLite database backed by the version of
SQLite that ships with Gecko.  It is concurrently accessed from Gecko
and it runs with a special lifecycle that includes a separate
heavy-weight process.  Eventually we'll migrate the Gecko-side
passwords interface to use the new Android-side LoginsProvider, but
for now we just want to get the new provider landed and the tests
running.

MozReview-Commit-ID: Bx19D68tMtI
***
Bug 946857 - Fold into part2: review nits.

MozReview-Commit-ID: LmPwIvebfrr

--HG--
extra : rebase_source : f660f1be9ee019eb86f5b564d21386f899c53224
2016-02-15 16:14:31 -08:00
Michael Comella
9bf7de38e4 Bug 1252557 - Suppress ParcelCreator in AndroidFxAccount. r=nalexander
MozReview-Commit-ID: B2YEmQNBWTz

--HG--
extra : rebase_source : c5b3348c900be8b399d774f60a623bda2ece0e74
2016-03-01 11:10:20 -08:00
dlim
0bc8179166 Bug 1231549 - Set default profile endpoint server URI for Firefox Accounts not created via the web flow. r=nalexander 2016-02-23 13:03:33 -08:00
Nick Alexander
8dcc601b5e Bug 1248160 - Part 2: Inline MOZ_ANDROID_SHARED_FXACCOUNT_TYPE. r=ted.mielczarek
This is per-package, so there's no cross-package definition needed.

MozReview-Commit-ID: 8qy2SGJtCh1

--HG--
extra : rebase_source : 5e3cb1959ac560137487d5d0c12002820212aed7
extra : histedit_source : ac2404805e7afc2776c02414ab464d24d3057063
2016-02-13 10:13:10 -08:00
Priyen
5a0e601907 Bug 1245722 - Replace org.mozilla.gecko.sync.Utils.getLanguageTag with Locales.getLanguageTag. r=nalexander
The code at was duplicated for build reasons that no longer apply.

MozReview-Commit-ID: Hk7n9beobsY

--HG--
extra : rebase_source : 8ca84ecb2c837d14182b706014ab98022ce95acc
2016-02-14 21:59:24 -06:00
Michael Comella
378a0aa6a8 Bug 1244861 - Gzip outgoing telemetry pings. r=rnewman
This commit adds the GzipNonChunkedCompressingEntity which is necessary because
the telemetry servers don't support chunked uploading, which the built in
GzipCompressingEntity does.

I tested this on my local device and logs for successful uploads were sent for
both the testing gzip server as well as the official telemetry server. My data
correctly appears on the former and I did not check the latter.

MozReview-Commit-ID: 4bCNiRYyqFD

--HG--
extra : rebase_source : 28f877258fdf25a098bc5f1634c060b3fd53fe39
2016-02-17 18:20:20 -08:00
Nick Alexander
c2b4263d2c Bug 1247637 - Remove browser_intent_*; use ActivityUtils to open FxA links. r=sebastian
This fixes a crash, since Bug 1242213 removed the .App
<activity-alias> that browser_intent_class references.

I debated just updating the strings, and decided that it was best to
remove a pattern that is used only once in our codebase, even though
it moves more functionality to code.

MozReview-Commit-ID: 4Wgw0oITgue

--HG--
extra : rebase_source : 51cfb3e9d537b06a5303d74eeb4823723e4a7c0a
extra : amend_source : d09015b4b1356e42846ecd75ebbec4d3debd7bbd
2016-02-11 10:07:20 -08:00
malayaleecoder
8d06b5c4b1 Bug 1243821 - Remove unused Old Sync strings. r=nalexander
MozReview-Commit-ID: 48Nm8SxZEbG

--HG--
extra : histedit_source : fb43607451033e9019c05f39e324597a84fc6a90
2016-02-03 02:02:25 +05:30
Nick Alexander
6da34aac00 Bug 1244944 - Don't stick an org.json.JSONArray into an ExtendedJSONObject. r=rnewman
This works due to string conversions, but it's not elegant.  Let's
just define the API we want, and work to improve the implementation
when we remove org.json.simple entirely.

MozReview-Commit-ID: GseI427PeDi

--HG--
extra : rebase_source : b8dc7083a896526512746607095b8b51f3afd539
extra : histedit_source : eddb40fdfef92ac5c771937c5b76d59fa75ef768
2016-02-01 16:57:24 -08:00
Nick Alexander
e7060e1cab Bug 1244944 - Don't catch or throw ParseException. r=rnewman
MozReview-Commit-ID: G7gIlAOFy7k

--HG--
extra : rebase_source : ba71c066283102bed0f165deebde750897bf0883
extra : histedit_source : 2cd18645bbfb735db159331c87674457b3ecf6c0
2016-01-20 17:18:55 -08:00
Nick Alexander
e1374e2f2c Bug 1244944 - Don't throw ParseException from ExtendedJSONObject. r=rnewman
One step further on the path of removing dependence on
org.json.simple: don't expose its exceptions to consumers of EJO.  We
re-purpose the existing UnexpectedJSONException classes to incorporate
what were once ParseException instances.

MozReview-Commit-ID: KOwM3cf0fm

--HG--
extra : rebase_source : e722fbefb69dfb0b96b66f070e0241a389dfbf87
extra : histedit_source : 162ded0f62e064f4ca5c9bcba5534813e29dca0a
2016-01-20 17:02:55 -08:00
Nick Alexander
2ec311c682 Bug 1244944 - Inline ExtendedJSONObject.parseJSONObject. r=rnewman
MozReview-Commit-ID: 5J46KlYoLx6

--HG--
extra : rebase_source : 2fe8e2ee315e10354af8a26676089c770c6a2b86
extra : histedit_source : 8b193a0b377393ab731fdad35dc5808ab4bbeb0e
2016-01-20 16:40:32 -08:00
Nick Alexander
5fb238e0ef Bug 1244944 - Use typed put() variants. r=rnewman
MozReview-Commit-ID: 2Uxk9jcxQ7F

--HG--
extra : rebase_source : 960816c4865c5972e08cedd3ea4bb7e00280c848
extra : histedit_source : c7ccba36af698194ecb00a592a0595cddb84f72b
2016-02-01 16:55:36 -08:00
Nick Alexander
35349ee232 Bug 1244944 - Remove untyped EJO.putAll. r=rnewman
MozReview-Commit-ID: 2TQNGErFAMv

--HG--
extra : rebase_source : d6e3f6db5824211d7b1f55ea195d0cdbc85e49f8
extra : histedit_source : b9a748258ee10bf3d9d727c41952184e8663845a
2016-01-20 16:23:44 -08:00
Nick Alexander
776f34f7ed Bug 1244944 - Remove unused deepCopy method. r=rnewman
MozReview-Commit-ID: 5LAtdJ5W3fX

--HG--
extra : rebase_source : 5abdc91e3a3ba28a9c20c2b3617413a9532e1b4c
extra : histedit_source : 2e0003b05992989bcb9be5dec81934672502f786
2016-01-19 18:02:56 -08:00
Nick Alexander
42a6035751 Bug 1244944 - Remove old and crufty defer{Get,Put}. r=rnewman
This is safe because the single consumer of `MetaGlobal.fetch` is
`FetchMetaGlobalStage.execute`, which already expects to be called on
a thread and have another thread waiting for the callback.

MozReview-Commit-ID: 5XXd5aBkljc

--HG--
extra : rebase_source : 46282899d6338f4828ec01fe54f9a53efc8c7cb5
extra : histedit_source : fe4b11004d81a436f09fea3369a10edf4a3da91e
2016-01-19 16:20:37 -08:00
Nick Alexander
2a8a83c12d Bug 1173229 - Apply Google-recommended PRNG fixes before generating DSA keys. r=rnewman
See
https://android-developers.blogspot.com/2013/08/some-securerandom-thoughts.html
for a thorough discussion.

It's very expensive (at least 200ms on modern devices) to do this in
Application.onCreate, so we'll do this just before generating DSA keys.
In exchange, we accept some risk that we'll introduce the same issue
again.  As we lint more aggressively in automation, this risk will
decrease.

Google licenses the fixes file very permissively.  I have added some
serialization IDs to prevent certain compile warnings.

--HG--
extra : commitid : 2GRwurnHhvE
extra : rebase_source : 8d28b7d6541579d5f51f5173f7fe9a16ca39a982
extra : amend_source : ae37a4afa0754775fd0ccf94dc3718081dd37eb3
2016-02-03 15:39:16 -08:00
Nick Alexander
ac44079df1 Bug 1243855 - Add Java client for interacting with autopush endpoint service. r=rnewman,sebastian
A few notes: the test is live, so I've marked it @Ignore, so that it
doesn't run during |mach gradle test|.  There's some value in mocking
the service endpoint, but this is how I verify that the server works,
so it has more value right now as a live test than a mocked test.  In
the future, that probably won't be true.

There are issues running the test locally because Robolectric doesn't
provide all the cipher suites we use in GlobalConstants: in
particular, the GCM suites aren't supported.  This may improve as
Robolectric matures, or we may add a work-around in the code (like at
http://androidxref.com/4.4.4_r1/xref/libcore/support/src/test/java/libcore/java/security/StandardNames.java#68),
or we may add a test-specific flag.  For now, I'm not going to address
it directly.

Finally, I put the code in mobile/android/services, simply because the
less that goes into base, the better our build times will be.

--HG--
extra : commitid : Gw8uCqVViMC
extra : rebase_source : 7d35b78cb776fbd3892a2a95190a61846e0a3291
extra : amend_source : dfa8168eaca0a44b05a71fe6fdf4952964460d79
2016-01-29 13:47:20 -08:00
Michael Comella
6f74c154a6 Bug 1244293 - Don't upload telemetry if user opts out. r=mfinkle
I'm slightly concerned we're providing too much configuration information in
the debugging statements.

--HG--
extra : commitid : 6JfBA5lVkZ4
extra : rebase_source : 6cf1befef3aba37031e7fc3306b446e87114b601
2016-01-29 15:21:50 -08:00
Nick Alexander
2a1c461daa No bug - Pre: Add put to BaseResource. r=me
--HG--
extra : commitid : 6D8n0ItR2lJ
extra : source : c65e28b743446d92237b9e32a56be24a06336ae5
2015-11-18 15:48:14 -08:00
vivek
3d1a0313ed Bug 1241846 - Remove unused sync xml resources.
--HG--
extra : commitid : 2NmroRcjocC
2016-01-28 20:02:20 +02:00
Michael Comella
9ffcd9d74e Bug 1205835 - Create telemetry upload service and upload in onStart. r=rnewman
--HG--
extra : commitid : 53uxpxHX6ek
extra : rebase_source : 16ec581bf868cbc1feb2493c7e6f62ae1675d77b
2016-01-27 16:25:27 -08:00
Nick Alexander
5a5448da6d Bug 1182206 - Remove SYNC_EXTRAS_MANUAL entirely. r=nalexander
This patch removes the bespoke SyncHints type in favour of using
Android's own flags to ignore backoff and request an expedited sync.
It also unifies a simpler request{Immediate,Eventual}Sync API for
sync-requesting consumers.

--HG--
extra : commitid : 8oerw1PEWuH
extra : rebase_source : ec5bcc03f5d78439ab8455a9c486326f1651947a
2016-01-22 12:22:54 -08:00
Nick Alexander
e11f7d3873 Bug 1237880 - Remove code for syncing Reading List. r=rnewman
--HG--
extra : commitid : 6IDWYzgCMUt
extra : rebase_source : 89a938e4430bd16f4a0df68c0ac831fbb4b3170a
2016-01-19 15:06:28 -08:00