From bcde3caab09207d3449a5e1f8819522f4252be9f Mon Sep 17 00:00:00 2001 From: Josh Aas Date: Fri, 8 May 2009 13:42:19 -0400 Subject: [PATCH] Backed out changeset 9f9b05760fff, bug 480080, to see if it fixes orange --- toolkit/components/viewsource/content/viewSource.js | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/toolkit/components/viewsource/content/viewSource.js b/toolkit/components/viewsource/content/viewSource.js index e050fbedb85..8511488912f 100644 --- a/toolkit/components/viewsource/content/viewSource.js +++ b/toolkit/components/viewsource/content/viewSource.js @@ -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)