| Summary: | Youtube video pages crash after a couple of minutes | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Ryosuke Niwa <rniwa> | ||||||||||
| Component: | Media | Assignee: | Ryosuke Niwa <rniwa> | ||||||||||
| Status: | RESOLVED FIXED | ||||||||||||
| Severity: | Normal | CC: | cdumez, commit-queue, eric.carlson, ews-watchlist, jeremyj-wk, jer.noble, jonlee, koivisto, wenson_hsieh | ||||||||||
| Priority: | P2 | Keywords: | InRadar | ||||||||||
| Version: | WebKit Nightly Build | ||||||||||||
| Hardware: | Unspecified | ||||||||||||
| OS: | Unspecified | ||||||||||||
| Bug Depends on: | 187368 | ||||||||||||
| Bug Blocks: | |||||||||||||
| Attachments: |
|
||||||||||||
|
Description
Ryosuke Niwa
2018-07-04 00:50:31 PDT
Created attachment 344266 [details]
Fixes the crash
Created attachment 344267 [details]
Fixes the crash
Attachment 344267 [details] did not pass style-queue:
ERROR: Source/WebCore/testing/Internals.h:707: 'bestMediaElementForShowingPlaybackControlsManager' is incorrectly named. It should be named 'protector' or 'protectedPlaybackControlsPurpose'. [readability/naming/protected] [4]
Total errors found: 1 in 11 files
If any of these errors are false positives, please file a bug against check-webkit-style.
Comment on attachment 344267 [details] Fixes the crash Attachment 344267 [details] did not pass win-ews (win): Output: https://webkit-queues.webkit.org/results/8436025 New failing tests: http/tests/security/contentSecurityPolicy/video-with-https-url-allowed-by-csp-media-src-star.html http/tests/preload/onload_event.html Created attachment 344284 [details]
Archive of layout-test-results from ews206 for win-future
The attached test failures were seen while running run-webkit-tests on the win-ews.
Bot: ews206 Port: win-future Platform: CYGWIN_NT-6.1-2.9.0-0.318-5-3-x86_64-64bit
Comment on attachment 344267 [details] Fixes the crash View in context: https://bugs.webkit.org/attachment.cgi?id=344267&action=review > Source/WebCore/html/HTMLMediaElement.cpp:7891 > +void HTMLMediaElement::scheduleUpdatePlaybackControlsManager() schedulePlaybackControlsManagerUpdate would read better (and not be randomly different from the Page version). Comment on attachment 344267 [details] Fixes the crash View in context: https://bugs.webkit.org/attachment.cgi?id=344267&action=review > Source/WebCore/page/Page.h:856 > + Timer m_playbackControlsManagerUpdateTimer; Nit: If you use a std::unique_ptr<DeferrableOneShotTimer>, the timer can be allocated lazily and you can use a lambda instead of adding a method for the fire proc (see PlatformMediaSessionManager::scheduleUpdateSessionState for an example). (In reply to Eric Carlson from comment #7) > Comment on attachment 344267 [details] > Fixes the crash > > View in context: > https://bugs.webkit.org/attachment.cgi?id=344267&action=review > > > Source/WebCore/page/Page.h:856 > > + Timer m_playbackControlsManagerUpdateTimer; > > Nit: If you use a std::unique_ptr<DeferrableOneShotTimer>, the timer can be > allocated lazily and you can use a lambda instead of adding a method for the > fire proc (see PlatformMediaSessionManager::scheduleUpdateSessionState for > an example). That's a good idea. Will do that. Committed r233539: <https://trac.webkit.org/changeset/233539> Re-opened since this is blocked by bug 187368 Created attachment 344382 [details]
Patch for landing
Comment on attachment 344382 [details]
Patch for landing
Wait for EWS
Attachment 344382 [details] did not pass style-queue:
ERROR: Source/WebCore/testing/Internals.h:707: 'bestMediaElementForShowingPlaybackControlsManager' is incorrectly named. It should be named 'protector' or 'protectedPlaybackControlsPurpose'. [readability/naming/protected] [4]
Total errors found: 1 in 11 files
If any of these errors are false positives, please file a bug against check-webkit-style.
Comment on attachment 344382 [details]
Patch for landing
Actually, it's odd to use DeferrableOneShotTimer here since we never defer this timer. We can just use std::optional<Timer> instead. There is negligible cost to creating a timer per page anyway so I'd just go with the original patch.
Committed r233560: <https://trac.webkit.org/changeset/233560> |