зеркало из https://github.com/mozilla/gecko-dev.git
Bug 611505 - Fix 'TabParent not thread-safe' errors. r=honzab a=blocking-fennec
This commit is contained in:
Родитель
c0bf7cf5ee
Коммит
b1c1b17c3d
|
@ -83,11 +83,10 @@ namespace dom {
|
||||||
|
|
||||||
TabParent *TabParent::mIMETabParent = nsnull;
|
TabParent *TabParent::mIMETabParent = nsnull;
|
||||||
|
|
||||||
NS_IMPL_ISUPPORTS4(TabParent, nsITabParent, nsIAuthPromptProvider, nsISSLStatusProvider, nsISecureBrowserUI)
|
NS_IMPL_ISUPPORTS3(TabParent, nsITabParent, nsIAuthPromptProvider, nsISecureBrowserUI)
|
||||||
|
|
||||||
TabParent::TabParent()
|
TabParent::TabParent()
|
||||||
: mSecurityState(0)
|
: mIMECompositionEnding(PR_FALSE)
|
||||||
, mIMECompositionEnding(PR_FALSE)
|
|
||||||
, mIMEComposing(PR_FALSE)
|
, mIMEComposing(PR_FALSE)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
@ -199,25 +198,17 @@ TabParent::GetState(PRUint32 *aState)
|
||||||
{
|
{
|
||||||
NS_ENSURE_ARG(aState);
|
NS_ENSURE_ARG(aState);
|
||||||
NS_WARNING("SecurityState not valid here");
|
NS_WARNING("SecurityState not valid here");
|
||||||
*aState = mSecurityState;
|
*aState = 0;
|
||||||
return NS_OK;
|
return NS_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
NS_IMETHODIMP
|
NS_IMETHODIMP
|
||||||
TabParent::GetTooltipText(nsAString & aTooltipText)
|
TabParent::GetTooltipText(nsAString & aTooltipText)
|
||||||
{
|
{
|
||||||
aTooltipText = mSecurityTooltipText;
|
aTooltipText.Truncate();
|
||||||
return NS_OK;
|
return NS_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
NS_IMETHODIMP
|
|
||||||
TabParent::GetSSLStatus(nsISupports ** aStatus)
|
|
||||||
{
|
|
||||||
NS_IF_ADDREF(*aStatus = mSecurityStatusObject);
|
|
||||||
return NS_OK;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
PDocumentRendererParent*
|
PDocumentRendererParent*
|
||||||
TabParent::AllocPDocumentRenderer(const nsRect& documentRect,
|
TabParent::AllocPDocumentRenderer(const nsRect& documentRect,
|
||||||
const gfxMatrix& transform,
|
const gfxMatrix& transform,
|
||||||
|
|
|
@ -50,7 +50,6 @@
|
||||||
#include "nsWeakReference.h"
|
#include "nsWeakReference.h"
|
||||||
#include "nsIDialogParamBlock.h"
|
#include "nsIDialogParamBlock.h"
|
||||||
#include "nsIAuthPromptProvider.h"
|
#include "nsIAuthPromptProvider.h"
|
||||||
#include "nsISSLStatusProvider.h"
|
|
||||||
#include "nsISecureBrowserUI.h"
|
#include "nsISecureBrowserUI.h"
|
||||||
|
|
||||||
class nsFrameLoader;
|
class nsFrameLoader;
|
||||||
|
@ -70,7 +69,6 @@ class TabParent : public PBrowserParent
|
||||||
, public nsITabParent
|
, public nsITabParent
|
||||||
, public nsIAuthPromptProvider
|
, public nsIAuthPromptProvider
|
||||||
, public nsISecureBrowserUI
|
, public nsISecureBrowserUI
|
||||||
, public nsISSLStatusProvider
|
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
TabParent();
|
TabParent();
|
||||||
|
@ -154,7 +152,6 @@ public:
|
||||||
NS_DECL_ISUPPORTS
|
NS_DECL_ISUPPORTS
|
||||||
NS_DECL_NSIAUTHPROMPTPROVIDER
|
NS_DECL_NSIAUTHPROMPTPROVIDER
|
||||||
NS_DECL_NSISECUREBROWSERUI
|
NS_DECL_NSISECUREBROWSERUI
|
||||||
NS_DECL_NSISSLSTATUSPROVIDER
|
|
||||||
|
|
||||||
void HandleDelayedDialogs();
|
void HandleDelayedDialogs();
|
||||||
|
|
||||||
|
@ -199,10 +196,6 @@ protected:
|
||||||
NS_OVERRIDE
|
NS_OVERRIDE
|
||||||
virtual bool DeallocPRenderFrame(PRenderFrameParent* aFrame);
|
virtual bool DeallocPRenderFrame(PRenderFrameParent* aFrame);
|
||||||
|
|
||||||
PRUint32 mSecurityState;
|
|
||||||
nsString mSecurityTooltipText;
|
|
||||||
nsCOMPtr<nsISupports> mSecurityStatusObject;
|
|
||||||
|
|
||||||
// IME
|
// IME
|
||||||
static TabParent *mIMETabParent;
|
static TabParent *mIMETabParent;
|
||||||
nsString mIMECacheText;
|
nsString mIMECacheText;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче