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

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

Created:
4 years, 2 months ago by Shao-Chuan Lee
Modified:
4 years, 2 months ago
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, Takashi Toyoshima
Target Ref:
refs/pending/heads/master
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 Committed: https://crrev.com/6b2d64014d739051f120dc38df46ac73a469270d Cr-Commit-Position: refs/heads/master@{#425010}

Patch Set 1 #

Total comments: 10

Patch Set 2 : styles #

Patch Set 3 : #4 #

Patch Set 4 : new LoadLimitState, text-only test #

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 2 3 1 chunk +32 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/webfont/crbug-655076-expected.txt View 1 2 3 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 1 2 3 2 chunks +7 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/fetch/FontResource.cpp View 1 2 3 2 chunks +6 lines, -7 lines 0 comments Download

Messages

Total messages: 19 (9 generated)
Shao-Chuan Lee
PTAL. Is it OK to have regression LayoutTests like this?
4 years, 2 months ago (2016-10-13 05:10:39 UTC) #3
Kunihiko Sakamoto
https://codereview.chromium.org/2419753002/diff/1/third_party/WebKit/LayoutTests/http/tests/webfont/crbug-655076.html File third_party/WebKit/LayoutTests/http/tests/webfont/crbug-655076.html (right): https://codereview.chromium.org/2419753002/diff/1/third_party/WebKit/LayoutTests/http/tests/webfont/crbug-655076.html#newcode12 third_party/WebKit/LayoutTests/http/tests/webfont/crbug-655076.html:12: }, 5000); 5000ms is the same as slow-ahem-loading.cgi delay ...
4 years, 2 months ago (2016-10-13 05:55:20 UTC) #4
Shao-Chuan Lee
https://codereview.chromium.org/2419753002/diff/1/third_party/WebKit/LayoutTests/http/tests/webfont/crbug-655076.html File third_party/WebKit/LayoutTests/http/tests/webfont/crbug-655076.html (right): https://codereview.chromium.org/2419753002/diff/1/third_party/WebKit/LayoutTests/http/tests/webfont/crbug-655076.html#newcode12 third_party/WebKit/LayoutTests/http/tests/webfont/crbug-655076.html:12: }, 5000); On 2016/10/13 05:55:19, Kunihiko Sakamoto wrote: > ...
4 years, 2 months ago (2016-10-13 06:12:58 UTC) #5
Kunihiko Sakamoto
https://codereview.chromium.org/2419753002/diff/1/third_party/WebKit/LayoutTests/http/tests/webfont/crbug-655076.html File third_party/WebKit/LayoutTests/http/tests/webfont/crbug-655076.html (right): https://codereview.chromium.org/2419753002/diff/1/third_party/WebKit/LayoutTests/http/tests/webfont/crbug-655076.html#newcode12 third_party/WebKit/LayoutTests/http/tests/webfont/crbug-655076.html:12: }, 5000); On 2016/10/13 06:12:58, Shao-Chuan Lee wrote: > ...
4 years, 2 months ago (2016-10-13 06:36:19 UTC) #6
Shao-Chuan Lee
https://codereview.chromium.org/2419753002/diff/1/third_party/WebKit/LayoutTests/http/tests/webfont/crbug-655076.html File third_party/WebKit/LayoutTests/http/tests/webfont/crbug-655076.html (right): https://codereview.chromium.org/2419753002/diff/1/third_party/WebKit/LayoutTests/http/tests/webfont/crbug-655076.html#newcode12 third_party/WebKit/LayoutTests/http/tests/webfont/crbug-655076.html:12: }, 5000); On 2016/10/13 06:36:18, Kunihiko Sakamoto wrote: > ...
4 years, 2 months ago (2016-10-13 07:14:06 UTC) #7
Kunihiko Sakamoto
lgtm, thanks.
4 years, 2 months ago (2016-10-13 07:21:55 UTC) #8
kouhei (in TOK)
lgtm
4 years, 2 months ago (2016-10-13 11:41:59 UTC) #13
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/2419753002/60001
4 years, 2 months ago (2016-10-13 12:58:11 UTC) #15
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 2 months ago (2016-10-13 13:03:51 UTC) #17
commit-bot: I haz the power
4 years, 2 months ago (2016-10-13 13:05:31 UTC) #19
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/6b2d64014d739051f120dc38df46ac73a469270d
Cr-Commit-Position: refs/heads/master@{#425010}

Powered by Google App Engine
This is Rietveld 408576698