| Index: third_party/WebKit/Source/core/loader/ProgressTracker.cpp
|
| diff --git a/third_party/WebKit/Source/core/loader/ProgressTracker.cpp b/third_party/WebKit/Source/core/loader/ProgressTracker.cpp
|
| index bcaa6a1e24a367f15b73837f6edf2e7346d181b7..d8bc2e10958a9397c50e42b84695061144a57c1f 100644
|
| --- a/third_party/WebKit/Source/core/loader/ProgressTracker.cpp
|
| +++ b/third_party/WebKit/Source/core/loader/ProgressTracker.cpp
|
| @@ -142,14 +142,14 @@ void ProgressTracker::sendFinalProgress()
|
| m_frame->loader().client()->progressEstimateChanged(m_progressValue);
|
| }
|
|
|
| -void ProgressTracker::willStartLoading(unsigned long identifier)
|
| +void ProgressTracker::willStartLoading(unsigned long identifier, ResourceLoadPriority priority)
|
| {
|
| if (!m_frame->isLoading())
|
| return;
|
| // All of the progress bar completion policies besides LoadEvent instead block on parsing
|
| // completion, which corresponds to finishing parsing. For those policies, don't consider
|
| // resource load that start after DOMContentLoaded finishes.
|
| - if (m_frame->settings()->progressBarCompletion() != ProgressBarCompletion::LoadEvent && m_finishedParsing)
|
| + if (m_frame->settings()->progressBarCompletion() != ProgressBarCompletion::LoadEvent && (m_finishedParsing || priority < ResourceLoadPriorityHigh))
|
| return;
|
| DCHECK(!m_progressItems.get(identifier));
|
| m_progressItems.set(identifier, wrapUnique(new ProgressItem(progressItemDefaultEstimatedLength)));
|
|
|