Bug 564351 - e10s: fix XMLHttpRequests in xpcshell. r=bent

This commit is contained in:
Josh Matthews 2010-07-31 12:07:13 -04:00
parent 28fceb2568
commit 0b88c1dad4

View File

@ -1215,6 +1215,9 @@ bool
XPCShellEnvironment::EvaluateString(const nsString& aString,
nsString* aResult)
{
XPCShellEnvironment* env = Environment(mCx);
XPCShellEnvironment::AutoContextPusher pusher(env);
JSAutoRequest ar(mCx);
JS_ClearPendingException(mCx);