[Webkit-unassigned] [Bug 205685] New: XMLHTTPRequest POSTs blob data to a custom WKURLSchemeHandler protocol crash
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Jan 2 01:18:59 PST 2020
https://bugs.webkit.org/show_bug.cgi?id=205685
Bug ID: 205685
Summary: XMLHTTPRequest POSTs blob data to a custom
WKURLSchemeHandler protocol crash
Product: WebKit
Version: Other
Hardware: iPhone / iPad
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: WebKit2
Assignee: webkit-unassigned at lists.webkit.org
Reporter: ak4868 at 163.com
problem: XMLHTTPRequest POSTs blob data to a custom WKURLSchemeHandler protocol will make wkwebview UIProcess crash,The cause of the crash is that the blobRegistry was not initialized
Steps:
1、 Setup custom Scheme
TestWKURLSchemeHandler *handler = [[TestWKURLSchemeHandler alloc] init];
[configuration setURLSchemeHandler:handler forURLScheme:@"test"];
2、launch the iOS Simultaor
3、load with url: test://aaa/blobdemo.html
```
<!DOCTYPE html>
<html>
<head>
<title>blob demo</title>
</head>
<body>
<script type="text/javascript">
var blob = new Blob(['blob ', 'foo ', 'bar '], { type: 'plain/text2', endings: 'native' });
var request = new XMLHttpRequest();
request.open("POST", "/testblob");
request.send(blob);
</script>
</body>
</html>
```
4、Send a *blob* XMLHttpRequest with the custom scheme
Result:
UIProcess crash
--
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/20200102/a392597e/attachment.htm>
More information about the webkit-unassigned
mailing list