Fixed: <rdar://problem/
3874577> Opening restricted (parental) content in new window/tab reveals Safari's "Resources" folder
Reviewed by john.
* WebView.subproj/WebDefaultContextMenuDelegate.m:
(-[WebDefaultUIDelegate openFrameInNewWindow:]): use the unreachable URL if there is one
WebBrowser:
Fixed: <rdar://problem/
3874577> Opening restricted (parental) content in new window/tab reveals Safari's "Resources" folder
Reviewed by john.
* ContextMenuHandler.m:
(-[BrowserWebView openFrameInNewTab:]): use the unreachable URL if there is one
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@7995
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2004-11-12 Chris Blumenberg <cblu@apple.com>
+
+ Fixed: <rdar://problem/3874577> Opening restricted (parental) content in new window/tab reveals Safari's "Resources" folder
+
+ Reviewed by john.
+
+ * WebView.subproj/WebDefaultContextMenuDelegate.m:
+ (-[WebDefaultUIDelegate openFrameInNewWindow:]): use the unreachable URL if there is one
+
=== Safari-171 ===
2004-11-11 Richard Williamson <rjw@apple.com>
- (void)openFrameInNewWindow:(id)sender
{
NSDictionary *element = [sender representedObject];
- WebFrame *webFrame = [element objectForKey:WebElementFrameKey];
- [self openNewWindowWithURL:[[webFrame dataSource] _URL] element:element];
+ WebDataSource *dataSource = [[element objectForKey:WebElementFrameKey] dataSource];
+ NSURL *URL = [dataSource unreachableURL];
+ if (URL == nil) {
+ URL = [[dataSource request] URL];
+ }
+ [self openNewWindowWithURL:URL element:element];
}
@end