Commit a0846419 authored by Nate Chapin's avatar Nate Chapin Committed by Commit Bot

Speculative fix for crbug.com/1102668

We appear to crash in HTMLTrackElement::CanLoadUrl if GetExecutionContext()
returns nullptr, so early-exit in that case.

Bug: 1102668
Change-Id: I43f0008eefe5d12b63d69c42d0fd341fe0e2f2eb
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2284390
Commit-Queue: Kentaro Hara <haraken@chromium.org>
Auto-Submit: Nate Chapin <japhet@chromium.org>
Reviewed-by: default avatarKentaro Hara <haraken@chromium.org>
Cr-Commit-Position: refs/heads/master@{#786091}
parent 71895971
...@@ -220,7 +220,7 @@ void HTMLTrackElement::LoadTimerFired(TimerBase*) { ...@@ -220,7 +220,7 @@ void HTMLTrackElement::LoadTimerFired(TimerBase*) {
bool HTMLTrackElement::CanLoadUrl(const KURL& url) { bool HTMLTrackElement::CanLoadUrl(const KURL& url) {
HTMLMediaElement* parent = MediaElement(); HTMLMediaElement* parent = MediaElement();
if (!parent) if (!parent || !GetExecutionContext())
return false; return false;
if (url.IsEmpty()) if (url.IsEmpty())
......
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