ASSIGNED 191751
Prevent recursion while creating media controls
https://bugs.webkit.org/show_bug.cgi?id=191751
Summary Prevent recursion while creating media controls
Eric Carlson
Reported 2018-11-16 09:23:15 PST
Modern Media Controls calls getComputedStyle from its constructor, which can fire events and allow scripts to call back into the media element.
Attachments
Patch (12.31 KB, patch)
2018-11-16 12:07 PST, Eric Carlson
no flags
Archive of layout-test-results from ews102 for mac-sierra (2.53 MB, application/zip)
2018-11-16 13:25 PST, EWS Watchlist
no flags
Archive of layout-test-results from ews104 for mac-sierra-wk2 (3.21 MB, application/zip)
2018-11-16 13:37 PST, EWS Watchlist
no flags
Archive of layout-test-results from ews116 for mac-sierra (2.62 MB, application/zip)
2018-11-16 13:59 PST, EWS Watchlist
no flags
Archive of layout-test-results from ews123 for ios-simulator-wk2 (15.69 MB, application/zip)
2018-11-16 14:44 PST, EWS Watchlist
no flags
Archive of layout-test-results from ews203 for win-future (12.79 MB, application/zip)
2018-11-16 15:06 PST, EWS Watchlist
no flags
Patch (17.80 KB, patch)
2018-11-27 09:32 PST, Eric Carlson
dino: review+
ews-watchlist: commit-queue-
Archive of layout-test-results from ews123 for ios-simulator-wk2 (2.40 MB, application/zip)
2018-11-27 11:40 PST, EWS Watchlist
no flags
Eric Carlson
Comment 1 2018-11-16 12:07:10 PST
EWS Watchlist
Comment 2 2018-11-16 13:25:53 PST
Comment on attachment 355094 [details] Patch Attachment 355094 [details] did not pass mac-ews (mac): Output: https://webkit-queues.webkit.org/results/10022206 New failing tests: media/modern-media-controls/css/transformed-media.html fast/canvas/webgl/texImage2D-video-flipY-true.html media/video-load-preload-none.html security/contentSecurityPolicy/blocks-video.html fast/canvas/webgl/texImage2D-video-flipY-false.html media/video-restricted-no-preload-metadata.html media/media-blocked-by-beforeload.html
EWS Watchlist
Comment 3 2018-11-16 13:25:55 PST
Created attachment 355108 [details] Archive of layout-test-results from ews102 for mac-sierra The attached test failures were seen while running run-webkit-tests on the mac-ews. Bot: ews102 Port: mac-sierra Platform: Mac OS X 10.12.6
EWS Watchlist
Comment 4 2018-11-16 13:37:45 PST
Comment on attachment 355094 [details] Patch Attachment 355094 [details] did not pass mac-wk2-ews (mac-wk2): Output: https://webkit-queues.webkit.org/results/10022213 New failing tests: media/modern-media-controls/css/transformed-media.html fast/canvas/webgl/texImage2D-video-flipY-true.html media/video-load-preload-none.html security/contentSecurityPolicy/blocks-video.html fast/canvas/webgl/texImage2D-video-flipY-false.html media/video-restricted-no-preload-metadata.html media/media-blocked-by-beforeload.html
EWS Watchlist
Comment 5 2018-11-16 13:37:46 PST
Created attachment 355110 [details] Archive of layout-test-results from ews104 for mac-sierra-wk2 The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews. Bot: ews104 Port: mac-sierra-wk2 Platform: Mac OS X 10.12.6
EWS Watchlist
Comment 6 2018-11-16 13:59:17 PST
Comment on attachment 355094 [details] Patch Attachment 355094 [details] did not pass mac-debug-ews (mac): Output: https://webkit-queues.webkit.org/results/10022159 New failing tests: fast/canvas/webgl/texImage2D-video-flipY-true.html media/video-load-preload-none.html security/contentSecurityPolicy/blocks-video.html fast/canvas/webgl/texImage2D-video-flipY-false.html media/video-restricted-no-preload-metadata.html media/media-blocked-by-beforeload.html
EWS Watchlist
Comment 7 2018-11-16 13:59:18 PST
Created attachment 355113 [details] Archive of layout-test-results from ews116 for mac-sierra The attached test failures were seen while running run-webkit-tests on the mac-debug-ews. Bot: ews116 Port: mac-sierra Platform: Mac OS X 10.12.6
EWS Watchlist
Comment 8 2018-11-16 14:43:59 PST
Comment on attachment 355094 [details] Patch Attachment 355094 [details] did not pass ios-sim-ews (ios-simulator-wk2): Output: https://webkit-queues.webkit.org/results/10022534 New failing tests: media/modern-media-controls/media-controller/media-controller-resize.html media/modern-media-controls/css/transformed-media.html media/video-load-preload-none.html media/controls-without-preload.html security/contentSecurityPolicy/blocks-video.html media/video-restricted-no-preload-metadata.html media/media-blocked-by-beforeload.html
EWS Watchlist
Comment 9 2018-11-16 14:44:01 PST
Created attachment 355129 [details] Archive of layout-test-results from ews123 for ios-simulator-wk2 The attached test failures were seen while running run-webkit-tests on the ios-sim-ews. Bot: ews123 Port: ios-simulator-wk2 Platform: Mac OS X 10.13.6
EWS Watchlist
Comment 10 2018-11-16 15:06:01 PST
Comment on attachment 355094 [details] Patch Attachment 355094 [details] did not pass win-ews (win): Output: https://webkit-queues.webkit.org/results/10023503 New failing tests: security/contentSecurityPolicy/blocks-video.html
EWS Watchlist
Comment 11 2018-11-16 15:06:12 PST
Created attachment 355137 [details] Archive of layout-test-results from ews203 for win-future The attached test failures were seen while running run-webkit-tests on the win-ews. Bot: ews203 Port: win-future Platform: CYGWIN_NT-6.1-2.9.0-0.318-5-3-x86_64-64bit
Eric Carlson
Comment 12 2018-11-27 09:30:22 PST
Eric Carlson
Comment 13 2018-11-27 09:32:27 PST
Dean Jackson
Comment 14 2018-11-27 10:25:11 PST
Comment on attachment 355742 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=355742&action=review > Source/WebCore/Modules/modern-media-controls/media/media-controller.js:121 > + window.requestAnimationFrame(() => this._updateControlsSize()); You don't need the "window." part. > Source/WebCore/Modules/modern-media-controls/media/media-controller.js:202 > + window.requestAnimationFrame(() => this._updateControlsSize()); or here. > Source/WebCore/Modules/modern-media-controls/media/media-controller.js:230 > + window.requestAnimationFrame(() => this._updateControlsSize()); or here.
EWS Watchlist
Comment 15 2018-11-27 11:40:52 PST
Comment on attachment 355742 [details] Patch Attachment 355742 [details] did not pass ios-sim-ews (ios-simulator-wk2): Output: https://webkit-queues.webkit.org/results/10168935 New failing tests: media/modern-media-controls/css/transformed-media.html media/modern-media-controls/media-controller/media-controller-resize.html
EWS Watchlist
Comment 16 2018-11-27 11:40:54 PST
Created attachment 355751 [details] Archive of layout-test-results from ews123 for ios-simulator-wk2 The attached test failures were seen while running run-webkit-tests on the ios-sim-ews. Bot: ews123 Port: ios-simulator-wk2 Platform: Mac OS X 10.13.6
Ahmad Saleem
Comment 17 2023-10-12 17:43:12 PDT
Just checked one function change and it seems this never landed in any shape or form. Is this still relevant?
Note You need to log in before you can comment on or make changes to this bug.