WebGitController: Add a policy to open links in browser

This was supposed to accompany the "Add gistie" commit, but
somehow I forgot. Without this, links to be opened in new windows
would not function.
This commit is contained in:
Pieter de Bie
2008-09-26 00:23:32 +02:00
parent 0f60b0cc44
commit 188d13f2e3
+9
View File
@@ -129,4 +129,13 @@
return defaultMenuItems;
}
- (void)webView:(WebView *)sender decidePolicyForNewWindowAction:(NSDictionary *)actionInformation
request:(NSURLRequest *)request
newFrameName:(NSString *)frameName
decisionListener:(id < WebPolicyDecisionListener >)listener
{
[[NSWorkspace sharedWorkspace] openURL:[request URL]];
}
@end