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

Issue 712713002: IPC: a way for browsertests to simulate the appearance of a malicious IPC. (Closed)

Created:
6 years, 1 month ago by ncarter (slow)
Modified:
6 years, 1 month ago
Reviewers:
Tom Sepez, Charlie Reis
CC:
chromium-reviews, darin-cc_chromium.org, jam
Base URL:
https://chromium.googlesource.com/chromium/src.git@interstitial
Project:
chromium
Visibility:
Public.

Description

IPC: a way for security exploit browsertests to simulate the appearance of a malicious IPC. Use this to add a SecurityExploitBrowserTest for http://crbug.com/429922 Fix SecurityExploitBrowserTests on Android. Re-enable SecurityExploitBrowserTests on Android, except for two issues (1) the new test, which is actually disabled because of http://crbug.com/432737, discovered while developing this CL and (2) SetWebUIProperty, which is disabled because of http://crbug.com/433068, also discovered while developing this CL. Moral of the story being: never try. BUG=429922, 432737, 338023, 433068 TEST=content_browsertests Committed: https://crrev.com/4c8dfd482ad484f2402a5d9bea921870f3ea5d89 Cr-Commit-Position: refs/heads/master@{#304170}

Patch Set 1 #

Patch Set 2 : Self-review #

Patch Set 3 : Rewrite comment #

Patch Set 4 : Fix clang compile #

Patch Set 5 : Newlines at eof #

Patch Set 6 : Move test util to ipc test support library #

Total comments: 2

Patch Set 7 : Fix formatting #

Patch Set 8 : Try fixing Android issue by migrating to embedded test server #

Patch Set 9 : Hopefully fix all the Android issues #

Patch Set 10 : Fix up test so it passes on Windows #

Patch Set 11 : #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+190 lines, -17 lines) Patch
M build/android/pylib/gtest/filter/content_browsertests_disabled View 1 2 3 4 5 6 7 8 2 chunks +0 lines, -9 lines 0 comments Download
M content/browser/security_exploit_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 6 chunks +121 lines, -6 lines 2 comments Download
M ipc/ipc.gyp View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M ipc/ipc_channel_proxy.h View 2 chunks +2 lines, -2 lines 0 comments Download
A ipc/ipc_security_test_util.h View 1 2 3 4 5 6 7 8 1 chunk +40 lines, -0 lines 0 comments Download
A ipc/ipc_security_test_util.cc View 1 2 3 4 5 6 7 8 1 chunk +25 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (4 generated)
ncarter (slow)
tsepez@chromium.org: Please review changes in ipc creis@chromium.org: Please review the new browsertest
6 years, 1 month ago (2014-11-07 22:21:25 UTC) #2
Tom Sepez
Nick, is there a way you could build the new code as part of a ...
6 years, 1 month ago (2014-11-07 23:28:41 UTC) #3
ncarter (slow)
On 2014/11/07 23:28:41, Tom Sepez wrote: > Nick, is there a way you could build ...
6 years, 1 month ago (2014-11-08 00:12:55 UTC) #4
Charlie Reis
Thanks; test LGTM.
6 years, 1 month ago (2014-11-08 00:21:05 UTC) #5
Tom Sepez
lgtm https://codereview.chromium.org/712713002/diff/100001/ipc/ipc_security_test_util.cc File ipc/ipc_security_test_util.cc (right): https://codereview.chromium.org/712713002/diff/100001/ipc/ipc_security_test_util.cc#newcode19 ipc/ipc_security_test_util.cc:19: &IPC::ChannelProxy::Context::OnMessageReceived), nit: indentation style. I thought the deal ...
6 years, 1 month ago (2014-11-08 00:26:31 UTC) #6
ncarter (slow)
https://codereview.chromium.org/712713002/diff/100001/ipc/ipc_security_test_util.cc File ipc/ipc_security_test_util.cc (right): https://codereview.chromium.org/712713002/diff/100001/ipc/ipc_security_test_util.cc#newcode19 ipc/ipc_security_test_util.cc:19: &IPC::ChannelProxy::Context::OnMessageReceived), On 2014/11/08 00:26:31, Tom Sepez wrote: > nit: ...
6 years, 1 month ago (2014-11-08 00:43:05 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/712713002/120001
6 years, 1 month ago (2014-11-08 00:43:41 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: android_dbg_tests_recipe on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_dbg_tests_recipe/builds/26592)
6 years, 1 month ago (2014-11-08 02:31:41 UTC) #11
ncarter (slow)
charlie: this is finally ready. please review diffs between #7 and current.
6 years, 1 month ago (2014-11-13 22:21:41 UTC) #12
Charlie Reis
LGTM https://codereview.chromium.org/712713002/diff/200001/content/browser/security_exploit_browsertest.cc File content/browser/security_exploit_browsertest.cc (right): https://codereview.chromium.org/712713002/diff/200001/content/browser/security_exploit_browsertest.cc#newcode51 content/browser/security_exploit_browsertest.cc:51: EXPECT_EQ(base::ASCIIToUTF16("OK"), shell->web_contents()->GetTitle()); I think we can put EXPECT_TRUE ...
6 years, 1 month ago (2014-11-14 00:13:27 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/712713002/200001
6 years, 1 month ago (2014-11-14 00:17:24 UTC) #15
commit-bot: I haz the power
Committed patchset #11 (id:200001)
6 years, 1 month ago (2014-11-14 04:12:01 UTC) #16
commit-bot: I haz the power
6 years, 1 month ago (2014-11-14 04:13:35 UTC) #17
Message was sent while issue was closed.
Patchset 11 (id:??) landed as
https://crrev.com/4c8dfd482ad484f2402a5d9bea921870f3ea5d89
Cr-Commit-Position: refs/heads/master@{#304170}

Powered by Google App Engine
This is Rietveld 408576698