Bug
1731252 [wpt PR 30705] - Validate XRRigidTransform Constructor Arguments, a=testonly
Automatic update from web-platform-tests
Validate XRRigidTransform Constructor Arguments
Per the spec, XRRigidTransform's created with DOMPoint's which contain
non-finite (e.g. NaN/Infinity) should throw a type error and fail to
be created. While not doing so seems to work fine on production builds
(seeming to default to using identity for the component which had the
invalid portion), on DCHECK builds, these poorly constructed objects
start to hit DCHECKs when methods on the object are attempted to be
used.
This fixes the XRRigidTransform::Create method to appropriately throw
per the spec and thus should avoid the later DCHECKs. This change also
adds a WPT to validate this specced behavior.
Fixed:
1246156
Change-Id: I5d13784868056896f15b8c803ce4b6abb69f03fc
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/
3159085
Auto-Submit: Alexander Cooper <alcooper@chromium.org>
Reviewed-by: Piotr Bialecki <bialpio@chromium.org>
Commit-Queue: Alexander Cooper <alcooper@chromium.org>
Cr-Commit-Position: refs/heads/main@{#921244}
--
wpt-commits:
a02b7e83bf4033d2130f84519557d5ede62eae2e
wpt-pr: 30705