mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-05 16:46:26 +00:00
check in fix for 40751 for Kevin Puetzk, r=myself
This commit is contained in:
parent
0c50e26102
commit
c29e293101
@ -18,7 +18,7 @@
|
||||
* Rights Reserved.
|
||||
*
|
||||
* Contributor(s):
|
||||
* - Kevin Puetz (puetz@iastate.edu)
|
||||
* - Kevin Puetz (puetzk@iastate.edu)
|
||||
*/
|
||||
|
||||
//
|
||||
@ -296,7 +296,7 @@ function BeginDragContentArea ( event )
|
||||
var htmlstring = null;
|
||||
var textstring = null;
|
||||
var domselection = window.content.getSelection();
|
||||
if ( domselection && !domselection.isCollapsed)
|
||||
if ( domselection && !domselection.isCollapsed && domselection.containsNode(event.target,false))
|
||||
{
|
||||
// the window has a selection so we should grab that rather than looking for specific elements
|
||||
// dump(domselection);
|
||||
|
Loading…
Reference in New Issue
Block a user