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

Issue 2628863002: Do security checks in the promise constructor (Closed)

Created:
3 years, 11 months ago by jochen (gone - plz use gerrit)
Modified:
3 years, 11 months ago
CC:
v8-reviews_googlegroups.com
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

Do security checks in the promise constructor Since we only can do limited checks during microtask execution, do the checks before actually creating a promise BUG=chromium:658194 R=bmeurer@chromium.org,gsathya@chromium.org Review-Url: https://codereview.chromium.org/2628863002 Cr-Commit-Position: refs/heads/master@{#42265} Committed: https://chromium.googlesource.com/v8/v8/+/81c62e070b8656432899fc17b46b882bfcf1d59a

Patch Set 1 #

Total comments: 8

Patch Set 2 : updates #

Patch Set 3 : updates #

Total comments: 1

Patch Set 4 : updates #

Unified diffs Side-by-side diffs Delta from patch set Stats (+90 lines, -2 lines) Patch
M include/v8.h View 1 chunk +1 line, -0 lines 0 comments Download
M src/builtins/builtins-promise.h View 1 1 chunk +4 lines, -0 lines 0 comments Download
M src/builtins/builtins-promise.cc View 1 2 3 3 chunks +58 lines, -1 line 0 comments Download
M src/code-stub-assembler.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M src/code-stub-assembler.cc View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M src/runtime/runtime.h View 1 1 chunk +2 lines, -1 line 0 comments Download
M src/runtime/runtime-internal.cc View 1 2 chunks +10 lines, -0 lines 0 comments Download
M test/mjsunit/cross-realm-filtering.js View 7 chunks +10 lines, -0 lines 0 comments Download

Messages

Total messages: 28 (17 generated)
jochen (gone - plz use gerrit)
3 years, 11 months ago (2017-01-11 12:35:30 UTC) #1
jochen (gone - plz use gerrit)
chromium side here: https://codereview.chromium.org/2626003002
3 years, 11 months ago (2017-01-11 12:50:37 UTC) #4
gsathya
https://codereview.chromium.org/2628863002/diff/1/src/builtins/builtins-promise.cc File src/builtins/builtins-promise.cc (right): https://codereview.chromium.org/2628863002/diff/1/src/builtins/builtins-promise.cc#newcode918 src/builtins/builtins-promise.cc:918: Bind(&loop_over_bound_function); i wonder if its better to duplicate the ...
3 years, 11 months ago (2017-01-11 17:27:31 UTC) #7
jochen (gone - plz use gerrit)
https://codereview.chromium.org/2628863002/diff/1/src/builtins/builtins-promise.cc File src/builtins/builtins-promise.cc (right): https://codereview.chromium.org/2628863002/diff/1/src/builtins/builtins-promise.cc#newcode918 src/builtins/builtins-promise.cc:918: Bind(&loop_over_bound_function); On 2017/01/11 at 17:27:31, gsathya wrote: > i ...
3 years, 11 months ago (2017-01-11 18:09:58 UTC) #11
gsathya
lgtm
3 years, 11 months ago (2017-01-11 18:14:03 UTC) #12
Igor Sheludko
nit: https://codereview.chromium.org/2628863002/diff/1/src/builtins/builtins-promise.cc File src/builtins/builtins-promise.cc (right): https://codereview.chromium.org/2628863002/diff/1/src/builtins/builtins-promise.cc#newcode918 src/builtins/builtins-promise.cc:918: Bind(&loop_over_bound_function); On 2017/01/11 18:09:57, jochen wrote: > On ...
3 years, 11 months ago (2017-01-12 08:31:11 UTC) #15
jochen (gone - plz use gerrit)
ptal
3 years, 11 months ago (2017-01-12 09:48:52 UTC) #18
Igor Sheludko
lgtm with suggestion: https://codereview.chromium.org/2628863002/diff/40001/src/code-stub-assembler.cc File src/code-stub-assembler.cc (right): https://codereview.chromium.org/2628863002/diff/40001/src/code-stub-assembler.cc#newcode2979 src/code-stub-assembler.cc:2979: Node* CodeStubAssembler::IsJSFunctionInstanceType(Node* instance_type) { I think ...
3 years, 11 months ago (2017-01-12 10:12:58 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2628863002/60001
3 years, 11 months ago (2017-01-12 10:58:00 UTC) #24
jochen (gone - plz use gerrit)
done
3 years, 11 months ago (2017-01-12 10:58:06 UTC) #25
commit-bot: I haz the power
3 years, 11 months ago (2017-01-12 11:33:59 UTC) #28
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/v8/v8/+/81c62e070b8656432899fc17b46b882bfcf...

Powered by Google App Engine
This is Rietveld 408576698