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

Issue 1784583002: PushEvent.data should be NULL for empty payloads (Closed)

Created:
4 years, 9 months ago by Peter Beverloo
Modified:
4 years, 9 months ago
Reviewers:
harkness, dgn
CC:
chromium-reviews, michaeln, mlamouri+watch-content_chromium.org, tzik, Peter Beverloo, johnme+watch_chromium.org, serviceworker-reviews, jam, jsbell+serviceworker_chromium.org, nhiroki, mvanouwerkerk+watch_chromium.org, blink-reviews, darin-cc_chromium.org, horo+watch_chromium.org, mkwst+moarreviews-renderer_chromium.org, kinuko+serviceworker, kinuko+watch, harkness+watch_chromium.org, blink-worker-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

PushEvent.data should be NULL for empty payloads There was code in the PushEvent that would create an empty data object even when no data was available. Remove it, and add an end-to-end test. BUG=593454 Committed: https://crrev.com/72d7385fd0dfbd77ee41dd53cb0ef7ac16d118d7 Cr-Commit-Position: refs/heads/master@{#380258}

Patch Set 1 : #

Total comments: 4

Patch Set 2 : moar redness #

Unified diffs Side-by-side diffs Delta from patch set Stats (+36 lines, -39 lines) Patch
M chrome/browser/push_messaging/push_messaging_browsertest.cc View 1 chunk +27 lines, -0 lines 0 comments Download
M chrome/test/data/push_messaging/service_worker.js View 1 chunk +5 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/push_messaging/resources/pushmessagedata-worker.js View 1 1 chunk +3 lines, -26 lines 0 comments Download
M third_party/WebKit/Source/modules/push_messaging/PushEvent.cpp View 1 1 chunk +0 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/modules/push_messaging/PushMessageData.h View 1 2 chunks +0 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/modules/push_messaging/PushMessageData.cpp View 1 1 chunk +1 line, -5 lines 0 comments Download

Messages

Total messages: 14 (6 generated)
Peter Beverloo
4 years, 9 months ago (2016-03-09 21:12:24 UTC) #3
dgn
https://codereview.chromium.org/1784583002/diff/20001/third_party/WebKit/LayoutTests/http/tests/push_messaging/resources/pushmessagedata-worker.js File third_party/WebKit/LayoutTests/http/tests/push_messaging/resources/pushmessagedata-worker.js (right): https://codereview.chromium.org/1784583002/diff/20001/third_party/WebKit/LayoutTests/http/tests/push_messaging/resources/pushmessagedata-worker.js#newcode32 third_party/WebKit/LayoutTests/http/tests/push_messaging/resources/pushmessagedata-worker.js:32: }, 'PushMessageData is empty by default.'); null instead of ...
4 years, 9 months ago (2016-03-09 21:22:26 UTC) #5
Peter Beverloo
https://codereview.chromium.org/1784583002/diff/20001/third_party/WebKit/LayoutTests/http/tests/push_messaging/resources/pushmessagedata-worker.js File third_party/WebKit/LayoutTests/http/tests/push_messaging/resources/pushmessagedata-worker.js (right): https://codereview.chromium.org/1784583002/diff/20001/third_party/WebKit/LayoutTests/http/tests/push_messaging/resources/pushmessagedata-worker.js#newcode32 third_party/WebKit/LayoutTests/http/tests/push_messaging/resources/pushmessagedata-worker.js:32: }, 'PushMessageData is empty by default.'); On 2016/03/09 21:22:25, ...
4 years, 9 months ago (2016-03-09 21:28:29 UTC) #6
dgn
lgtm
4 years, 9 months ago (2016-03-09 21:30:02 UTC) #7
harkness
On 2016/03/09 21:30:02, dgn wrote: > lgtm lgtm
4 years, 9 months ago (2016-03-09 21:31:22 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1784583002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1784583002/40001
4 years, 9 months ago (2016-03-09 21:32:13 UTC) #10
commit-bot: I haz the power
Committed patchset #2 (id:40001)
4 years, 9 months ago (2016-03-09 23:33:10 UTC) #12
commit-bot: I haz the power
4 years, 9 months ago (2016-03-09 23:34:09 UTC) #14
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/72d7385fd0dfbd77ee41dd53cb0ef7ac16d118d7
Cr-Commit-Position: refs/heads/master@{#380258}

Powered by Google App Engine
This is Rietveld 408576698