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

Issue 411553003: Validate incoming JS Message Headers: test message parser (Closed)

Created:
6 years, 5 months ago by hansmuller
Modified:
6 years, 5 months ago
CC:
abarth-chromium, Aaron Boodman, ben+mojo_chromium.org, chromium-reviews, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org
Project:
chromium
Visibility:
Public.

Description

Validate incoming JS Message Headers: test message parser This is the first part of the "Validate incoming JS Message Headers" CL - https://codereview.chromium.org/406993002/ It's just the test message file parser and its sanity check. TBR=jochen@chromium.org BUG=395801 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=285632

Patch Set 1 #

Total comments: 9

Patch Set 2 : Factored common Buffer class, moved JS binding tests #

Total comments: 35

Patch Set 3 : Changes per review feedback #

Patch Set 4 : Restored parser comment changes #

Total comments: 18

Patch Set 5 : Moved TestMessage parser sanity check to validation_unittests.js #

Patch Set 6 : Changes per Yuzhu's second round of parser feedback #

Total comments: 1

Patch Set 7 : Comment widening #

Patch Set 8 : Fixed WebUIMojoTest.EndToEndPing #

Unified diffs Side-by-side diffs Delta from patch set Stats (+678 lines, -590 lines) Patch
M content/browser/webui/web_ui_data_source_impl.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/webui/web_ui_mojo_browsertest.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -1 line 0 comments Download
M content/content_resources.grd View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M mojo/apps/js/test/js_to_cpp_unittest.js View 1 1 chunk +2 lines, -2 lines 0 comments Download
M mojo/apps/js/test/run_apps_js_tests.cc View 1 2 3 4 3 chunks +0 lines, -22 lines 0 comments Download
D mojo/bindings/js/codec_unittests.js View 1 1 chunk +0 lines, -228 lines 0 comments Download
D mojo/bindings/js/core_unittests.js View 1 1 chunk +0 lines, -118 lines 0 comments Download
M mojo/bindings/js/run_js_tests.cc View 1 1 chunk +0 lines, -64 lines 0 comments Download
M mojo/mojo.gyp View 1 2 1 chunk +0 lines, -14 lines 0 comments Download
M mojo/mojo_public_tests.gypi View 1 2 3 4 1 chunk +14 lines, -0 lines 0 comments Download
A mojo/public/js/bindings/buffer.js View 1 2 3 4 5 6 7 1 chunk +156 lines, -0 lines 0 comments Download
M mojo/public/js/bindings/codec.js View 1 2 12 chunks +28 lines, -127 lines 0 comments Download
A + mojo/public/js/bindings/codec_unittests.js View 1 2 0 chunks +-1 lines, --1 lines 0 comments Download
M mojo/public/js/bindings/connector.js View 1 2 2 chunks +4 lines, -3 lines 0 comments Download
M mojo/public/js/bindings/constants.h View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M mojo/public/js/bindings/constants.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
A + mojo/public/js/bindings/core_unittests.js View 1 2 0 chunks +-1 lines, --1 lines 0 comments Download
A + mojo/public/js/bindings/tests/DEPS View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
A + mojo/public/js/bindings/tests/run_js_tests.cc View 1 2 3 4 4 chunks +6 lines, -13 lines 0 comments Download
A mojo/public/js/bindings/tests/validation_test_input_parser.js View 1 2 3 4 5 6 1 chunk +299 lines, -0 lines 0 comments Download
A mojo/public/js/bindings/validation_unittests.js View 1 2 3 4 5 1 chunk +163 lines, -0 lines 0 comments Download

Messages

Total messages: 28 (0 generated)
hansmuller
First subset of the https://codereview.chromium.org/406993002/ CL. I've asked to defer two changes Adam asked for, ...
6 years, 5 months ago (2014-07-22 16:23:10 UTC) #1
abarth-chromium
https://codereview.chromium.org/411553003/diff/1/mojo/bindings/js/message_file_parser.js File mojo/bindings/js/message_file_parser.js (right): https://codereview.chromium.org/411553003/diff/1/mojo/bindings/js/message_file_parser.js#newcode1 mojo/bindings/js/message_file_parser.js:1: // Copyright 2013 The Chromium Authors. All rights reserved. ...
6 years, 5 months ago (2014-07-22 17:04:25 UTC) #2
abarth-chromium
I don't think we should make those changes in a subsequent CL. Copy/pasting code isn't ...
6 years, 5 months ago (2014-07-22 17:05:36 UTC) #3
hansmuller
On 2014/07/22 17:05:36, abarth wrote: > I don't think we should make those changes in ...
6 years, 5 months ago (2014-07-22 17:30:32 UTC) #4
Matt Perry
https://codereview.chromium.org/411553003/diff/1/mojo/bindings/js/message_file_parser.js File mojo/bindings/js/message_file_parser.js (right): https://codereview.chromium.org/411553003/diff/1/mojo/bindings/js/message_file_parser.js#newcode1 mojo/bindings/js/message_file_parser.js:1: // Copyright 2013 The Chromium Authors. All rights reserved. ...
6 years, 5 months ago (2014-07-22 20:38:28 UTC) #5
hansmuller
I've factored a common Buffer class from codec and the message_file_parser MessageData class. I've moved ...
6 years, 5 months ago (2014-07-23 00:14:07 UTC) #6
Matt Perry
handful of nits https://codereview.chromium.org/411553003/diff/20001/mojo/public/js/bindings/buffer.js File mojo/public/js/bindings/buffer.js (right): https://codereview.chromium.org/411553003/diff/20001/mojo/public/js/bindings/buffer.js#newcode168 mojo/public/js/bindings/buffer.js:168: return Buffer; I think you should ...
6 years, 5 months ago (2014-07-23 00:39:39 UTC) #7
abarth-chromium
LGTM with the comments below addressed. Please make sure mpcomplete is happy too. :) https://codereview.chromium.org/411553003/diff/20001/mojo/public/js/bindings/buffer.js ...
6 years, 5 months ago (2014-07-23 02:13:52 UTC) #8
yzshen1
First part of comments. I will send you comments for the parser (if any) soon. ...
6 years, 5 months ago (2014-07-23 07:26:55 UTC) #9
hansmuller
I've made all of the suggested changes. https://codereview.chromium.org/411553003/diff/20001/mojo/mojo.gyp File mojo/mojo.gyp (right): https://codereview.chromium.org/411553003/diff/20001/mojo/mojo.gyp#newcode748 mojo/mojo.gyp:748: 'target_name': 'mojo_js_unittests', ...
6 years, 5 months ago (2014-07-23 18:06:36 UTC) #10
yzshen1
https://codereview.chromium.org/411553003/diff/20001/mojo/public/js/bindings/tests/run_js_tests.cc File mojo/public/js/bindings/tests/run_js_tests.cc (right): https://codereview.chromium.org/411553003/diff/20001/mojo/public/js/bindings/tests/run_js_tests.cc#newcode6 mojo/public/js/bindings/tests/run_js_tests.cc:6: #include "base/files/file_path.h" nit: this is still needed. https://codereview.chromium.org/411553003/diff/20001/mojo/public/js/bindings/tests/run_js_tests.cc#newcode50 mojo/public/js/bindings/tests/run_js_tests.cc:50: ...
6 years, 5 months ago (2014-07-23 19:53:38 UTC) #11
Matt Perry
lgtm
6 years, 5 months ago (2014-07-23 20:26:02 UTC) #12
yzshen1
https://codereview.chromium.org/411553003/diff/60001/mojo/public/js/bindings/tests/validation_test_input_parser.js File mojo/public/js/bindings/tests/validation_test_input_parser.js (right): https://codereview.chromium.org/411553003/diff/60001/mojo/public/js/bindings/tests/validation_test_input_parser.js#newcode35 mojo/public/js/bindings/tests/validation_test_input_parser.js:35: File.prototype.isEmpty = function() { nit: maybe "reachEnd" is more ...
6 years, 5 months ago (2014-07-23 20:31:10 UTC) #13
hansmuller
I've made the requested changes. https://codereview.chromium.org/411553003/diff/20001/mojo/public/js/bindings/tests/run_js_tests.cc File mojo/public/js/bindings/tests/run_js_tests.cc (right): https://codereview.chromium.org/411553003/diff/20001/mojo/public/js/bindings/tests/run_js_tests.cc#newcode6 mojo/public/js/bindings/tests/run_js_tests.cc:6: #include "base/files/file_path.h" On 2014/07/23 ...
6 years, 5 months ago (2014-07-23 21:43:44 UTC) #14
hansmuller
Made the set of changes from the feedback that I'd missed! Sorry about that. https://codereview.chromium.org/411553003/diff/60001/mojo/public/js/bindings/tests/validation_test_input_parser.js ...
6 years, 5 months ago (2014-07-24 00:36:37 UTC) #15
yzshen1
LGTM with two nits. Thanks for the great work! https://codereview.chromium.org/411553003/diff/60001/mojo/public/js/bindings/tests/validation_test_input_parser.js File mojo/public/js/bindings/tests/validation_test_input_parser.js (right): https://codereview.chromium.org/411553003/diff/60001/mojo/public/js/bindings/tests/validation_test_input_parser.js#newcode43 mojo/public/js/bindings/tests/validation_test_input_parser.js:43: ...
6 years, 5 months ago (2014-07-24 01:15:11 UTC) #16
hansmuller
The CQ bit was checked by hansmuller@chromium.org
6 years, 5 months ago (2014-07-24 01:36:33 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hansmuller@chromium.org/411553003/120001
6 years, 5 months ago (2014-07-24 01:40:13 UTC) #18
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: chromium_presubmit on tryserver.chromium ...
6 years, 5 months ago (2014-07-24 05:48:20 UTC) #19
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 5 months ago (2014-07-24 05:52:54 UTC) #20
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/chromium_presubmit/builds/81989)
6 years, 5 months ago (2014-07-24 05:52:55 UTC) #21
hansmuller
Darin - I added mojo/public/js/bindings/tests/DEPS and apparently that requires your approval.
6 years, 5 months ago (2014-07-24 17:01:37 UTC) #22
hansmuller
Darin, Jochen: I added mojo/public/js/bindings/tests/DEPS which contains the following. It looks like I need an ...
6 years, 5 months ago (2014-07-24 21:37:51 UTC) #23
darin (slow to review)
On 2014/07/24 21:37:51, hansmuller wrote: > Darin, Jochen: I added mojo/public/js/bindings/tests/DEPS which contains the > ...
6 years, 5 months ago (2014-07-25 04:29:35 UTC) #24
hansmuller
Jochen - I've TBR'd you since the JS mojo tests have already depended on V8.
6 years, 5 months ago (2014-07-25 15:34:31 UTC) #25
hansmuller
The CQ bit was checked by hansmuller@chromium.org
6 years, 5 months ago (2014-07-25 15:34:45 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hansmuller@chromium.org/411553003/140001
6 years, 5 months ago (2014-07-25 15:35:51 UTC) #27
commit-bot: I haz the power
6 years, 5 months ago (2014-07-25 18:49:02 UTC) #28
Message was sent while issue was closed.
Change committed as 285632

Powered by Google App Engine
This is Rietveld 408576698