Bug 413836 - Opening and then closing a new window with urlbar focused breaks the urlbar. r=gavin, b-ff3=beltzner. Fixes Bug 426525 - Broken auto-complete, nsIAutoCompleteController.input failure

This commit is contained in:
edward.lee@engineering.uiuc.edu 2008-04-05 20:51:57 -07:00
Родитель 0e84a92881
Коммит 56f5967e96
2 изменённых файлов: 3 добавлений и 5 удалений

Просмотреть файл

@ -140,8 +140,9 @@
}
// Make sure to break the cycle from _texbox to us. Otherwise we leak
// the world.
this._textbox.mController.input = null;
// the world. But make sure it's actually pointing to us.
if (this._textbox.mController.input == this)
this._textbox.mController.input = null;
]]></destructor>
<field name="_stringBundle">document.getAnonymousElementByAttribute(this,

Просмотреть файл

@ -416,9 +416,6 @@
if (aEvent.getPreventDefault())
return false;
// Make sure we have the controller before handling key presses
this.attachController();
var cancel = false;
// Catch any keys that could potentially move the caret. Ctrl can be