Bug 202543

Summary: WKWebView.loading is never updated when stopLoading called right after loadRequest
Product: WebKit Reporter: Ali Juma <ajuma>
Component: WebKit APIAssignee: Nobody <webkit-unassigned>
Status: NEW    
Severity: Normal CC: achristensen, bfulgham, cdumez, gambard, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Ali Juma
Reported 2019-10-03 13:18:15 PDT
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.
Attachments
Brent Fulgham
Comment 1 2022-07-01 14:44:36 PDT
@Ali: Is this still happening for you?
Ali Juma
Comment 2 2022-07-04 06:10:49 PDT
(In reply to Brent Fulgham from comment #1) > @Ali: Is this still happening for you? Yes, this still happens (tested on iOS 16 beta 2).
Radar WebKit Bug Importer
Comment 3 2022-07-04 09:42:44 PDT
Brent Fulgham
Comment 4 2022-07-04 09:42:53 PDT
Pulling in as active issue in current builds.
Note You need to log in before you can comment on or make changes to this bug.