зеркало из https://github.com/mozilla/pjs.git
Bug 273200: Ctrl+W in Find bar breaks middle-clicking links, find toolbar, and back button. p=amotohiko_mozillafirebird@yahoo.co.jp, r=mconnor, a=shaver
This commit is contained in:
Родитель
f14ee9bcf5
Коммит
cce9f2e13a
|
@ -265,7 +265,13 @@ function toggleCaseSensitivity(aCaseSensitive)
|
|||
|
||||
function changeSelectionColor(aAttention)
|
||||
{
|
||||
var ds = getBrowser().docShell;
|
||||
try {
|
||||
var ds = getBrowser().docShell;
|
||||
} catch(e) {
|
||||
// If we throw here, the browser we were in is already destroyed.
|
||||
// See bug 273200.
|
||||
return;
|
||||
}
|
||||
var dsEnum = ds.getDocShellEnumerator(Components.interfaces.nsIDocShellTreeItem.typeContent,
|
||||
Components.interfaces.nsIDocShell.ENUMERATE_FORWARDS);
|
||||
while (dsEnum.hasMoreElements()) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче