RESOLVED FIXED 169962
[Modern Media Controls] Controls size lags behind media size
https://bugs.webkit.org/show_bug.cgi?id=169962
Summary [Modern Media Controls] Controls size lags behind media size
Antoine Quint
Reported 2017-03-22 10:53:05 PDT
Created attachment 305109 [details] Testcase When resizing a video element, it's very visible that the controls size lags behind the media size. The attached test case makes it very clear. The issue is that we fire the "resize" event on the shadow root on a timer to notify the JS code, and on top of that we use a requestAnimationFrame() call to update the DOM.
Attachments
Testcase (248 bytes, text/html)
2017-03-22 10:53 PDT, Antoine Quint
no flags
Patch (11.58 KB, patch)
2017-03-22 10:59 PDT, Antoine Quint
no flags
Archive of layout-test-results from ews122 for ios-simulator-wk2 (706.51 KB, application/zip)
2017-03-22 12:48 PDT, Build Bot
no flags
Patch for landing (15.00 KB, patch)
2017-03-22 15:10 PDT, Antoine Quint
no flags
Antoine Quint
Comment 1 2017-03-22 10:53:23 PDT
Antoine Quint
Comment 2 2017-03-22 10:59:09 PDT
Dean Jackson
Comment 3 2017-03-22 11:08:41 PDT
Comment on attachment 305110 [details] Patch Assuming smfr said this is the right place, r=me
Simon Fraser (smfr)
Comment 4 2017-03-22 11:13:43 PDT
Comment on attachment 305110 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=305110&action=review > Source/WebCore/html/HTMLMediaElement.cpp:-4054 > - m_resizeTaskQueue.enqueueTask(WTFMove(task)); You don't use m_resizeTaskQueue any more, so should remove it.
Build Bot
Comment 5 2017-03-22 12:48:44 PDT
Comment on attachment 305110 [details] Patch Attachment 305110 [details] did not pass ios-sim-ews (ios-simulator-wk2): Output: http://webkit-queues.webkit.org/results/3388738 New failing tests: media/modern-media-controls/media-controller/media-controller-scale-factor-audio.html
Build Bot
Comment 6 2017-03-22 12:48:46 PDT
Created attachment 305115 [details] Archive of layout-test-results from ews122 for ios-simulator-wk2 The attached test failures were seen while running run-webkit-tests on the ios-sim-ews. Bot: ews122 Port: ios-simulator-wk2 Platform: Mac OS X 10.11.6
Antoine Quint
Comment 7 2017-03-22 15:10:55 PDT
Created attachment 305130 [details] Patch for landing
WebKit Commit Bot
Comment 8 2017-03-22 15:52:02 PDT
Comment on attachment 305130 [details] Patch for landing Clearing flags on attachment: 305130 Committed r214282: <http://trac.webkit.org/changeset/214282>
WebKit Commit Bot
Comment 9 2017-03-22 15:52:07 PDT
All reviewed patches have been landed. Closing bug.
Ryan Haddad
Comment 10 2017-03-23 13:49:58 PDT
(In reply to WebKit Commit Bot from comment #8) > Comment on attachment 305130 [details] > Patch for landing > > Clearing flags on attachment: 305130 > > Committed r214282: <http://trac.webkit.org/changeset/214282> This change appears to have caused LayoutTest media/restore-from-page-cache.html to consistently crash on Sierra Debug WK1: https://build.webkit.org/results/Apple%20Sierra%20Debug%20WK1%20(Tests)/r214308%20(125)/results.html
Note You need to log in before you can comment on or make changes to this bug.