[Webkit-unassigned] [Bug 226641] New: CountQueuingStrategy.constructor misses checking if the init.highWaterMark is exist or not
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Jun 4 05:26:34 PDT 2021
https://bugs.webkit.org/show_bug.cgi?id=226641
Bug ID: 226641
Summary: CountQueuingStrategy.constructor misses checking if
the init.highWaterMark is exist or not
Product: WebKit
Version: WebKit Local Build
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: WebKitGTK
Assignee: webkit-unassigned at lists.webkit.org
Reporter: zyscoder at gmail.com
CC: bugs-noreply at webkitgtk.org
Steps to reproduce:
(1) Open a tab and navigate to any URL;
(2) Run one of the following codes in the Console of Devtools:
```
new CountQueuingStrategy({highWaterMark:undefined}) / new CountQueuingStrategy({})
```
(3) Then this code would be evaluated successfully without throwing any exception.
Actual results:
This code is evaluated successfully without throwing any exception.
Expected results:
As the spec(https://streams.spec.whatwg.org/#dictdef-queuingstrategyinit) says, CountQueuingStrategy.constructor asks a double value as its init.highWaterMark param. Thus these codes should throw an exception.
In my test, both Chrome and Firefox throw exceptions:
Chrome: `VM1491:1 Uncaught TypeError: Failed to construct 'CountQueuingStrategy': required member highWaterMark is undefined.`
Firefox: `Uncaught TypeError: '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/20210604/223a7261/attachment.htm>
More information about the webkit-unassigned
mailing list