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

Issue 20646006: Pipe a script's CORS status through V8 during compilation. (Closed)

Created:
7 years, 5 months ago by Mike West
Modified:
7 years, 4 months ago
Reviewers:
Michael Starzinger
CC:
Jakob Kummerow, Yang
Base URL:
https://chromium.googlesource.com/external/v8.git@master
Visibility:
Public.

Description

Pipe a script's CORS status through V8 during compilation. In order to properly sanitize exception data during a 'window.onerror' handler, we need to know whether a script was served with proper CORS headers at the time it was loaded into V8. This patch adds a single bool to ScriptOrigin, and pipes that through the compiler to land on the Script object. We can then retrieve the parameter when calling the embedder's exception callback. BUG=crbug.com/159566 R=mstarzinger@chromium.org Committed: http://code.google.com/p/v8/source/detail?r=15963

Patch Set 1 #

Patch Set 2 : Rebased on top of 20758002. #

Patch Set 3 : rebaseline. #

Total comments: 11

Patch Set 4 : Rework. #

Patch Set 5 : test. #

Patch Set 6 : . #

Total comments: 2

Patch Set 7 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+186 lines, -7 lines) Patch
M include/v8.h View 1 2 3 3 chunks +16 lines, -2 lines 0 comments Download
M src/api.cc View 1 2 3 4 chunks +20 lines, -0 lines 0 comments Download
M src/bootstrapper.cc View 1 chunk +1 line, -0 lines 0 comments Download
M src/compilation-cache.h View 1 2 3 4 5 3 chunks +4 lines, -1 line 0 comments Download
M src/compilation-cache.cc View 1 2 3 4 5 6 chunks +22 lines, -4 lines 0 comments Download
M src/compiler.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M src/compiler.cc View 1 2 3 4 5 3 chunks +3 lines, -0 lines 0 comments Download
M src/debug.cc View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M src/objects.h View 1 2 3 2 chunks +7 lines, -0 lines 0 comments Download
M src/objects-inl.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M test/cctest/test-api.cc View 1 2 3 4 5 6 4 chunks +109 lines, -0 lines 0 comments Download
M test/cctest/test-compiler.cc View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
Mike West
Er. Let's try the right codereview tool, shall we? Sorry about that. -mike
7 years, 5 months ago (2013-07-26 14:45:07 UTC) #1
Mike West
Hi Yang and Jakob. I'm trying (and failing) to add a single boolean parameter to ...
7 years, 5 months ago (2013-07-26 14:45:41 UTC) #2
Mike West
Thanks for your help on Friday. I've rebaselined this patch on top of the cleanup ...
7 years, 4 months ago (2013-07-29 12:19:12 UTC) #3
Michael Starzinger
In general I am fine with this change. The main comment is just about naming. ...
7 years, 4 months ago (2013-07-30 09:52:55 UTC) #4
Mike West
Thanks! Comments inline. https://codereview.chromium.org/20646006/diff/16001/include/v8.h File include/v8.h (right): https://codereview.chromium.org/20646006/diff/16001/include/v8.h#newcode946 include/v8.h:946: Handle<Boolean> resource_passed_access_check = Handle<Boolean>())) On 2013/07/30 ...
7 years, 4 months ago (2013-07-30 10:01:58 UTC) #5
Mike West
https://codereview.chromium.org/20646006/diff/16001/include/v8.h File include/v8.h (right): https://codereview.chromium.org/20646006/diff/16001/include/v8.h#newcode946 include/v8.h:946: Handle<Boolean> resource_passed_access_check = Handle<Boolean>())) On 2013/07/30 10:01:58, Mike West ...
7 years, 4 months ago (2013-07-30 10:22:43 UTC) #6
Michael Starzinger
https://codereview.chromium.org/20646006/diff/16001/include/v8.h File include/v8.h (right): https://codereview.chromium.org/20646006/diff/16001/include/v8.h#newcode946 include/v8.h:946: Handle<Boolean> resource_passed_access_check = Handle<Boolean>())) On 2013/07/30 10:22:43, Mike West ...
7 years, 4 months ago (2013-07-30 10:27:10 UTC) #7
Mike West
I've renamed the various bits and pieces. Mind taking another look, Michael? -mike
7 years, 4 months ago (2013-07-30 11:07:44 UTC) #8
Michael Starzinger
LGTM. I'll land this for you after we did today's roll. Our tree is about ...
7 years, 4 months ago (2013-07-30 11:19:07 UTC) #9
Mike West
On 2013/07/30 11:19:07, Michael Starzinger wrote: > LGTM. I'll land this for you after we ...
7 years, 4 months ago (2013-07-30 11:21:46 UTC) #10
Mike West
Would you mind holding off on landing this for a few minutes? I'd like to ...
7 years, 4 months ago (2013-07-30 13:02:13 UTC) #11
Mike West
On 2013/07/30 13:02:13, Mike West wrote: > Would you mind holding off on landing this ...
7 years, 4 months ago (2013-07-30 13:40:20 UTC) #12
Mike West
On 2013/07/30 13:40:20, Mike West wrote: > On 2013/07/30 13:02:13, Mike West wrote: > > ...
7 years, 4 months ago (2013-07-30 14:15:12 UTC) #13
Michael Starzinger
Still LGTM, just one minor comment about one of the test cases. https://codereview.chromium.org/20646006/diff/46001/test/cctest/test-api.cc File test/cctest/test-api.cc ...
7 years, 4 months ago (2013-07-30 14:22:00 UTC) #14
Mike West
On 2013/07/30 14:22:00, Michael Starzinger wrote: > Still LGTM, just one minor comment about one ...
7 years, 4 months ago (2013-07-30 14:29:27 UTC) #15
Michael Starzinger
7 years, 4 months ago (2013-07-30 17:06:00 UTC) #16
Message was sent while issue was closed.
Committed patchset #7 manually as r15963 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698