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

Issue 686763002: Fix Runtime.executionContextCreated for crafted iframes. (Closed)

Created:
6 years, 1 month ago by eustas
Modified:
6 years ago
Reviewers:
dcheng, aandrey, sergeyv, yurys
CC:
aandrey+blink_chromium.org, apavlov+blink_chromium.org, arv+blink, blink-reviews, caseq+blink_chromium.org, Inactive, devtools-reviews_chromium.org, eustas+blink_chromium.org, gavinp+loader_chromium.org, Nate Chapin, loislo+blink_chromium.org, lushnikov+blink_chromium.org, malch+blink_chromium.org, paulirish+reviews_chromium.org, pfeldman+blink_chromium.org, sergeyv+blink_chromium.org, tyoshino+watch_chromium.org, vsevik+blink_chromium.org, yurys+blink_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

Patch Set 1 #

Patch Set 2 : #

Total comments: 2

Patch Set 3 : #

Total comments: 10

Patch Set 4 : Do not force context initialization #

Total comments: 6

Patch Set 5 : #

Total comments: 2

Patch Set 6 : #

Patch Set 7 : Removed crutch #

Total comments: 1

Patch Set 8 : #

Total comments: 10

Patch Set 9 : #

Patch Set 10 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+74 lines, -61 lines) Patch
M LayoutTests/inspector-protocol/runtime/runtime-execution-contexts-events.html View 1 2 3 4 4 chunks +34 lines, -0 lines 0 comments Download
M LayoutTests/inspector-protocol/runtime/runtime-execution-contexts-events-expected.txt View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M Source/bindings/core/v8/WindowProxy.cpp View 1 2 3 4 5 6 7 8 2 chunks +5 lines, -2 lines 0 comments Download
M Source/core/frame/LocalDOMWindow.cpp View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -1 line 0 comments Download
M Source/core/frame/LocalFrame.cpp View 1 2 3 4 5 6 7 8 1 chunk +1 line, -3 lines 0 comments Download
M Source/core/inspector/InjectedScriptManager.h View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M Source/core/inspector/InjectedScriptManager.cpp View 1 2 3 4 5 6 7 8 1 chunk +5 lines, -21 lines 0 comments Download
M Source/core/inspector/InspectorInstrumentation.idl View 1 2 3 4 5 6 7 8 9 2 chunks +4 lines, -4 lines 0 comments Download
M Source/core/inspector/InspectorPageAgent.cpp View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -3 lines 0 comments Download
M Source/core/inspector/PageRuntimeAgent.h View 1 2 3 4 5 6 7 1 chunk +2 lines, -2 lines 0 comments Download
M Source/core/inspector/PageRuntimeAgent.cpp View 1 2 3 4 5 6 7 8 3 chunks +18 lines, -24 lines 0 comments Download

Messages

Total messages: 44 (10 generated)
eustas
6 years, 1 month ago (2014-10-28 14:07:13 UTC) #2
eustas
https://codereview.chromium.org/146693005
6 years, 1 month ago (2014-10-28 15:03:55 UTC) #3
eustas
PTAL
6 years, 1 month ago (2014-10-29 15:03:03 UTC) #4
aandrey
needs a test https://codereview.chromium.org/686763002/diff/20001/Source/core/inspector/PageRuntimeAgent.cpp File Source/core/inspector/PageRuntimeAgent.cpp (right): https://codereview.chromium.org/686763002/diff/20001/Source/core/inspector/PageRuntimeAgent.cpp#newcode108 Source/core/inspector/PageRuntimeAgent.cpp:108: if (!frame->script().initializeMainWorld()) { I don't think ...
6 years, 1 month ago (2014-10-29 15:18:50 UTC) #6
eustas
PTAL https://codereview.chromium.org/686763002/diff/20001/Source/core/inspector/PageRuntimeAgent.cpp File Source/core/inspector/PageRuntimeAgent.cpp (right): https://codereview.chromium.org/686763002/diff/20001/Source/core/inspector/PageRuntimeAgent.cpp#newcode108 Source/core/inspector/PageRuntimeAgent.cpp:108: if (!frame->script().initializeMainWorld()) { On 2014/10/29 15:18:50, aandrey wrote: ...
6 years, 1 month ago (2014-10-30 10:08:05 UTC) #7
yurys
https://codereview.chromium.org/686763002/diff/40001/Source/bindings/core/v8/WindowProxy.cpp File Source/bindings/core/v8/WindowProxy.cpp (right): https://codereview.chromium.org/686763002/diff/40001/Source/bindings/core/v8/WindowProxy.cpp#newcode229 Source/bindings/core/v8/WindowProxy.cpp:229: SecurityOrigin* origin = m_frame->document()->securityOrigin(); When is SecurityOrigin null? https://codereview.chromium.org/686763002/diff/40001/Source/core/inspector/PageRuntimeAgent.cpp ...
6 years, 1 month ago (2014-10-30 10:23:43 UTC) #8
aandrey
lgtm + test https://codereview.chromium.org/686763002/diff/40001/Source/core/inspector/PageRuntimeAgent.cpp File Source/core/inspector/PageRuntimeAgent.cpp (right): https://codereview.chromium.org/686763002/diff/40001/Source/core/inspector/PageRuntimeAgent.cpp#newcode114 Source/core/inspector/PageRuntimeAgent.cpp:114: // Force creation on main world ...
6 years, 1 month ago (2014-10-30 10:27:16 UTC) #9
eustas
https://codereview.chromium.org/686763002/diff/40001/Source/bindings/core/v8/WindowProxy.cpp File Source/bindings/core/v8/WindowProxy.cpp (right): https://codereview.chromium.org/686763002/diff/40001/Source/bindings/core/v8/WindowProxy.cpp#newcode229 Source/bindings/core/v8/WindowProxy.cpp:229: SecurityOrigin* origin = m_frame->document()->securityOrigin(); On 2014/10/30 10:23:43, yurys wrote: ...
6 years, 1 month ago (2014-10-31 06:59:54 UTC) #10
eustas
PTAL
6 years, 1 month ago (2014-10-31 07:01:14 UTC) #11
vsevik
https://codereview.chromium.org/686763002/diff/60001/Source/core/inspector/PageRuntimeAgent.cpp File Source/core/inspector/PageRuntimeAgent.cpp (right): https://codereview.chromium.org/686763002/diff/60001/Source/core/inspector/PageRuntimeAgent.cpp#newcode125 Source/core/inspector/PageRuntimeAgent.cpp:125: base::debug::StackTrace().Print(); remove
6 years, 1 month ago (2014-10-31 14:58:07 UTC) #12
yurys
Also please provide description of what this patch is doing. https://codereview.chromium.org/686763002/diff/60001/LayoutTests/http/tests/inspector/runtime/runtime-crafted-frame-execution-context.html File LayoutTests/http/tests/inspector/runtime/runtime-crafted-frame-execution-context.html (right): https://codereview.chromium.org/686763002/diff/60001/LayoutTests/http/tests/inspector/runtime/runtime-crafted-frame-execution-context.html#newcode21 ...
6 years, 1 month ago (2014-10-31 15:08:03 UTC) #13
eustas
PTAL https://codereview.chromium.org/686763002/diff/60001/LayoutTests/http/tests/inspector/runtime/runtime-crafted-frame-execution-context.html File LayoutTests/http/tests/inspector/runtime/runtime-crafted-frame-execution-context.html (right): https://codereview.chromium.org/686763002/diff/60001/LayoutTests/http/tests/inspector/runtime/runtime-crafted-frame-execution-context.html#newcode21 LayoutTests/http/tests/inspector/runtime/runtime-crafted-frame-execution-context.html:21: WebInspector.runtimeModel.addEventListener(WebInspector.RuntimeModel.Events.ExecutionContextCreated, onExecutionCintextCreated, {}); On 2014/10/31 15:08:03, yurys wrote: ...
6 years, 1 month ago (2014-11-03 20:14:16 UTC) #14
aandrey
https://codereview.chromium.org/686763002/diff/80001/Source/bindings/core/v8/WindowProxy.cpp File Source/bindings/core/v8/WindowProxy.cpp (right): https://codereview.chromium.org/686763002/diff/80001/Source/bindings/core/v8/WindowProxy.cpp#newcode231 Source/bindings/core/v8/WindowProxy.cpp:231: InspectorInstrumentation::didCreateMainWorldContext(m_frame, m_scriptState.get(), origin); ASSERT(origin);
6 years, 1 month ago (2014-11-04 11:21:08 UTC) #15
eustas
yurys@ ping https://codereview.chromium.org/686763002/diff/80001/Source/bindings/core/v8/WindowProxy.cpp File Source/bindings/core/v8/WindowProxy.cpp (right): https://codereview.chromium.org/686763002/diff/80001/Source/bindings/core/v8/WindowProxy.cpp#newcode231 Source/bindings/core/v8/WindowProxy.cpp:231: InspectorInstrumentation::didCreateMainWorldContext(m_frame, m_scriptState.get(), origin); On 2014/11/04 11:21:07, aandrey ...
6 years, 1 month ago (2014-11-05 21:28:34 UTC) #16
yurys
On 2014/11/03 20:14:16, eustas wrote: > https://codereview.chromium.org/686763002/diff/60001/Source/core/inspector/PageRuntimeAgent.cpp#newcode175 > Source/core/inspector/PageRuntimeAgent.cpp:175: > registerMainWorldContext(localFrame); > On 2014/10/31 15:08:03, ...
6 years, 1 month ago (2014-11-06 05:13:06 UTC) #17
eustas
> So you are telling that you examined some cases and didn't find any pages ...
6 years, 1 month ago (2014-11-06 21:11:52 UTC) #18
eustas
Ping
6 years, 1 month ago (2014-11-07 14:25:18 UTC) #19
yurys
lgtm
6 years, 1 month ago (2014-11-07 16:17:07 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/686763002/100001
6 years, 1 month ago (2014-11-07 16:54:27 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: win_blink_rel on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/win_blink_rel/builds/35370)
6 years, 1 month ago (2014-11-07 19:09:21 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/686763002/100001
6 years, 1 month ago (2014-11-07 19:56:40 UTC) #26
commit-bot: I haz the power
Try jobs failed on following builders: win_blink_rel on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/win_blink_rel/builds/35396)
6 years, 1 month ago (2014-11-07 21:43:53 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/686763002/100001
6 years, 1 month ago (2014-11-07 22:19:48 UTC) #30
commit-bot: I haz the power
Committed patchset #6 (id:100001) as 184995
6 years, 1 month ago (2014-11-08 00:10:07 UTC) #31
dcheng
A revert of this CL (patchset #6 id:100001) has been created in https://codereview.chromium.org/711853002/ by dcheng@chromium.org. ...
6 years, 1 month ago (2014-11-08 03:57:25 UTC) #32
dcheng
Here's a log of a failing test: [ RUN ] backends.chrome.inspector_runtime_unittest.InspectorRuntimeTest.testIFrame Traceback (most recent call ...
6 years, 1 month ago (2014-11-08 03:58:29 UTC) #34
eustas
PTAL
6 years, 1 month ago (2014-11-12 06:47:15 UTC) #35
yurys
https://codereview.chromium.org/686763002/diff/120001/Source/core/inspector/InspectorPageAgent.cpp File Source/core/inspector/InspectorPageAgent.cpp (left): https://codereview.chromium.org/686763002/diff/120001/Source/core/inspector/InspectorPageAgent.cpp#oldcode986 Source/core/inspector/InspectorPageAgent.cpp:986: m_injectedScriptManager->discardInjectedScripts(); Let's move it at some earlier point on ...
6 years, 1 month ago (2014-11-12 08:47:22 UTC) #36
yurys
https://codereview.chromium.org/686763002/diff/140001/Source/core/inspector/InjectedScriptManager.cpp File Source/core/inspector/InjectedScriptManager.cpp (right): https://codereview.chromium.org/686763002/diff/140001/Source/core/inspector/InjectedScriptManager.cpp#newcode129 Source/core/inspector/InjectedScriptManager.cpp:129: m_scriptStateToId.remove(scriptState); m_scriptStateToId.remove(it); https://codereview.chromium.org/686763002/diff/140001/Source/core/inspector/PageRuntimeAgent.cpp File Source/core/inspector/PageRuntimeAgent.cpp (right): https://codereview.chromium.org/686763002/diff/140001/Source/core/inspector/PageRuntimeAgent.cpp#newcode104 Source/core/inspector/PageRuntimeAgent.cpp:104: frame->script().initializeMainWorld(); ...
6 years, 1 month ago (2014-11-13 13:58:30 UTC) #37
aandrey
what's happening with this work?
6 years ago (2014-12-04 11:03:28 UTC) #39
dcheng
https://codereview.chromium.org/686763002/diff/140001/Source/bindings/core/v8/WindowProxy.cpp File Source/bindings/core/v8/WindowProxy.cpp (right): https://codereview.chromium.org/686763002/diff/140001/Source/bindings/core/v8/WindowProxy.cpp#newcode109 Source/bindings/core/v8/WindowProxy.cpp:109: InspectorInstrumentation::willReleaseScriptContext(m_frame, m_scriptState.get()); I'm changing WindowProxy to hold a Frame, ...
6 years ago (2014-12-04 18:58:56 UTC) #40
eustas
https://codereview.chromium.org/686763002/diff/140001/Source/bindings/core/v8/WindowProxy.cpp File Source/bindings/core/v8/WindowProxy.cpp (right): https://codereview.chromium.org/686763002/diff/140001/Source/bindings/core/v8/WindowProxy.cpp#newcode109 Source/bindings/core/v8/WindowProxy.cpp:109: InspectorInstrumentation::willReleaseScriptContext(m_frame, m_scriptState.get()); OK, but let's do it in separate ...
6 years ago (2014-12-05 10:01:37 UTC) #41
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/686763002/180001
6 years ago (2014-12-09 06:36:25 UTC) #43
commit-bot: I haz the power
6 years ago (2014-12-09 07:42:57 UTC) #44
Message was sent while issue was closed.
Committed patchset #10 (id:180001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=186762

Powered by Google App Engine
This is Rietveld 408576698