DescriptionCheck 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 #
Depends on Patchset: Messages
Total messages: 24 (15 generated)
|