rem: var searchStr = focusedWindow.__proto__.getSelection.call(focusedWindow); 
add: var searchStr = focusedWindow.getSelection(); 
context:     searchSelected : function( charlen ) {        var focusedWindow = document.commandDispatcher.focusedWindow;        var searchStr = focusedWindow.__proto__.getSelection.call(focusedWindow);        searchStr = searchStr.toString();        // searching for more than 150 chars makes no sense        if (!charlen)            charlen = 150;        if (charlen < searchStr.length) {            // only use the first charlen important chars. see bug 221361            var pattern = new RegExp("^(?:\\s*.){0," + charlen + "}");            pattern.test(searchStr);            searchStr = RegExp.lastMatch;        }        searchStr = searchStr.replace(/\s*(.*?)\s*$/, "$1");        searchStr = searchStr.replace(/\s+/g, " ");        return searchStr;    },
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/1d4d9d54415fb7e750b83da2afe64a4abb6f7982/nsContextMenu.js/buggy/suite/common/nsContextMenu.js