Checked in some bug fixes from michaelp to make fullscreen plugins work better/more often
git-svn-id: svn://10.0.0.236/trunk@9683 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -526,9 +526,16 @@ nsPluginHostImpl::FindProxyForURL(const char* url, char* *result)
|
||||
|
||||
nsresult nsPluginHostImpl :: Init(void)
|
||||
{
|
||||
nsresult rv;
|
||||
nsresult rv;
|
||||
nsISupports *object;
|
||||
|
||||
rv = nsMalloc::Create(nsnull, kIMallocIID, (void **)&mMalloc);
|
||||
rv = nsMalloc::Create(nsnull, kIMallocIID, (void **)&object);
|
||||
|
||||
if (NS_OK == rv)
|
||||
{
|
||||
rv = object->QueryInterface(kIMallocIID, (void **)&mMalloc);
|
||||
NS_RELEASE(object);
|
||||
}
|
||||
|
||||
return rv;
|
||||
}
|
||||
|
||||
@@ -78,11 +78,13 @@ NS_IMETHODIMP nsPluginInstancePeerImpl :: SetValue(nsPluginInstancePeerVariable
|
||||
|
||||
NS_IMETHODIMP nsPluginInstancePeerImpl :: GetMIMEType(nsMIMEType *result)
|
||||
{
|
||||
*result = "model/vrml";
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP nsPluginInstancePeerImpl :: GetMode(nsPluginMode *result)
|
||||
{
|
||||
*result = nsPluginMode_Full;
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
@@ -99,6 +101,8 @@ NS_IMETHODIMP nsPluginInstancePeerImpl :: ShowStatus(const char* message)
|
||||
NS_IMETHODIMP nsPluginInstancePeerImpl :: GetAttributes(PRUint16& n, const char*const*& names, const char*const*& values)
|
||||
{
|
||||
n = 0;
|
||||
names = nsnull;
|
||||
values = nsnull;
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -526,9 +526,16 @@ nsPluginHostImpl::FindProxyForURL(const char* url, char* *result)
|
||||
|
||||
nsresult nsPluginHostImpl :: Init(void)
|
||||
{
|
||||
nsresult rv;
|
||||
nsresult rv;
|
||||
nsISupports *object;
|
||||
|
||||
rv = nsMalloc::Create(nsnull, kIMallocIID, (void **)&mMalloc);
|
||||
rv = nsMalloc::Create(nsnull, kIMallocIID, (void **)&object);
|
||||
|
||||
if (NS_OK == rv)
|
||||
{
|
||||
rv = object->QueryInterface(kIMallocIID, (void **)&mMalloc);
|
||||
NS_RELEASE(object);
|
||||
}
|
||||
|
||||
return rv;
|
||||
}
|
||||
|
||||
@@ -78,11 +78,13 @@ NS_IMETHODIMP nsPluginInstancePeerImpl :: SetValue(nsPluginInstancePeerVariable
|
||||
|
||||
NS_IMETHODIMP nsPluginInstancePeerImpl :: GetMIMEType(nsMIMEType *result)
|
||||
{
|
||||
*result = "model/vrml";
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP nsPluginInstancePeerImpl :: GetMode(nsPluginMode *result)
|
||||
{
|
||||
*result = nsPluginMode_Full;
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
@@ -99,6 +101,8 @@ NS_IMETHODIMP nsPluginInstancePeerImpl :: ShowStatus(const char* message)
|
||||
NS_IMETHODIMP nsPluginInstancePeerImpl :: GetAttributes(PRUint16& n, const char*const*& names, const char*const*& values)
|
||||
{
|
||||
n = 0;
|
||||
names = nsnull;
|
||||
values = nsnull;
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user