Closed
Bug 977931
Opened 11 years ago
Closed 11 years ago
hawkclient fails to throw the correct error when no response headers.
Categories
(Firefox :: Firefox Accounts, defect)
Firefox
Firefox Accounts
Tracking
()
RESOLVED
FIXED
Firefox 30
People
(Reporter: markh, Assigned: markh)
References
Details
Attachments
(1 file)
|
1.11 KB,
patch
|
spenrose
:
review+
Sylvestre
:
approval-mozilla-aurora+
|
Details | Diff | Splinter Review |
STR:
* Start Fx with a signed in user, but with no internet connection available
* Attempt to login.
Actual:
* Message appears in the log:
1393550554715 FirefoxAccounts DEBUG (Response) code: null - Status text: null
************************************************************
* Call to xpconnect wrapped JSObject produced this error: *
[Exception... "[JavaScript Error: "restResponse.headers is null" {file: "resource://services-common/hawkclient.js" line: 74}]'[JavaScript Error: "restResponse.headers is null" {file: "resource://services-common/hawkclient.js" line: 74}]' when calling method: [nsIStreamListener::onStopRequest]" nsresult: "0x80570021 (NS_ERROR_XPC_JAVASCRIPT_ERROR_WITH_DETAILS)" location: "native frame :: <unknown filename> :: <TOP_LEVEL> :: line 0" data: yes]
************************************************************
and the correct error isn't propagated to the client.
Expected:
* Opposite of the above :)
Problem is that in this scenario, restResponse.headers is null, so attempting to access restResponse.headers["retry-after"] fails.
This is a regression caused by bug 945449
Attachment #8383423 -
Flags: review?(spenrose)
Comment 1•11 years ago
|
||
Comment on attachment 8383423 [details] [diff] [review]
0003-Bug-return-an-error-object-even-when-restResponse.he.patch
Thanks for the catch and the quick fix!
Attachment #8383423 -
Flags: review?(spenrose) → review+
| Assignee | ||
Comment 2•11 years ago
|
||
Assignee: nobody → mhammond
Status: NEW → ASSIGNED
Comment 3•11 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla30
| Assignee | ||
Updated•11 years ago
|
status-firefox29:
--- → affected
| Assignee | ||
Comment 4•11 years ago
|
||
Comment on attachment 8383423 [details] [diff] [review]
0003-Bug-return-an-error-object-even-when-restResponse.he.patch
[Approval Request Comment]
Bug caused by (feature/regressing bug #): Bug 945449
User impact if declined: Sync will do strange things in some error cases.
Testing completed (on m-c, etc.): m-c
Risk to taking this patch (and alternatives if risky): Low - fix for bug 945449
String or IDL/UUID changes made by this patch: None
Attachment #8383423 -
Flags: approval-mozilla-aurora?
Updated•11 years ago
|
Attachment #8383423 -
Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Updated•11 years ago
|
status-firefox30:
--- → fixed
| Assignee | ||
Comment 5•11 years ago
|
||
Fixed on aurora via the push in bug 945449 -
https://hg.mozilla.org/releases/mozilla-aurora/rev/b91a791d42b8
Updated•7 years ago
|
Product: Core → Firefox
Updated•7 years ago
|
Target Milestone: mozilla30 → Firefox 30
You need to log in
before you can comment on or make changes to this bug.
Description
•