mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Backed out changeset 9f9b05760fff, bug 480080, to see if it fixes orange
This commit is contained in:
parent
c370c23653
commit
bcde3caab0
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user