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

Issue 1944863002: Push API: Fix stored sender ID being out of sync with registration ID (Closed)

Created:
4 years, 7 months ago by johnme
Modified:
4 years, 7 months ago
CC:
chromium-reviews, johnme+watch_chromium.org, jam, mvanouwerkerk+watch_chromium.org, darin-cc_chromium.org, harkness+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@ii7swdb
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Push API: Fix stored sender ID being out of sync with registration ID Until now we stored the sender ID into the Service Worker database whenever an attempt was made at registering. This meant that a successful subscribe followed by an unsuccessful subscribe with a different sender ID would leave the SW database in an inconsistent state: we'd be storing the old successful registration ID, but the new unsuccessful sender ID! This is mainly a problem when unsubscribing from GCM, which requires the correct sender ID on Android. This patch fixes that, so that henceforth whenever a registration ID is stored, the sender ID is guaranteed to be the one used when subscribing. Depends on https://codereview.chromium.org/1945753002 BUG=608831 Committed: https://crrev.com/8112686d4a56ef5200014a9ffa294529d071debc Cr-Commit-Position: refs/heads/master@{#393041}

Patch Set 1 #

Patch Set 2 : Rebase #

Total comments: 4

Patch Set 3 : Merge Subscribe IPCs #

Total comments: 4

Patch Set 4 : Add TODO #

Unified diffs Side-by-side diffs Delta from patch set Stats (+48 lines, -115 lines) Patch
M content/browser/push_messaging/push_messaging_message_filter.h View 1 2 2 chunks +5 lines, -18 lines 0 comments Download
M content/browser/push_messaging/push_messaging_message_filter.cc View 1 2 3 11 chunks +34 lines, -87 lines 0 comments Download
M content/child/push_messaging/push_provider.cc View 1 2 2 chunks +4 lines, -2 lines 0 comments Download
M content/common/push_messaging_messages.h View 1 2 1 chunk +3 lines, -6 lines 0 comments Download
M content/renderer/push_messaging/push_messaging_dispatcher.cc View 1 2 1 chunk +2 lines, -2 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 26 (10 generated)
johnme
4 years, 7 months ago (2016-05-05 10:56:55 UTC) #2
harkness
https://codereview.chromium.org/1944863002/diff/20001/content/browser/push_messaging/push_messaging_message_filter.cc File content/browser/push_messaging/push_messaging_message_filter.cc (right): https://codereview.chromium.org/1944863002/diff/20001/content/browser/push_messaging/push_messaging_message_filter.cc#newcode266 content/browser/push_messaging/push_messaging_message_filter.cc:266: data.render_frame_id = render_frame_id; At this point, the only difference ...
4 years, 7 months ago (2016-05-09 06:59:47 UTC) #3
johnme
Addressed review comments - thanks! https://codereview.chromium.org/1944863002/diff/20001/content/browser/push_messaging/push_messaging_message_filter.cc File content/browser/push_messaging/push_messaging_message_filter.cc (right): https://codereview.chromium.org/1944863002/diff/20001/content/browser/push_messaging/push_messaging_message_filter.cc#newcode266 content/browser/push_messaging/push_messaging_message_filter.cc:266: data.render_frame_id = render_frame_id; On ...
4 years, 7 months ago (2016-05-09 13:52:33 UTC) #4
harkness
LGTM On 2016/05/09 13:52:33, johnme wrote: > Addressed review comments - thanks! > > https://codereview.chromium.org/1944863002/diff/20001/content/browser/push_messaging/push_messaging_message_filter.cc ...
4 years, 7 months ago (2016-05-09 15:37:24 UTC) #5
Peter Beverloo
rs lgtm, please run the try-bots https://codereview.chromium.org/1944863002/diff/40001/content/browser/push_messaging/push_messaging_message_filter.cc File content/browser/push_messaging/push_messaging_message_filter.cc (right): https://codereview.chromium.org/1944863002/diff/40001/content/browser/push_messaging/push_messaging_message_filter.cc#newcode39 content/browser/push_messaging/push_messaging_message_filter.cc:39: // sender ID ...
4 years, 7 months ago (2016-05-09 15:48:41 UTC) #7
johnme
https://codereview.chromium.org/1944863002/diff/40001/content/browser/push_messaging/push_messaging_message_filter.cc File content/browser/push_messaging/push_messaging_message_filter.cc (right): https://codereview.chromium.org/1944863002/diff/40001/content/browser/push_messaging/push_messaging_message_filter.cc#newcode39 content/browser/push_messaging/push_messaging_message_filter.cc:39: // sender ID must be the one used to ...
4 years, 7 months ago (2016-05-10 12:29:08 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1944863002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1944863002/60001
4 years, 7 months ago (2016-05-10 12:29:27 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/180361)
4 years, 7 months ago (2016-05-10 12:36:13 UTC) #13
johnme
mkwst@chromium.org: Please review changes in content/common/push_messaging_messages.h
4 years, 7 months ago (2016-05-10 12:52:09 UTC) #15
johnme
avi@chromium.org: Please review changes in content/common/push_messaging_messages.h (since mkwst@ seems to be travelling)
4 years, 7 months ago (2016-05-11 15:03:29 UTC) #17
Peter Beverloo
On 2016/05/11 15:03:29, johnme wrote: > mailto:avi@chromium.org: Please review changes in > content/common/push_messaging_messages.h > > ...
4 years, 7 months ago (2016-05-11 15:04:54 UTC) #18
johnme
palmer@chromium.org: Please review changes in content/common/push_messaging_messages.h peter wrote: > You need a security reviewer for ...
4 years, 7 months ago (2016-05-11 15:08:12 UTC) #20
palmer
lgtm
4 years, 7 months ago (2016-05-11 18:36:52 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1944863002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1944863002/60001
4 years, 7 months ago (2016-05-11 19:10:03 UTC) #23
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 7 months ago (2016-05-11 20:16:05 UTC) #24
commit-bot: I haz the power
4 years, 7 months ago (2016-05-11 20:18:29 UTC) #26
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/8112686d4a56ef5200014a9ffa294529d071debc
Cr-Commit-Position: refs/heads/master@{#393041}

Powered by Google App Engine
This is Rietveld 408576698