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

Issue 2539113003: Clear PendingScript::m_streamer when it is cancelled (Closed)

Created:
4 years ago by hiroshige
Modified:
4 years ago
CC:
blink-reviews, blink-reviews-dom_chromium.org, chromium-reviews, dglazkov+blink, eae+blinkwatch, rwlbuis, sof
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Clear PendingScript::m_streamer when it is cancelled ScriptStreamer::notifyAppendData() should not called when ScriptStreamer is cancelled. However, PendingScript::onMemoryStateChange() (introduced by https://codereview.chromium.org/2268153002) cancels ScriptStreamer but leaves |m_streamer| non-null, potentially causing following calls to notifyAppendData(). This CL clears |m_streamer| there, and also replaces DCHECKs with CHECKs about resource pointers in ScriptStreamer methods with CHECKs to confirm in the wild ScriptStreamer is not cancelled and the correct |m_resource| value is held when the methods are called. BUG=668611 Committed: https://crrev.com/36a975bd72d1baaad0fe6dafc63496d7fdba0ba8 Cr-Commit-Position: refs/heads/master@{#435822}

Patch Set 1 #

Patch Set 2 : CHECK #

Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -2 lines) Patch
M third_party/WebKit/Source/bindings/core/v8/ScriptStreamer.cpp View 1 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/dom/PendingScript.cpp View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 25 (15 generated)
hiroshige
PTAL.
4 years ago (2016-12-01 09:01:16 UTC) #7
marja
lgtm Is it possible to add a test (as a follow up CL) demonstrating what ...
4 years ago (2016-12-01 09:03:19 UTC) #8
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/2539113003/20001
4 years ago (2016-12-01 09:41:39 UTC) #12
hiroshige
On 2016/12/01 09:03:19, marja wrote: > lgtm > > Is it possible to add a ...
4 years ago (2016-12-01 09:45:02 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/316252)
4 years ago (2016-12-01 09:47:58 UTC) #15
dominicc (has gone to gerrit)
lgtm
4 years ago (2016-12-02 02:00:59 UTC) #18
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/2539113003/20001
4 years ago (2016-12-02 02:01:33 UTC) #19
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years ago (2016-12-02 02:06:58 UTC) #22
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/36a975bd72d1baaad0fe6dafc63496d7fdba0ba8 Cr-Commit-Position: refs/heads/master@{#435822}
4 years ago (2016-12-02 02:12:49 UTC) #24
hiroshige
4 years ago (2016-12-06 05:40:35 UTC) #25
Message was sent while issue was closed.
On 2016/12/01 09:03:19, marja wrote:
> lgtm
> 
> Is it possible to add a test (as a follow up CL) demonstrating what the
problem
> was and that it's now fixed?

Filed crbug.com/671502 for the testing issue.

Powered by Google App Engine
This is Rietveld 408576698