mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-06 09:05:45 +00:00
Fixing bug 313027, can't drag plain text url to the tab bar. Patch by smfr, r=stuart.morgan, sr=pink
This commit is contained in:
parent
e5811f54c8
commit
6c34bd677a
@ -231,8 +231,10 @@ NSString* const kWebURLsWithTitlesPboardType = @"WebURLsWithTitlesPboardType";
|
||||
return YES;
|
||||
|
||||
if ([types containsObject:NSStringPboardType]) {
|
||||
// NSURL will return nil for invalid url strings (containing spaces, returns etc),
|
||||
// but will return a url otherwise.
|
||||
NSURL* testURL = [NSURL URLWithString:[self stringForType:NSStringPboardType]];
|
||||
return (testURL != nil) && ([[testURL scheme] length] > 0);
|
||||
return (testURL != nil);
|
||||
}
|
||||
|
||||
return NO;
|
||||
|
Loading…
Reference in New Issue
Block a user