[Webkit-unassigned] [Bug 202543] New: WKWebView.loading is never updated when stopLoading called right after loadRequest

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Oct 3 13:18:15 PDT 2019


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

            Bug ID: 202543
           Summary: WKWebView.loading is never updated when stopLoading
                    called right after loadRequest
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebKit API
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: ajuma at chromium.org
                CC: achristensen at apple.com, cdumez at apple.com,
                    gambard at chromium.org

After the following snippet:

  [webView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"https://www.webkit.org"]]];
  [webView stopLoading];

webView.loading stays YES even though the load has been cancelled, and is never updated back to NO.

PageLoadState has a non-null pendingAPIRequest URL since nothing ever calls PageLoadState::clearPendingAPIRequest

This seems to be because the WebProcess is told to stopLoading after it's already sent the decidePolicyForNavigationAction IPC (which the UIProcess handles in the usual way) but before it receives the policy decision.

-- 
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/20191003/1ba1e81f/attachment.html>


More information about the webkit-unassigned mailing list