Bug 774706 - Ensure script to be serialized is not gray. r=mccr8

This commit is contained in:
Benjamin Peterson 2012-08-07 13:24:44 -07:00
parent c22525a970
commit 1597f0648d

View File

@ -2010,9 +2010,8 @@ nsJSContext::Serialize(nsIObjectOutputStream* aStream, JSScript* aScriptObject)
if (!aScriptObject) if (!aScriptObject)
return NS_ERROR_FAILURE; return NS_ERROR_FAILURE;
return nsContentUtils::XPConnect()->WriteScript(aStream, mContext, aScriptObject); return nsContentUtils::XPConnect()->WriteScript(aStream, mContext,
xpc_UnmarkGrayScript(aScriptObject); xpc_UnmarkGrayScript(aScriptObject));
} }
nsresult nsresult