Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(47)

Issue 2518043002: Handle push resubscribes with no sender info (avoids DCHECK) (Closed)

Created:
4 years, 1 month ago by johnme
Modified:
4 years, 1 month ago
Reviewers:
CC:
chromium-reviews
Target Ref:
refs/pending/branch-heads/2883
Project:
chromium
Visibility:
Public.

Description

Handle push resubscribes with no sender info (avoids DCHECK) - Prior to this patch you would fail a DCHECK if you called PushManager.subscribe() with a sender id or key and then PushManager.subscribe() without a sender id or key. - This fixes that and only allows resubscribing with no sender info when the original subscribe was made with a gcm_sender_id. Otherwise we throw an AbortError - no key provided. BUG=659230 Review-Url: https://codereview.chromium.org/2469293002 Cr-Commit-Position: refs/heads/master@{#430601} (cherry picked from commit d8e7aa32e6e15b1ce0cde3a6ccf878fb16ffc816) Skipped cherry-picking tests ResubscribeWithoutKeyAfterSubscribingFromDocumentWithNumber and ResubscribeWithoutKeyAfterSubscribingFromWorkerWithNumber and their helper functions documentSubscribePushWithNumericKey and workerSubscribePushWithNumericKey since m55 predates 3f9e6105d28fbb930d90e38c23d07a9af9b53dbc which allowed passing numeric values for applicationServerKey, so these are not applicable in m55. Committed: https://chromium.googlesource.com/chromium/src/+/4d83ec675b64c4adc029fe4b753b617651dc9f16

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+191 lines, -40 lines) Patch
M chrome/browser/push_messaging/push_messaging_browsertest.cc View 4 chunks +128 lines, -27 lines 0 comments Download
M chrome/test/data/push_messaging/push_test.js View 1 chunk +2 lines, -1 line 0 comments Download
A chrome/test/data/push_messaging/test_no_manifest.html View 1 chunk +12 lines, -0 lines 0 comments Download
M content/browser/push_messaging/push_messaging_message_filter.cc View 4 chunks +49 lines, -12 lines 0 comments Download

Messages

Total messages: 2 (1 generated)
johnme
4 years, 1 month ago (2016-11-21 15:51:09 UTC) #2
Message was sent while issue was closed.
Committed patchset #1 (id:1) manually as
4d83ec675b64c4adc029fe4b753b617651dc9f16.

Powered by Google App Engine
This is Rietveld 408576698