Bug 291716 - Install missing plugins... button only works once. r=mconnor,a=mkaply
This commit is contained in:
@@ -536,9 +536,6 @@ nsPluginInstallerWizard.prototype.showPluginResults = function (){
|
|||||||
|
|
||||||
document.getElementById("moreInfoLink").addEventListener("click", function() { gPluginInstaller.loadURL("https://pfs.mozilla.org/plugins/" + notInstalledList) }, false);
|
document.getElementById("moreInfoLink").addEventListener("click", function() { gPluginInstaller.loadURL("https://pfs.mozilla.org/plugins/" + notInstalledList) }, false);
|
||||||
|
|
||||||
// clear the tab's plugin list
|
|
||||||
this.mTab.missingPlugins = null;
|
|
||||||
|
|
||||||
this.canAdvance(true);
|
this.canAdvance(true);
|
||||||
this.canRewind(false);
|
this.canRewind(false);
|
||||||
this.canCancel(false);
|
this.canCancel(false);
|
||||||
@@ -624,7 +621,11 @@ function wizardFinish(){
|
|||||||
if ((gPluginInstaller.mSuccessfullPluginInstallation > 0) &&
|
if ((gPluginInstaller.mSuccessfullPluginInstallation > 0) &&
|
||||||
(gPluginInstaller.mPluginInfoArray.length != 0) &&
|
(gPluginInstaller.mPluginInfoArray.length != 0) &&
|
||||||
gPluginInstaller.mTab) {
|
gPluginInstaller.mTab) {
|
||||||
|
// clear the tab's plugin list only if we installed at least one plugin
|
||||||
|
gPluginInstaller.mTab.missingPlugins = null;
|
||||||
|
// reset UI
|
||||||
window.opener.getBrowser().hideMessage(window.opener.getBrowser().selectedBrowser, "top");
|
window.opener.getBrowser().hideMessage(window.opener.getBrowser().selectedBrowser, "top");
|
||||||
|
// reload the browser to make the new plugin show
|
||||||
window.opener.getBrowser().reloadTab(gPluginInstaller.mTab);
|
window.opener.getBrowser().reloadTab(gPluginInstaller.mTab);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user