[Webkit-unassigned] [Bug 226759] New: CountQueuingStrategy.constructor misses checking the type of init param

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Jun 7 23:27:42 PDT 2021


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

            Bug ID: 226759
           Summary: CountQueuingStrategy.constructor misses checking the
                    type of init param
           Product: WebKit
           Version: WebKit Local Build
          Hardware: Unspecified
                OS: Linux
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebKit Misc.
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: zyscoder at gmail.com

Steps to reproduce:

(1) Open a tab and navigate to any URL;
(2) Run the following code in the Console of Devtools:
```
new CountQueuingStrategy('any');
```
(3) Then this code would be evaluated successfully without throwing any exceptions.

Actual results:

Then this code would be evaluated successfully without throwing any exceptions.

Expected results:

As https://streams.spec.whatwg.org/#cqs-constructor says, the init param is of {highWaterMark: double} type. Webkit should throw a TypeError exception when evaluating this code.

In my test, Chrome and Firefox throw exceptions:
Chrome: `TypeError: Failed to construct 'CountQueuingStrategy': cannot convert to dictionary`
Firefox: `'highWaterMark' must not be undefined.`

-- 
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/20210608/91012383/attachment.htm>


More information about the webkit-unassigned mailing list