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

Issue 2706303002: Check whether ScriptResource is still loading due to revalidation (Closed)

Created:
3 years, 10 months ago by hiroshige
Modified:
3 years, 9 months ago
CC:
chromium-reviews, tyoshino+watch_chromium.org, sof, eae+blinkwatch, blink-reviews-dom_chromium.org, dglazkov+blink, gavinp+loader_chromium.org, blink-reviews, loading-reviews+fetch_chromium.org, kinuko+watch, Nate Chapin, loading-reviews_chromium.org, rwlbuis
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Check whether ScriptResource is still loading due to revalidation ScriptResource is assumed to be already loaded when it is used by ScriptResource::script() and PendingScript. However, there might slight chances that isLoaded() is false due to revalidation, possibly causing Issue 692856. In order to check whether and how often revalidation can cause isLoaded() to be false in existing DCHECK()s, this CL replaces DCHECK(isLoaded()) with three CHECK()s, each of which fails when: 1. isLoaded() is false not because of revalidation, 2. isLoaded() is false because revalidation is ongoing and response is already received, and 3. isLoaded() is false because revalidation is ongoing and response is not yet received. BUG=692856 Review-Url: https://codereview.chromium.org/2706303002 Cr-Commit-Position: refs/heads/master@{#453057} Committed: https://chromium.googlesource.com/chromium/src/+/6dc58b5746363ddbb99addb4c06c69a385212b7d

Patch Set 1 #

Patch Set 2 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+24 lines, -5 lines) Patch
M third_party/WebKit/Source/core/dom/PendingScript.cpp View 1 1 chunk +9 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/loader/resource/ScriptResource.cpp View 1 chunk +5 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/loader/fetch/Resource.h View 2 chunks +9 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/loader/fetch/Resource.cpp View 1 chunk +1 line, -0 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 24 (15 generated)
hiroshige
PTAL.
3 years, 10 months ago (2017-02-21 20:53:02 UTC) #5
kouhei (in TOK)
lgtm
3 years, 10 months ago (2017-02-21 21:16:15 UTC) #6
hiroshige
Nate, could you also take a look as a platform/loader OWNER?
3 years, 10 months ago (2017-02-21 23:33:28 UTC) #9
Nate Chapin
lgtm
3 years, 9 months ago (2017-02-24 23:53:20 UTC) #10
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/2706303002/1
3 years, 9 months ago (2017-02-25 00:02:11 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: ios-device on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds/160198) ios-device-xcode-clang on master.tryserver.chromium.mac (JOB_FAILED, ...
3 years, 9 months ago (2017-02-25 00:05:25 UTC) #14
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/2706303002/20001
3 years, 9 months ago (2017-02-25 03:14:14 UTC) #20
commit-bot: I haz the power
Committed patchset #2 (id:20001) as https://chromium.googlesource.com/chromium/src/+/6dc58b5746363ddbb99addb4c06c69a385212b7d
3 years, 9 months ago (2017-02-25 03:27:24 UTC) #23
hiroshige
3 years, 9 months ago (2017-02-27 03:18:26 UTC) #24
Message was sent while issue was closed.
A revert of this CL (patchset #2 id:20001) has been created in
https://codereview.chromium.org/2714403002/ by hiroshige@chromium.org.

The reason for reverting is: Sufficient data are collected and thus finishing
the
investigation.

BUG=696305
.

Powered by Google App Engine
This is Rietveld 408576698