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:
parent
889117a431
commit
e27a2311af
@ -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, " ");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user