Fix for bug 90951 Trunk & N610 crash in [@ 0x00000000 - MimeTypeElementImpl::GetEnabledPlugin] after plugin.refresh() r=av/dbaron sr=brendan
git-svn-id: svn://10.0.0.236/trunk@99746 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -23,6 +23,7 @@
|
||||
|
||||
#include "nsPluginArray.h"
|
||||
#include "nsMimeTypeArray.h"
|
||||
#include "nsGlobalWindow.h"
|
||||
#include "nsIScriptGlobalObject.h"
|
||||
#include "nsIDOMNavigator.h"
|
||||
#include "nsIDOMMimeType.h"
|
||||
@@ -34,7 +35,7 @@
|
||||
|
||||
static NS_DEFINE_CID(kPluginManagerCID, NS_PLUGINMANAGER_CID);
|
||||
|
||||
PluginArrayImpl::PluginArrayImpl(nsIDOMNavigator* navigator,
|
||||
PluginArrayImpl::PluginArrayImpl(NavigatorImpl* navigator,
|
||||
nsIDocShell *aDocShell)
|
||||
{
|
||||
nsresult rv;
|
||||
@@ -183,6 +184,9 @@ PluginArrayImpl::Refresh(PRBool aReloadDocuments)
|
||||
if(pm)
|
||||
pm->ReloadPlugins(aReloadDocuments);
|
||||
|
||||
if (mNavigator)
|
||||
mNavigator->RefreshMIMEArray();
|
||||
|
||||
if (aReloadDocuments && mDocShell) {
|
||||
nsCOMPtr<nsIWebNavigation> webNav(do_QueryInterface(mDocShell));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user