mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 14:22:01 +00:00
Bug 261267 helper application dialog has title issues when opening an unknown filetype - regression fix
p=me r=mscott
This commit is contained in:
parent
ce1d2147d7
commit
80f4807d47
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user