Support for fix for:
<rdar://problem/
3734309> Safari doesn't open folders in title bar menu with non-Roman names using Cmd+click
Reviewed by john.
* Misc.subproj/WebNSURLExtras.h:
* Misc.subproj/WebNSURLExtras.m:
(+[NSURL _web_URLWithUserTypedString:relativeToURL:]): renamed to take relativeToURL parameter
(+[NSURL _web_URLWithUserTypedString:]): call _web_URLWithUserTypedString:relativeToURL: with nil for URL
WebBrowser:
Fixed: <rdar://problem/
3734309> Safari doesn't open folders in title bar menu with non-Roman names using Cmd+click
Reviewed by john.
* TitleBarButton.m:
(-[TitleBarButton showPathRepresentingPopUpMenu]): use _web_URLWithUserTypedString:: since the path returned by [NSURL path] is of the "user typed" variety
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@8155
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2004-12-07 Administrator <cblu@apple.com>
+
+ Support for fix for:
+ <rdar://problem/3734309> Safari doesn't open folders in title bar menu with non-Roman names using Cmd+click
+
+ Reviewed by john.
+
+ * Misc.subproj/WebNSURLExtras.h:
+ * Misc.subproj/WebNSURLExtras.m:
+ (+[NSURL _web_URLWithUserTypedString:relativeToURL:]): renamed to take relativeToURL parameter
+ (+[NSURL _web_URLWithUserTypedString:]): call _web_URLWithUserTypedString:relativeToURL: with nil for URL
+
2004-12-07 Richard Williamson <rjw@apple.com>
Fixed <rdar://problem/3905564> REGRESSION (Tiger); in History menu, pixel size appears but is wrong for standalone images in Safari.
@interface NSURL (WebNSURLExtras)
+ (NSURL *)_web_URLWithUserTypedString:(NSString *)string;
++ (NSURL *)_web_URLWithUserTypedString:(NSString *)string relativeToURL:(NSURL *)URL;
+ (NSURL *)_web_URLWithDataAsString:(NSString *)string;
+ (NSURL *)_web_URLWithDataAsString:(NSString *)string relativeToURL:(NSURL *)baseURL;
return [mutableCopy autorelease];
}
-+ (NSURL *)_web_URLWithUserTypedString:(NSString *)string
++ (NSURL *)_web_URLWithUserTypedString:(NSString *)string relativeToURL:(NSURL *)URL
{
if (string == nil) {
return nil;
}
NSData *data = [NSData dataWithBytesNoCopy:outBytes length:outLength]; // adopts outBytes
- return [self _web_URLWithData:data relativeToURL:nil];
+ return [self _web_URLWithData:data relativeToURL:URL];
+}
+
++ (NSURL *)_web_URLWithUserTypedString:(NSString *)string
+{
+ return [self _web_URLWithUserTypedString:string relativeToURL:nil];
}
+ (NSURL *)_web_URLWithDataAsString:(NSString *)string