Bug #306866 --> context menu in message window shows to much options

some xpcnativewrapper fall out.

sr=bienvenu


git-svn-id: svn://10.0.0.236/trunk@179578 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
scott%scott-macgregor.org 2005-09-02 21:32:40 +00:00
parent 889117a431
commit e27a2311af

View File

@ -514,7 +514,7 @@ nsContextMenu.prototype = {
// when there is one
var reference = null;
if (context == "selection")
reference = focusedWindow.__proto__.getSelection.call(focusedWindow);
reference = focusedWindow.getSelection();
else if (context == "mathml")
reference = this.target;
else
@ -745,7 +745,7 @@ nsContextMenu.prototype = {
searchSelected : function() {
var focusedWindow = document.commandDispatcher.focusedWindow;
var searchStr = focusedWindow.__proto__.getSelection.call(focusedWindow);
var searchStr = focusedWindow.getSelection();;
searchStr = searchStr.toString();
searchStr = searchStr.replace( /^\s+/, "" );
searchStr = searchStr.replace(/(\n|\r|\t)+/g, " ");