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

Issue 6534019: Add access checks to Object.preventExtensions + add regression test for 1027.... (Closed)

Created:
9 years, 10 months ago by Rico
Modified:
9 years, 6 months ago
Reviewers:
antonm
CC:
v8-dev
Visibility:
Public.

Description

Add access checks to Object.preventExtensions + add regression test for 1027. Object.preventExtensions can currently be used cross-domain. With this change we follow firefox (IE9 has our current behaviour). In addition this includes a regression test for 1027 and access tests for Object.seal and Object.freeze. Committed: http://code.google.com/p/v8/source/detail?r=6848

Patch Set 1 #

Total comments: 11

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+31 lines, -2 lines) Patch
M src/objects.cc View 1 1 chunk +6 lines, -0 lines 0 comments Download
M src/runtime.cc View 1 1 chunk +2 lines, -0 lines 0 comments Download
M test/cctest/test-api.cc View 1 2 3 2 chunks +23 lines, -2 lines 1 comment Download

Messages

Total messages: 4 (0 generated)
Rico
9 years, 10 months ago (2011-02-17 11:44:09 UTC) #1
antonm
Almost LGTM, one question though http://codereview.chromium.org/6534019/diff/1/src/runtime.cc File src/runtime.cc (right): http://codereview.chromium.org/6534019/diff/1/src/runtime.cc#newcode886 src/runtime.cc:886: // If access checks ...
9 years, 10 months ago (2011-02-17 15:44:12 UTC) #2
Rico
I changed this a bit and moved the access check to the JSObject::PreventExtensions call (where ...
9 years, 10 months ago (2011-02-18 07:49:09 UTC) #3
antonm
9 years, 10 months ago (2011-02-18 10:31:10 UTC) #4
LGTM

http://codereview.chromium.org/6534019/diff/7004/test/cctest/test-api.cc
File test/cctest/test-api.cc (right):

http://codereview.chromium.org/6534019/diff/7004/test/cctest/test-api.cc#newc...
test/cctest/test-api.cc:5691: // Regression test ofr issue 1171.
nit: ofr => for

Powered by Google App Engine
This is Rietveld 408576698