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:
parent
266ff2a24a
commit
affd27e5a3
@ -52,7 +52,6 @@
|
|||||||
</script>
|
</script>
|
||||||
<script type="application/x-javascript" src="chrome://communicator/content/nsContextMenu.js"/>
|
<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://communicator/content/contentAreaUtils.js"/>
|
||||||
<script type="application/x-javascript" src="chrome://global/content/XPCNativeWrapper.js"/>
|
|
||||||
|
|
||||||
<popupset id="contentAreaContextSet">
|
<popupset id="contentAreaContextSet">
|
||||||
<!-- This is a generic context menu for a content area. It contains
|
<!-- This is a generic context menu for a content area. It contains
|
||||||
|
|||||||
@ -559,7 +559,7 @@ nsContextMenu.prototype = {
|
|||||||
// when there is one
|
// when there is one
|
||||||
var reference = null;
|
var reference = null;
|
||||||
if (context == "selection")
|
if (context == "selection")
|
||||||
reference = focusedWindow.__proto__.getSelection.call(focusedWindow);
|
reference = focusedWindow.getSelection();
|
||||||
else if (context == "mathml")
|
else if (context == "mathml")
|
||||||
reference = this.target;
|
reference = this.target;
|
||||||
else
|
else
|
||||||
@ -805,7 +805,7 @@ nsContextMenu.prototype = {
|
|||||||
|
|
||||||
searchSelected : function( charlen ) {
|
searchSelected : function( charlen ) {
|
||||||
var focusedWindow = document.commandDispatcher.focusedWindow;
|
var focusedWindow = document.commandDispatcher.focusedWindow;
|
||||||
var searchStr = focusedWindow.__proto__.getSelection.call(focusedWindow);
|
var searchStr = focusedWindow.getSelection();
|
||||||
searchStr = searchStr.toString();
|
searchStr = searchStr.toString();
|
||||||
// searching for more than 150 chars makes no sense
|
// searching for more than 150 chars makes no sense
|
||||||
if (!charlen)
|
if (!charlen)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user