Bug 675037: fullzoom callback needs to handle null currentURI, r=dolske

This commit is contained in:
Gavin Sharp 2011-07-28 14:18:53 -07:00
Родитель 19fcacaa4c
Коммит aef43afefc
1 изменённых файлов: 3 добавлений и 1 удалений

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

@ -262,7 +262,9 @@ var FullZoom = {
var self = this;
Services.contentPrefs.getPref(aURI, this.name, function (aResult) {
// Check that we're still where we expect to be in case this took a while.
if (aURI.equals(browser.currentURI)) {
// Null check currentURI, since the window may have been destroyed before
// we were called.
if (browser.currentURI && aURI.equals(browser.currentURI)) {
self._applyPrefToSetting(aResult, browser);
}
});