v8/test
Yutaka Hirano c4bffcd56d Use ScriptOriginOptions with IsSharedCrossOrigin set for empty script
Currently, neither IsSharedCrossOrigin nor IsOpaque is set for an empty
script. Hence an exception thrown from it (e.g., an exception thrown
from native promise implementation) is treated as an error with
blink::kNotSharableCrossOrigin. On the other hand, as the script is
empty, there is no meaningful URL attached, which means the
ExecutionContext's URL is used as the script's name in
blink::SourceLocation::FromMessage. In other words, it works virtually
as same as blink::kSharableCrossOrigin corresponding to
ScriptOriginOptions with IsSharedCrossOrigin set and IsOpaque unset.

With this CL, a ScriptOriginOptions with IsSharedCrossOrigin is set
and IsOpaque is not set is attached to the empty script, as a
preliminary step to deprecate kNotSharableCrossOrigin.

Bug: chromium:875153,chromium:876248
Change-Id: I39279a43994337329b8bd9d28b6ca29f0ac30d9c
Cq-Include-Trybots: luci.chromium.try:linux_chromium_rel_ng
Reviewed-on: https://chromium-review.googlesource.com/1201689
Reviewed-by: Adam Klein <adamk@chromium.org>
Reviewed-by: Michael Lippautz <mlippautz@chromium.org>
Commit-Queue: Yutaka Hirano <yhirano@chromium.org>
Cr-Commit-Position: refs/heads/master@{#55673}
2018-09-06 07:12:20 +00:00
..
benchmarks [test] Share resource-fetching logic with all d8 test cases 2018-08-29 17:51:43 +00:00
cctest Use ScriptOriginOptions with IsSharedCrossOrigin set for empty script 2018-09-06 07:12:20 +00:00
common [wasm] Add WasmFeatures to enable/detect features 2018-08-09 10:58:22 +00:00
debugger [cleanup] Eliminate obsolete TODOs 2018-09-04 14:59:47 +00:00
fuzzer Reland "[wasm] Implement the new API for WebAssembly.instantiateStreaming" 2018-08-14 08:20:19 +00:00
inspector Revert "inspector: find magic comment using V8 scanner" 2018-09-03 18:42:28 +00:00
intl [Intl] Fix subclassing of V8BreakIterator 2018-09-06 07:10:10 +00:00
js-perf-test [Builtins] Array.prototype.forEach perf regression on dictionaries. 2018-09-05 14:25:17 +00:00
memory [builtins] Add embedded stats to --serialization-statistics 2018-07-05 12:33:26 +00:00
message Reland "[interpreter] Add bytecode for leading array spreads." 2018-09-05 09:29:51 +00:00
mjsunit [array] Move Array.p.unshift fall-back to Torque 2018-09-06 07:09:05 +00:00
mkgrokdump Implement global proposal 2018-08-16 11:07:21 +00:00
mozilla [array] Move Array.p.unshift fall-back to Torque 2018-09-06 07:09:05 +00:00
preparser [test] Share resource-fetching logic with all d8 test cases 2018-08-29 17:51:43 +00:00
test262 [array] Move Array.p.unshift fall-back to Torque 2018-09-06 07:09:05 +00:00
torque [torque] only expose safe FixedArray allocation 2018-08-13 15:58:17 +00:00
unittests Reland "[interpreter] Add bytecode for leading array spreads." 2018-09-05 09:29:51 +00:00
wasm-spec-tests [test] Share resource-fetching logic with all d8 test cases 2018-08-29 17:51:43 +00:00
webkit Reland "[interpreter] Add bytecode for leading array spreads." 2018-09-05 09:29:51 +00:00
BUILD.gn Reland "[test] Add logic to run tests on Android" 2018-08-10 17:56:12 +00:00