Bug 202543
| Summary: | WKWebView.loading is never updated when stopLoading called right after loadRequest | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Ali Juma <ajuma> |
| Component: | WebKit API | Assignee: | 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
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 | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Brent Fulgham
@Ali: Is this still happening for you?
Ali Juma
(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
<rdar://problem/96401001>
Brent Fulgham
Pulling in as active issue in current builds.