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

Issue 2460223004: Fix potential bug in push_test.js - do not cache subscription options (Closed)

Created:
4 years, 1 month ago by awdf
Modified:
4 years, 1 month ago
Reviewers:
Peter Beverloo
CC:
chromium-reviews, Peter Beverloo, johnme+watch_chromium.org, harkness+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix potential bug in push_test.js - do not cache subscription options - Prior to this patch, the application server key could be inadvertently cached, e.g. if a test in PushMessagingBrowserTest did the following: documentSubscribePush() removeManifest() documentSubscribePushWithoutKey() then the second push would actually use the cached key from the first. - No existing tests happen to hit the bug but that's just luck. BUG=660874 Committed: https://crrev.com/5069448246d980f994a700bc937aba59dc6e9ab6 Cr-Commit-Position: refs/heads/master@{#428983}

Patch Set 1 #

Total comments: 7

Patch Set 2 : Fixup failing test, inline the options object #

Patch Set 3 : oops, remove duplicated line #

Total comments: 1

Patch Set 4 : stop passing empty dict #

Patch Set 5 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+18 lines, -34 lines) Patch
M chrome/browser/push_messaging/push_messaging_browsertest.cc View 1 3 chunks +3 lines, -9 lines 0 comments Download
M chrome/test/data/push_messaging/push_test.js View 1 2 3 4 chunks +15 lines, -9 lines 0 comments Download
D chrome/test/data/push_messaging/test_no_subscription_options.html View 1 1 chunk +0 lines, -16 lines 0 comments Download

Messages

Total messages: 25 (13 generated)
awdf
4 years, 1 month ago (2016-10-31 16:48:06 UTC) #2
Peter Beverloo
https://codereview.chromium.org/2460223004/diff/1/chrome/test/data/push_messaging/push_test.js File chrome/test/data/push_messaging/push_test.js (right): https://codereview.chromium.org/2460223004/diff/1/chrome/test/data/push_messaging/push_test.js#newcode97 chrome/test/data/push_messaging/push_test.js:97: pushSubscriptionOptions) nit: consider inlining the dictionary https://codereview.chromium.org/2460223004/diff/1/chrome/test/data/push_messaging/push_test.js#newcode97 chrome/test/data/push_messaging/push_test.js:97: pushSubscriptionOptions) ...
4 years, 1 month ago (2016-10-31 17:30:20 UTC) #7
awdf
https://codereview.chromium.org/2460223004/diff/1/chrome/test/data/push_messaging/push_test.js File chrome/test/data/push_messaging/push_test.js (right): https://codereview.chromium.org/2460223004/diff/1/chrome/test/data/push_messaging/push_test.js#newcode97 chrome/test/data/push_messaging/push_test.js:97: pushSubscriptionOptions) On 2016/10/31 17:30:20, Peter Beverloo wrote: > I ...
4 years, 1 month ago (2016-10-31 17:35:02 UTC) #8
awdf
On 2016/10/31 17:35:02, awdf wrote: > https://codereview.chromium.org/2460223004/diff/1/chrome/test/data/push_messaging/push_test.js > File chrome/test/data/push_messaging/push_test.js (right): > > https://codereview.chromium.org/2460223004/diff/1/chrome/test/data/push_messaging/push_test.js#newcode97 > ...
4 years, 1 month ago (2016-10-31 18:12:10 UTC) #9
awdf
https://codereview.chromium.org/2460223004/diff/1/chrome/test/data/push_messaging/push_test.js File chrome/test/data/push_messaging/push_test.js (right): https://codereview.chromium.org/2460223004/diff/1/chrome/test/data/push_messaging/push_test.js#newcode97 chrome/test/data/push_messaging/push_test.js:97: pushSubscriptionOptions) On 2016/10/31 17:30:20, Peter Beverloo wrote: > nit: ...
4 years, 1 month ago (2016-10-31 18:35:41 UTC) #12
Peter Beverloo
lgtm https://codereview.chromium.org/2460223004/diff/40001/chrome/test/data/push_messaging/push_test.js File chrome/test/data/push_messaging/push_test.js (right): https://codereview.chromium.org/2460223004/diff/40001/chrome/test/data/push_messaging/push_test.js#newcode103 chrome/test/data/push_messaging/push_test.js:103: {} /* pushSubscriptionOptions */) nit: no need to ...
4 years, 1 month ago (2016-10-31 18:39:56 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2460223004/60001
4 years, 1 month ago (2016-10-31 18:44:36 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator/builds/97709)
4 years, 1 month ago (2016-10-31 19:24:35 UTC) #18
awdf
On 2016/10/31 19:24:35, commit-bot: I haz the power wrote: > Try jobs failed on following ...
4 years, 1 month ago (2016-11-01 11:08:49 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2460223004/80001
4 years, 1 month ago (2016-11-01 11:09:14 UTC) #22
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 1 month ago (2016-11-01 12:00:18 UTC) #23
commit-bot: I haz the power
4 years, 1 month ago (2016-11-01 12:03:52 UTC) #25
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/5069448246d980f994a700bc937aba59dc6e9ab6
Cr-Commit-Position: refs/heads/master@{#428983}

Powered by Google App Engine
This is Rietveld 408576698