WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
238838
[iOS] Need API on NavigationAction to detect a simulated request
https://bugs.webkit.org/show_bug.cgi?id=238838
Summary
[iOS] Need API on NavigationAction to detect a simulated request
Ali Juma
Reported
2022-04-05 14:45:53 PDT
Chrome for iOS is using WKWebView’s loadSimulatedRequest API to display error pages for failed navigations. One reason for a navigation failing is when a URL is blocked by enterprise policy. In this case, Chrome tries to load a simulated request with an error message, using the URL of the blocked page. However, in decidePolicyForNavigationAction, the URL blocking logic cannot distinguish a real load of the blocked page vs a simulated request using that URL, since there's no information in the WKNavigationAction to tell us that this is a simulated request. One way to fix this would be to promote the _mainFrameNavigation SPI in WKNavigationAction to API, so that we can compare that WKNavigation* to the one returned by loadSimulatedRequest. I've also filed FB9974496 for this request.
Attachments
Add attachment
proposed patch, testcase, etc.
Alexey Proskuryakov
Comment 1
2022-04-06 08:41:40 PDT
rdar://91316525
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug