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

Issue 1644483002: Let notifyScriptLoadError() handle already detached ScriptLoaders. (Closed)

Created:
4 years, 11 months ago by sof
Modified:
4 years, 11 months ago
Reviewers:
haraken
CC:
chromium-reviews, eae+blinkwatch, blink-reviews-dom_chromium.org, dglazkov+blink, blink-reviews, rwlbuis
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Let notifyScriptLoadError() handle already detached ScriptLoaders. If a ScriptRunner has been disposed of already, allow ScriptLoaders to notify of their failure without asserting. R=haraken BUG=570012 Committed: https://crrev.com/e7bf58190483dffac8e78506884170720165b198 Cr-Commit-Position: refs/heads/master@{#371772}

Patch Set 1 #

Total comments: 5

Patch Set 2 : add !ENABLE(OILPAN)s #

Patch Set 3 : add explanatory comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+15 lines, -2 lines) Patch
M third_party/WebKit/Source/core/dom/ScriptLoader.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/dom/ScriptRunner.cpp View 1 2 1 chunk +12 lines, -2 lines 0 comments Download

Messages

Total messages: 16 (7 generated)
sof
please take a look. ps#1 verifies build sanity; will add suitable #if !ENABLE(OILPAN)s once done.
4 years, 11 months ago (2016-01-27 08:37:01 UTC) #2
haraken
https://codereview.chromium.org/1644483002/diff/1/third_party/WebKit/Source/core/dom/ScriptRunner.cpp File third_party/WebKit/Source/core/dom/ScriptRunner.cpp (right): https://codereview.chromium.org/1644483002/diff/1/third_party/WebKit/Source/core/dom/ScriptRunner.cpp#newcode208 third_party/WebKit/Source/core/dom/ScriptRunner.cpp:208: foundLoader = foundLoader || (scriptLoader->isDetached() && m_pendingAsyncScripts.isEmpty()); I understand ...
4 years, 11 months ago (2016-01-27 08:46:46 UTC) #3
sof
https://codereview.chromium.org/1644483002/diff/1/third_party/WebKit/Source/core/dom/ScriptRunner.cpp File third_party/WebKit/Source/core/dom/ScriptRunner.cpp (right): https://codereview.chromium.org/1644483002/diff/1/third_party/WebKit/Source/core/dom/ScriptRunner.cpp#newcode208 third_party/WebKit/Source/core/dom/ScriptRunner.cpp:208: foundLoader = foundLoader || (scriptLoader->isDetached() && m_pendingAsyncScripts.isEmpty()); On 2016/01/27 ...
4 years, 11 months ago (2016-01-27 09:10:12 UTC) #4
haraken
LGTM https://codereview.chromium.org/1644483002/diff/1/third_party/WebKit/Source/core/dom/ScriptRunner.cpp File third_party/WebKit/Source/core/dom/ScriptRunner.cpp (right): https://codereview.chromium.org/1644483002/diff/1/third_party/WebKit/Source/core/dom/ScriptRunner.cpp#newcode208 third_party/WebKit/Source/core/dom/ScriptRunner.cpp:208: foundLoader = foundLoader || (scriptLoader->isDetached() && m_pendingAsyncScripts.isEmpty()); On ...
4 years, 11 months ago (2016-01-27 09:13:07 UTC) #5
sof
On 2016/01/27 09:13:07, haraken wrote: > LGTM > > https://codereview.chromium.org/1644483002/diff/1/third_party/WebKit/Source/core/dom/ScriptRunner.cpp > File third_party/WebKit/Source/core/dom/ScriptRunner.cpp (right): > ...
4 years, 11 months ago (2016-01-27 09:24:19 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1644483002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1644483002/40001
4 years, 11 months ago (2016-01-27 09:26:09 UTC) #10
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 11 months ago (2016-01-27 11:00:07 UTC) #12
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/e7bf58190483dffac8e78506884170720165b198 Cr-Commit-Position: refs/heads/master@{#371772}
4 years, 11 months ago (2016-01-27 11:01:08 UTC) #14
sof
4 years, 10 months ago (2016-01-28 09:44:32 UTC) #16
Message was sent while issue was closed.
A revert of this CL (patchset #3 id:40001) has been created in
https://codereview.chromium.org/1640263004/ by sigbjornf@opera.com.

The reason for reverting is: The change here assumes PendingScripts are
separately allocated objects, an M50 change. This makes for more difficult
backporting. Unnecessarily so.

Hence reverting and will reland a variation (
https://codereview.chromium.org/1642863002/ ) that works for older branches..

Powered by Google App Engine
This is Rietveld 408576698