Bug 924720 - Part 8: Remove BaseProxyHandler::isOuterWindow(). (r=bholley)

This commit is contained in:
Eric Faust 2014-01-29 17:20:16 -08:00
parent c41d46714f
commit 2ae17ed581
3 changed files with 1 additions and 12 deletions

View File

@ -587,10 +587,6 @@ class nsOuterWindowProxy : public js::Wrapper
public:
nsOuterWindowProxy() : js::Wrapper(0) { }
virtual bool isOuterWindow() {
return true;
}
virtual bool finalizeInBackground(JS::Value priv) {
return false;
}

View File

@ -3134,11 +3134,8 @@ ProxyObject::renew(JSContext *cx, BaseProxyHandler *handler, Value priv)
JS_ASSERT_IF(IsCrossCompartmentWrapper(this), IsDeadProxyObject(this));
JS_ASSERT(getParent() == cx->global());
JS_ASSERT(getClass() == &uncallableClass_);
JS_ASSERT(!getClass()->ext.innerObject);
JS_ASSERT(getTaggedProto().isLazy());
#ifdef DEBUG
AutoSuppressGC suppressGC(cx);
JS_ASSERT(!handler->isOuterWindow());
#endif
setSlot(HANDLER_SLOT, PrivateValue(handler));
setCrossCompartmentSlot(PRIVATE_SLOT, priv);

View File

@ -122,10 +122,6 @@ class JS_FRIEND_API(BaseProxyHandler)
return offsetof(BaseProxyHandler, mFamily);
}
virtual bool isOuterWindow() {
return false;
}
virtual bool finalizeInBackground(Value priv) {
/*
* Called on creation of a proxy to determine whether its finalize