diff --git a/mozilla/suite/common/pref/nsPrefWindow.js b/mozilla/suite/common/pref/nsPrefWindow.js index bc749803532..b2629176658 100644 --- a/mozilla/suite/common/pref/nsPrefWindow.js +++ b/mozilla/suite/common/pref/nsPrefWindow.js @@ -33,7 +33,7 @@ function initPanel ( aPrefTag ) hPrefWindow.onpageload( aPrefTag ) else { dump("*** queueing up a panel...\n"); - queuedTag = aPrefTag; + window.queuedTag = aPrefTag; } } @@ -275,7 +275,7 @@ nsPrefWindow.prototype = onpageload: function ( aPageTag ) { - if( !this.wsm.dataManager.pageData[aPageTag] ) + if( !(aPageTag in this.wsm.dataManager.pageData) ) { var prefElements = window.frames[this.contentFrame].document.getElementsByAttribute( "pref", "true" ); this.wsm.dataManager.pageData[aPageTag] = []; @@ -313,7 +313,7 @@ nsPrefWindow.prototype = } this.wsm.setPageData( aPageTag ); // do not set extra elements, accept hard coded defaults - if( window.frames[ this.contentFrame ].Startup ) + if( 'Startup' in window.frames[ this.contentFrame ]) { window.frames[ this.contentFrame ].Startup(); } diff --git a/mozilla/suite/common/pref/pref-navigator.xul b/mozilla/suite/common/pref/pref-navigator.xul index 75eb3c44ab4..878cbf71ed2 100644 --- a/mozilla/suite/common/pref/pref-navigator.xul +++ b/mozilla/suite/common/pref/pref-navigator.xul @@ -39,8 +39,10 @@