Commit Graph

334 Commits

Author SHA1 Message Date
Edouard Oger
f67e87ebd4 Bug 1373897 - Clear the succeeded records GUIDs list after each POST in non-batched mode. r=Grisha
MozReview-Commit-ID: 4VnYZc6gMkc

--HG--
extra : rebase_source : 85facf778436845d51848f4abbedd9609df5404b
2017-08-30 16:46:41 -04:00
Grigory Kruglov
10116eac39 Bug 1395703 - Make sure modifiedBySync CV field isn't passed to ContentProvider on updates r=rnewman
Comment from bugzilla on this ugly hack:

While processing bookmarks, we sometimes need to mark them for re-upload as we're inserting new ones or updating existing ones. For example, we might set or update a dateAdded field.
We perform insertions "in-bulk", and so we might be inserting some bookmarks which need to be re-uploaded, and some bookmarks which don't. We compile an array of ContentValue objects, and make a single call to our ContentProvider. This means we can't use a URI param to indicate our intent, and so a non-column field in ContentValues objects - modifiedFromSync - is set for those bookmarks which need special treatment during insertion.
Bug 1392802 added a similar mechanism for updating bookmarks. However, updates are done differently - currently, we perform a single call to our ContentProvider for each bookmark. Which means we _can_ use a URI field as a signaling mechanism, which is what that patch did. However, in haste I forgot to take into consideration existing signaling mechanism, which lead to update failures.
And so we're left with an even clumsier interface to our data store, with two ways to signal the same thing in different circumstances... A quick solution is to just make sure 'modifiedBySync' field never makes its way to contentprovider on updates; a more refined fix would probably modify update logic to use a ContentValues field for consistency... Either way, there's going to be something ugly, somewhere in the code.
I anticipate a lot of this code changing sometime soon in order to support better transactionality of bookmark syncing, and smarter merging, and so I'm inclined to just to the simple thing for now.

MozReview-Commit-ID: H10LFsqjbFY

--HG--
extra : rebase_source : f7f311d266d75c505bb8871a567ac96d39f1b1cb
2017-08-31 18:05:20 -04:00
Grigory Kruglov
8414560f22 Bug 1392505 - Let RepositorySessions track their own lastFetch and lastStore timestamps r=rnewman
This patch moves some of the state tracking (fetchEnd/storeEnd timestamps) away from RecordsChannel
and into individual RepositorySessions. The core assumption behind this move is that
sessions are better suited to know when they were fetched from during this sync, and when they
were stored to.
Sessions are growing in complexity - local ones are wrapped in a buffer, remote
now support batching downloads and uploads. In order to hide these details, it's easier to let
sessions keep track of the fetch/store timestamps in the way that fits their implementations.

Instead of flowing these timestamps upwards from sessions and into the SynchronizerSession,
the latter now simply queries sessions at the end of their flows.

The default behavior if a certain operation wasn't performed - that is, if fetchEnd or storeEnd
aren't set during sync for a session - is to return timestamp persisted during the previous sync.

This allows us to skip certain flows (no remote data available), and ensure that we're always
using correct timestamps of the same origin for any given session.

Prior behaviour was to "make up" a timestamp at the RecordsChannel level in cases of certain
errors or skipped flows, which resulted in comparing timestamps of different origins on the consequent sync.

MozReview-Commit-ID: 2wqeTo7mhz3

--HG--
extra : rebase_source : 21b02d4164abf75422920225749ffcfd3fc71e91
2017-08-30 19:48:21 -04:00
Grigory Kruglov
1c3783ec74 Bug 1392505 - Pre: remove unused delegate interface r=rnewman
MozReview-Commit-ID: K93rK1pILky

--HG--
extra : rebase_source : 9f8927d4298759ca7f9b862e51932a54ed7cb590
2017-08-25 21:44:37 -04:00
Grigory Kruglov
ba86f4a1fb Bug 1392802 - Increment localVersion while reconciling a bookmark if we modified its dateAdded t.s. r=rnewman
We might decide that there's an older dateAdded timestamp present for an incoming bookmark while processing it,
in which case we need to ensure that our changes will be uploaded.

MozReview-Commit-ID: BKLh4rYBiRu

--HG--
extra : rebase_source : 3f8ac41de99d7082cd9d7fc7254386d99d5431bd
2017-08-29 20:12:46 -04:00
Mark Hammond
273d4d9a9d Bug 1392449 - introduce shouldReconcileRecords so reconcileRecords never returns null. r=Grisha
MozReview-Commit-ID: L0rsLmzNTRr

--HG--
extra : rebase_source : c1ff236c9f4cdcc95fbb9bcda70c8fe6452f66d1
2017-08-29 17:31:10 +10:00
Grigory Kruglov
01cce9ce69 Bug 1394073 - Call onStoreFailed in case last payload fails in the uploader r=rnewman
MozReview-Commit-ID: 9cRuevmqbLD

--HG--
extra : rebase_source : be0249ddf14ff40bf1f51fc99f4d01c8eb168be0
2017-08-25 21:41:35 -04:00
Grigory Kruglov
e79d77c3a4 Bug 1392716 - Clean up version map while de-duping records r=rnewman
This is meant as a stop-gap measure to stop the obviously bad thing from happening.

MozReview-Commit-ID: Gqvc32K04xD

--HG--
extra : rebase_source : 04f1b5cb7ead6b7949b8433b3fc75c0d67283315
2017-08-23 21:28:49 -04:00
Grigory Kruglov
eddb3a7e06 Bug 1392078 - More detailed strong assertions to help narrow down root cause r=rnewman
MozReview-Commit-ID: JSN9Q837u6R

--HG--
extra : rebase_source : 75c197c8af0d0cebeb8ff7506cab61a0b283cea1
2017-08-21 17:42:44 -04:00
Thom Chiovoloni
e3dd5dd448 Bug 1291822 - Part 2. Integrate bookmark validator into android sync flow r=Grisha
MozReview-Commit-ID: LMmHAcfhnD

--HG--
extra : rebase_source : 914235a5e7db612ad1b42f8ce7d43cb21a6d3bfb
2017-07-17 16:49:11 -04:00
Thom Chiovoloni
feb4b73a23 Bug 1291822 - Part 1. Implement bookmark client server validator r=Grisha
MozReview-Commit-ID: D84KLUSQbe6

--HG--
extra : rebase_source : e8ee4d1d421a85c4fc2ce683206ab18742fb3170
2017-06-07 17:25:14 -04:00
Nevin Chen
a2f064998a Bug 1366664t - Update color and layout. Hide splash screen if first seen. r=walkingice
MozReview-Commit-ID: EP6hQIGcdyo

--HG--
extra : rebase_source : eb36ca2400be06e22f9f8024fa70d79f143a6d65
2017-08-09 18:13:55 +08:00
Grigory Kruglov
fe8f3dcf20 Bug 1364644 - Post: remove AndroidBrowser prefix from class names r=rnewman
MozReview-Commit-ID: Bpgba2BR7hp

--HG--
rename : mobile/android/services/src/main/java/org/mozilla/gecko/sync/repositories/android/AndroidBrowserBookmarksDataAccessor.java => mobile/android/services/src/main/java/org/mozilla/gecko/sync/repositories/android/BookmarksDataAccessor.java
rename : mobile/android/services/src/main/java/org/mozilla/gecko/sync/repositories/android/AndroidBrowserBookmarksRepository.java => mobile/android/services/src/main/java/org/mozilla/gecko/sync/repositories/android/BookmarksRepository.java
rename : mobile/android/services/src/main/java/org/mozilla/gecko/sync/repositories/android/AndroidBrowserRepositoryDataAccessor.java => mobile/android/services/src/main/java/org/mozilla/gecko/sync/repositories/android/DataAccessor.java
rename : mobile/android/services/src/main/java/org/mozilla/gecko/sync/repositories/android/AndroidBrowserHistoryDataAccessor.java => mobile/android/services/src/main/java/org/mozilla/gecko/sync/repositories/android/HistoryDataAccessor.java
rename : mobile/android/services/src/main/java/org/mozilla/gecko/sync/repositories/android/AndroidBrowserHistoryRepository.java => mobile/android/services/src/main/java/org/mozilla/gecko/sync/repositories/android/HistoryRepository.java
rename : mobile/android/services/src/main/java/org/mozilla/gecko/sync/repositories/android/AndroidBrowserHistoryRepositorySession.java => mobile/android/services/src/main/java/org/mozilla/gecko/sync/repositories/android/HistoryRepositorySession.java
rename : mobile/android/services/src/main/java/org/mozilla/gecko/sync/repositories/android/AndroidBrowserRepository.java => mobile/android/services/src/main/java/org/mozilla/gecko/sync/repositories/android/ThreadedRepository.java
rename : mobile/android/services/src/main/java/org/mozilla/gecko/sync/stage/AndroidBrowserBookmarksServerSyncStage.java => mobile/android/services/src/main/java/org/mozilla/gecko/sync/stage/BookmarksServerSyncStage.java
rename : mobile/android/services/src/main/java/org/mozilla/gecko/sync/stage/AndroidBrowserHistoryServerSyncStage.java => mobile/android/services/src/main/java/org/mozilla/gecko/sync/stage/HistoryServerSyncStage.java
rename : mobile/android/services/src/main/java/org/mozilla/gecko/sync/stage/AndroidBrowserRecentHistoryServerSyncStage.java => mobile/android/services/src/main/java/org/mozilla/gecko/sync/stage/RecentHistoryServerSyncStage.java
rename : mobile/android/tests/background/junit3/src/org/mozilla/gecko/background/db/AndroidBrowserRepositoryTestCase.java => mobile/android/tests/background/junit3/src/org/mozilla/gecko/background/db/ThreadedRepositoryTestCase.java
extra : rebase_source : 232ac4da5187fdf24cb4234a6173e6eab43a50cf
2017-08-14 21:21:29 -04:00
Grigory Kruglov
fe05737745 Bug 1364644 - Versioned syncing of bookmarks r=rnewman
MozReview-Commit-ID: 5IdRPUXMDPh

--HG--
extra : rebase_source : a1f830df665df46db87ad5b4ac909158d6d883b5
2017-08-16 21:02:21 -04:00
Grigory Kruglov
f0367018f1 Bug 1364644 - Pre: Refactor bookmark and history sessions to allow for different superclasses r=rnewman
Versioned syncing work later in the patch series introduces functionality that is best suited to live
within the RepositorySession inheritance chain.

We'd like to introduce a new RepositorySession subclass which individual RepositorySessions are able to
inherit. And that's when the current inheritance structure gets in the way: history and bookmarks both share
a superclass, and we'd like to only introduce this new functionality for bookmarks.
This makes our task, as stated, impossible without breaking apart the current inheritance structure.

This patch introduces a few "delegate" objects:
- SessionHelper
--> HistorySessionHelper
--> BookmarksSessionHelper

... which absorb most of the functionality from AndroidBrowserRepositorySession (removed) and bookmark and history
repository sessions.

This change is not functional - everything remains as before otherwise.

MozReview-Commit-ID: 7WwUmY3Wql7

--HG--
extra : rebase_source : a8cd49fd14cdc76b9e2906d4ee8c2052b9152413
2017-08-04 18:43:49 -04:00
Grigory Kruglov
1b34ae734e Bug 1364644 - Pre: Move change tracking responsibilities into repositories r=rnewman
As part of moving toward versioned syncing, we need to start decoupling change tracking
concepts from parts of the system that facilitate flow of records. This allows us to track
what changed differently for different data types, while maintaining a consistent and predictable API.

A move toward that is to let repositories own determinining that a record has been modified.
Repositories are now asked to provide modified records, instead of a very specific "records modified since".

This patch does not change behaviour of the system: every repository still uses timestamp-based
change tracking to actually provide modified records to the caller. A changeover to version
tracking will come later in this series for bookmarks, and as part of Bug 1383894 for other repositories.

MozReview-Commit-ID: LQuWYdlNHpt

--HG--
extra : rebase_source : 5552d74d4a967ce85af09aaa57ca438fe5b949f3
2017-07-28 17:15:22 -04:00
Grigory Kruglov
cefa33d6d6 Bug 1364644 - Pre: Remove guidsSince RepositorySession interface r=rnewman
We're moving toward version-based syncing. This is one of the bricks in that road,
removing an unused timestamp-based interface for accessing changed records.

MozReview-Commit-ID: CYUyASWXrMW

--HG--
extra : rebase_source : b95687409bc5f3e8e21fb9b084efdcd14a975d01
2017-07-24 14:48:38 -04:00
Ryan VanderMeulen
84df616efe Backed out 5 changesets (bug 1366664) for landing non-localizable strings.
Backed out changeset e5dfbde553d6 (bug 1366664)
Backed out changeset e078166d9857 (bug 1366664)
Backed out changeset 014d0def1489 (bug 1366664)
Backed out changeset 51868598947e (bug 1366664)
Backed out changeset 6a21eb146fba (bug 1366664)
2017-08-16 16:34:06 -04:00
Edouard Oger
0afc2d529d Bug 1389623 - Check that account is not null before notiyfing clients. r=Grisha
MozReview-Commit-ID: 4I0vfxdghgV

--HG--
extra : rebase_source : d8f6c1c31fdd3151362c63c4abe2d83468f08810
2017-08-14 16:32:53 -04:00
Nevin Chen
2a319e5242 Bug 1366664 - Update color and layout. Hide splash screen if first seen. r=walkingice
MozReview-Commit-ID: EP6hQIGcdyo

--HG--
extra : rebase_source : 19b6397f83f0c75ca8816326919b000af539a02d
2017-08-09 18:13:55 +08:00
Edouard Oger
5beff3890e Bug 1372655 - Notify other clients when uploading the local clients record for the first time. r=Grisha
MozReview-Commit-ID: HepBI6cbV3J

--HG--
extra : rebase_source : 621fd761f51697605c16d16a38d2a77dd98ab6a6
2017-08-03 16:10:40 -04:00
Grigory Kruglov
da35d1368a Bug 1386027 - Simplify handleError interfaces for SessionCallback and TelemetryCollector r=rnewman
Error reporting, and especially the split between per-stage and global session errors,
are a bit of a mess; at the very least, this patch unifies things a little bit, and
ensures we're not passing around nulls unexpectedly.

MozReview-Commit-ID: JTSp7GuOji0

--HG--
extra : rebase_source : 19bbd2c98776b32b803d7febb55549bc430cbc3e
2017-08-08 13:45:29 -04:00
kimsaehun
c6d2cf08df Bug 959033 - Don't send X-Confirm-Delete header with Android Sync requests. r=Grisha
MozReview-Commit-ID: AQqcfeX9TlA

--HG--
extra : rebase_source : a3db5d2ad8b0ecd791044b047ab933ade29a5125
2017-08-03 16:26:45 -07:00
Edouard Oger
5f64094bc9 Bug 1387053 - Make sure we don't do DB migration multiple times. r=rnewman
MozReview-Commit-ID: I799FUjIG4M

--HG--
extra : rebase_source : cf6b8591121cace64353f3bdfdca9de193e74e6f
2017-08-03 11:04:44 -04:00
Edouard Oger
03513f17af Bug 1351104 part 4 - Sync the clients collection after an update. r=Grisha
MozReview-Commit-ID: 2NvrYEVL7ZZ

--HG--
extra : rebase_source : 2f104517f5dfd83f0f8530ff2ea4e3adb0ecd386
2017-06-13 16:01:33 -04:00
Edouard Oger
4d981374e4 Bug 1351104 part 3 - Refresh the FxA device list on client disconnected push notification. r=Grisha
MozReview-Commit-ID: IxpBxaBROGv

--HG--
extra : rebase_source : b7f25868991827eca2fb7d5dc3a713a63fda910d
2017-06-07 16:31:13 -04:00
Edouard Oger
5fccf18ee5 Bug 1351104 part 2 - Filter the clients list in Send Tab with the FxA device list. r=Grisha
MozReview-Commit-ID: KqSyWVfwva3

--HG--
extra : rebase_source : 49b3eadec9527bc51f99747bc9f5a2bc9f24822a
2017-06-07 16:24:30 -04:00
Edouard Oger
322ba44ea6 Bug 1351104 part 1 - Store the fxaDeviceId in the Clients database. r=Grisha
MozReview-Commit-ID: Hs25rAX6dIB

--HG--
extra : rebase_source : 15eb9bf8c3f088e9bdc454b625620b69effce591
2017-06-07 14:41:38 -04:00
Grigory Kruglov
933d747314 Bug 1365865 - Update set of default ciphers for API26+ r=nalexander
TLS_DHE_RSA_WITH_AES_128_CBC_SHA is no longer supported in API26+.

MozReview-Commit-ID: AtNf2xZh2Bz

--HG--
extra : rebase_source : fef7d2018e77a4a4a7594bf32de750c8fa39e2ea
2017-06-27 17:36:21 -04:00
friedger
bd0bd7094d Bug 1217675 - Eliminate Honeycomb compatibility from Fennec code r=nalexander
Remove all references to Build.SDK_INT comparing 14 and lower

MozReview-Commit-ID: JdAjYvQ6mfX

--HG--
extra : rebase_source : f6cae8af84c26f42dcc02c133e7bc702f1af61e6
2017-06-10 08:57:55 +02:00
Grigory Kruglov
83aa322bb6 Bug 1229216 - Make Firefox Accounts "sign-in" flow default to sign-in, not registration r=nalexander
MozReview-Commit-ID: IM6FybTH6OX

--HG--
extra : rebase_source : 15fa2c0c535589c30599b2e34d22a689a46cc1bc
2017-06-09 14:27:31 -04:00
Grigory Kruglov
986de19758 Bug 1370221 - Don't try to serialize ExtendedJSONObject r=nalexander
MozReview-Commit-ID: 3Q4rD2Ljfc

--HG--
extra : rebase_source : 483dca7fe06acf1fbdcccfe9b9282041eeab2bf7
2017-06-06 14:15:31 -04:00
Grigory Kruglov
9c7b9b69cd Bug 1370656 - Don't re-use the same instance of TelemetryCollector between syncs r=nalexander
Parent class (FxAccountSyncAdapter) is essentially a singleton, and so we'd end up re-using class
fields between syncs, among them the collected telemetry data. It's cleaner and safer to move
ownership of TelemetryCollector into IntrumentedSessionCallback. With this change, telemetry
data is contained within and eventually emitted from a single owner object.

MozReview-Commit-ID: Abx13VmILcE

--HG--
extra : rebase_source : b68b44951361727015c2a10895e42f6a34806b27
2017-06-06 17:42:28 -04:00
Grigory Kruglov
fd1e018417 Bug 1370111 - Post: More explicit global error handling for Sync Telemetry r=nalexander
While this patch does make it clearer that telemetry error handling could be factored better,
at least it gets us to a consistent usage pattern.

MozReview-Commit-ID: 4Oamt9D03Ue

--HG--
extra : rebase_source : da73247ae0a27ba6ae3d6ad0d8814c1e2249e722
2017-06-05 19:44:15 -04:00
Grigory Kruglov
3eecfb6932 Bug 1370111 - Set 'started' telemetry timestamp before attempting to talk to the Token Server r=nalexander
MozReview-Commit-ID: E0vN1NY10WA

--HG--
extra : rebase_source : fdf22f1cdc2a5eba3ada1339aeefcc23c2debfe7
2017-06-05 19:51:27 -04:00
Grigory Kruglov
30acdf7a94 Bug 1308337 - Post: Remove old background telemetry code r=nalexander
MozReview-Commit-ID: CONHqQWzB6c

--HG--
extra : rebase_source : d492bf600a105f8ae2ac57c9aea6a5fb1a55f4e7
2017-04-11 22:31:18 -04:00
Grigory Kruglov
dc5518fc5c Bug 1308337 - Part 7: Instrument Crypto Keys stage r=nalexander
MozReview-Commit-ID: 8a9zKsdhkbv

--HG--
extra : rebase_source : c105a2a9b5fb7986c4114af21cb62e2c6abe23bd
2017-05-29 17:20:20 -04:00
Grigory Kruglov
77bca8c547 Bug 1308337 - Part 6: Instrument FetchInfoConfiguration stage r=nalexander
MozReview-Commit-ID: HvDWBVBxb5I

--HG--
extra : rebase_source : 5e884830eaf1004e98ec1f6bca923fc4c84d1068
2017-05-31 17:38:47 -04:00
Grigory Kruglov
31f9e82f6f Bug 1308337 - Part 5: Instrument FetchInfoCollectionsStage r=nalexander
MozReview-Commit-ID: 64jTO81tDpK

--HG--
extra : rebase_source : 801c9c27730c217c6cf2d6e2bf086ef78f36f3a4
2017-05-31 17:38:30 -04:00
Grigory Kruglov
627c7eaf6d Bug 1308337 - Part 4: Instrument FetchMetaGlobal stage r=nalexander
MozReview-Commit-ID: 6zXqgsAIajN

--HG--
extra : rebase_source : c4a10afafe83bbb404ad47a56b7c5c389c716dd6
2017-05-29 21:48:05 -04:00
Grigory Kruglov
c4c33eaf1b Bug 1308337 - Part 3: Handle sync restarts during telemetry collection r=nalexander
The approach here is to simply mark current TelemetryCollector as having restarted.
The downside of this approach is that two technically separate syncs are combined into one
telemetry ping. However, the two syncs are logically connected to each other, and combining
their telemetry will make it easier to figure out why a restart occurred, as well as what
happened after the restart.

MozReview-Commit-ID: AtJbge2ulMz

--HG--
extra : rebase_source : 4f9efb83da8f31b2e0470df6538c67533872f23a
2017-05-30 19:46:31 -04:00
Grigory Kruglov
9535e628ad Bug 1308337 - Part 2: Instrument Clients engine r=nalexander
While this is a "named" stage, it doesn't follow the Repository<->Repository
semantics of other named stages, and so it needs to be instrumented separately.

MozReview-Commit-ID: IKrc5Fb1bYm

--HG--
extra : rebase_source : 59c83e44235101f76b42f0eced867ce7b9d5a464
2017-05-31 17:38:59 -04:00
Grigory Kruglov
1153de2299 Bug 1308337 - Part 1: Instrument named sync stages and broadcast collected telemetry r=nalexander
SyncAdapter owns a TelemetryCollector, which is passed into GlobalSession to be "filled up"
with telemtry data.

GlobalSession obtains instances of TelemetryStageCollector from the TelemetryCollector, and
passes them into individual stages. They are filled up with telemetry as stages are executed.

Stage errors are recorded in TelemetryStageCollector.
Various global errors are recorded in TelemetryCollector itself.

On completion (success, failure, abort), telemetry is "built" and broadcasted via LocalBroadcastManager.
TelemetryContract is used to establish a key convention between the "broadcaster" and whoever is
on the receiving end of this telemetry.

This patch instruments stages which follow the Repository<->Repository flow semantics. Other stages,
such as the clients stage, meta/globa, info/* and crypto/keys are instrumented separately in follow-up
patches.

MozReview-Commit-ID: 5VLRc96GLdV

--HG--
extra : rebase_source : 4c7a7e1fde2e32d401eb28c70b9f04fdbd148ffd
2017-05-31 17:38:14 -04:00
Grigory Kruglov
cf21801c0a Bug 1308337 - Pre: Read hashedFxaUid from the token server r=nalexander
This is what we (and other platforms) use as part of telemetry payloads in place of either
our local FxA Device ID or the sync client ID.

Note that this server API is currently undocumented.
Parameter introduced in 2021994ca4

MozReview-Commit-ID: 64sY5RZ2ZxK

--HG--
extra : rebase_source : d1790feae1c0f46dc5f420aeed347da12a6ac85c
2017-05-26 17:44:42 -04:00
Grigory Kruglov
5e6e442c6e Bug 1308337 - Pre: Don't throw away store and fetch exceptions as they're encountered r=nalexander
We will need them later for telemetry reporting. For now we're just keeping the last exception which
we encountered (which agrees with desktop's behaviour), and Bug 1362208 explores follow-up work to
aggregate and count the exceptions as we see them.

MozReview-Commit-ID: 8yKkZVGJZ9e

--HG--
extra : rebase_source : 501ff746ecfb3022a0fe89844e307153bfdb5164
2017-05-26 17:44:27 -04:00
Grigory Kruglov
9c8d7b3d37 Bug 1308337 - Pre: More granular tracking of record flow between repositories r=nalexander
This patch:
- introduces a way to signal that a record has been reconciled; this is not a "flow control"
  event type, and must be used in addition to regular "recordStored" delegate call
- draws a clearer distinction between "attempted to store" and "stored, as reported by session's storage layer"

MozReview-Commit-ID: 99UbUJzu57w

--HG--
extra : rebase_source : d7424fec748b9a2d07d1c98b78ce89fd418750e4
2017-05-26 17:34:07 -04:00
Grigory Kruglov
fdb45b29fc Bug 1308337 - Pre: clean up wrong annotation r=nalexander
It's not just used for testing, and annotation is causing IDE to highlight its uses in code as invalid.

MozReview-Commit-ID: JvzX2VgNKom

--HG--
extra : rebase_source : a16933121371818307329523916d35e82b2446c9
2017-04-11 22:22:28 -04:00
udara
cd5f595a60 Bug 1367533 - Remove extra error logging during device disconnect on Android. r=eoger
MozReview-Commit-ID: wonLHOwwzP

--HG--
extra : rebase_source : 01a0723c88de1f45c57e0a8576f3f8e8304d5fec
2017-05-24 15:47:57 -04:00
Edouard Oger
37008cf22a Bug 1361534 - Fix typo in AndroidFxAccount. r=eoger
MozReview-Commit-ID: EhMWO9jmLJ8

--HG--
extra : rebase_source : 1ebf2aa1d3b51a53377f5c4e42c6ce2ed8cd8b26
2017-05-02 18:52:21 -04:00
Andrzej Hunt
135c35d919 Bug 1356693 - infer: fix RESOURCE_LEAK's in services r=Grisha
The primary issue is that we use a throwing InputStreamReader
constructor. If it throws, then any nested streams will be lost.
We can fix that by using the non-throwing InputStreamReader
constructor (which uses a Charset as the second parameter,
instead of a String which causes an Exception to be thrown
if it can't be parsed)

We also simplify some nested Stream's a little: most of the
Stream constructors don't throw, so there's no harm in not keeping
individual references to those that don't throw - and that
results in less Stream references for us to handle.

MozReview-Commit-ID: 2hyRFGVmGnU

--HG--
extra : rebase_source : 9d2b25997e0f71089c0ef56c0069cafe068f821e
2017-04-14 20:58:59 -07:00