rem: var focusedWindow = document.commandDispatcher.focusedWindow; var selection = focusedWindow.getSelection(); if (selection.rangeCount == 0) { return false; } var rangeFragment = selection.getRangeAt(0).cloneContents(); if (rangeFragment.childNodes.length == 0) { return false; }  var node = rangeFragment.childNodes[0]; if (rangeFragment.childNodes.length == 1 && node.nodeType == node.TEXT_NODE && node.nodeValue.length == 0) { return false; } return true; 
add: return !document.commandDispatcher.focusedWindow.getSelection().isCollapsed; 
context:     isContentSelection : function() {        var focusedWindow = document.commandDispatcher.focusedWindow;        var selection = focusedWindow.getSelection();        if (selection.rangeCount == 0) {            return false;        }        var rangeFragment = selection.getRangeAt(0).cloneContents();        if (rangeFragment.childNodes.length == 0) {            return false;        }        // The selection object may also report an empty text node if there is no selection.        var node = rangeFragment.childNodes[0];        if (rangeFragment.childNodes.length == 1 &&            node.nodeType == node.TEXT_NODE &&            node.nodeValue.length == 0) {            return false;        }        return true;    },
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/2741b2d6df75d51ab2e50679fbccd4bdf479d113/browser.js/buggy/browser/base/content/browser.js