DescriptionPrevent 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 #
Messages
Total messages: 19 (9 generated)
|