WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
226641
CountQueuingStrategy.constructor misses checking if the init.highWaterMark is exist or not
https://bugs.webkit.org/show_bug.cgi?id=226641
Summary
CountQueuingStrategy.constructor misses checking if the init.highWaterMark is...
zyscoder@gmail.com
Reported
2021-06-04 05:26:34 PDT
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`
Attachments
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2021-06-11 05:27:19 PDT
<
rdar://problem/79193758
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug