Steps: - Enable content restrictions and set web content to 'allowed websites only' (e.g. disney.com) - Visit disney.com - Visit cnn.com In WKWebView, I see WebKit print the following error: [ProcessSwapping] 0x117324160 - ProvisionalPageProxy::didFailProvisionalLoadForFrame: pageID = 2, frameID = 1, navigationID = 5 I see a didFailProvisionalNavigation callback, but no didFinishNavigation and I don't see the built in error page (You cannot browse this page at "cnn.com" because it is restricted.) I still see disney.com If I immediately load cnn.com in a new WKWebView, I do see the proper error page. MobileSafari is also inconsistent. If you visit cnn.com on a new page you see the correct restricted error. If you visit disney.com first, you see (Safari cannot open the page. The error was; "The URL was blocked by a content filter."
<rdar://problem/49918639>
<rdar://problem/49918644>
Created attachment 367477 [details] WIP Patch
<rdar://problem/47819301>
Created attachment 367537 [details] WIP Patch
Comment on attachment 367537 [details] WIP Patch Attachment 367537 [details] did not pass mac-ews (mac): Output: https://webkit-queues.webkit.org/results/11887104 New failing tests: contentfiltering/block-after-response-then-deny-unblock.html contentfiltering/block-after-finished-adding-data-then-deny-unblock.html contentfiltering/block-after-will-send-request-then-allow-unblock.html contentfiltering/block-after-add-data.html contentfiltering/block-after-add-data-then-deny-unblock.html contentfiltering/block-after-add-data-then-allow-unblock.html contentfiltering/block-after-response.html contentfiltering/block-after-response-then-allow-unblock.html contentfiltering/block-after-will-send-request.html contentfiltering/block-after-finished-adding-data.html contentfiltering/block-after-will-send-request-then-deny-unblock.html contentfiltering/block-after-finished-adding-data-then-allow-unblock.html
Created attachment 367541 [details] Archive of layout-test-results from ews103 for mac-highsierra The attached test failures were seen while running run-webkit-tests on the mac-ews. Bot: ews103 Port: mac-highsierra Platform: Mac OS X 10.13.6
Comment on attachment 367537 [details] WIP Patch Attachment 367537 [details] did not pass mac-wk2-ews (mac-wk2): Output: https://webkit-queues.webkit.org/results/11887173 New failing tests: contentfiltering/block-after-response-then-deny-unblock.html contentfiltering/block-after-finished-adding-data-then-deny-unblock.html contentfiltering/block-after-will-send-request-then-allow-unblock.html contentfiltering/block-after-add-data.html contentfiltering/block-after-add-data-then-deny-unblock.html contentfiltering/block-after-add-data-then-allow-unblock.html contentfiltering/block-after-response.html contentfiltering/block-after-response-then-allow-unblock.html contentfiltering/block-after-will-send-request.html contentfiltering/block-after-finished-adding-data.html contentfiltering/block-after-will-send-request-then-deny-unblock.html contentfiltering/block-after-finished-adding-data-then-allow-unblock.html
Created attachment 367542 [details] Archive of layout-test-results from ews106 for mac-highsierra-wk2 The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews. Bot: ews106 Port: mac-highsierra-wk2 Platform: Mac OS X 10.13.6
Comment on attachment 367537 [details] WIP Patch Attachment 367537 [details] did not pass ios-sim-ews (ios-simulator-wk2): Output: https://webkit-queues.webkit.org/results/11888924 New failing tests: contentfiltering/block-after-response-then-deny-unblock.html contentfiltering/block-after-finished-adding-data-then-deny-unblock.html contentfiltering/block-after-will-send-request-then-allow-unblock.html contentfiltering/block-after-add-data.html contentfiltering/block-after-add-data-then-deny-unblock.html contentfiltering/block-after-add-data-then-allow-unblock.html contentfiltering/block-after-response.html contentfiltering/block-after-response-then-allow-unblock.html contentfiltering/block-after-will-send-request.html contentfiltering/block-after-finished-adding-data.html contentfiltering/block-after-will-send-request-then-deny-unblock.html contentfiltering/block-after-finished-adding-data-then-allow-unblock.html
Created attachment 367559 [details] Archive of layout-test-results from ews124 for ios-simulator-wk2 The attached test failures were seen while running run-webkit-tests on the ios-sim-ews. Bot: ews124 Port: ios-simulator-wk2 Platform: Mac OS X 10.13.6
Comment on attachment 367537 [details] WIP Patch Attachment 367537 [details] did not pass mac-debug-ews (mac): Output: https://webkit-queues.webkit.org/results/11890304 New failing tests: http/tests/contentfiltering/block-after-redirect.html contentfiltering/block-after-response-then-deny-unblock.html contentfiltering/block-after-finished-adding-data-then-deny-unblock.html contentfiltering/block-after-will-send-request-then-allow-unblock.html contentfiltering/block-after-add-data.html contentfiltering/block-after-add-data-then-deny-unblock.html contentfiltering/block-after-add-data-then-allow-unblock.html contentfiltering/block-after-response.html contentfiltering/block-after-response-then-allow-unblock.html contentfiltering/block-after-will-send-request.html contentfiltering/block-after-finished-adding-data.html contentfiltering/block-after-will-send-request-then-deny-unblock.html contentfiltering/block-after-finished-adding-data-then-allow-unblock.html
Created attachment 367584 [details] Archive of layout-test-results from ews117 for mac-highsierra The attached test failures were seen while running run-webkit-tests on the mac-debug-ews. Bot: ews117 Port: mac-highsierra Platform: Mac OS X 10.13.6
Created attachment 371531 [details] Patch
Comment on attachment 371531 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=371531&action=review r=me > Source/WebCore/loader/ContentFilter.h:65 > + bool willHandleProvisionalLoadFailure(const ResourceError&); nit: Should probably be a const method.
Created attachment 371562 [details] Part 1
Created attachment 371563 [details] Part 2
Comment on attachment 371562 [details] Part 1 Clearing flags on attachment: 371562 Committed r246190: <https://trac.webkit.org/changeset/246190>
Comment on attachment 371563 [details] Part 2 Clearing flags on attachment: 371563 Committed r246201: <https://trac.webkit.org/changeset/246201>
All reviewed patches have been landed. Closing bug.