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

Issue 282063003: Fix handling of null pointers in JS bindings. (Closed)

Created:
6 years, 7 months ago by Tom Sepez
Modified:
6 years, 7 months ago
CC:
chromium-reviews, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, darin (slow to review), ben+mojo_chromium.org
Visibility:
Public.

Description

Fix handling of null pointers in JS bindings. This allows passing of arbitrary length list-like structures across the a message pipe. This is a pre-requisite for passing corrupt, circular, or otherwise malformed list-like structures across a message pipe for testing. Also fix excessive indentation in one place in js_to_cpp_unittest.cc (leading to larger diff). Sorry. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=271173

Patch Set 1 #

Total comments: 5

Patch Set 2 : Fix accidental shadowing of parameter with local in JS side. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+136 lines, -79 lines) Patch
M mojo/apps/js/test/js_to_cpp.mojom View 1 chunk +7 lines, -2 lines 0 comments Download
M mojo/apps/js/test/js_to_cpp_unittest.cc View 4 chunks +72 lines, -60 lines 0 comments Download
M mojo/apps/js/test/js_to_cpp_unittest.js View 1 2 chunks +19 lines, -11 lines 0 comments Download
M mojo/public/js/bindings/codec.js View 4 chunks +38 lines, -6 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
Tom Sepez
Matt, please review. Thanks.
6 years, 7 months ago (2014-05-16 18:14:22 UTC) #1
Matt Perry
lgtm https://codereview.chromium.org/282063003/diff/1/mojo/apps/js/test/js_to_cpp_unittest.js File mojo/apps/js/test/js_to_cpp_unittest.js (right): https://codereview.chromium.org/282063003/diff/1/mojo/apps/js/test/js_to_cpp_unittest.js#newcode38 mojo/apps/js/test/js_to_cpp_unittest.js:38: var list; this looks unused https://codereview.chromium.org/282063003/diff/1/mojo/apps/js/test/js_to_cpp_unittest.js#newcode76 mojo/apps/js/test/js_to_cpp_unittest.js:76: var ...
6 years, 7 months ago (2014-05-16 18:39:04 UTC) #2
Tom Sepez
https://codereview.chromium.org/282063003/diff/1/mojo/public/js/bindings/codec.js File mojo/public/js/bindings/codec.js (right): https://codereview.chromium.org/282063003/diff/1/mojo/public/js/bindings/codec.js#newcode240 mojo/public/js/bindings/codec.js:240: } On 2014/05/16 18:39:04, Matt Perry wrote: > I ...
6 years, 7 months ago (2014-05-16 18:56:17 UTC) #3
Tom Sepez
https://codereview.chromium.org/282063003/diff/1/mojo/apps/js/test/js_to_cpp_unittest.js File mojo/apps/js/test/js_to_cpp_unittest.js (right): https://codereview.chromium.org/282063003/diff/1/mojo/apps/js/test/js_to_cpp_unittest.js#newcode76 mojo/apps/js/test/js_to_cpp_unittest.js:76: var list = new jsToCpp.EchoArgsList(); On 2014/05/16 18:39:04, Matt ...
6 years, 7 months ago (2014-05-16 18:57:17 UTC) #4
Tom Sepez
The CQ bit was checked by tsepez@chromium.org
6 years, 7 months ago (2014-05-16 19:00:51 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tsepez@chromium.org/282063003/20001
6 years, 7 months ago (2014-05-16 19:01:18 UTC) #6
Tom Sepez
+sky for OWNERS review. Thanks.
6 years, 7 months ago (2014-05-16 19:57:00 UTC) #7
darin (slow to review)
LGTM deferring to mpcomplete. I need to add him to the OWNERS file!
6 years, 7 months ago (2014-05-16 20:06:41 UTC) #8
Tom Sepez
Thanks Darin, dropping sky.
6 years, 7 months ago (2014-05-16 20:07:31 UTC) #9
Tom Sepez
The CQ bit was unchecked by tsepez@chromium.org
6 years, 7 months ago (2014-05-16 20:07:44 UTC) #10
Tom Sepez
The CQ bit was checked by tsepez@chromium.org
6 years, 7 months ago (2014-05-16 20:07:50 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tsepez@chromium.org/282063003/20001
6 years, 7 months ago (2014-05-16 20:08:25 UTC) #12
commit-bot: I haz the power
6 years, 7 months ago (2014-05-17 05:15:07 UTC) #13
Message was sent while issue was closed.
Change committed as 271173

Powered by Google App Engine
This is Rietveld 408576698