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

Issue 2536753003: Script blocking resources tracking should be only done by Document::isScriptExecutionReady (Closed)

Created:
4 years ago by kouhei (in TOK)
Modified:
4 years ago
CC:
blink-reviews, blink-reviews-html_chromium.org, chromium-reviews, dglazkov+blink, kinuko+watch, loading-reviews+parser_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Script blocking resources tracking should be only done by Document::isScriptExecutionReady Before this CL, we had a duplicated tracking flag HTMLScriptRunner::m_hasScriptsWaitingForResources. This CL removes the flag in HTMLScriptRunner and changes code so it checks Document::isScriptExecutionReady() state instead. This CL also removes a comment referring to HTMLDocumentParser::executeScriptsWaitingForResources being called when it hasScriptsWaitingForResources as it should never happen and replaces it with a DCHECK BUG=None Committed: https://crrev.com/74341a4386cbe0c0b94eba0535fbbbf8d1aff8ea Cr-Commit-Position: refs/heads/master@{#434935}

Patch Set 1 #

Patch Set 2 : fix #

Patch Set 3 : confirm lastchunkbeforescript #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+23 lines, -36 lines) Patch
M third_party/WebKit/Source/core/html/parser/HTMLDocumentParser.cpp View 1 2 3 chunks +12 lines, -9 lines 1 comment Download
M third_party/WebKit/Source/core/html/parser/HTMLScriptRunner.h View 3 chunks +1 line, -10 lines 0 comments Download
M third_party/WebKit/Source/core/html/parser/HTMLScriptRunner.cpp View 1 5 chunks +10 lines, -17 lines 0 comments Download

Messages

Total messages: 22 (14 generated)
kouhei (in TOK)
4 years ago (2016-11-29 01:10:35 UTC) #4
kouhei (in TOK)
working on test failures
4 years ago (2016-11-29 04:46:36 UTC) #9
kouhei (in TOK)
https://codereview.chromium.org/2536753003/diff/40001/third_party/WebKit/Source/core/html/parser/HTMLDocumentParser.cpp File third_party/WebKit/Source/core/html/parser/HTMLDocumentParser.cpp (left): https://codereview.chromium.org/2536753003/diff/40001/third_party/WebKit/Source/core/html/parser/HTMLDocumentParser.cpp#oldcode1107 third_party/WebKit/Source/core/html/parser/HTMLDocumentParser.cpp:1107: if (!m_scriptRunner->hasScriptsWaitingForResources()) Actually, this is a bug as it ...
4 years ago (2016-11-29 06:56:14 UTC) #10
dominicc (has gone to gerrit)
LGTM
4 years ago (2016-11-29 08:03:49 UTC) #13
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/2536753003/40001
4 years ago (2016-11-29 09:17:04 UTC) #17
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years ago (2016-11-29 09:22:22 UTC) #19
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/74341a4386cbe0c0b94eba0535fbbbf8d1aff8ea Cr-Commit-Position: refs/heads/master@{#434935}
4 years ago (2016-11-29 09:34:41 UTC) #21
battre
4 years ago (2016-11-29 11:41:35 UTC) #22
Message was sent while issue was closed.
A revert of this CL (patchset #3 id:40001) has been created in
https://codereview.chromium.org/2540653002/ by battre@chromium.org.

The reason for reverting is: Speculative revert for crbug.com/669435.

BUG=669435.

Powered by Google App Engine
This is Rietveld 408576698