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

Issue 7701023: Added access check to Runtime_GetPrototype. (Closed)

Created:
9 years, 4 months ago by Lasse Reichstein
Modified:
9 years, 4 months ago
CC:
v8-dev
Visibility:
Public.

Description

Added access check to Runtime_GetPrototype. BUG=93759 Committed: http://code.google.com/p/v8/source/detail?r=9016

Patch Set 1 #

Total comments: 2

Patch Set 2 : Address review comments. #

Total comments: 5

Patch Set 3 : Allow JSProxy in GetPrototype, but only without access checks. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+120 lines, -33 lines) Patch
M src/runtime.cc View 1 2 1 chunk +11 lines, -1 line 0 comments Download
M src/v8natives.js View 1 1 chunk +0 lines, -32 lines 0 comments Download
M test/cctest/test-api.cc View 1 1 chunk +109 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
Lasse Reichstein
9 years, 4 months ago (2011-08-24 08:15:47 UTC) #1
Mads Ager (chromium)
http://codereview.chromium.org/7701023/diff/1/src/runtime.cc File src/runtime.cc (right): http://codereview.chromium.org/7701023/diff/1/src/runtime.cc#newcode687 src/runtime.cc:687: if (obj->IsJSGlobalProxy()) { You shouldn't restrict this to global ...
9 years, 4 months ago (2011-08-24 08:23:15 UTC) #2
Mads Ager (chromium)
Please add regression tests for this. Set up some prototype chains with access checks at ...
9 years, 4 months ago (2011-08-24 08:23:58 UTC) #3
Lasse Reichstein
Good comments. Please take a new look. http://codereview.chromium.org/7701023/diff/4001/src/runtime.cc File src/runtime.cc (right): http://codereview.chromium.org/7701023/diff/4001/src/runtime.cc#newcode695 src/runtime.cc:695: } Should ...
9 years, 4 months ago (2011-08-24 13:39:41 UTC) #4
Mads Ager (chromium)
LGTM if the proxy code is indeed dead code. Andreas is the code Lasse is ...
9 years, 4 months ago (2011-08-24 18:38:40 UTC) #5
Lasse Reichstein
Running the tests with --harmony-block-scoping doesn't fail because of missing functions (as expected, the names ...
9 years, 4 months ago (2011-08-25 07:18:07 UTC) #6
rossberg
> We can't do access checks on proxies, since our callback only supports a > ...
9 years, 4 months ago (2011-08-25 13:12:07 UTC) #7
Lasse Reichstein
9 years, 4 months ago (2011-08-25 13:21:20 UTC) #8
Excellent, I'll land it then.

Powered by Google App Engine
This is Rietveld 408576698