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

4435 Коммитов

Автор SHA1 Сообщение Дата
Shane Tomlinson aba3a1549d refactor(broker): Extract `finishOAuthFlowIfOriginalTab` to share between methods. (#5141) r=@philbooth
This is extracted from #5090 with the intent to make that easier to review.
2017-06-14 16:35:14 +01:00
John Morrison d1ebbfbb7b fix(tests): provide a way to pre-flight check entrained resources (#5131) r=vladikoff 2017-06-13 17:04:23 -04:00
Vlad Filippov 5be33ef091 feat(settings): Reorder settings so display name is below account picture (#5139), r=@vbudhram 2017-06-13 14:02:25 -04:00
Ryan Feeley d8231ff88d Merge pull request #5138 from mozilla/i5035
fix(strings): update "Why Sync multiple devices?"
2017-06-13 13:10:16 -04:00
Vlad Filippov 366563be89 fix(deps): update some prod dependencies (#5137) 2017-06-13 13:05:05 -04:00
vladikoff f4d138cc6e fix(strings): update "Why Sync multiple devices?"
Fixes #5035
2017-06-13 12:21:54 -04:00
Vijay Budhram 5735b07777 feat(emails): Update verification email sent string (#5135) r=vladikoff,shane-tomlinson 2017-06-13 10:44:24 -04:00
vladikoff 28bef76aca Release v1.89.0 2017-06-13 10:18:26 -04:00
Shane Tomlinson d342fab2e6 revert(sms): Use a distinct phone number for every SMS test. (#5133)
This reverts commit 6ea77cd892.
2017-06-12 17:48:13 +01:00
Shane Tomlinson 6ea77cd892 fix(sms): Use a distinct phone number for every SMS test. (#5128) r=@philbooth
testPhoneNumber and testPhoneNumberCountry are no longer needed.
2017-06-12 13:55:48 +01:00
Vlad Filippov 841e1cf692 feat(emails): add tests for unblock and sign in confirmation (#5125)
Fixes #5054
2017-06-08 22:54:49 -04:00
John Morrison 5b6bf66a3a Merge pull request #5127 from mozilla/disable-sms-send-tests
fix(test): Remove the testPhoneNumber default to fix tests.
2017-06-07 16:03:51 -07:00
Shane Tomlinson 18721e763d fix(test): Remove the testPhoneNumber default to fix tests.
Tests that send an SMS look for the existence
of testPhoneNumber before sending. Disable these
tests until we have a better plan.
2017-06-07 23:28:46 +01:00
Shane Tomlinson b8d7e567e4 feat(metrics): Add a `flow.signup.link.signin` flow event. (#5116) r=@philbooth
This required a larger change than I had hoped. The external-links-mixin
was capturing the click and then calling `event.stopImmediatePropagation()`
on the event, meaning the click handler in the flow-events-mixin was
never called. :/

fixes #4680
fixes #5115
2017-06-07 17:51:12 +01:00
Shane Tomlinson 25b4c302cb feat(sms): Add support for the SMS signinCode (#5092) r=@vbudhram, @philbooth
To enable signinCodes to be sent, add the `signinCode=true` query parameter.

fixes #5060
2017-06-07 15:00:18 +01:00
Shane Tomlinson dd656b52c4 Merge branch 'train-88' 2017-06-01 22:11:59 +01:00
Shane Tomlinson 5af74d9834 Release v1.88.1 2017-06-01 22:10:43 +01:00
Shane Tomlinson c20bc4c020 feat(CAD): Make it easier to find `.smsStatus` errors in the logs. (#5121) r=@philbooth
Add an `.smsStatus` suffix to the error context, which is included
in messages sent to DataDog, e.g.,:

error.verify-email.smsStatus.auth.999

issue #5109
2017-06-01 22:07:47 +01:00
Shane Tomlinson d4c0343c74 fix(WebChannel): Fix the startup hang if the UA errors fetching fxaccounts:fxa_status (#5117) r=@philbooth, @vbudhram
If the browser responds to an fxaccounts:fxa_status message with a `No Such Webchannel`
error, that means the UA either does not support the channel name, or is not set up
to communicate with this FxA server. In either case, FxA and the UA cannot communicate
using WebChannels.

If this happens, log the error and set the `fxaStatus` broker capability to `false`.
This will cause the session to use state stored in localStorage rather than the
state stored by the browser.

fixes #5114
2017-06-01 21:50:43 +01:00
Shane Tomlinson b639e0a028 revert(sms): Re-add the "Maybe later" link. (#5119) r=@vbudhram
This reverts commit 1c71687b34.

fixes #5117
2017-06-01 15:54:05 +01:00
Shane Tomlinson 8c55d183b5 feat(CAD): Log clicks on app store links into flow metrics. (#5113) r=@philbooth
New flow events:

* flow.sms.link.app-store.(android|ios)
* flow.sms.sent.link.app-store.(android|ios)
* flow.reset-password-confirmed.link.app-store.(android|ios)
* flow.reset-password-verified.link.app-store.(android|ios)
* flow.secondary-email-verified.link.app-store.(android|ios)
* flow.signin-confirmed.link.app-store.(android|ios)
* flow.signin-verified.link.app-store.(android|ios)
* flow.signup-confirmed.link.app-store.(android|ios)
* flow.signup-verified.link.app-store.(android|ios)

fixes #5112
2017-06-01 14:38:24 +01:00
Shane Tomlinson a338756e8d fix(sms): Handle errors to /sms/status (#5110) r=@philbooth
Before this fix, if a call to /sms/status failed,
signup confirmation would appear to fail with an
"Unexpected error".

Instead of failing, log and drop errors to /sms/status.

fixes #5109
2017-06-01 10:57:06 +01:00
Shane Tomlinson 277e046a3a refactor(fxa-client): Reduce boilerplate when delegating to fxa-js-client. (#5108) r=@philbooth
Use a `createClientDelegate` method to pass all method call parameters
directly to the delegated to method in the fxa-js-client.

Also removed fxa-client->signOut, the functionality
was a subset to the more full featured sessionDestroy.

Finally, add lots of documentation.

Extracted from #5092
2017-05-31 10:57:36 +01:00
vladikoff 6c08cef7ef Release v1.88.0 2017-05-30 16:12:00 -04:00
John Morrison 3fcaafaef7 fix(tests): pull entrained sub-resources in all locales (tests/server/l10n-entrained.js) (#5077) r=@shane-tomlinson 2017-05-30 15:39:43 +01:00
Shane Tomlinson c8fba8ffda fix(test): Fix "Upgrade from account that has `accountData`" (#5107) r=vladikoff,philbooth
With the changes to fetch user state brom the browser, we were
attempting to check the signed in account before the storage
formats were updated. An Account model was created with `accountData`,
causing an exception to be thrown.

Updates the stored accounts before checking for
the signed in account.

Since a functional test caught this, no new functional tests
were added, only unit tests.

fixes #5104
2017-05-30 09:07:16 -04:00
Shane Tomlinson 921be2fa59 Merge branch 'train-87' 2017-05-26 12:57:35 +01:00
Vlad Filippov 5ea8d83a1c fix(tests): remove uppercase check for route tests (#5096) r=jrgm
Fixes #5086
2017-05-25 13:29:29 -04:00
Shane Tomlinson d7298f5a11 fix(sign_in): Fix how the listener is bound for account->chang:accessToken (#5103) r=@philbooth
We were binding using `account.on` in `beforeRender`. This didn't cause any
visible problems, but caused two problems behind the scenes:

1. The view to be retained in memory after being torn down because the
   account kept a reference to the View.
2. If the accessToken was invalidated after the view was destroyed, the
   *view would re-render anyways*, just not visibly.

Using view.listenTo, the listener is removed from the account whenever
the view is torn down. In addition, this is only done in afterVisible
so that only one listener is ever bound. If done in `beforeRender`,
a new listener was attached on every render.

Not attached to an issue.
2017-05-25 13:42:12 +01:00
Shane Tomlinson 18fa0d584e feat(client): Sync state with the browser! (#4695) r=@philbooth
Adds a new WebChannel command, `fxaccounts:fxa_status`. In Firefox Desktop >= 55, 
it uses this command to request the browser's view of the world.
2017-05-25 11:45:03 +01:00
Shane Tomlinson 3f665b627a refactor(test): Modernize the sign_in view unit test. (#5102) r=self
Use fat arrows to make code more consise, let, const, etc.
Only render to the DOM when absolutely needed to speed up tests.

This is such a low-risk unit test only change that I self-merged.
2017-05-25 11:15:57 +01:00
Shane Tomlinson efea8259ee refactor(mixins): Move search-param-mixin and user-agent-mixin to /lib (#5099) r=vladikoff
The move is so these mixins can be used by any objects. This is an extraction
from #4695.

issue #4252
2017-05-24 13:52:29 -04:00
Shane Tomlinson 5f7d8b6cc5 refactor(test): In app-start.js, convert to fat arrows. (#5100) r=vladikoff
This is an extraction from #4695
issue #4252
2017-05-24 13:50:31 -04:00
Vijay Budhram 22e2071795 Release v1.87.3 2017-05-24 09:09:33 -04:00
Vijay Budhram dae0ff61d8 feat(emails): Add emails feature flag check (#5093), r=@shane-tomlinson 2017-05-24 09:06:15 -04:00
Vlad Filippov 935ac11dbc fix(server): allow empty event_id fields (#5097)
Fixes #5049
2017-05-24 00:40:57 -04:00
Vlad Filippov 3a269e637f fix(docker): only push from one test node (#5065) r=jrgm
Fixes #4950
2017-05-23 14:14:50 -04:00
Vijay Budhram c73cd7caa8 Release v1.87.2 2017-05-23 14:09:34 -04:00
Vijay Budhram 0fe39b84cc feat(emails): Disable secondary emails for everyone (#5095) r=vladikoff 2017-05-23 14:05:16 -04:00
Shane Tomlinson 6e5ef7b57c fix(build): Ensure the requireOnDemand files use SRI (#5094), r=@vbudhram 2017-05-23 12:45:08 -04:00
Shane Tomlinson 398d3397b4 feat(sms): Add the `/m/:signinCode` redirect handler. (#5082) r=@philbooth
Redirect `/m/:signinCode` to Adjust, with the signinCode appended
as the `signin` query parameter.

fixes #5081
2017-05-22 11:11:16 +01:00
Shane Tomlinson a574d841d7 feat(CAD): Add CAD to the signup tab in firstrun (#5026) r=@philbooth, @ryanfeeley
fixes #4944
2017-05-19 18:28:45 +01:00
Shane Tomlinson 252ba6eff1 fix(app-store): Open app-store links in a new tab. (#5083) r=@philbooth
fixes #5079
2017-05-19 13:20:15 +01:00
Shane Tomlinson 6ec3f64f66 refactor(client): Clean up invoke* using ES2015. (#5075) r=@philbooth
Update invokeBrokerMethod, invokeBehavior, and invokeHandler
to use ES2015 rest & spread operators.

Also make `invokeBehavior` always return a promise.
2017-05-18 12:53:44 +01:00
Shane Tomlinson 218ef6cfae fix(devices): Add the 1800 ms artificial delay when clicking `Refresh` (#5074) r=@vbudhram, @philbooth
Done by having the progress indicator decorator look on the target element
for a `data-min-progress-indicator-ms` attribute. If it exists, wait for
the time to elapse before completing the submit action.

Use this in the "settings clients" functional tests to ensure the refresh
has completed to continue with the tests.

fixes #4570
fixes #5071
2017-05-18 10:20:28 +01:00
Shane Tomlinson f1cbf2b272 refactor(metrics): Remove `viewToId` and helpers.testIsViewLogged (#5069) r=@philbooth
They were only used in one place and didn't provide much value.

Done while working on #5026
2017-05-17 16:52:43 +01:00
Shane Tomlinson 5aabc93af1 Release v1.87.1 2017-05-17 15:05:37 +01:00
Shane Tomlinson 2ab905a235 Merge branch 'train-87' 2017-05-17 15:04:31 +01:00
Shane Tomlinson 4542ccd057 fix(broker): Fix the POST /metrics validation error w/ FxSync broker. (#5067) r=@philbooth
Server validation allows `-`, not `_`. This updates the FxSync
broker's type to be consistent with others and use `-` instead of `_`.

fixes #5066
2017-05-17 15:01:27 +01:00
Shane Tomlinson 3224eb8043 fix(firstrun): Show the `continue to Firefox Sync` subheader in the firstrun page (#5064) r=@ryanfeeley, @philbooth
fixes #5063
2017-05-17 09:35:52 +01:00