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

Issue 1858613002: bindings: Makes the window object be the inner global object. (Closed)

Created:
4 years, 8 months ago by Yuki
Modified:
3 years, 11 months ago
CC:
blink-reviews, blink-reviews-bindings_chromium.org, chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

bindings: Makes the window object be the inner global object. Removes the hidden prototypes from the window and worker/worklet objects. Makes these global objects be the inner global object. BUG=587393 Committed: https://crrev.com/7aff51476ff48588879709275a3c363c6114e085 Cr-Commit-Position: refs/heads/master@{#388170}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : #

Total comments: 11

Patch Set 7 : Addressed a review comment. #

Total comments: 2

Patch Set 8 : Added a TODO comment. #

Patch Set 9 : Synced. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+180 lines, -173 lines) Patch
M third_party/WebKit/LayoutTests/imported/web-platform-tests/html/browsers/the-window-object/window-indexed-properties-expected.txt View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/V8PerIsolateData.h View 1 2 3 4 5 6 7 3 chunks +30 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/V8PerIsolateData.cpp View 1 2 3 4 5 2 chunks +46 lines, -42 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/WindowProxy.h View 1 2 3 1 chunk +8 lines, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/WindowProxy.cpp View 1 2 3 4 4 chunks +50 lines, -65 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/WorkerOrWorkletScriptController.cpp View 1 2 3 4 5 6 2 chunks +19 lines, -18 lines 1 comment Download
M third_party/WebKit/Source/bindings/core/v8/custom/V8WindowCustom.cpp View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -29 lines 0 comments Download
M third_party/WebKit/Source/bindings/scripts/v8_interface.py View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/templates/interface.h View 1 2 3 4 5 1 chunk +0 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/bindings/templates/interface_base.cpp View 1 2 3 4 5 2 chunks +25 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/bindings/tests/results/core/V8TestIntegerIndexedGlobal.cpp View 1 2 3 4 5 1 chunk +0 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/bindings/tests/results/core/V8TestIntegerIndexedPrimaryGlobal.cpp View 1 2 3 4 5 1 chunk +0 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/bindings/tests/results/core/V8TestInterfaceCheckSecurity.cpp View 1 2 3 4 5 1 chunk +0 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/frame/DOMWindow.cpp View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 20 (8 generated)
Yuki
Could you review this CL?
4 years, 8 months ago (2016-04-18 07:32:31 UTC) #3
haraken
Mostly looks good. +jochen FYI. https://codereview.chromium.org/1858613002/diff/100001/third_party/WebKit/Source/bindings/core/v8/V8PerIsolateData.cpp File third_party/WebKit/Source/bindings/core/v8/V8PerIsolateData.cpp (right): https://codereview.chromium.org/1858613002/diff/100001/third_party/WebKit/Source/bindings/core/v8/V8PerIsolateData.cpp#newcode70 third_party/WebKit/Source/bindings/core/v8/V8PerIsolateData.cpp:70: isolate()->SetUseCounterCallback(&useCounterCallback); Instead of introducing ...
4 years, 8 months ago (2016-04-18 08:04:15 UTC) #5
Yuki
Will address other comments. https://codereview.chromium.org/1858613002/diff/100001/third_party/WebKit/Source/bindings/core/v8/V8PerIsolateData.cpp File third_party/WebKit/Source/bindings/core/v8/V8PerIsolateData.cpp (right): https://codereview.chromium.org/1858613002/diff/100001/third_party/WebKit/Source/bindings/core/v8/V8PerIsolateData.cpp#newcode70 third_party/WebKit/Source/bindings/core/v8/V8PerIsolateData.cpp:70: isolate()->SetUseCounterCallback(&useCounterCallback); On 2016/04/18 08:04:15, haraken ...
4 years, 8 months ago (2016-04-18 08:27:07 UTC) #6
Yuki
https://codereview.chromium.org/1858613002/diff/100001/third_party/WebKit/Source/bindings/core/v8/WorkerOrWorkletScriptController.cpp File third_party/WebKit/Source/bindings/core/v8/WorkerOrWorkletScriptController.cpp (right): https://codereview.chromium.org/1858613002/diff/100001/third_party/WebKit/Source/bindings/core/v8/WorkerOrWorkletScriptController.cpp#newcode163 third_party/WebKit/Source/bindings/core/v8/WorkerOrWorkletScriptController.cpp:163: v8::Local<v8::ObjectTemplate> globalTemplate = wrapperTypeInfo->domTemplate(m_isolate, *m_world)->InstanceTemplate(); On 2016/04/18 08:04:15, haraken ...
4 years, 8 months ago (2016-04-18 09:17:43 UTC) #7
haraken
https://codereview.chromium.org/1858613002/diff/100001/third_party/WebKit/Source/bindings/core/v8/WorkerOrWorkletScriptController.cpp File third_party/WebKit/Source/bindings/core/v8/WorkerOrWorkletScriptController.cpp (right): https://codereview.chromium.org/1858613002/diff/100001/third_party/WebKit/Source/bindings/core/v8/WorkerOrWorkletScriptController.cpp#newcode184 third_party/WebKit/Source/bindings/core/v8/WorkerOrWorkletScriptController.cpp:184: // The global proxy object. Note this is not ...
4 years, 8 months ago (2016-04-18 09:26:40 UTC) #8
jochen (gone - plz use gerrit)
+verwaest fyi
4 years, 8 months ago (2016-04-18 09:31:56 UTC) #10
Yuki
https://codereview.chromium.org/1858613002/diff/120001/third_party/WebKit/Source/bindings/core/v8/V8PerIsolateData.cpp File third_party/WebKit/Source/bindings/core/v8/V8PerIsolateData.cpp (right): https://codereview.chromium.org/1858613002/diff/120001/third_party/WebKit/Source/bindings/core/v8/V8PerIsolateData.cpp#newcode99 third_party/WebKit/Source/bindings/core/v8/V8PerIsolateData.cpp:99: if (V8PerIsolateData::from(isolate)->m_useCounterDisabled) On 2016/04/18 09:26:40, haraken wrote: > > ...
4 years, 8 months ago (2016-04-18 09:39:30 UTC) #11
haraken
LGTM to move things forward, but let's add a TODO to remove the UseCounterDisabledScope. On ...
4 years, 8 months ago (2016-04-18 09:48:04 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1858613002/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1858613002/160001
4 years, 8 months ago (2016-04-19 09:05:16 UTC) #15
commit-bot: I haz the power
Committed patchset #9 (id:160001)
4 years, 8 months ago (2016-04-19 09:18:07 UTC) #17
commit-bot: I haz the power
Patchset 9 (id:??) landed as https://crrev.com/7aff51476ff48588879709275a3c363c6114e085 Cr-Commit-Position: refs/heads/master@{#388170}
4 years, 8 months ago (2016-04-19 09:19:46 UTC) #19
jochen (gone - plz use gerrit)
3 years, 11 months ago (2017-01-04 14:24:27 UTC) #20
Message was sent while issue was closed.
https://codereview.chromium.org/1858613002/diff/160001/third_party/WebKit/Sou...
File
third_party/WebKit/Source/bindings/core/v8/WorkerOrWorkletScriptController.cpp
(right):

https://codereview.chromium.org/1858613002/diff/160001/third_party/WebKit/Sou...
third_party/WebKit/Source/bindings/core/v8/WorkerOrWorkletScriptController.cpp:191:
globalObject = V8DOMWrapper::associateObjectWithWrapper(m_isolate,
scriptWrappable, wrapperTypeInfo, globalObject);
this exposes the global object (instead of the global proxy) to script, e.g.,
when you look at event.target for push events.. while this isn't a security
issue on workers (as there's only one context anyways), this shouldn't happen

Powered by Google App Engine
This is Rietveld 408576698