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

Issue 2729613007: Fixing a crash in MediaCustomControlsFullscreenDetector when the page is destroyed (Closed)

Created:
3 years, 9 months ago by Zhiqiang Zhang (Slow)
Modified:
3 years, 9 months ago
CC:
blink-reviews, blink-reviews-html_chromium.org, chromium-reviews, dglazkov+blink, eric.carlson_apple.com, feature-media-reviews_chromium.org, fs, gasubic, kinuko+watch, mlamouri+watch-blink_chromium.org, nessy, Srirama
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fixing 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)
Zhiqiang Zhang (Slow)
Initial patch. PTAL. There are still a couple of MockWebMediaPlayers that haven't adopted to using ...
3 years, 9 months ago (2017-03-03 20:08:31 UTC) #3
mlamouri (slow - plz ping)
lgtm -- thanks! :) https://codereview.chromium.org/2729613007/diff/40001/third_party/WebKit/Source/core/html/HTMLMediaElementEventListenersTest.cpp File third_party/WebKit/Source/core/html/HTMLMediaElementEventListenersTest.cpp (right): https://codereview.chromium.org/2729613007/diff/40001/third_party/WebKit/Source/core/html/HTMLMediaElementEventListenersTest.cpp#newcode25 third_party/WebKit/Source/core/html/HTMLMediaElementEventListenersTest.cpp:25: class MockWebMediaPlayer : public EmptyWebMediaPlayer ...
3 years, 9 months ago (2017-03-07 17:50:16 UTC) #8
Zhiqiang Zhang (Slow)
+foolip: PTAL https://codereview.chromium.org/2729613007/diff/40001/third_party/WebKit/Source/core/html/HTMLMediaElementEventListenersTest.cpp File third_party/WebKit/Source/core/html/HTMLMediaElementEventListenersTest.cpp (right): https://codereview.chromium.org/2729613007/diff/40001/third_party/WebKit/Source/core/html/HTMLMediaElementEventListenersTest.cpp#newcode25 third_party/WebKit/Source/core/html/HTMLMediaElementEventListenersTest.cpp:25: class MockWebMediaPlayer : public EmptyWebMediaPlayer { On ...
3 years, 9 months ago (2017-03-07 18:29:02 UTC) #13
Zhiqiang Zhang (Slow)
+jochen for EMEA third_party/WebKit review
3 years, 9 months ago (2017-03-09 10:43:55 UTC) #17
jochen (gone - plz use gerrit)
lgtm
3 years, 9 months ago (2017-03-09 11:29:34 UTC) #18
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/2729613007/60001
3 years, 9 months ago (2017-03-09 12:16:57 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: ios-device-xcode-clang on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device-xcode-clang/builds/52878) ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, ...
3 years, 9 months ago (2017-03-09 12:20:02 UTC) #23
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/2729613007/100001
3 years, 9 months ago (2017-03-09 12:40:09 UTC) #26
commit-bot: I haz the power
Committed patchset #6 (id:100001) as https://chromium.googlesource.com/chromium/src/+/fe180eb4effd53064142647a839b89d3910dfff0
3 years, 9 months ago (2017-03-09 14:13:00 UTC) #29
qyearsley
3 years, 9 months ago (2017-03-09 19:01:30 UTC) #31
Message was sent while issue was closed.
https://codereview.chromium.org/2729613007/diff/100001/third_party/WebKit/Sou...
File third_party/WebKit/Source/core/html/HTMLMediaElementEventListenersTest.cpp
(right):

https://codereview.chromium.org/2729613007/diff/100001/third_party/WebKit/Sou...
third_party/WebKit/Source/core/html/HTMLMediaElementEventListenersTest.cpp:171:
EXPECT_EQ(1u, observedResults.size());
It looks like this test is flaky:

https://test-results.appspot.com/dashboards/flakiness_dashboard.html#testType...

Example output:

../../third_party/WebKit/Source/core/html/HTMLMediaElementEventListenersTest.cpp:171:
Failure
Value of: observedResults.size()
  Actual: 0
Expected: 1u
Which is: 1

https://luci-logdog.appspot.com/v/?s=chromium%2Fbb%2Fchromium.webkit%2FWebKit...

So observedResults might sometimes be empty and sometimes not, so it looks like
the lambda expression on line 160 is sometimes not invoked in time? Do you know
how this could be made un-flaky?

Powered by Google App Engine
This is Rietveld 408576698