diff --git a/js/src/jswrapper.cpp b/js/src/jswrapper.cpp index b10022f5ac05..71c8c645fbb4 100644 --- a/js/src/jswrapper.cpp +++ b/js/src/jswrapper.cpp @@ -859,20 +859,22 @@ bool SecurityWrapper::nativeCall(JSContext *cx, JSObject *wrapper, Class *clasp, Native native, CallArgs args) { - /* Let ProxyHandler report the error. */ - DebugOnly ret = ProxyHandler::nativeCall(cx, wrapper, clasp, native, args); - JS_ASSERT(!ret); - return false; + /* + * Let this through until compartment-per-global lets us have stronger + * invariants wrt document.domain (bug 714547). + */ + return Base::nativeCall(cx, wrapper, clasp, native, args); } template bool SecurityWrapper::objectClassIs(JSObject *obj, ESClassValue classValue, JSContext *cx) { - /* Let ProxyHandler say 'no'. */ - bool ret = ProxyHandler::objectClassIs(obj, classValue, cx); - JS_ASSERT(!ret && !cx->isExceptionPending()); - return ret; + /* + * Let this through until compartment-per-global lets us have stronger + * invariants wrt document.domain (bug 714547). + */ + return Base::objectClassIs(obj, classValue, cx); } template class js::SecurityWrapper;