[Webkit-unassigned] [Bug 239591] New: [iOS] WKWebView cannot load local .log files on iOS 15.4 and later

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Apr 20 23:25:34 PDT 2022


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

            Bug ID: 239591
           Summary: [iOS] WKWebView cannot load local .log files on iOS
                    15.4 and later
           Product: WebKit
           Version: Safari 15
          Hardware: iPhone / iPad
                OS: iOS 15
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Page Loading
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: lilinfeng303 at outlook.com
                CC: beidson at apple.com

On iOS 15.4, the following code loading a local .log file (works on iOS 15.2.1) stops working.

```
let url = Bundle.main.url(forResource: "ABC", withExtension: "log")!
webView.loadFileURL(url, allowingReadAccessTo: url)
```

Some logs:
```
[Process] 0x7fa558809220 - [pageProxyID=6, webPageID=7, PID=81527] WebPageProxy::didFailProvisionalLoadForFrame: frameID=3, domain=WebKitErrorDomain, code=102, isMainFrame=1
```

Error object in func webView(_ webView: WKWebView, didFailProvisionalNavigation navigation: WKNavigation!, withError error: Error)
```
Error Domain=WebKitErrorDomain Code=102 "Frame load interrupted" UserInfo={_WKRecoveryAttempterErrorKey=<WKReloadFrameErrorRecoveryAttempter: 0x6000000a2120>, NSErrorFailingURLStringKey=LOG_FILE_PATH, NSErrorFailingURLKey=LOG_FILE_PATH, NSLocalizedDescription=Frame load interrupted}

```

-- 
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/20220421/7c805a5e/attachment.htm>


More information about the webkit-unassigned mailing list