Bug 273056 PluginArrayImpl::GetLength should not throw if there's no plugin host, and PluginArrayImpl::GetPlugins should handle no plugin host and failure from mPluginHost->GetPlugins
r=bz sr=jst git-svn-id: svn://10.0.0.236/trunk@167888 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -4322,7 +4322,7 @@ nsPluginHostImpl::GetPluginCount(PRUint32* aPluginCount)
|
||||
|
||||
////////////////////////////////////////////////////////////////////////
|
||||
NS_IMETHODIMP
|
||||
nsPluginHostImpl::GetPlugins(PRUint32 aPluginCount, nsIDOMPlugin* aPluginArray[])
|
||||
nsPluginHostImpl::GetPlugins(PRUint32 aPluginCount, nsIDOMPlugin** aPluginArray)
|
||||
{
|
||||
LoadPlugins();
|
||||
|
||||
|
||||
@@ -285,7 +285,7 @@ public:
|
||||
GetPluginCount(PRUint32* aPluginCount);
|
||||
|
||||
NS_IMETHOD
|
||||
GetPlugins(PRUint32 aPluginCount, nsIDOMPlugin* aPluginArray[]);
|
||||
GetPlugins(PRUint32 aPluginCount, nsIDOMPlugin** aPluginArray);
|
||||
|
||||
NS_IMETHOD
|
||||
HandleBadPlugin(PRLibrary* aLibrary, nsIPluginInstance *instance);
|
||||
|
||||
Reference in New Issue
Block a user