mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-24 18:55:30 +00:00
Fix the drag and drop of history items.
This commit is contained in:
parent
f4a8f3fecc
commit
d005e511f0
@ -1035,7 +1035,7 @@ NS_IMPL_ISUPPORTS1(nsHistoryObserver, nsIHistoryObserver);
|
||||
{
|
||||
id item = [toDrag objectAtIndex: 0];
|
||||
// if we have just one item, we add some more flavours
|
||||
NSString* title = [item name];
|
||||
NSString* title = [item title];
|
||||
NSString *cleanedTitle = [title stringByReplacingCharactersInSet:[NSCharacterSet controlCharacterSet] withString:@" "];
|
||||
[pboard declareURLPasteboardWithAdditionalTypes:[NSArray array] owner:self];
|
||||
[pboard setDataForURL:[item url] title:cleanedTitle];
|
||||
|
Loading…
Reference in New Issue
Block a user