Closed
Bug 1201446
Opened 9 years ago
Closed 9 years ago
Don't expose some websocket reasons to Loop's view code - use the failure details instead
Categories
(Hello (Loop) :: Client, defect, P1)
Hello (Loop)
Client
Tracking
(firefox43 fixed)
People
(Reporter: standard8, Assigned: standard8)
References
Details
(Whiteboard: [tech-debt])
Attachments
(1 file)
We're currently exposing some of the websocket failures to the view code. We need to clean this up fully in bug 1124384, however, for now, I want to cut down the some of the existing exposure - namely the websocket reasons for when the user is unavailable. This makes writing tests for bug 1184933 simpler, as we'll have less codes that are duplicated/exposed to the view code.
Flags: qe-verify-
Flags: firefox-backlog+
Assignee | ||
Comment 1•9 years ago
|
||
Implements what I need for comment 0, and also tidies up some of the test code to use the newer style formatting. Split out from bug 1184933 to make those patches smaller.
Attachment #8656485 -
Flags: review?(mdeboer)
Updated•9 years ago
|
Rank: 19
Assignee | ||
Updated•9 years ago
|
Attachment #8656485 -
Flags: review?(dmose)
Updated•9 years ago
|
Iteration: 43.2 - Sep 7 → 43.3 - Sep 21
Comment 2•9 years ago
|
||
Comment on attachment 8656485 [details] [diff] [review] Don't expose websocket reasons to the view code where we have a specific failure detail available. Review of attachment 8656485 [details] [diff] [review]: ----------------------------------------------------------------- r=Mardak ::: browser/components/loop/test/shared/conversationStore_test.js @@ +1196,5 @@ > + > + it("should dispatch a connection failure action", function() { > + store.setStoreState({ > + outgoing: true > + }); You can move the setStoreState into a beforeEach for these 3 tests.
Attachment #8656485 -
Flags: review?(mdeboer)
Attachment #8656485 -
Flags: review?(dmose)
Attachment #8656485 -
Flags: review+
Comment 4•9 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/93878395a38d
Status: NEW → RESOLVED
Closed: 9 years ago
status-firefox43:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla43
You need to log in
before you can comment on or make changes to this bug.
Description
•