DescriptionFixing a crash in MediaCustomControlsFullscreenDetector when the page is destroyed
There's a situation that hits a DCHECK() in
MediaCustomControlsFullscreenDetector when the video become
fullscreen but the page navigates away before the timer fires.
This CL solves the issue by stopping the timer when the
ExecutionContext is destroyed.
This CL also moves the common parts of MockWebMediaPlayer into
EmptyWebMediaPlayer. There are still some other
MockWebMediaPlayers which will be adopted in a follow-up.
BUG=698034
Review-Url: https://codereview.chromium.org/2729613007
Cr-Commit-Position: refs/heads/master@{#455740}
Committed: https://chromium.googlesource.com/chromium/src/+/fe180eb4effd53064142647a839b89d3910dfff0
Patch Set 1 #Patch Set 2 : remove MediaControlsLeakTest #Patch Set 3 : . #
Total comments: 8
Patch Set 4 : addressed mlamouri's comments #Patch Set 5 : rebased #Patch Set 6 : rebased #
Total comments: 1
Messages
Total messages: 31 (21 generated)
|