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

some xpcnativewrapper fall out.

sr=bienvenu
This commit is contained in:
scott%scott-macgregor.org 2005-09-02 21:32:40 +00:00
Родитель 5a0b7f2d3c
Коммит 15410f3ee5
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -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, " ");