rem: var searchStr = this.target.ownerDocument.getSelection(); 
add: var searchStr;    if ("getSelection" in this.target.ownerDocument) searchStr = this.target.ownerDocument.getSelection(); else searchStr = _content.getSelection();  
context:     searchSelected : function() {        var searchStr = this.target.ownerDocument.getSelection();        searchStr = searchStr.toString();        searchStr = searchStr.replace( /^\s+/, "" );        searchStr = searchStr.replace(/(\n|\r|\t)+/g, " ");        searchStr = searchStr.replace(/\s+$/,"");        return searchStr;    },
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/7fadd4238efbc513642c1cb1b4489645c42854cc/nsContextMenu.js/buggy/suite/common/nsContextMenu.js