mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-28 23:31:56 +00:00
Bug 267379 ###!!! ASSERTION: nsIDOMChromeWindow::SetTitle is deprecated, use nsIDOMNSDocument instead: 'Error',
p=gandalf@firefox.pl r/sr=neil.parkwaycc.co.uk
This commit is contained in:
parent
ba19314393
commit
506f3ac88c
@ -72,6 +72,7 @@ function RenameProfile()
|
||||
var profileList = document.getElementById( "profiles" );
|
||||
var selected = profileList.view.getItemAtIndex(profileList.currentIndex);
|
||||
var profilename = selected.getAttribute("profile_name");
|
||||
var errorMessage = null;
|
||||
if( selected.getAttribute("rowMigrate") == "no" ) {
|
||||
// migrate if the user wants to
|
||||
lString = gProfileManagerBundle.getString("migratebeforerename");
|
||||
@ -84,7 +85,7 @@ function RenameProfile()
|
||||
profileDir = profileDir.QueryInterface( Components.interfaces.nsIFile );
|
||||
if (profileDir) {
|
||||
if (!profileDir.exists()) {
|
||||
var errorMessage = gProfileManagerBundle.getString("sourceProfileDirMissing");
|
||||
errorMessage = gProfileManagerBundle.getString("sourceProfileDirMissing");
|
||||
var profileDirMissingTitle = gProfileManagerBundle.getString("sourceProfileDirMissingTitle");
|
||||
promptService.alert(window, profileDirMissingTitle, errorMessage);
|
||||
return false;
|
||||
@ -111,7 +112,7 @@ function RenameProfile()
|
||||
if (newName == oldName)
|
||||
return false;
|
||||
|
||||
var errorMessage = checkProfileName(newName);
|
||||
errorMessage = checkProfileName(newName);
|
||||
if (errorMessage) {
|
||||
var profileNameInvalidTitle = gProfileManagerBundle.getString("profileNameInvalidTitle");
|
||||
promptService.alert(window, profileNameInvalidTitle, errorMessage);
|
||||
@ -277,7 +278,7 @@ function ChangeCaption( aCaption )
|
||||
{
|
||||
var caption = document.getElementById( "header" );
|
||||
caption.setAttribute( "value", aCaption );
|
||||
window.title = aCaption;
|
||||
document.title = aCaption;
|
||||
}
|
||||
|
||||
// do button enabling based on tree selection
|
||||
|
Loading…
Reference in New Issue
Block a user