[wpt-sync] Sync PR 34755 - Preserve EXIF image orientation when serializing ImageBitmap
Categories
(Core :: DOM: Core & HTML, task, P4)
Tracking
()
Tracking | Status | |
---|---|---|
firefox104 | --- | fixed |
People
(Reporter: mozilla.org, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 34755 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/34755
Details from upstream follow.
Justin Novosad <junov@chromium.org> wrote:
Preserve EXIF image orientation when serializing ImageBitmap
This change fixes the serialization of ImageBitmap objects to ensure
that image orientation is preserved so that the deserialized object
behaves identically to the original. Before this change,
structuredClone() and postMessage() were accidentally discarding the
image orientation information.A new WPT test was added that ensures the preservation of image
orientation through a wide range of code paths that replicate
ImageBitmap objects: structured clone, postMessage, transfer via
postMessage, copy constructor.Bug: 1332947
Change-Id: Ifeca2a46f3a10483ee57787160a07f58c4d2bf37
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3751650
Reviewed-by: Jeremy Roman \<jbroman@chromium.org>
Commit-Queue: Justin Novosad \<junov@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1024406}
Assignee | ||
Updated•2 years ago
|
Assignee | ||
Comment 1•2 years ago
|
||
Assignee | ||
Comment 2•2 years ago
|
||
CI Results
Ran 9 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI
Total 1 tests and 8 subtests
Status Summary
Firefox
OK
: 1
PASS
: 8
Chrome
OK
: 1
PASS
: 6
FAIL
: 2
Safari
OK
: 1
PASS
: 2
FAIL
: 6
Links
Comment 4•2 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/f5deddac8b79
https://hg.mozilla.org/mozilla-central/rev/2dfdb2a3a0fd
Description
•