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

Issue 572973002: NaCl: Simpler validation for main nexe. (Closed)

Created:
6 years, 3 months ago by teravest
Modified:
6 years ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

NaCl: Simpler validation for main nexe. This change gets nexe file identity while doing work in the browser process, preventing an unnecessary plugin->browser IPC round, and simplifying this codepath in the process. BUG=394130 TEST=NonSfiPackagedAppTest.SuccessfulLoad covers the Non-SFI case. CQ_EXTRA_TRYBOTS=tryserver.chromium.linux:linux_rel_precise32 Committed: https://crrev.com/c6b3ad13c7dcf0b4359d75798463c2677f9c8e78 Cr-Commit-Position: refs/heads/master@{#304965}

Patch Set 1 : #

Total comments: 12

Patch Set 2 : fixes for mseaborn except file path check #

Patch Set 3 : Let NaCl code do file path fallback #

Total comments: 13

Patch Set 4 : fixes for mseaborn #

Total comments: 5

Patch Set 5 : Don't populate file path for nonsfi #

Patch Set 6 : rebased #

Patch Set 7 : rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+85 lines, -164 lines) Patch
M components/nacl/browser/nacl_process_host.h View 1 2 3 4 2 chunks +9 lines, -9 lines 0 comments Download
M components/nacl/browser/nacl_process_host.cc View 1 2 3 4 9 chunks +58 lines, -71 lines 0 comments Download
M components/nacl/common/nacl_messages.h View 1 2 chunks +3 lines, -12 lines 0 comments Download
M components/nacl/common/nacl_types.h View 1 1 chunk +2 lines, -2 lines 0 comments Download
M components/nacl/common/nacl_types.cc View 1 chunk +0 lines, -2 lines 0 comments Download
M components/nacl/loader/nacl_listener.cc View 1 2 3 4 6 chunks +8 lines, -55 lines 0 comments Download
M components/nacl/loader/nacl_validation_db.h View 1 2 3 1 chunk +0 lines, -2 lines 0 comments Download
M components/nacl/loader/nacl_validation_query.cc View 1 2 3 1 chunk +3 lines, -1 line 0 comments Download
M components/nacl/loader/nacl_validation_query_unittest.cc View 1 2 3 4 5 1 chunk +0 lines, -8 lines 0 comments Download
M components/nacl/loader/nonsfi/nonsfi_listener.cc View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 28 (8 generated)
teravest
6 years, 2 months ago (2014-10-14 17:12:47 UTC) #4
Mark Seaborn
https://codereview.chromium.org/572973002/diff/200001/components/nacl/browser/nacl_process_host.cc File components/nacl/browser/nacl_process_host.cc (right): https://codereview.chromium.org/572973002/diff/200001/components/nacl/browser/nacl_process_host.cc#newcode910 components/nacl/browser/nacl_process_host.cc:910: void ClosePlatformFile(base::PlatformFile file) { Shouldn't this be in an ...
6 years, 2 months ago (2014-10-14 17:37:24 UTC) #5
teravest
https://codereview.chromium.org/572973002/diff/200001/components/nacl/browser/nacl_process_host.cc File components/nacl/browser/nacl_process_host.cc (right): https://codereview.chromium.org/572973002/diff/200001/components/nacl/browser/nacl_process_host.cc#newcode910 components/nacl/browser/nacl_process_host.cc:910: void ClosePlatformFile(base::PlatformFile file) { On 2014/10/14 17:37:24, Mark Seaborn ...
6 years, 2 months ago (2014-10-14 18:15:01 UTC) #6
teravest
On 2014/10/14 18:15:01, teravest wrote: > https://codereview.chromium.org/572973002/diff/200001/components/nacl/browser/nacl_process_host.cc > File components/nacl/browser/nacl_process_host.cc (right): > > https://codereview.chromium.org/572973002/diff/200001/components/nacl/browser/nacl_process_host.cc#newcode910 > ...
6 years, 2 months ago (2014-10-16 17:07:43 UTC) #7
Mark Seaborn
https://codereview.chromium.org/572973002/diff/240001/components/nacl/browser/nacl_process_host.cc File components/nacl/browser/nacl_process_host.cc (left): https://codereview.chromium.org/572973002/diff/240001/components/nacl/browser/nacl_process_host.cc#oldcode1022 components/nacl/browser/nacl_process_host.cc:1022: // TODO(ncbray): track behavior with UMA. If entries are ...
6 years, 2 months ago (2014-10-16 18:01:01 UTC) #8
teravest
https://codereview.chromium.org/572973002/diff/240001/components/nacl/browser/nacl_process_host.cc File components/nacl/browser/nacl_process_host.cc (left): https://codereview.chromium.org/572973002/diff/240001/components/nacl/browser/nacl_process_host.cc#oldcode1022 components/nacl/browser/nacl_process_host.cc:1022: // TODO(ncbray): track behavior with UMA. If entries are ...
6 years, 2 months ago (2014-10-16 21:40:40 UTC) #11
Mark Seaborn
https://codereview.chromium.org/572973002/diff/240001/components/nacl/browser/nacl_process_host.cc File components/nacl/browser/nacl_process_host.cc (right): https://codereview.chromium.org/572973002/diff/240001/components/nacl/browser/nacl_process_host.cc#newcode919 components/nacl/browser/nacl_process_host.cc:919: // Release the file received from the renderer. This ...
6 years, 2 months ago (2014-10-16 21:58:41 UTC) #12
teravest
On Thu, Oct 16, 2014 at 3:58 PM, <mseaborn@chromium.org> wrote: > > https://codereview.chromium.org/572973002/diff/240001/components/nacl/browser/nacl_process_host.cc > File ...
6 years, 2 months ago (2014-10-20 18:20:25 UTC) #13
Yusuke Sato
https://codereview.chromium.org/572973002/diff/300001/components/nacl/browser/nacl_process_host.cc File components/nacl/browser/nacl_process_host.cc (right): https://codereview.chromium.org/572973002/diff/300001/components/nacl/browser/nacl_process_host.cc#newcode888 components/nacl/browser/nacl_process_host.cc:888: if (NaClBrowser::GetInstance()->GetFilePath(nexe_token_.lo, Is this necessary for non-sfi? Maybe if ...
6 years, 2 months ago (2014-10-20 18:55:08 UTC) #15
Yusuke Sato
https://codereview.chromium.org/572973002/diff/300001/components/nacl/browser/nacl_process_host.cc File components/nacl/browser/nacl_process_host.cc (right): https://codereview.chromium.org/572973002/diff/300001/components/nacl/browser/nacl_process_host.cc#newcode888 components/nacl/browser/nacl_process_host.cc:888: if (NaClBrowser::GetInstance()->GetFilePath(nexe_token_.lo, and do you mean if (!NaClBrowser::GetInstance()->GetFilePath(...)) { ...
6 years, 2 months ago (2014-10-21 21:51:53 UTC) #16
Yusuke Sato
nevermind, I misread the code. Please disregard the comments.
6 years, 2 months ago (2014-10-22 00:24:29 UTC) #17
teravest
This change shouldn't populate the file path field when nonsfi mode is used anymore. https://codereview.chromium.org/572973002/diff/300001/components/nacl/browser/nacl_process_host.cc ...
6 years, 2 months ago (2014-10-23 17:20:26 UTC) #18
Mark Seaborn
https://codereview.chromium.org/572973002/diff/300001/components/nacl/loader/nonsfi/nonsfi_listener.cc File components/nacl/loader/nonsfi/nonsfi_listener.cc (right): https://codereview.chromium.org/572973002/diff/300001/components/nacl/loader/nonsfi/nonsfi_listener.cc#newcode147 components/nacl/loader/nonsfi/nonsfi_listener.cc:147: CHECK(params.nexe_file_path_metadata.empty()); On 2014/10/16 21:58:40, Mark Seaborn wrote: > Have ...
6 years, 1 month ago (2014-11-13 16:36:28 UTC) #19
teravest
On 2014/11/13 16:36:28, Mark Seaborn wrote: > https://codereview.chromium.org/572973002/diff/300001/components/nacl/loader/nonsfi/nonsfi_listener.cc > File components/nacl/loader/nonsfi/nonsfi_listener.cc (right): > > https://codereview.chromium.org/572973002/diff/300001/components/nacl/loader/nonsfi/nonsfi_listener.cc#newcode147 ...
6 years, 1 month ago (2014-11-13 16:39:28 UTC) #20
teravest
On 2014/11/13 16:39:28, teravest wrote: > On 2014/11/13 16:36:28, Mark Seaborn wrote: > > > ...
6 years, 1 month ago (2014-11-19 16:40:22 UTC) #21
teravest
+tsepez for components/nacl/nacl_messages.h This simplifies the codepath for validation caching for the main nexe for ...
6 years, 1 month ago (2014-11-19 17:34:53 UTC) #23
Tom Sepez
Messages LGTM.
6 years, 1 month ago (2014-11-19 20:21:10 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/572973002/340001
6 years, 1 month ago (2014-11-19 20:26:52 UTC) #26
commit-bot: I haz the power
Committed patchset #6 (id:340001)
6 years, 1 month ago (2014-11-20 03:55:37 UTC) #27
commit-bot: I haz the power
6 years, 1 month ago (2014-11-20 03:56:11 UTC) #28
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/c6b3ad13c7dcf0b4359d75798463c2677f9c8e78
Cr-Commit-Position: refs/heads/master@{#304965}

Powered by Google App Engine
This is Rietveld 408576698