[Webkit-unassigned] [Bug 251463] New: Error on piped ReadableStream leads to Unhandled Promise Rejection
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Jan 31 15:22:42 PST 2023
https://bugs.webkit.org/show_bug.cgi?id=251463
Bug ID: 251463
Summary: Error on piped ReadableStream leads to Unhandled
Promise Rejection
Product: WebKit
Version: Safari 16
Hardware: All
OS: All
Status: NEW
Severity: Normal
Priority: P2
Component: JavaScriptCore
Assignee: webkit-unassigned at lists.webkit.org
Reporter: hazae41 at proton.me
Hey, the following code leads to an Unhandled Promise Rejection on some websites:
```
new ReadableStream({ start: c => c.error("error") }).pipeTo(new WritableStream()).catch(() => {})
```
It also happens when calling controller.error after the pipe:
```
new ReadableStream({ start: c => window.c = c }).pipeTo(new WritableStream()).catch(() => {})
c.error("error")
```
Just run it in Safari console on latest macOS (Ventura 13.2) and latest iOS (16.0)
Websites where it happens:
- example.com
- bugs.webkit.org
- github.com
- facebook.com
- amazon.com
- blankwebsite.com
Websites where it doesn't happen:
- google.com
--
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/20230131/a9ce7148/attachment.htm>
More information about the webkit-unassigned
mailing list