mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 834732 - Make SafeAutoJSContext actually push something. r=mrbkap
Currently it never does, because the SafeJSContext doesn't have an nsIScriptContext behind it. :-(
This commit is contained in:
parent
997dcc7d65
commit
c6da4f2657
@ -6833,9 +6833,7 @@ AutoJSContext::Init(bool aSafe MOZ_GUARD_OBJECT_NOTIFIER_PARAM_IN_IMPL)
|
||||
|
||||
if (!mCx) {
|
||||
mCx = nsContentUtils::GetSafeJSContext();
|
||||
// XXXbholley - This is totally wrong, but necessary to make this patch
|
||||
// not change any behavior. We'll fix it in an upcoming patch.
|
||||
bool result = mPusher.Push(mCx, nsCxPusher::REQUIRE_SCRIPT_CONTEXT);
|
||||
bool result = mPusher.Push(mCx, nsCxPusher::ALWAYS_PUSH);
|
||||
if (!result || !mCx) {
|
||||
MOZ_CRASH();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user