imagebitmap: Remove ImageBitmap from experimental web platform features (#38050)

Enable by default the DOM "ImageBitmap" interface previously gated
behind
"dom.imagebitmap.enabled" preference as experimental web platform
feature.

https://html.spec.whatwg.org/multipage/imagebitmap-and-animations.html#imagebitmap

NOTE: Non blocking non supported functionality:
- vector HTMImageElement, bitmap/vector SVGImageElement
- EXIF image orientation

Testing: Covered by existing WPT tests

Fixes: #34112

Signed-off-by: Andrei Volykhin <andrei.volykhin@gmail.com>
This commit is contained in:
Andrei Volykhin 2025-07-14 13:20:02 +03:00 committed by GitHub
parent 54a02d5a34
commit bf0e3f84d0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 1 additions and 6 deletions

View file

@ -84,7 +84,6 @@ pub struct Preferences {
pub dom_fontface_enabled: bool,
pub dom_fullscreen_test: bool,
pub dom_gamepad_enabled: bool,
pub dom_imagebitmap_enabled: bool,
pub dom_indexeddb_enabled: bool,
pub dom_intersection_observer_enabled: bool,
pub dom_microdata_testing_enabled: bool,
@ -262,7 +261,6 @@ impl Preferences {
dom_fontface_enabled: false,
dom_fullscreen_test: false,
dom_gamepad_enabled: true,
dom_imagebitmap_enabled: false,
dom_indexeddb_enabled: false,
dom_intersection_observer_enabled: false,
dom_microdata_testing_enabled: false,

View file

@ -9,7 +9,7 @@
* You are granted a license to use, reproduce and create derivative works of this document.
*/
[Exposed=(Window,Worker), Serializable, Transferable, Pref="dom_imagebitmap_enabled"]
[Exposed=(Window,Worker), Serializable, Transferable]
interface ImageBitmap {
readonly attribute unsigned long width;
readonly attribute unsigned long height;

View file

@ -24,9 +24,7 @@ interface mixin WindowOrWorkerGlobalScope {
undefined queueMicrotask(VoidFunction callback);
// ImageBitmap
[Pref="dom_imagebitmap_enabled"]
Promise<ImageBitmap> createImageBitmap(ImageBitmapSource image, optional ImageBitmapOptions options = {});
[Pref="dom_imagebitmap_enabled"]
Promise<ImageBitmap> createImageBitmap(ImageBitmapSource image, long sx, long sy, long sw, long sh,
optional ImageBitmapOptions options = {});

View file

@ -589,7 +589,6 @@ pub(crate) fn parse_command_line_arguments(args: Vec<String>) -> ArgumentParsing
vec![
"dom_async_clipboard_enabled",
"dom_fontface_enabled",
"dom_imagebitmap_enabled",
"dom_intersection_observer_enabled",
"dom_mouse_event_which_enabled",
"dom_notification_enabled",