v8/test/inspector
Alexey Kozyatinskiy 215608f453 debug-evaluate: do not return JSGlobalObject instead of JSGlobalProxy
DebugEvaluate contains code since 2009 that bypasses JSGlobalProxy and
returns JSGlobalObject when result of expression is global proxy.
This behavior may be dangerous:
- JSGlobalObject does not perform security checks,
- some parts of V8 code do not ready for JSGlobalObject, e.g.,
  SetHashAndUpdateProperties function will crash on DCHECK if we will
  try to store JSGlobalObject to map.

At the same time it looks like there is no any valid use case for it.

R=yangguo@chromium.org

Bug: none
Cq-Include-Trybots: luci.chromium.try:linux_chromium_headless_rel;master.tryserver.blink:linux_trusty_blink_rel
Change-Id: Ib0e35d5ae9ef47318c866e44c5c6856e34ed05a5
Reviewed-on: https://chromium-review.googlesource.com/1198764
Reviewed-by: Yang Guo <yangguo@chromium.org>
Commit-Queue: Aleksey Kozyatinskiy <kozyatinskiy@chromium.org>
Cr-Commit-Position: refs/heads/master@{#55550}
2018-08-31 14:20:39 +00:00
..
console Revert "[inspector] RemoteObject.description should be empty for primitive type" 2018-05-31 18:52:08 +00:00
cpu-profiler Revert "[inspector] RemoteObject.description should be empty for primitive type" 2018-05-31 18:52:08 +00:00
debugger debug-evaluate: do not return JSGlobalObject instead of JSGlobalProxy 2018-08-31 14:20:39 +00:00
heap-profiler [heap-profiler] Annotate global handles retained by console and debugger. 2018-02-19 12:21:52 +00:00
runtime [scanner] Don't muck with positions of EOS in Next 2018-08-29 14:08:41 +00:00
sessions Revert "[inspector] RemoteObject.description should be empty for primitive type" 2018-05-31 18:52:08 +00:00
type-profiler Reland "[inspector] fixed location of top level function return" 2018-06-18 21:37:49 +00:00
BUILD.gn Remove manual references to exe_and_shlib_deps 2018-06-04 18:35:43 +00:00
DEPS [inspector] introduce limit for amount of stored async stacks 2016-12-18 17:04:40 +00:00
inspector-test.cc [inspector] added V8InspectorClient::resourceNameToUrl 2018-08-09 21:36:24 +00:00
inspector.status [debug] retire ScriptWrapper 2018-07-05 21:33:03 +00:00
isolate-data.cc [inspector] added V8InspectorClient::resourceNameToUrl 2018-08-09 21:36:24 +00:00
isolate-data.h [inspector] added V8InspectorClient::resourceNameToUrl 2018-08-09 21:36:24 +00:00
json-parse-expected.txt [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
json-parse.js [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
OWNERS Add COMPONENT tags to OWNERS files where appropriate 2017-05-22 10:15:28 +00:00
PRESUBMIT.py [inspector] added blink try bots on inspector tests change 2018-06-18 21:38:59 +00:00
protocol-test.js [inspector] reworked async stack instrumentation for async functions 2018-05-30 16:01:59 +00:00
task-runner.cc Cleanup: Use std::atomic<T> instead of base::AtomicNumber<T> in TaskRunner. 2018-07-12 07:22:06 +00:00
task-runner.h Cleanup: Use std::atomic<T> instead of base::AtomicNumber<T> in TaskRunner. 2018-07-12 07:22:06 +00:00
testcfg.py [test] Remove context usage from test processors 2018-02-01 10:35:02 +00:00