mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-02 20:20:00 +00:00
Part of 33105 fix, added option not to show Bad Plugin warning again, r=serge
This commit is contained in:
parent
b80f4a8fd5
commit
c77cb66e71
@ -1423,6 +1423,7 @@ nsPluginHostImpl::nsPluginHostImpl()
|
||||
{
|
||||
NS_INIT_REFCNT();
|
||||
mPluginsLoaded = PR_FALSE;
|
||||
mDontShowBadPluginMessage = PR_FALSE;
|
||||
}
|
||||
|
||||
nsPluginHostImpl::~nsPluginHostImpl()
|
||||
@ -3641,6 +3642,9 @@ NS_IMETHODIMP nsPluginHostImpl::SetCookie(const char* inCookieURL, const void* i
|
||||
NS_IMETHODIMP nsPluginHostImpl::HandleBadPlugin(PRLibrary* aLibrary)
|
||||
{
|
||||
nsresult rv = NS_OK;
|
||||
|
||||
if(mDontShowBadPluginMessage)
|
||||
return rv;
|
||||
|
||||
nsCOMPtr<nsIPrompt> prompt(do_GetService(kNetSupportDialogCID));
|
||||
nsCOMPtr<nsIIOService> io(do_GetService(kIOServiceCID));
|
||||
@ -3717,6 +3721,9 @@ NS_IMETHODIMP nsPluginHostImpl::HandleBadPlugin(PRLibrary* aLibrary)
|
||||
0, /* is first edit field a password field */
|
||||
&buttonPressed);
|
||||
|
||||
if (checkboxState)
|
||||
mDontShowBadPluginMessage = PR_TRUE;
|
||||
|
||||
nsMemory::Free((void *)title);
|
||||
nsMemory::Free((void *)message);
|
||||
nsMemory::Free((void *)checkboxMessage);
|
||||
|
@ -340,6 +340,7 @@ private:
|
||||
char *mPluginPath;
|
||||
nsPluginTag *mPlugins;
|
||||
PRBool mPluginsLoaded;
|
||||
PRBool mDontShowBadPluginMessage;
|
||||
|
||||
nsActivePluginList mActivePluginList;
|
||||
};
|
||||
|
@ -1423,6 +1423,7 @@ nsPluginHostImpl::nsPluginHostImpl()
|
||||
{
|
||||
NS_INIT_REFCNT();
|
||||
mPluginsLoaded = PR_FALSE;
|
||||
mDontShowBadPluginMessage = PR_FALSE;
|
||||
}
|
||||
|
||||
nsPluginHostImpl::~nsPluginHostImpl()
|
||||
@ -3641,6 +3642,9 @@ NS_IMETHODIMP nsPluginHostImpl::SetCookie(const char* inCookieURL, const void* i
|
||||
NS_IMETHODIMP nsPluginHostImpl::HandleBadPlugin(PRLibrary* aLibrary)
|
||||
{
|
||||
nsresult rv = NS_OK;
|
||||
|
||||
if(mDontShowBadPluginMessage)
|
||||
return rv;
|
||||
|
||||
nsCOMPtr<nsIPrompt> prompt(do_GetService(kNetSupportDialogCID));
|
||||
nsCOMPtr<nsIIOService> io(do_GetService(kIOServiceCID));
|
||||
@ -3717,6 +3721,9 @@ NS_IMETHODIMP nsPluginHostImpl::HandleBadPlugin(PRLibrary* aLibrary)
|
||||
0, /* is first edit field a password field */
|
||||
&buttonPressed);
|
||||
|
||||
if (checkboxState)
|
||||
mDontShowBadPluginMessage = PR_TRUE;
|
||||
|
||||
nsMemory::Free((void *)title);
|
||||
nsMemory::Free((void *)message);
|
||||
nsMemory::Free((void *)checkboxMessage);
|
||||
|
@ -340,6 +340,7 @@ private:
|
||||
char *mPluginPath;
|
||||
nsPluginTag *mPlugins;
|
||||
PRBool mPluginsLoaded;
|
||||
PRBool mDontShowBadPluginMessage;
|
||||
|
||||
nsActivePluginList mActivePluginList;
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user