Closed
Bug 1216683
Opened 10 years ago
Closed 10 years ago
PushServiceWebSocket: unregister should always return true even if we are offline
Categories
(Core :: DOM: Push Subscriptions, defect)
Core
DOM: Push Subscriptions
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•10 years ago
|
||
Assignee: nobody → dd.mozilla
Status: NEW → ASSIGNED
Attachment #8679440 -
Flags: review?(kcambridge)
| Assignee | ||
Comment 2•10 years ago
|
||
Comment 3•10 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•10 years ago
|
||
:)
Attachment #8679440 -
Attachment is obsolete: true
Attachment #8679515 -
Flags: review?(kcambridge)
Comment 5•10 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•10 years ago
|
||
| Assignee | ||
Updated•10 years ago
|
Keywords: checkin-needed
Keywords: checkin-needed
Comment 8•10 years ago
|
||
| bugherder | ||
Status: ASSIGNED → RESOLVED
Closed: 10 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
•