Bug 261267 helper application dialog has title issues when opening an unknown filetype - regression fix

p=me r=mscott
This commit is contained in:
bugzilla%arlen.demon.co.uk 2004-10-27 21:44:47 +00:00
parent ce1d2147d7
commit 80f4807d47
2 changed files with 2 additions and 4 deletions

View File

@ -265,7 +265,6 @@ nsUnknownContentTypeDialog.prototype = {
// initDialog: Fill various dialog fields with initial content.
initDialog : function() {
// Put file name in window title.
var win = this.dialogElement( "unknownContentType" );
var suggestedFileName = this.mLauncher.suggestedFileName;
// Some URIs do not implement nsIURL, so we can't just QI.
@ -288,7 +287,7 @@ nsUnknownContentTypeDialog.prototype = {
this.mTitle = this.dialogElement("strings").getFormattedString("title", [fname]);
win.document.title = this.mTitle;
this.mDialog.document.title = this.mTitle;
// Put content type, filename and location into intro.
this.initIntro(url, fname);

View File

@ -339,7 +339,6 @@ nsUnknownContentTypeDialog.prototype = {
// initDialog: Fill various dialog fields with initial content.
initDialog : function() {
// Put file name in window title.
var win = this.dialogElement( "unknownContentType" );
var suggestedFileName = this.mLauncher.suggestedFileName;
// Some URIs do not implement nsIURL, so we can't just QI.
@ -363,7 +362,7 @@ nsUnknownContentTypeDialog.prototype = {
var displayName = fname.replace(/ +/g, " ");
this.mTitle = this.dialogElement("strings").getFormattedString("title", [displayName]);
win.document.title = this.mTitle;
this.mDialog.document.title = this.mTitle;
// Put content type, filename and location into intro.
this.initIntro(url, fname, displayName);