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

Issue 2640983005: Inline Document::allowExecutingScripts logic (Closed)

Created:
3 years, 11 months ago by kouhei (in TOK)
Modified:
3 years, 11 months ago
Reviewers:
haraken, hiroshige, Yuki
CC:
chromium-reviews, sof, eae+blinkwatch, blink-reviews-dom_chromium.org, dglazkov+blink, blink-reviews, rwlbuis
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Inline Document::allowExecutingScripts logic This CL removes and inlines Document::allowExecutingScripts predicate to ScriptLoader::prepareScript, where it was only called. BUG=None Review-Url: https://codereview.chromium.org/2640983005 Cr-Commit-Position: refs/heads/master@{#445023} Committed: https://chromium.googlesource.com/chromium/src/+/6432181413b6162f3e78704987fe0f7c61e7c185

Patch Set 1 #

Patch Set 2 : Streamer fix #

Total comments: 3

Patch Set 3 : yukishiino #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+24 lines, -22 lines) Patch
M third_party/WebKit/Source/core/dom/Document.h View 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/dom/Document.cpp View 1 chunk +0 lines, -14 lines 0 comments Download
M third_party/WebKit/Source/core/dom/ScriptLoader.cpp View 1 2 2 chunks +24 lines, -7 lines 2 comments Download

Messages

Total messages: 28 (16 generated)
kouhei (in TOK)
3 years, 11 months ago (2017-01-20 03:27:07 UTC) #4
kouhei (in TOK)
3 years, 11 months ago (2017-01-20 04:16:41 UTC) #6
haraken
LGTM
3 years, 11 months ago (2017-01-20 04:23:04 UTC) #7
Yuki
LGTM on my side, but I'd feel this is a bit out of my area. ...
3 years, 11 months ago (2017-01-20 06:15:17 UTC) #12
kouhei (in TOK)
https://codereview.chromium.org/2640983005/diff/20001/third_party/WebKit/Source/core/dom/ScriptLoader.cpp File third_party/WebKit/Source/core/dom/ScriptLoader.cpp (right): https://codereview.chromium.org/2640983005/diff/20001/third_party/WebKit/Source/core/dom/ScriptLoader.cpp#newcode252 third_party/WebKit/Source/core/dom/ScriptLoader.cpp:252: LocalFrame* elementFrame = elementDocument.frame(); On 2017/01/20 06:15:17, Yuki wrote: ...
3 years, 11 months ago (2017-01-20 06:19:04 UTC) #13
Yuki
https://codereview.chromium.org/2640983005/diff/20001/third_party/WebKit/Source/core/dom/ScriptLoader.cpp File third_party/WebKit/Source/core/dom/ScriptLoader.cpp (right): https://codereview.chromium.org/2640983005/diff/20001/third_party/WebKit/Source/core/dom/ScriptLoader.cpp#newcode252 third_party/WebKit/Source/core/dom/ScriptLoader.cpp:252: LocalFrame* elementFrame = elementDocument.frame(); On 2017/01/20 06:19:03, kouhei wrote: ...
3 years, 11 months ago (2017-01-20 06:24:36 UTC) #14
kouhei (in TOK)
On 2017/01/20 06:24:36, Yuki wrote: > https://codereview.chromium.org/2640983005/diff/20001/third_party/WebKit/Source/core/dom/ScriptLoader.cpp > File third_party/WebKit/Source/core/dom/ScriptLoader.cpp (right): > > https://codereview.chromium.org/2640983005/diff/20001/third_party/WebKit/Source/core/dom/ScriptLoader.cpp#newcode252 > ...
3 years, 11 months ago (2017-01-20 07:20:28 UTC) #15
Yuki
LGTM. https://codereview.chromium.org/2640983005/diff/40001/third_party/WebKit/Source/core/dom/ScriptLoader.cpp File third_party/WebKit/Source/core/dom/ScriptLoader.cpp (right): https://codereview.chromium.org/2640983005/diff/40001/third_party/WebKit/Source/core/dom/ScriptLoader.cpp#newcode313 third_party/WebKit/Source/core/dom/ScriptLoader.cpp:313: if (elementFrame) { nit: I thought you can ...
3 years, 11 months ago (2017-01-20 07:23:51 UTC) #18
kouhei (in TOK)
https://codereview.chromium.org/2640983005/diff/40001/third_party/WebKit/Source/core/dom/ScriptLoader.cpp File third_party/WebKit/Source/core/dom/ScriptLoader.cpp (right): https://codereview.chromium.org/2640983005/diff/40001/third_party/WebKit/Source/core/dom/ScriptLoader.cpp#newcode313 third_party/WebKit/Source/core/dom/ScriptLoader.cpp:313: if (elementFrame) { On 2017/01/20 07:23:51, Yuki wrote: > ...
3 years, 11 months ago (2017-01-20 09:09:03 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2640983005/40001
3 years, 11 months ago (2017-01-20 09:09:12 UTC) #24
commit-bot: I haz the power
Committed patchset #3 (id:40001) as https://chromium.googlesource.com/chromium/src/+/6432181413b6162f3e78704987fe0f7c61e7c185
3 years, 11 months ago (2017-01-20 09:13:26 UTC) #27
haraken
3 years, 11 months ago (2017-01-20 11:19:37 UTC) #28
Message was sent while issue was closed.
A revert of this CL (patchset #3 id:40001) has been created in
https://codereview.chromium.org/2648753002/ by haraken@chromium.org.

The reason for reverting is: This caused memory leaks in Linux Leak Detector:

https://build.chromium.org/p/chromium.webkit/builders/WebKit%20Linux%20Trusty...
.

Powered by Google App Engine
This is Rietveld 408576698