Closed
Bug 1104279
Opened 10 years ago
Closed 10 years ago
Direct FxA Hello calls don't connect after you log in
Categories
(Hello (Loop) :: Client, defect, P1)
Hello (Loop)
Client
Tracking
(firefox34 unaffected, firefox35+ verified, firefox36 verified, firefox37 verified)
People
(Reporter: jesup, Assigned: pkerr)
References
Details
(Keywords: regression)
Attachments
(2 files, 3 obsolete files)
1.20 KB,
patch
|
pkerr
:
review+
Sylvestre
:
approval-mozilla-aurora+
lsblakk
:
approval-mozilla-beta+
|
Details | Diff | Splinter Review |
4.05 KB,
patch
|
pkerr
:
review+
Sylvestre
:
approval-mozilla-aurora+
lsblakk
:
approval-mozilla-beta+
|
Details | Diff | Splinter Review |
If on browser A I log into FxA after starting in a logged-out state, and then have another browser B try to make an FxA call to the user logged into browser A, no incoming call indicator appears, and eventually the caller times out. A can call B via FxA, however.
Also, if I log out, and then log in (without quitting the browser), we have the same problem.
It does work if I start the browser after shutting it down while logged in.
I haven't tested every variation of this, just the ones mentioned.
Occurs on Nightly/36 and Aurora 35, but not on Beta/34.
Comment 1•10 years ago
|
||
This could be another fallout of bug 1074663, which introduced LoopCalls.jsm.
Severity: normal → major
OS: Linux → All
Priority: -- → P1
Hardware: x86_64 → All
Comment 2•10 years ago
|
||
I think there may be a similar issue with rooms as well, although bug 1102432 is making it harder to tell.
Updated•10 years ago
|
backlog: --- → Fx35?
Updated•10 years ago
|
backlog: Fx35? → Fx35+
[Tracking Requested - why for this release]: this is a regression which blocks Firefox Hello in Firefox 35.
tracking-firefox35:
--- → ?
Assignee | ||
Updated•10 years ago
|
Assignee: nobody → pkerr
Comment 7•10 years ago
|
||
One-liner fix, to ensure we've finished FxA login before running registration with the loop-server.
I think we really ought to try to get a unit test for this, but if its not easy, I suggest we spin it out to another bug so that we can get the simple fix landed.
Attachment #8538797 -
Flags: review?(pkerr)
Assignee | ||
Updated•10 years ago
|
Attachment #8538797 -
Flags: review?(pkerr) → review+
Reporter | ||
Comment 8•10 years ago
|
||
Assignee | ||
Comment 9•10 years ago
|
||
Assignee | ||
Updated•10 years ago
|
Attachment #8538797 -
Attachment is obsolete: true
Assignee | ||
Updated•10 years ago
|
Attachment #8539366 -
Flags: review+
Assignee | ||
Comment 10•10 years ago
|
||
Assignee | ||
Comment 11•10 years ago
|
||
Assignee | ||
Updated•10 years ago
|
Attachment #8539372 -
Attachment is obsolete: true
Assignee | ||
Comment 12•10 years ago
|
||
Comment on attachment 8539374 [details] [diff] [review]
Part 2: Add sequence verification to logInToFxa test
Note, the first part has already been landed on fx-team. So, if using the latest fx-team, do not apply the first patch (or ignore the rejected single line change).
Attachment #8539374 -
Flags: review?(dmose)
Updated•10 years ago
|
Comment 13•10 years ago
|
||
Comment on attachment 8539374 [details] [diff] [review]
Part 2: Add sequence verification to logInToFxa test
Review of attachment 8539374 [details] [diff] [review]:
-----------------------------------------------------------------
r=dmose, once the two comments added are addressed.
::: browser/components/loop/test/mochitest/loop_fxa.sjs
@@ +200,5 @@
> request.bodyInputStream.available());
> let payload = JSON.parse(body);
> + if (payload.simplePushURL == "https://localhost/pushUrl/fxa" ||
> + payload.simplePushURLs.calls == "https://localhost/pushUrl/fxa-calls" ||
> + payload.simplePushURLs.rooms == "https://localhost/pushUrl/fxa-rooms") {
It'd be great if you could somehow encapsulate this in a function named something like isFxARequest so that the intent is more clear.
@@ +209,5 @@
> + response.write("401 Missing Hawk Authorization header");
> + return;
> + } else if (!getSharedState("/fxa-oauth/token")) {
> + response.setStatusLine(request.httpVersion, 409, "Wrong State");
> + response.write("409 complete OAuth before attempting registration");
Please file any appropriate bug on the real loop-server having issues in this situation, and maybe set a blocking? flag on it.
Attachment #8539374 -
Flags: review?(dmose) → review+
Reporter | ||
Updated•10 years ago
|
status-firefox37:
--- → affected
Reporter | ||
Comment 14•10 years ago
|
||
Comment on attachment 8539366 [details] [diff] [review]
Part 1: Direct FxA Hello calls don't connect after you log in. Avoid registering with the loop server before we've finished fxa registration
Approval Request Comment
[Feature/regressing bug #]: N/A (FxA)
[User impact if declined]: Inability to receive calls without stopping the browser and restarting (BAD)
[Describe test coverage new/current, TBPL]: on fxteam; will merge to m-c soon. Will verify before landing (I've already verified on fxteam)
[Risks and why]: Low risk, simple fix
[String/UUID change made/needed]: none
Attachment #8539366 -
Flags: approval-mozilla-beta?
Attachment #8539366 -
Flags: approval-mozilla-aurora?
Reporter | ||
Comment 15•10 years ago
|
||
Comment on attachment 8539374 [details] [diff] [review]
Part 2: Add sequence verification to logInToFxa test
Approval Request Comment
[Feature/regressing bug #]: N/A (FxA)
[User impact if declined]: Lack of test coverage for this bug
[Describe test coverage new/current, TBPL]: will land shortly. Will wait for green on m-c before uplift.
[Risks and why]: test-only change, no risk to shipping code
[String/UUID change made/needed]: none
Attachment #8539374 -
Flags: approval-mozilla-beta?
Attachment #8539374 -
Flags: approval-mozilla-aurora?
Assignee | ||
Comment 16•10 years ago
|
||
incorporate review feedback
Assignee | ||
Updated•10 years ago
|
Attachment #8539374 -
Attachment is obsolete: true
Attachment #8539374 -
Flags: approval-mozilla-beta?
Attachment #8539374 -
Flags: approval-mozilla-aurora?
Assignee | ||
Updated•10 years ago
|
Attachment #8539547 -
Flags: review+
Reporter | ||
Updated•10 years ago
|
Attachment #8539547 -
Flags: approval-mozilla-beta?
Attachment #8539547 -
Flags: approval-mozilla-aurora?
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla37
Comment 18•10 years ago
|
||
Reopening so that the second patch (the tests) will land on m-c.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Reporter | ||
Comment 19•10 years ago
|
||
Comment 20•10 years ago
|
||
Status: REOPENED → RESOLVED
Closed: 10 years ago → 10 years ago
Resolution: --- → FIXED
Updated•10 years ago
|
Updated•10 years ago
|
Attachment #8539366 -
Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Updated•10 years ago
|
Attachment #8539547 -
Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Updated•10 years ago
|
Attachment #8539366 -
Flags: approval-mozilla-beta? → approval-mozilla-beta+
Updated•10 years ago
|
Attachment #8539547 -
Flags: approval-mozilla-beta? → approval-mozilla-beta+
Reporter | ||
Comment 21•10 years ago
|
||
Reporter | ||
Updated•10 years ago
|
Reporter | ||
Comment 22•10 years ago
|
||
Reporter | ||
Comment 23•10 years ago
|
||
Comment 24•10 years ago
|
||
Florin, since this was a regression, can you please make sure this gets tested as part of the next Beta sign off?
Flags: qe-verify+
Flags: needinfo?(florin.mezei)
Flags: in-testsuite+
Updated•10 years ago
|
Iteration: --- → 37.1
Comment 25•10 years ago
|
||
Confirming that this issue is now fixed on Mac OS X 10.9.5, Ubuntu 12.04 32-bit and Windows 7 x64.
The user is now able to receive calls without needing to restart the browser after log in, as mentioned in the description.
Also, exploratory testing was performed around this fix to make sure no other issues regressed.
Tested with:
Latest Nightly, build ID: 20141230030214
Firefox 36.0a2, build ID: 20141229004004
Firefox 25 beta 8, build ID: 20141229214612
Status: RESOLVED → VERIFIED
Flags: needinfo?(florin.mezei)
You need to log in
before you can comment on or make changes to this bug.
Description
•