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

Issue 1140673002: [V8] Added Script::is_opaque flag for embedders (Closed)

Created:
5 years, 7 months ago by horo
Modified:
5 years, 7 months ago
CC:
Paweł Hajdan Jr., serviceworker-reviews, v8-dev
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[V8] Added Script::is_opaque flag for embedders When the page is controlled by a ServiceWorker, the ServiceWorker can return an opaque (non-CORS cross origin) resource response. We need to treat the messages from such script resource as opaque. Committed: https://crrev.com/7a599c5e1242d3c5ab7515ee149623da90ae69ec Cr-Commit-Position: refs/heads/master@{#28445} Committed: https://crrev.com/c5eb9573e74471b6aa3bd0df049a6113073f6a60 Cr-Commit-Position: refs/heads/master@{#28459}

Patch Set 1 #

Patch Set 2 : Introduces ScriptOriginOptions #

Total comments: 4

Patch Set 3 : incorporated Yang's comment #

Total comments: 2

Patch Set 4 : v8::ScriptOriginOptions #

Patch Set 5 : revert unrelated change #

Patch Set 6 : fix chromium win compilation failure #

Patch Set 7 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+176 lines, -139 lines) Patch
M include/v8.h View 1 2 3 4 5 6 7 chunks +57 lines, -26 lines 0 comments Download
M src/accessors.cc View 1 2 3 4 5 6 1 chunk +3 lines, -2 lines 0 comments Download
M src/api.cc View 1 2 3 4 5 6 5 chunks +21 lines, -25 lines 0 comments Download
M src/bootstrapper.cc View 1 2 3 4 5 6 2 chunks +6 lines, -5 lines 0 comments Download
M src/compilation-cache.h View 1 3 chunks +4 lines, -6 lines 0 comments Download
M src/compilation-cache.cc View 1 2 6 chunks +11 lines, -18 lines 0 comments Download
M src/compiler.h View 1 1 chunk +1 line, -1 line 0 comments Download
M src/compiler.cc View 1 2 3 4 5 6 3 chunks +6 lines, -8 lines 0 comments Download
M src/debug.cc View 1 2 3 4 5 6 1 chunk +3 lines, -2 lines 0 comments Download
M src/objects.h View 1 2 3 4 5 6 2 chunks +9 lines, -13 lines 0 comments Download
M src/objects-inl.h View 1 2 3 4 5 6 2 chunks +9 lines, -3 lines 0 comments Download
M test/cctest/compiler/test-linkage.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M test/cctest/test-api.cc View 1 7 chunks +18 lines, -13 lines 0 comments Download
M test/cctest/test-compiler.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M test/cctest/test-heap.cc View 1 5 chunks +22 lines, -11 lines 0 comments Download
M test/cctest/test-serialize.cc View 1 2 3 4 5 6 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 23 (6 generated)
horo
mkwst@ Could you please review this?
5 years, 7 months ago (2015-05-12 04:49:30 UTC) #2
Mike West
This looks reasonable to me, but I'm a bad reviewer for V8. CCing Jochen and ...
5 years, 7 months ago (2015-05-12 05:44:13 UTC) #4
Yang
Compiler::CompileScript has too many arguments as is, adding another one just makes things ugly and ...
5 years, 7 months ago (2015-05-13 12:25:41 UTC) #5
Yang
On 2015/05/13 12:25:41, Yang wrote: > Compiler::CompileScript has too many arguments as is, adding another ...
5 years, 7 months ago (2015-05-13 12:26:22 UTC) #6
horo
On 2015/05/13 12:26:22, Yang wrote: > On 2015/05/13 12:25:41, Yang wrote: > > Compiler::CompileScript has ...
5 years, 7 months ago (2015-05-18 06:14:48 UTC) #7
Yang
Looking good, but not consequent enough imo. I have some suggestions. https://codereview.chromium.org/1140673002/diff/20001/src/api.cc File src/api.cc (right): ...
5 years, 7 months ago (2015-05-18 07:23:33 UTC) #8
horo
https://codereview.chromium.org/1140673002/diff/20001/src/api.cc File src/api.cc (right): https://codereview.chromium.org/1140673002/diff/20001/src/api.cc#newcode1972 src/api.cc:1972: origin.Options().IsEmbedderDebugScript()); On 2015/05/18 07:23:33, Yang wrote: > V8 doesn't ...
5 years, 7 months ago (2015-05-18 10:19:24 UTC) #9
Yang
lgtm with comment. https://codereview.chromium.org/1140673002/diff/40001/src/objects.h File src/objects.h (right): https://codereview.chromium.org/1140673002/diff/40001/src/objects.h#newcode6744 src/objects.h:6744: inline ScriptOriginOptions origin_options(); Please change this ...
5 years, 7 months ago (2015-05-18 11:21:26 UTC) #10
horo
Thank you! https://codereview.chromium.org/1140673002/diff/40001/src/objects.h File src/objects.h (right): https://codereview.chromium.org/1140673002/diff/40001/src/objects.h#newcode6744 src/objects.h:6744: inline ScriptOriginOptions origin_options(); On 2015/05/18 11:21:25, Yang ...
5 years, 7 months ago (2015-05-18 13:19:53 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1140673002/80001
5 years, 7 months ago (2015-05-18 13:30:55 UTC) #14
commit-bot: I haz the power
Committed patchset #5 (id:80001)
5 years, 7 months ago (2015-05-18 13:54:50 UTC) #15
commit-bot: I haz the power
Patchset 5 (id:??) landed as https://crrev.com/7a599c5e1242d3c5ab7515ee149623da90ae69ec Cr-Commit-Position: refs/heads/master@{#28445}
5 years, 7 months ago (2015-05-18 13:54:59 UTC) #16
Michael Achenbach
A revert of this CL (patchset #5 id:80001) has been created in https://codereview.chromium.org/1135343005/ by machenbach@chromium.org. ...
5 years, 7 months ago (2015-05-18 14:54:00 UTC) #17
Michael Achenbach
FYI: You can use also chromium/blink trybots on a reland attempt.
5 years, 7 months ago (2015-05-18 14:54:49 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1140673002/120001
5 years, 7 months ago (2015-05-19 03:09:29 UTC) #21
commit-bot: I haz the power
Committed patchset #7 (id:120001)
5 years, 7 months ago (2015-05-19 03:11:44 UTC) #22
commit-bot: I haz the power
5 years, 7 months ago (2015-05-19 03:11:56 UTC) #23
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/c5eb9573e74471b6aa3bd0df049a6113073f6a60
Cr-Commit-Position: refs/heads/master@{#28459}

Powered by Google App Engine
This is Rietveld 408576698