Closed Bug 1779671 Opened 2 years ago Closed 2 years ago

[wpt-sync] Sync PR 34755 - Preserve EXIF image orientation when serializing ImageBitmap

Categories

(Core :: DOM: Core & HTML, task, P4)

task

Tracking

()

RESOLVED FIXED
104 Branch
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}

Component: web-platform-tests → DOM: Core & HTML
Product: Testing → Core

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

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/f5deddac8b79 [wpt PR 34755] - Preserve EXIF image orientation when serializing ImageBitmap, a=testonly https://hg.mozilla.org/integration/autoland/rev/2dfdb2a3a0fd [wpt PR 34755] - Update wpt metadata, a=testonly
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 104 Branch
You need to log in before you can comment on or make changes to this bug.