Backed out changeset 9f9b05760fff, bug 480080, to see if it fixes orange

This commit is contained in:
Josh Aas 2009-05-08 13:42:19 -04:00
parent c370c23653
commit bcde3caab0

View File

@ -59,7 +59,6 @@ try {
var gSelectionListener = {
timeout: 0,
attached: false,
notifySelectionChanged: function(doc, sel, reason)
{
// Coalesce notifications within 100ms intervals.
@ -296,7 +295,6 @@ function onLoadContent()
window.content.getSelection()
.QueryInterface(nsISelectionPrivate)
.addSelectionListener(gSelectionListener);
gSelectionListener.attached = true;
}
function onUnloadContent()
@ -306,15 +304,6 @@ function onUnloadContent()
// or toggling of syntax highlighting.
//
document.getElementById('cmd_goToLine').setAttribute('disabled', 'true');
// If we're not just unloading the initial "about:blank" which doesn't have
// a selection listener, get rid of it so it doesn't try to fire after the
// window has gone away.
if (gSelectionListener.attached) {
window.content.getSelection().QueryInterface(nsISelectionPrivate)
.removeSelectionListener(gSelectionListener);
gSelectionListener.attached = false;
}
}
function HandleAppCommandEvent(evt)