Fixes and cleanups required by the infrastructure patch for 281988, r+sr=bsmedberg+bz.

git-svn-id: svn://10.0.0.236/trunk@205854 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
brendan%mozilla.org 2006-07-29 05:44:10 +00:00
parent 266ff2a24a
commit affd27e5a3
2 changed files with 2 additions and 3 deletions

View File

@ -52,7 +52,6 @@
</script>
<script type="application/x-javascript" src="chrome://communicator/content/nsContextMenu.js"/>
<script type="application/x-javascript" src="chrome://communicator/content/contentAreaUtils.js"/>
<script type="application/x-javascript" src="chrome://global/content/XPCNativeWrapper.js"/>
<popupset id="contentAreaContextSet">
<!-- This is a generic context menu for a content area. It contains

View File

@ -559,7 +559,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
@ -805,7 +805,7 @@ nsContextMenu.prototype = {
searchSelected : function( charlen ) {
var focusedWindow = document.commandDispatcher.focusedWindow;
var searchStr = focusedWindow.__proto__.getSelection.call(focusedWindow);
var searchStr = focusedWindow.getSelection();
searchStr = searchStr.toString();
// searching for more than 150 chars makes no sense
if (!charlen)