Image is rotated differently in Chrome and Firefox
Categories
(Core :: Layout: Images, Video, and HTML Frames, defect)
Tracking
()
People
(Reporter: twisniewski, Assigned: dlrobertson)
References
(Regression, )
Details
(Keywords: regression)
Attachments
(2 files)
In the attached test-case, the JPEG image has a particular combination of crossorigin=anonymous
, transform:rotate(90deg)
, and image-orientation:none
. Something about this combination seems to cause Chrome to rotate it -90 degrees again despite the transform, while Firefox does not do so.
Dropping the crossorigin
attribute causes Chrome to not rotate the image -90 degrees again, but I'm not well versed in whether or how these attributes are supposed to interplay, so I thought a second opinion would be good here.
Reporter | ||
Updated•1 year ago
|
Comment 1•1 year ago
|
||
The severity field is not set for this bug.
:emilio, could you have a look please?
For more information, please visit auto_nag documentation.
Assignee | ||
Updated•1 year ago
|
Assignee | ||
Updated•1 year ago
|
Assignee | ||
Updated•1 year ago
|
Assignee | ||
Comment 2•1 year ago
|
||
The fix for this should be easy. To match the behavior of blink and webkit we need to use imgIRequest::GetCORSMode to get the request's cors mode and add logic to this check to ensure we do not take that branch that ignores image-orientation: none
in the case that imgIRequest::GetCORSMode returned CORS_ANONYMOUS
.
That being said, it is unclear to me currently if this is the expected or correct behavior. Based on the discussion in w3c/csswg-drafts#5165, I'd think we'd want to ignore image-orientation: none
regardless of crossorigin="anonymous"
.
Comment 3•1 year ago
|
||
Set release status flags based on info from the regressing bug 1655598
Updated•1 year ago
|
Assignee | ||
Comment 4•1 year ago
|
||
The image-orientation: none property should apply to images with
crossorigin="anonymous".
Comment 5•1 year ago
|
||
Set release status flags based on info from the regressing bug 1655598
Updated•1 year ago
|
Pushed by drobertson@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/aa0c6e706e6f image-orientation: none should apply to CORS image requests. r=emilio
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/39513 for changes under testing/web-platform/tests
Comment 8•1 year ago
|
||
bugherder |
Upstream PR merged by moz-wptsync-bot
Comment 10•1 year ago
|
||
The patch landed in nightly and beta is affected.
:dlrobertson, is this bug important enough to require an uplift?
- If yes, please nominate the patch for beta approval.
- If no, please set
status-firefox113
towontfix
.
For more information, please visit auto_nag documentation.
Assignee | ||
Comment 11•1 year ago
|
||
IMO not important enough for a uplift.
Updated•1 year ago
|
Comment 12•1 year ago
|
||
Reproducible on a 2023-04-10 Nightly build on Windows 10.
Verified as fixed on Firefox 114.0b2(build ID: 20230509180058) and Nightly 115.0a1(build ID: 20230509215006) on Windows 10, macOS 12, Ubuntu 22.
Description
•