diff options
Diffstat (limited to 'Tools/MiniBrowser/mac/BrowserWindowController.m')
-rw-r--r-- | Tools/MiniBrowser/mac/BrowserWindowController.m | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/Tools/MiniBrowser/mac/BrowserWindowController.m b/Tools/MiniBrowser/mac/BrowserWindowController.m index fd6f2e0..5c4efef 100644 --- a/Tools/MiniBrowser/mac/BrowserWindowController.m +++ b/Tools/MiniBrowser/mac/BrowserWindowController.m @@ -370,7 +370,7 @@ static void decidePolicyForNewWindowAction(WKPageRef page, WKFrameRef frame, WKF WKFramePolicyListenerUse(listener); } -static void decidePolicyForMIMEType(WKPageRef page, WKFrameRef frame, WKStringRef MIMEType, WKURLRequestRef request, WKFramePolicyListenerRef listener, WKTypeRef userData, const void* clientInfo) +static void decidePolicyForResponse(WKPageRef page, WKFrameRef frame, WKURLResponseRef response, WKURLRequestRef request, WKFramePolicyListenerRef listener, WKTypeRef userData, const void* clientInfo) { WKFramePolicyListenerUse(listener); } @@ -597,7 +597,8 @@ static void runOpenPanel(WKPageRef page, WKFrameRef frame, WKOpenPanelParameters didBecomeUnresponsive, didBecomeResponsive, processDidExit, - didChangeBackForwardList + didChangeBackForwardList, + 0 // shouldGoToBackForwardItem }; WKPageSetPageLoaderClient(_webView.pageRef, &loadClient); @@ -606,7 +607,8 @@ static void runOpenPanel(WKPageRef page, WKFrameRef frame, WKOpenPanelParameters self, /* clientInfo */ decidePolicyForNavigationAction, decidePolicyForNewWindowAction, - decidePolicyForMIMEType + decidePolicyForResponse, + 0 /* unableToImplementPolicy */ }; WKPageSetPagePolicyClient(_webView.pageRef, &policyClient); |