mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 13:51:41 +00:00
Fixing bug 211719. Making window.opener replaceable. r=caillon@aillon.org, sr=bzbarsky@mit.edu.
This commit is contained in:
parent
2b9c528a6a
commit
328cc422fa
@ -897,6 +897,7 @@ jsval nsDOMClassInfo::sDocument_id = JSVAL_VOID;
|
||||
jsval nsDOMClassInfo::sWindow_id = JSVAL_VOID;
|
||||
jsval nsDOMClassInfo::sFrames_id = JSVAL_VOID;
|
||||
jsval nsDOMClassInfo::sSelf_id = JSVAL_VOID;
|
||||
jsval nsDOMClassInfo::sOpener_id = JSVAL_VOID;
|
||||
|
||||
const JSClass *nsDOMClassInfo::sObjectClass = nsnull;
|
||||
|
||||
@ -1000,6 +1001,7 @@ nsDOMClassInfo::DefineStaticJSVals(JSContext *cx)
|
||||
SET_JSVAL_TO_STRING(sWindow_id, cx, "window");
|
||||
SET_JSVAL_TO_STRING(sFrames_id, cx, "frames");
|
||||
SET_JSVAL_TO_STRING(sSelf_id, cx, "self");
|
||||
SET_JSVAL_TO_STRING(sOpener_id, cx, "opener");
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
@ -2845,6 +2847,7 @@ nsDOMClassInfo::ShutDown()
|
||||
sWindow_id = JSVAL_VOID;
|
||||
sFrames_id = JSVAL_VOID;
|
||||
sSelf_id = JSVAL_VOID;
|
||||
sOpener_id = JSVAL_VOID;
|
||||
|
||||
NS_IF_RELEASE(sXPConnect);
|
||||
NS_IF_RELEASE(sSecMan);
|
||||
|
@ -175,6 +175,7 @@ protected:
|
||||
{
|
||||
return (id == sInnerHeight_id ||
|
||||
id == sInnerWidth_id ||
|
||||
id == sOpener_id ||
|
||||
id == sOuterHeight_id ||
|
||||
id == sOuterWidth_id ||
|
||||
id == sScreenX_id ||
|
||||
@ -260,6 +261,7 @@ protected:
|
||||
static jsval sWindow_id;
|
||||
static jsval sFrames_id;
|
||||
static jsval sSelf_id;
|
||||
static jsval sOpener_id;
|
||||
|
||||
static const JSClass *sObjectClass;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user