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

115 Коммитов

Автор SHA1 Сообщение Дата
dlim@mozilla.com 4fd116a405 Bug 730142 - Download batching. r=Grisha,rnewman
MozReview-Commit-ID: BhMmynysoKa

--HG--
extra : rebase_source : c62eb8bdd93bf38281aa13d37e6a49b271029e09
2016-09-30 09:33:08 -07:00
Grigory Kruglov 14a454f556 Bug 1253111 - Part 2: Add support for batching uploads r=rnewman
- Introduce a new BatchingUploader class to handle storing records and keep track of batches/payloads
- Refactor upload runnable and upload delegate into their own classes
- Introduce Last-Modified and X-I-U-S handling into non-batching mode

MozReview-Commit-ID: 3JLExwQvYzM

--HG--
extra : rebase_source : 4a6a2db595fe72473b033acd4f3180fa799319d4
2016-08-26 14:05:47 -07:00
Grigory Kruglov 29e4dd5c85 Bug 1253111 - Part 1: Introduce new sync stage to handle info/configuration r=rnewman
MozReview-Commit-ID: 7MOgR7A5SOF

--HG--
extra : rebase_source : e029d60a063b2e1dd9061362c4d4a647263dd3ec
2016-08-15 18:35:17 -07:00
Edouard Oger 83666a61d8 Bug 1287643 - FxA Push registration and handling of device disconnection message. r=kitcambridge,nalexander
MozReview-Commit-ID: 8IH3kBivp26

--HG--
extra : rebase_source : b3e2d2587f111c9d2c8d0eab887027caf92fe859
2016-07-20 10:47:04 -07:00
Phil Ringnalda 74f4a938ed Backed out 2 changesets (bug 1287643) for xpcshell failures in test_notification_ack.js and friends
Backed out changeset 816516be0183 (bug 1287643)
Backed out changeset e72a4a5ae5ff (bug 1287643)
2016-08-16 21:28:51 -07:00
Edouard Oger f416df2a70 Bug 1287643 - FxA Push registration and handling of device disconnection message. r=nalexander
MozReview-Commit-ID: BYFMeQNgumu=

--HG--
extra : rebase_source : c17f04277e1c6840e601954c1207a2a00586864d
2016-07-20 10:47:04 -07: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
Grigory Kruglov a3e84b7d79 Bug 1245791 - Part 1: Start FxAccountDeletedService directly, not through an intent r=nalexander
MozReview-Commit-ID: Ll1YkUhrQTJ

--HG--
extra : rebase_source : f7be09abe5f3950043549cf44ac8d0c092fda9d3
2016-07-07 11:32:52 -07:00
Grigory Kruglov 1e81008e49 Bug 1245791 - Pre: Remove unnecessary AccountLoaderNative r=nalexander
MozReview-Commit-ID: J1kzldfRTjx

--HG--
extra : rebase_source : 7137cc6b2edd1dc642dd31f0ce67ba3d4d94c653
2016-07-07 18:15:23 -07:00
Edouard Oger ad9c52e341 Bug 1250782 - Add FxAccountDeviceRegistrator. r=mcomella, nalexander
MozReview-Commit-ID: LIHuHxnfW1V

--HG--
extra : transplant_source : %40%3F%C4%CD%24%5B9%9CaR%5C4YUI%EA%C5%C6%12%EB
2016-05-18 12:48:21 -07:00
Edouard Oger 2c7bb5dd31 Bug 1250782 - FxAccountClient: add registerOrUpdateDevice method. r=mcomella
MozReview-Commit-ID: 6cGQTZq5G1W

--HG--
extra : transplant_source : n%CD%DB%D4Y%FB%3E%A6%E5%CF%0A%FB%3Ca%07%92%F0%60%95%A3
2016-05-18 12:35:50 -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
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
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 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
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
Nick Alexander ef01fe99f3 Bug 1240919 - Part 4b: Make FxAccountClient10 be Client20, completing swap. r=rnewman
--HG--
extra : commitid : FwiWhoKIeON
extra : rebase_source : 940ec3e6f6070a9390dd15e739c6c38327cf4f04
2016-01-19 15:10:21 -08:00
Nick Alexander d6d1fb59c0 Bug 1240919 - Part 2: Cull more client v1 code. r=rnewman
--HG--
extra : commitid : E7CbKng8xVK
extra : rebase_source : 5da5f88d34a8e34993a93b925b2f6a3b39678b0f
2016-01-19 13:59:30 -08:00
Nick Alexander 88a4923138 Bug 1220906 - Part 8: Get rid of Old Sync-specific stages. r=rnewman
The two stages are EnsureClusterURLStage (the FxA + Sync cluster URL
is determined directly from the token provided by the token server),
and MigrationSentinelSyncStage.  This allowed to merge the two
{Base}GlobalSessionCallback classes together, as well as removing the
specializing FxAcccountGlobalSession.

--HG--
extra : commitid : EDoW9AAGE0M
extra : rebase_source : 00fc286b0e5789790b5dc7afdc5532857a08bbfa
2016-01-18 17:34:20 -08:00
Nick Alexander 916e335ff3 Bug 1220906 - Part 7: Miscellaneous purging. r=rnewman
--HG--
extra : commitid : Lbpa96Mbg2o
extra : rebase_source : 9287a7c840eedbe852127aff9eabb7b9e3634940
2016-01-18 17:17:03 -08:00
Nick Alexander 4978a35142 Bug 1220906 - Part 6: Remove Old Sync configuration code. r=rnewman
--HG--
extra : commitid : 1NbJi3JriIB
extra : rebase_source : 895092b10bf20b0425e266a1d340e22b81f8daee
2016-01-18 17:02:56 -08:00
Nick Alexander 35d2682654 Bug 1220906 - Part 5: Remove Old Sync setup and JPAKE code. r=rnewman
--HG--
extra : commitid : DrheDFD75zQ
extra : rebase_source : 4249543a2df591bf042b93094a2f112fd8460805
2016-01-19 11:31:31 -08:00
Mark Finkle 6b1716f931 Bug 1239935 - Remove unused TelemetryRecorder and tests r=nalexander 2016-01-16 16:25:44 -05:00
Mark Finkle 00f8f44c83 Bug 1183320 - Remove FHR from android/services r=rnewman 2016-01-11 23:08:12 -05:00
vivek 8c65c45f90 Bug 1224708 : Update SyncPreference asynchronously using Loaders r=nalexander
--HG--
extra : amend_source : b27f9dfa939b94606375b4b7367a89e7129f0e7f
2015-11-17 21:24:18 +02:00
Nick Alexander c78ca48f65 Bug 1220892 - Part 5: Remove FxAccountAgeLockoutHelper. r=mcomella
--HG--
extra : commitid : CieLAKDngXa
extra : rebase_source : 8fdfa5fbb2a51d0a857d571c02d11c3fbd4031c9
extra : histedit_source : fdd187780c0a3f458a9bd1454840fbc1f1c3ab4b
2015-11-30 15:56:03 -08:00
Nick Alexander b64c5d3726 Bug 1220892 - Part 4: Clean up FxAccountAbstractSetupActivity. r=mcomella
The web based Activity sub-classes never used the other intent extras,
and in fact, filter them out immediately; so it doesn't hurt to clean
this all up.

--HG--
extra : commitid : KggZGk67ElE
extra : rebase_source : 40ecabce597eb0bb2c6326a14c2153eb969e06ee
extra : histedit_source : 02836f27b4c99c1d294b46c0c47a61f2f59aef0b
2015-11-30 15:51:44 -08:00
Nick Alexander 0085b53d8d Bug 1220892 - Part 3: Remove Task sub-classes. r=mcomella
--HG--
extra : commitid : 17ZIKjkJ8OE
extra : rebase_source : 2b75ff0db176019548c601e31b07ce385ad216a5
extra : histedit_source : 2e90bb0d2a628e38e1a379f346c980e9d1c25178
2015-11-30 15:47:50 -08:00
Nick Alexander 4fc6268fba Bug 1220892 - Part 2: Remove Activity sub-classes. r=mcomella
--HG--
extra : commitid : 5VlhtXO87jE
extra : rebase_source : bd14d631ddfc04ac33800baea3c72f5ebdbcba1f
extra : histedit_source : 3d963cbdf58b711493184d1f3532ad5d4b129f9c
2015-11-30 14:59:44 -08:00
Nick Alexander 36612fcf73 Bug 1229438 - Part 3: Update build. r=rnewman
--HG--
extra : commitid : Flnya4XUUqU
extra : rebase_source : 7b85c9ff822186ebf545fd5d12b6f9945e390e8c
extra : amend_source : 938b962d20860b4830da4b797bf6326e9e1fdcae
extra : histedit_source : aa63afc5f2ba97a19010604036c5b29d83e23540
2015-12-01 10:56:09 -08:00
Kalpesh Krishna bd090743b5 Bug 1148028 - Remove MOZ_ANDROID_SHARE_OVERLAY. r=vivek,nalexander
Fennec ships the Share Overlay everywhere.

--HG--
extra : commitid : 5BjYeDt7odR
extra : rebase_source : 8f8b97ee70161312a3c4ba7add801a1b2d340d23
2015-11-27 12:51:02 -08:00
Kalpesh Krishna 4e57ac8198 Bug 1212596 - Highlight Remove account in rejection red. r=vivek
--HG--
extra : rebase_source : 40a4e87f6a1f66dd25630096f069a6b71181789e
2015-11-06 00:13:44 +02:00
Nick Alexander 49750ee251 Bug 1208882 - Don't export HealthReportBroadcastReceiver; add new exported receiver. r=rnewman
Internal intents are forwarded with extras.  External intents submit
with only an action.

--HG--
extra : commitid : Flgbl9HsEsx
extra : rebase_source : cb59022892eb2932f90817b7ad98ef71693735f2
extra : amend_source : 23c8399e06415e7518a5b575d59d6194a67974a2
2015-11-03 11:53:52 -08:00
Nick Alexander 250201219b Bug 1204937 - Part 4: Add "pass-through to web" versions of native account activities. r=sebastian
This always loads about:accounts with an 'action' query parameter.
This indirection allows Gecko to manage the fxa-content-server pref
independently of Java.

--HG--
rename : mobile/android/base/fxa/activities/FxAccountConfirmAccountActivity.java => mobile/android/base/fxa/activities/FxAccountConfirmAccountActivityWeb.java
rename : mobile/android/base/fxa/activities/FxAccountFinishMigratingActivity.java => mobile/android/base/fxa/activities/FxAccountFinishMigratingActivityWeb.java
rename : mobile/android/base/fxa/activities/FxAccountUpdateCredentialsActivity.java => mobile/android/base/fxa/activities/FxAccountUpdateCredentialsActivityWeb.java
extra : commitid : 4TMvCIutRhS
extra : rebase_source : ba8d8d0d4617b4ae85504468e458bdc0ff4990fe
2015-09-01 13:18:48 -07:00
vivek 98685d36e0 Bug 1183588 - Pre:Enforce strict threading policy for Sync status change callback r=nalexander.
--HG--
extra : commitid : GPUhbkA2tG1
extra : rebase_source : d0d1eb0e5b36facdebcc93fdc0a8b7822b81699d
2015-08-19 21:16:10 +03:00
vivek babbd6420d Bug 1177855: Fetch and show avatar image as preference icon. r=nalexander
The profile JSON is stored in the Account bundle.  There's no need to
bump the bundle version, since missing (i.e., null) profile JSON is
legal.

This introduces and uses a general-purpose PicassoPreferenceIcon
Picasso Target that, on API 11+ devices, dynamically loads a
preference icon.

--HG--
extra : commitid : 5eCDv0G75qy
extra : rebase_source : 4380e6ea0d5992ca212de0bf95c6d471817f2f35
2015-06-30 21:09:44 -07:00
vivek 118f620f36 Bug 1171141 : Fetch profile data for FxAccount -r=nalexander.
--HG--
extra : commitid : LUDZFzV918R
2015-06-14 15:30:25 +03:00
Nick Alexander eef143f84d Bug 1140812 - React to Backoff and Retry-After headers from Reading List storage servers. r=rnewman
========

cd7edfa0b5
Author: Nick Alexander <nalexander@mozilla.com>
    Bug 1140812 - Part 3: React to Backoff and Retry-After headers.

========

8581f5a572
Author: Nick Alexander <nalexander@mozilla.com>
Date:   Fri Mar 27 15:30:33 2015 -0700

    Bug 1140812 - Part 2: Include request in HTTP response observation callbacks.

    This allows to only handle responses from certain hosts.

========

05b50325db
Author: Nick Alexander <nalexander@mozilla.com>
Date:   Fri Mar 27 14:47:38 2015 -0700

    Bug 1140812 - Part 1: Generalize from one to many HTTP response observers.

    CopyOnWriteArrayList is a reasonable choice here: we have few writes but
    many iterations.  See
    http://docs.oracle.com/javase/7/docs/api/java/util/concurrent/CopyOnWriteArrayList.html

========

5950219343
Author: Nick Alexander <nalexander@mozilla.com>
Date:   Fri Mar 27 16:04:07 2015 -0700

    Bug 1140812 - Pre: Modernize backoffInSeconds.

    Sync uses X-Backoff; newer services, including Reading List, use Backoff.
2015-03-27 16:01:36 -07:00
Richard Newman 354434e5f5 Bug 1147473 - Follow-up: move ReadingListConstants to avoid build flag pain.
--HG--
rename : mobile/android/base/reading/ReadingListConstants.java => mobile/android/base/background/ReadingListConstants.java
2015-03-27 13:11:08 -07:00
Nick Alexander 463d180cd8 Bug 1142596 - Use cached FxA OAuth tokens in Reading List sync. r=rnewman
========

9b406122ef
Author: Nick Alexander <nalexander@mozilla.com>
    Bug 1142596 - Post: Use production OAuth and Reading List endpoints.

========

9e5368b4aa
Author: Nick Alexander <nalexander@mozilla.com>
Date:   Tue Mar 24 23:00:34 2015 -0700

    Bug 1142596 - Part 4: Make ReadingListSyncAdapter use oauth tokens produced and cached by the authenticator.

========

fbef93698d
Author: Nick Alexander <nalexander@mozilla.com>
Date:   Tue Mar 24 22:49:52 2015 -0700

    Bug 1142596 - Part 3: Implement getAuthToken with token types of the form oauth::scope.

    Be aware that there are two levels of token invalidation relevant here.
    The first level is when a consumer uses an oauth token and gets a 401;
    in this case, the consumer *must* call Android's own
    invalidateAuthToken.  The second level is when the oauth client itself
    gets a 401 trying to fetch an oauth token; in this case, the internal
    state of the Firefox Account needs to be pushed back.

========

e4e2247b4e
Author: Nick Alexander <nalexander@mozilla.com>
Date:   Tue Mar 24 22:43:26 2015 -0700

    Bug 1142596 - Part 2: Extract login state machine delegate encapsulating expirations.

========

f1f716cc88
Author: Nick Alexander <nalexander@mozilla.com>
Date:   Tue Mar 24 22:14:47 2015 -0700

    Bug 1142596 - Part 1: Surface Reading List authentication errors.

========

5833cbbf71
Author: Nick Alexander <nalexander@mozilla.com>
Date:   Tue Mar 24 22:01:46 2015 -0700

    Bug 1142596 - Pre: Add note about deleting cached oauth tokens.

    Deleting cached oauth tokens is tracked by Bug 1147245.

========

b0165a6c14
Author: Nick Alexander <nalexander@mozilla.com>
Date:   Tue Mar 24 23:06:49 2015 -0700

    Bug 1142596 - Pre: Trim imports.
2015-03-26 14:13:58 -07:00
Ryan VanderMeulen cfe13e7c89 Backed out 3 changesets (bug 1147473, bug 1148504, bug 1142596) for bustage.
Backed out changeset c4639723e721 (bug 1148504)
Backed out changeset 6c3fd5d5aa40 (bug 1142596)
Backed out changeset 24bf86f4b440 (bug 1147473)

DONTBUILD CLOSED TREE
2015-03-27 15:41:53 -04:00
Nick Alexander deb90b5aaa Bug 1142596 - Use cached FxA OAuth tokens in Reading List sync. r=rnewman
========

9b406122ef
Author: Nick Alexander <nalexander@mozilla.com>
Date:   Thu Mar 26 14:13:58 2015 -0700

    Bug 1142596 - Post: Use production OAuth and Reading List endpoints.

========

9e5368b4aa
Author: Nick Alexander <nalexander@mozilla.com>
Date:   Tue Mar 24 23:00:34 2015 -0700

    Bug 1142596 - Part 4: Make ReadingListSyncAdapter use oauth tokens produced and cached by the authenticator.

========

fbef93698d
Author: Nick Alexander <nalexander@mozilla.com>
Date:   Tue Mar 24 22:49:52 2015 -0700

    Bug 1142596 - Part 3: Implement getAuthToken with token types of the form oauth::scope.

    Be aware that there are two levels of token invalidation relevant here.
    The first level is when a consumer uses an oauth token and gets a 401;
    in this case, the consumer *must* call Android's own
    invalidateAuthToken.  The second level is when the oauth client itself
    gets a 401 trying to fetch an oauth token; in this case, the internal
    state of the Firefox Account needs to be pushed back.

========

e4e2247b4e
Author: Nick Alexander <nalexander@mozilla.com>
Date:   Tue Mar 24 22:43:26 2015 -0700

    Bug 1142596 - Part 2: Extract login state machine delegate encapsulating expirations.

========

f1f716cc88
Author: Nick Alexander <nalexander@mozilla.com>
Date:   Tue Mar 24 22:14:47 2015 -0700

    Bug 1142596 - Part 1: Surface Reading List authentication errors.

========

5833cbbf71
Author: Nick Alexander <nalexander@mozilla.com>
Date:   Tue Mar 24 22:01:46 2015 -0700

    Bug 1142596 - Pre: Add note about deleting cached oauth tokens.

    Deleting cached oauth tokens is tracked by Bug 1147245.

========

b0165a6c14
Author: Nick Alexander <nalexander@mozilla.com>
Date:   Tue Mar 24 23:06:49 2015 -0700

    Bug 1142596 - Pre: Trim imports.
2015-03-27 12:16:42 -07:00
Richard Newman 631fe3d53b Bug 1117830 - Part 2: ReadingListSynchronizer. r=nalexander 2015-03-12 17:48:43 -07:00
Richard Newman 1901cc5af7 Bug 1117830 - Part 1: reading list client and record representations. r=nalexander 2015-03-12 17:48:43 -07:00
Richard Newman 54bc11c9de Bug 1140241 - Add ReadingListConstants. 2015-03-05 19:06:47 -08:00
Richard Newman 6f45959a73 Bug 1134454 - Extract common resource code out of Sync. r=nalexander 2015-02-23 13:33:05 -08:00
Nick Alexander ac56d2a2ca Bug 1117829 - Add Firefox Account-backed oauth client. r=rnewman
The oauth client exchanges Firefox Account assertions for oauth token
grants.  The client_id is assumed to have the "canGrant" capability on
the oauth endpoint.

========

d1a25c8233
Author: Nick Alexander <nalexander@mozilla.com>
    Bug 1117829 - Part 3: Add FxA oauth and profile clients.

========

6c52ce9b53
Author: Nick Alexander <nalexander@mozilla.com>
Date:   Mon Aug 18 13:53:56 2014 -0700

    Bug 1117829 - Part 2: Support remote verifier v1 and v2.

========

679e972d2c
Author: Nick Alexander <nalexander@mozilla.com>
Date:   Mon Aug 18 11:52:45 2014 -0700

    Bug 1117829 - Part 1: Generalize bearer token auth header providers.

========

b55a14fe88
Author: Nick Alexander <nalexander@mozilla.com>
Date:   Mon Aug 18 13:54:46 2014 -0700

    Bug 1117829 - Pre: Add static methods for cross-class testing.

========

5576662dd3
Author: Nick Alexander <nalexander@mozilla.com>
Date:   Mon Aug 18 11:42:45 2014 -0700

    Bug 1117829 - Pre: Fix debug printing of JWT structures.
2014-08-18 14:07:57 -07:00
Richard Newman ee6ea0102b Bug 1131421 - Part 1: initial stub reading list service and SyncAdapter. r=nalexander 2015-02-09 21:08:05 -08:00
Richard Newman cc5713a1fa Bug 1129591 - Extract EditorBranch and PrefsBranch. r=nalexander 2015-02-04 13:54:26 -08:00