Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: b13f9879ad3ca87db952d919932d0f31e52b38ea
https://github.com/WebKit/WebKit/commit/b13f9879ad3ca87db952d919932d0f31e52b38ea
Author: Ahmad Saleem <[email protected]>
Date: 2026-07-04 (Sat, 04 Jul 2026)
Changed paths:
A
LayoutTests/media/modern-media-controls/media-controller/media-controller-null-media-ranges-expected.txt
A
LayoutTests/media/modern-media-controls/media-controller/media-controller-null-media-ranges.html
M Source/WebCore/Modules/modern-media-controls/media/media-controller.js
Log Message:
-----------
NullMedia.buffered/played/seekable throw ReferenceError due to unqualified
EmptyRanges reference
https://bugs.webkit.org/show_bug.cgi?id=318284
rdar://problem/181072571
Reviewed by Jean-Yves Avenard.
The buffered, played, and seekable getters of MediaController.NullMedia
return a bare `EmptyRanges`, which is not in scope inside the object literal
-- the field is the static MediaController.EmptyRanges -- so accessing them
throws "ReferenceError: Can't find variable: EmptyRanges". Latent because
NullMedia is only returned once the media weak reference is collected.
* Source/WebCore/Modules/modern-media-controls/media/media-controller.js:
(MediaController.NullMedia.prototype.get buffered):
(MediaController.NullMedia.prototype.get played):
(MediaController.NullMedia.prototype.get seekable):
*
LayoutTests/media/modern-media-controls/media-controller/media-controller-null-media-ranges-expected.txt:
Added.
*
LayoutTests/media/modern-media-controls/media-controller/media-controller-null-media-ranges.html:
Added.
Canonical link: https://commits.webkit.org/316507@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications