mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 22:32:46 +00:00
Picked up sfraser's fix from 4.5 that allows URLs of up to 1K to be dragged to a browser window (old limit was 255 characters)
This commit is contained in:
parent
a1eadc81c7
commit
c939b835c6
@ -537,8 +537,8 @@ CBrowserView::DoDragReceive(DragReference inDragRef)
|
||||
char* theData = nil;
|
||||
|
||||
::GetFlavorDataSize(inDragRef, itemRef, 'TEXT', &theDataSize);
|
||||
if (theDataSize > 255) // ¥¥¥Êare there any limits to the URL string length?
|
||||
theDataSize = 255;
|
||||
if (theDataSize > 1024) // ¥¥¥Êare there any limits to the URL string length?
|
||||
theDataSize = 1024;
|
||||
|
||||
theData = (char*) ::NewPtr(theDataSize+1);
|
||||
// assert(theData != nil);
|
||||
|
Loading…
Reference in New Issue
Block a user