[Webkit-unassigned] [Bug 203852] New: REGRESSION: WKWebView navigation fails when navigating from about:blank

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Nov 5 08:08:19 PST 2019


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

            Bug ID: 203852
           Summary: REGRESSION: WKWebView navigation fails when navigating
                    from about:blank
           Product: WebKit
           Version: Safari 13
          Hardware: iPhone / iPad
                OS: iOS 13
            Status: NEW
          Keywords: Regression
          Severity: Normal
          Priority: P1
         Component: New Bugs
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: felix at lapal.me
                CC: info at plauclair.me

Created attachment 382823

  --> https://bugs.webkit.org/attachment.cgi?id=382823&action=review

Sample project reproducing the issue

WKWebView has a hard time navigating away from about:blank. We noticed two issues, the first one of them is new to iOS 13.2:
1. In iOS 13.2, WKWebView fails provisional navigation when navigating from about:blank to HTML loaded through `-[WKWebView loadFileURL:]`. This used to work in iOS 13.1 (and earlier).
2. In iOS 12.0-13.2, WKWebView fails provisional navigation when navigating from about:blank to HTML loaded through `-[WKWebView loadRequest:]`.

I am only able to reproduce this on a device (tested on iPhone X and iPod touch 7th gen), not on the iOS simulator in Xcode 11.

I attached a small sample project that reproduces the issue. When run, there is a WKWebView and 4 buttons in the toolbar at the bottom.

With the sample project, the first issue (the iOS 13.2 regression) can be reproduced by tapping on:
1. "fileFromURL"
2. "blank"
3. "fileFromURL"

Here I expect the fileFromURL HTML to show up on step 3, but nothing shows up and the WKNavigationalDelegate method `webView:didFailProvisionalNavigation:withError:` is called.


For the second issue, it can be reproduced in the sample project by tapping:
1. "request"
2. "blank"
3. "request"

Here I expect the HTML loaded by "request" to be shown on step 3, but nothing appears and the WKNavigationalDelegate method `webView:didFailProvisionalNavigation:withError:` is called.

Thank you,

Felix Lapalme

-- 
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/20191105/6967af50/attachment.htm>


More information about the webkit-unassigned mailing list