[Webkit-unassigned] [Bug 197096] New: AX: Cannot load local file after loaded online page with a wkWebView on iOS12.2

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Apr 19 00:18:33 PDT 2019


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

            Bug ID: 197096
           Summary: AX: Cannot load local file after loaded online page
                    with a wkWebView on iOS12.2
           Product: WebKit
           Version: Safari 12
          Hardware: iPhone / iPad
                OS: iOS 12
            Status: NEW
          Severity: Major
          Priority: P2
         Component: Accessibility
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: ahut_qyb_6737 at 163.com
                CC: webkit-bug-importer at group.apple.com

Reproduce on iOS 12.2 device:

1.Create a wkwebView like :
WKWebView *webView = [[WKWebView alloc] initWithFrame:CGRectMake(0, 0, size.width, (size.height - 100)/2) configuration:[WKWebViewConfiguration new]];

2.Load online page like :
[webView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"https://www.baidu.com"]]];

3.After webView finish load, load a local file like:
NSString *filePath = [[NSSearchPathForDirectoriesInDomains(NSCachesDirectory, NSUserDomainMask, YES) firstObject] stringByAppendingPathComponent:@"test.html"];
[webView loadFileURL:fileURL allowingReadAccessToURL:fileURL];

Then you can see error like:
2019-04-19 15:17:11.107165+0800 TestWKWebView[10686:386533] [ProcessSwapping] 0x1035382c0 - ProvisionalPageProxy::didFailProvisionalLoadForFrame: pageID = 1, frameID = 1, navigationID = 2
2019-04-19 15:17:11.109566+0800 TestWKWebView[10686:386533] didFailProvisionalNavigation = Error Domain=kCFErrorDomainCFNetwork Code=1 "(null)" UserInfo={_NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <644E6D87-CC60-4D8D-8B89-3898D4899027>.<31>, _WKRecoveryAttempterErrorKey=<WKReloadFrameErrorRecoveryAttempter: 0x283c87440>}

-- 
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/20190419/2c7086ac/attachment.html>


More information about the webkit-unassigned mailing list