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

Issue 16140011: Don't send PP_Vars/V8 values with cycles across PostMessage (Closed)

Created:
7 years, 6 months ago by raymes
Modified:
7 years, 6 months ago
CC:
chromium-reviews, yusukes+watch_chromium.org, raymes+watch_chromium.org, darin-cc_chromium.org, yzshen+watch_chromium.org, piman+watch_chromium.org, ihf+watch_chromium.org
Visibility:
Public.

Description

Don't send PP_Vars/V8 values with cycles across PostMessage This prevents PP_Vars/V8 values with cycles being transmitted across PostMessage. An undefined value will be sent instead and an error will be logged to the console. BUG=236958 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=207040 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=207145

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : #

Patch Set 4 : . #

Patch Set 5 : #

Patch Set 6 : . #

Total comments: 21

Patch Set 7 : #

Patch Set 8 : #

Patch Set 9 : #

Total comments: 16

Patch Set 10 : #

Patch Set 11 : #

Total comments: 8

Patch Set 12 : #

Patch Set 13 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+398 lines, -184 lines) Patch
M ppapi/api/ppb_messaging.idl View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -2 lines 0 comments Download
M ppapi/api/ppp_messaging.idl View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -4 lines 0 comments Download
M ppapi/c/ppb_messaging.h View 1 2 3 4 5 6 7 8 9 2 chunks +3 lines, -3 lines 0 comments Download
M ppapi/c/ppp_messaging.h View 1 2 3 4 5 6 7 8 9 2 chunks +4 lines, -5 lines 0 comments Download
M ppapi/cpp/instance.h View 1 2 3 4 5 6 7 8 9 4 chunks +18 lines, -6 lines 0 comments Download
M ppapi/proxy/handle_converter.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -6 lines 0 comments Download
M ppapi/proxy/ppb_instance_proxy.cc View 1 2 3 4 5 6 2 chunks +10 lines, -0 lines 0 comments Download
M ppapi/proxy/raw_var_data.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +0 lines, -2 lines 0 comments Download
M ppapi/proxy/raw_var_data.cc View 1 2 3 4 5 6 7 8 9 10 6 chunks +51 lines, -26 lines 0 comments Download
M ppapi/proxy/raw_var_data_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +18 lines, -14 lines 0 comments Download
M ppapi/proxy/serialized_var.h View 1 2 3 4 5 6 7 8 9 10 5 chunks +27 lines, -4 lines 0 comments Download
M ppapi/proxy/serialized_var.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +35 lines, -4 lines 0 comments Download
M ppapi/tests/test_post_message.h View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M ppapi/tests/test_post_message.cc View 1 2 3 4 5 6 7 8 9 5 chunks +38 lines, -10 lines 0 comments Download
M webkit/plugins/ppapi/message_channel.cc View 1 2 3 4 5 6 7 8 9 10 11 12 4 chunks +21 lines, -9 lines 0 comments Download
M webkit/plugins/ppapi/v8_var_converter.h View 1 2 3 4 5 6 7 1 chunk +15 lines, -21 lines 0 comments Download
M webkit/plugins/ppapi/v8_var_converter.cc View 1 2 3 4 5 6 7 8 9 10 11 12 17 chunks +87 lines, -40 lines 0 comments Download
M webkit/plugins/ppapi/v8_var_converter_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +60 lines, -28 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
raymes
How did this become more complex than allowing cycles! A few notes: -I don't think ...
7 years, 6 months ago (2013-06-03 20:08:51 UTC) #1
dmichael (off chromium)
https://codereview.chromium.org/16140011/diff/5002/ppapi/api/ppb_messaging.idl File ppapi/api/ppb_messaging.idl (right): https://codereview.chromium.org/16140011/diff/5002/ppapi/api/ppb_messaging.idl#newcode40 ppapi/api/ppb_messaging.idl:40: * an undefined var will be sent instead and ...
7 years, 6 months ago (2013-06-04 16:59:10 UTC) #2
raymes
Thanks! https://codereview.chromium.org/16140011/diff/5002/ppapi/api/ppb_messaging.idl File ppapi/api/ppb_messaging.idl (right): https://codereview.chromium.org/16140011/diff/5002/ppapi/api/ppb_messaging.idl#newcode40 ppapi/api/ppb_messaging.idl:40: * an undefined var will be sent instead ...
7 years, 6 months ago (2013-06-04 19:36:06 UTC) #3
dmichael (off chromium)
Looks pretty good overall. I just have some suggestions (possibly bad) for simplifying the graph ...
7 years, 6 months ago (2013-06-05 17:05:47 UTC) #4
raymes
Thanks! https://codereview.chromium.org/16140011/diff/21001/ppapi/api/ppb_messaging.idl File ppapi/api/ppb_messaging.idl (right): https://codereview.chromium.org/16140011/diff/21001/ppapi/api/ppb_messaging.idl#newcode40 ppapi/api/ppb_messaging.idl:40: * the var will be dropped and an ...
7 years, 6 months ago (2013-06-05 22:48:26 UTC) #5
dmichael (off chromium)
lgtm, thanks! I thought about visitor pattern too. With 3 places where we've implemented this ...
7 years, 6 months ago (2013-06-06 16:32:30 UTC) #6
raymes
David, please take one more look at the delta between patchset 10 and 11. I ...
7 years, 6 months ago (2013-06-18 00:11:19 UTC) #7
dmichael (off chromium)
Can you elaborate on the bug? I have a couple of comments, but still lgtm ...
7 years, 6 months ago (2013-06-18 16:27:02 UTC) #8
raymes
Thanks! > Can you elaborate on the bug? The bug was because I introduced the ...
7 years, 6 months ago (2013-06-18 16:40:20 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/raymes@chromium.org/16140011/95001
7 years, 6 months ago (2013-06-18 16:42:02 UTC) #10
dmichael (off chromium)
(still lgtm) https://codereview.chromium.org/16140011/diff/68001/ppapi/proxy/serialized_var.h File ppapi/proxy/serialized_var.h (right): https://codereview.chromium.org/16140011/diff/68001/ppapi/proxy/serialized_var.h#newcode87 ppapi/proxy/serialized_var.h:87: const HandleWriter& handle_writer) const { On 2013/06/18 ...
7 years, 6 months ago (2013-06-18 16:51:34 UTC) #11
commit-bot: I haz the power
Change committed as 207040
7 years, 6 months ago (2013-06-18 18:43:04 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/raymes@chromium.org/16140011/117002
7 years, 6 months ago (2013-06-18 20:24:32 UTC) #13
commit-bot: I haz the power
7 years, 6 months ago (2013-06-19 03:10:37 UTC) #14
Message was sent while issue was closed.
Change committed as 207145

Powered by Google App Engine
This is Rietveld 408576698