зеркало из https://github.com/mozilla/pjs.git
Bug 745427 - Fix XPCWrappedNativeScope::SetContext; r=gal
This commit is contained in:
Родитель
e5f8d871fb
Коммит
0be8ac200e
|
@ -77,8 +77,9 @@ XPCContext::~XPCContext()
|
|||
for (PRCList *scopeptr = PR_NEXT_LINK(&mScopes);
|
||||
scopeptr != &mScopes;
|
||||
scopeptr = PR_NEXT_LINK(scopeptr)) {
|
||||
XPCWrappedNativeScope *scope = (XPCWrappedNativeScope *)scopeptr;
|
||||
scope->SetContext(nsnull);
|
||||
XPCWrappedNativeScope *scope =
|
||||
static_cast<XPCWrappedNativeScope*>(scopeptr);
|
||||
scope->ClearContext();
|
||||
}
|
||||
|
||||
// we do not call JS_RemoveArgumentFormatter because we now only
|
||||
|
|
|
@ -1606,7 +1606,7 @@ public:
|
|||
static void InitStatics() { gScopes = nsnull; gDyingScopes = nsnull; }
|
||||
|
||||
XPCContext *GetContext() { return mContext; }
|
||||
void SetContext(XPCContext *xpcc) { mContext = nsnull; }
|
||||
void ClearContext() { mContext = nsnull; }
|
||||
|
||||
nsDataHashtable<nsDepCharHashKey, JSObject*>& GetCachedDOMPrototypes()
|
||||
{
|
||||
|
|
Загрузка…
Ссылка в новой задаче