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

Issue 2438003002: Prevent FontResource load limit timers from restarting during loading (Closed)

Created:
4 years, 2 months ago by Takashi Toyoshima
Modified:
4 years, 2 months ago
Reviewers:
Shao-Chuan Lee
CC:
chromium-reviews, tyoshino+watch_chromium.org, blink-reviews-css, dglazkov+blink, apavlov+blink_chromium.org, gavinp+loader_chromium.org, darktears, blink-reviews, loading-reviews+fetch_chromium.org, Nate Chapin, rwlbuis
Target Ref:
refs/pending/branch-heads/2883
Project:
chromium
Visibility:
Public.

Description

Prevent FontResource load limit timers from restarting during loading FontResource::startLoadLimitTimersIfNeeded() was called from RemoteFontFaceSource::beginLoadIfNeeded() on each style recalc, and bypasses checks if called when FontResource is still loading and long limit timer has fired. This may cause RemoteFontFaceSource callbacks to be called more than once and in turn corrupt its internal state. Now we start timers only after actual load of FontResource is started. BUG=655076 Review-Url: https://codereview.chromium.org/2419753002 Cr-Commit-Position: refs/heads/master@{#425010} (cherry picked from commit 6b2d64014d739051f120dc38df46ac73a469270d) R=shaochuan@chromium.org TBR=toyoshim@chromium.org Committed: https://chromium.googlesource.com/chromium/src/+/ed25c977e0d9c92aa15824a3722a7627f99fb8d1

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+48 lines, -10 lines) Patch
A third_party/WebKit/LayoutTests/http/tests/webfont/crbug-655076.html View 1 chunk +32 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/webfont/crbug-655076-expected.txt View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/RemoteFontFaceSource.cpp View 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/fetch/FontResource.h View 2 chunks +7 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/fetch/FontResource.cpp View 2 chunks +6 lines, -7 lines 0 comments Download

Messages

Total messages: 6 (4 generated)
Shao-Chuan Lee
On 2016/10/20 04:50:07, toyoshim wrote: > mailto:toyoshim@chromium.org changed reviewers: > + mailto:shaochuan@chromium.org lgtm
4 years, 2 months ago (2016-10-20 04:52:27 UTC) #3
Takashi Toyoshima
4 years, 2 months ago (2016-10-20 04:58:57 UTC) #6
Message was sent while issue was closed.
Committed patchset #1 (id:1) manually as
ed25c977e0d9c92aa15824a3722a7627f99fb8d1 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698