WebKitCSSMatrix inverse() should throw NotSupportedError

RESOLVED FIXED in Firefox 46

Status

()

RESOLVED FIXED
3 years ago
3 years ago

People

(Reporter: miketaylr, Assigned: wchen)

Tracking

unspecified
mozilla47
Points:
---

Firefox Tracking Flags

(firefox46 fixed, firefox47 fixed)

Details

(URL)

Attachments

(1 attachment)

(Reporter)

Description

3 years ago
DOMMatrixReadyOnly.invertSelf() says to return a pile of NaNs, but WebKitCSSMatrix should actually throw a NotSupportedError DOMException to be compatible with Blink and WebKit.

I've updated the spec to match their behavior in https://github.com/whatwg/compat/commit/b649853f2c35cd9def15fbef6c35eac2a6e43aa9.
(Reporter)

Comment 1

3 years ago
Note: we don't know if this is actually needed for webcompat -- but it matches the behavior of Safari, Chrome and Edge (and is required to pass WebKit layout tests).
(Assignee)

Comment 2

3 years ago
Created attachment 8711250 [details] [diff] [review]
Inverting non-invertable WebKitCSSMatrix should throw NotSupportedError.
Assignee: nobody → wchen
Attachment #8711250 - Flags: review?(amarchesini)
Attachment #8711250 - Flags: review?(amarchesini) → review+

Comment 4

3 years ago
bugherder
https://hg.mozilla.org/mozilla-central/rev/efbb834ec2fd
Status: NEW → RESOLVED
Last Resolved: 3 years ago
status-firefox47: --- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla47
(Reporter)

Comment 6

3 years ago
Comment on attachment 8711250 [details] [diff] [review]
Inverting non-invertable WebKitCSSMatrix should throw NotSupportedError.

Approval Request Comment
[Feature/regressing bug #]:

Bug 717722 for WebKitCSSMatrix support.

[User impact if declined]:

Unknown. It makes us less compatible with Chrome, Safari and Edge in theory. In practice we don't know if sites are broken as a result -- but it would be ideal to ship WebKitCSSMatrix and its related bug fixes in the same release (even if it won't ship past Aurora for the time being).

[Describe test coverage new/current, TreeHerder]:
Tests in patch.

[Risks and why]: 
For web content, there's low risk. No web content is depending on the previous (spec-bug) behavior. Web content may be depending on the behavior this fix provides.


[String/UUID change made/needed]:
None (UUID changes are not for webidl, right?)
Attachment #8711250 - Flags: approval-mozilla-aurora?
Comment on attachment 8711250 [details] [diff] [review]
Inverting non-invertable WebKitCSSMatrix should throw NotSupportedError.

Improves web compat, includes tests. SGTM! Please uplift to aurora.
Attachment #8711250 - Flags: approval-mozilla-aurora? → approval-mozilla-aurora+

Comment 8

3 years ago
bugherderuplift
https://hg.mozilla.org/releases/mozilla-aurora/rev/9007341ca1c6
status-firefox46: --- → fixed
You need to log in before you can comment on or make changes to this bug.