Closed
Bug 1216683
Opened 8 years ago
Closed 8 years ago
PushServiceWebSocket: unregister should always return true even if we are offline
Categories
(Core :: DOM: Push Notifications, defect)
Core
DOM: Push Notifications
Tracking
()
RESOLVED
FIXED
mozilla44
Tracking | Status | |
---|---|---|
firefox44 | --- | fixed |
People
(Reporter: dragana, Assigned: dragana)
Details
Attachments
(1 file, 1 obsolete file)
2.49 KB,
patch
|
lina
:
review+
|
Details | Diff | Splinter Review |
I have spotted that if we are offline ( also if pref connection.enable is false ) unregister will return false. For the Http2 version that is by the spec but for WebSocket version we should return true always (even if we do not sen unregister request to the push server).
Assignee | ||
Comment 1•8 years ago
|
||
Assignee: nobody → dd.mozilla
Status: NEW → ASSIGNED
Attachment #8679440 -
Flags: review?(kcambridge)
Assignee | ||
Comment 2•8 years ago
|
||
https://treeherder.mozilla.org/#/jobs?repo=try&revision=c7dc38aec2d9
Comment 3•8 years ago
|
||
Comment on attachment 8679440 [details] [diff] [review] bug_1216683.patch Review of attachment 8679440 [details] [diff] [review]: ----------------------------------------------------------------- ::: dom/push/PushService.jsm @@ +924,5 @@ > _sendRequest: function(action, aRecord) { > if (this._state == PUSH_SERVICE_CONNECTION_DISABLE) { > return Promise.reject({state: 0, error: "Service not active"}); > } else if (this._state == PUSH_SERVICE_ACTIVE_OFFLINE) { > + if (this._serviceType == "WebSocket" && action == "unregister") { Should this be `this._service.serviceType() == "WebSocket"`?
Attachment #8679440 -
Flags: review?(kcambridge) → feedback+
Assignee | ||
Comment 4•8 years ago
|
||
:)
Attachment #8679440 -
Attachment is obsolete: true
Attachment #8679515 -
Flags: review?(kcambridge)
Comment 5•8 years ago
|
||
Comment on attachment 8679515 [details] [diff] [review] bug_1216683.patch Review of attachment 8679515 [details] [diff] [review]: ----------------------------------------------------------------- Awesome, thanks!
Attachment #8679515 -
Flags: review?(kcambridge) → review+
Assignee | ||
Comment 6•8 years ago
|
||
https://treeherder.mozilla.org/#/jobs?repo=try&revision=3aee08f085a3
Assignee | ||
Updated•8 years ago
|
Keywords: checkin-needed
Comment 8•8 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/b6cf4c726f70
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
status-firefox44:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla44
You need to log in
before you can comment on or make changes to this bug.
Description
•