<rdar://problem/21803781> When a navigation targets a new window, the WKNavigationAction passed to -webView:decidePolicyForNavigationAction:decisionHandler: doesn’t have the correct values for -_shouldOpenExternalSchemes and -_shouldOpenAppLinks. When window.open is called, the WKNavigationAction passed to -webView:createWebViewWithConfiguration:forNavigationAction:windowFeatures: doesn’t have the correct values for -_shouldOpenExternalSchemes and -_shouldOpenAppLinks, and so does the WKNavigationAction passed to the new view’s -webView:decidePolicyForNavigationAction:decisionHandler:.
Created attachment 256980 [details] Report the correct policy
Comment on attachment 256980 [details] Report the correct policy View in context: https://bugs.webkit.org/attachment.cgi?id=256980&action=review > Tools/TestWebKitAPI/Tests/WebKit2Cocoa/ShouldOpenExternalURLsInNewWindowActions.mm:2 > + * Copyright (C) 2014 Apple Inc. All rights reserved. 2014? > Tools/TestWebKitAPI/Tests/WebKit2Cocoa/ShouldOpenExternalURLsInNewWindowActions.mm:69 > +TEST(WebKit2, ShouldOpenExternalURLsInWindowOpen) I should split this up to multiple tests, at least a separate one for targeted links.
Fixed in <http://trac.webkit.org/r186964>.