Commit 76d3ed22 authored by Nate Chapin's avatar Nate Chapin Committed by Commit Bot

Early-exit from RemoteFontFaceSource::BeginLoadIfNeeded if the ExecutionContext is detached

Bug: 1084831
Change-Id: Ia145d711cc71fdfc698e560ad67e1723390025c6
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2210005Reviewed-by: default avatarKentaro Hara <haraken@chromium.org>
Commit-Queue: Nate Chapin <japhet@chromium.org>
Cr-Commit-Position: refs/heads/master@{#770849}
parent e299eb6c
...@@ -359,7 +359,7 @@ RemoteFontFaceSource::CreateLoadingFallbackFontData( ...@@ -359,7 +359,7 @@ RemoteFontFaceSource::CreateLoadingFallbackFontData(
} }
void RemoteFontFaceSource::BeginLoadIfNeeded() { void RemoteFontFaceSource::BeginLoadIfNeeded() {
if (IsLoaded()) if (IsLoaded() || !font_selector_->GetExecutionContext())
return; return;
DCHECK(GetResource()); DCHECK(GetResource());
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment