diff --git a/browser/base/content/browser.js b/browser/base/content/browser.js index 39c1b43180d..111a698f058 100644 --- a/browser/base/content/browser.js +++ b/browser/base/content/browser.js @@ -8038,6 +8038,10 @@ var gIdentityHandler = { delete this._identityIconCountryLabel; return this._identityIconCountryLabel = document.getElementById("identity-icon-country-label"); }, + get _identityIcon () { + delete this._identityIcon; + return this._identityIcon = document.getElementById("page-proxy-favicon"); + }, /** * Rebuild cache of the elements that may or may not exist depending @@ -8047,9 +8051,11 @@ var gIdentityHandler = { delete this._identityBox; delete this._identityIconLabel; delete this._identityIconCountryLabel; + delete this._identityIcon; this._identityBox = document.getElementById("identity-box"); this._identityIconLabel = document.getElementById("identity-icon-label"); this._identityIconCountryLabel = document.getElementById("identity-icon-country-label"); + this._identityIcon = document.getElementById("page-proxy-favicon"); }, /** @@ -8354,7 +8360,7 @@ var gIdentityHandler = { }, false); // Now open the popup, anchored off the primary chrome element - this._identityPopup.openPopup(this._identityBox, "bottomcenter topleft"); + this._identityPopup.openPopup(this._identityIcon, "bottomcenter topleft"); }, onPopupShown : function(event) { diff --git a/browser/components/migration/content/migration.js b/browser/components/migration/content/migration.js index b7c9c7f46a6..1affb3599fe 100644 --- a/browser/components/migration/content/migration.js +++ b/browser/components/migration/content/migration.js @@ -18,7 +18,6 @@ var MigrationWizard = { _wiz: null, _migrator: null, _autoMigrate: null, - _bookmarks: false, init: function () { @@ -64,34 +63,15 @@ var MigrationWizard = { // 1 - Import Source onImportSourcePageShow: function () { - // Reference to the "From File" radio button - var fromfile = null; - - // init is not called when openDialog opens the wizard, so check for bookmarks here. - if ("arguments" in window && window.arguments[0] == "bookmarks") { - this._bookmarks = true; - - fromfile = document.getElementById("fromfile"); - fromfile.hidden = false; - - var importBookmarks = document.getElementById("importBookmarks"); - importBookmarks.hidden = false; - - var importAll = document.getElementById("importAll"); - importAll.hidden = true; - } - this._wiz.canRewind = false; - // The migrator to select. If the "fromfile" migrator is available, use it - // as the default in case we have no other migrators. - var selectedMigrator = fromfile; + var selectedMigrator = null; // Figure out what source apps are are available to import from: var group = document.getElementById("importSourceGroup"); for (var i = 0; i < group.childNodes.length; ++i) { var migratorKey = group.childNodes[i].id; - if (migratorKey != "nothing" && migratorKey != "fromfile") { + if (migratorKey != "nothing") { var migrator = MigrationUtils.getMigrator(migratorKey); if (migrator) { // Save this as the first selectable item, if we don't already have @@ -128,9 +108,7 @@ var MigrationWizard = { { var newSource = document.getElementById("importSourceGroup").selectedItem.id; - if (newSource == "nothing" || newSource == "fromfile") { - if(newSource == "fromfile") - window.opener.fromFile = true; + if (newSource == "nothing") { document.documentElement.cancel(); return false; } @@ -152,8 +130,6 @@ var MigrationWizard = { else { if (this._autoMigrate) this._wiz.currentPage.next = "homePageImport"; - else if (this._bookmarks) - this._wiz.currentPage.next = "migrating" else this._wiz.currentPage.next = "importItems"; @@ -205,8 +181,6 @@ var MigrationWizard = { // If we're automigrating or just doing bookmarks don't show the item selection page if (this._autoMigrate) this._wiz.currentPage.next = "homePageImport"; - else if (this._bookmarks) - this._wiz.currentPage.next = "migrating" }, // 3 - ImportItems @@ -352,10 +326,6 @@ var MigrationWizard = { if (this._autoMigrate) this._itemsFlags = this._migrator.getMigrateData(this._selectedProfile, this._autoMigrate); - // When importing bookmarks, show only bookmarks - if (this._bookmarks) - this._itemsFlags = 32; - this._listItems("migratingItems"); setTimeout(this.onMigratingMigrate, 0, this); }, diff --git a/browser/components/migration/content/migration.xul b/browser/components/migration/content/migration.xul index cc53a7bff94..b16bfc6843b 100644 --- a/browser/components/migration/content/migration.xul +++ b/browser/components/migration/content/migration.xul @@ -71,7 +71,6 @@ -