Comment on attachment 335950[details]
API test without fix
View in context: https://bugs.webkit.org/attachment.cgi?id=335950&action=review> Tools/TestWebKitAPI/Tests/WebKitCocoa/WebsitePolicies.mm:723
> + [webView loadHTMLString:@"" baseURL:nil];
It is somehow related to these loadHTMLString calls. If I comment them out, then the test passes.
Also note that the test does not wait for the load to be complete before continuing.
> Tools/TestWebKitAPI/Tests/WebKitCocoa/WebsitePolicies.mm:741
> + [webView loadHTMLString:@"" baseURL:nil];
Same here.
Created attachment 335962[details]
Archive of layout-test-results from ews107 for mac-sierra-wk2
The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews.
Bot: ews107 Port: mac-sierra-wk2 Platform: Mac OS X 10.12.6
Created attachment 335963[details]
Archive of layout-test-results from ews103 for mac-sierra
The attached test failures were seen while running run-webkit-tests on the mac-ews.
Bot: ews103 Port: mac-sierra Platform: Mac OS X 10.12.6
Created attachment 335964[details]
Archive of layout-test-results from ews125 for ios-simulator-wk2
The attached test failures were seen while running run-webkit-tests on the ios-sim-ews.
Bot: ews125 Port: ios-simulator-wk2 Platform: Mac OS X 10.12.6
Created attachment 335966[details]
Archive of layout-test-results from ews202 for win-future
The attached test failures were seen while running run-webkit-tests on the win-ews.
Bot: ews202 Port: win-future Platform: CYGWIN_NT-6.1-2.9.0-0.318-5-3-x86_64-64bit
Created attachment 335967[details]
Archive of layout-test-results from ews114 for mac-sierra
The attached test failures were seen while running run-webkit-tests on the mac-debug-ews.
Bot: ews114 Port: mac-sierra Platform: Mac OS X 10.12.6
Comment on attachment 335978[details]
Patch
View in context: https://bugs.webkit.org/attachment.cgi?id=335978&action=review> Source/WebCore/loader/FrameLoader.cpp:1546
> + if (policyChecker().delegateIsDecidingNavigationPolicy()) {
This did not work well because this is too late. Calling DocumentLoader::stopLoading() may call FrameLoader::stopLoading() which would cancel the policy check we've just started. The latest patch iteration moves the stopLoading call *before* actually starting the policy check so that we do not cancel it.
Created attachment 336058[details]
Archive of layout-test-results from ews100 for mac-sierra
The attached test failures were seen while running run-webkit-tests on the mac-ews.
Bot: ews100 Port: mac-sierra Platform: Mac OS X 10.12.6
Created attachment 336059[details]
Archive of layout-test-results from ews106 for mac-sierra-wk2
The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews.
Bot: ews106 Port: mac-sierra-wk2 Platform: Mac OS X 10.12.6
Created attachment 336063[details]
Archive of layout-test-results from ews115 for mac-sierra
The attached test failures were seen while running run-webkit-tests on the mac-debug-ews.
Bot: ews115 Port: mac-sierra Platform: Mac OS X 10.12.6
Created attachment 336067[details]
Archive of layout-test-results from ews206 for win-future
The attached test failures were seen while running run-webkit-tests on the win-ews.
Bot: ews206 Port: win-future Platform: CYGWIN_NT-6.1-2.9.0-0.318-5-3-x86_64-64bit
2018-03-16 10:40 PDT, Chris Dumez
2018-03-16 12:13 PDT, Chris Dumez
2018-03-16 13:19 PDT, EWS Watchlist
2018-03-16 13:27 PDT, EWS Watchlist
2018-03-16 13:46 PDT, EWS Watchlist
2018-03-16 13:51 PDT, EWS Watchlist
2018-03-16 13:55 PDT, EWS Watchlist
2018-03-16 15:25 PDT, Chris Dumez
2018-03-16 15:38 PDT, Chris Dumez
2018-03-19 10:12 PDT, Chris Dumez
2018-03-19 11:17 PDT, EWS Watchlist
2018-03-19 11:23 PDT, EWS Watchlist
2018-03-19 11:44 PDT, EWS Watchlist
2018-03-19 12:17 PDT, EWS Watchlist
2018-03-19 12:44 PDT, Chris Dumez