[Webkit-unassigned] [Bug 220872] New: [WPT] [Payment Request] slight adjustment to payment-request/payment-request-constructor-thcrash.https.html

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Jan 22 11:17:12 PST 2021


https://bugs.webkit.org/show_bug.cgi?id=220872

            Bug ID: 220872
           Summary: [WPT] [Payment Request] slight adjustment to
                    payment-request/payment-request-constructor-thcrash.ht
                    tps.html
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Tools / Tests
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: drousso at apple.com

I'm pretty sure the first test in payment-request/payment-request-constructor-thcrash.https.html is incorrect because duplicate items in `methodData` provided to `PaymentRequest` should throw a `RangeError` according to step 4.3.3 of <https://www.w3.org/TR/payment-request/#constructor>.

The spec does mention in <https://www.w3.org/TR/payment-request/#conformance>
> User agents _MAY_ impose implementation-specific limits on otherwise unconstrained inputs, e.g., to prevent denial of service attacks, to guard against running out of memory, or to work around platform-specific limitations. When an input exceeds implementation-specific limit, the user agent _MUST_ throw, or, in the context of a promise, reject with, a `TypeError` optionally informing the developer of how a particular input exceeded an implementation-specific limit.
but does not specify whether this should happen before or after the above.

In WebKit's case, there is no "implementation-specific limit", so WebKit shouldn't throw a `TypeError` regardless.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20210122/45ab4b3f/attachment-0001.htm>


More information about the webkit-unassigned mailing list