mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-03 07:01:19 +00:00
Fixing more of bug 209884. Same change that was done all over the place in the original patch, sr=me.
This commit is contained in:
parent
c7a7e6b916
commit
90d74f98fc
@ -469,11 +469,8 @@ nsDOMParser::ParseFromStream(nsIInputStream *stream,
|
||||
rv = cc->GetJSContext(&cx);
|
||||
if (NS_FAILED(rv)) return NS_ERROR_FAILURE;
|
||||
|
||||
nsISupports *supports =
|
||||
(::JS_GetOptions(cx) & JSOPTION_PRIVATE_IS_NSISUPPORTS)
|
||||
? NS_STATIC_CAST(nsISupports*, ::JS_GetContextPrivate(cx))
|
||||
: nsnull;
|
||||
nsCOMPtr<nsIScriptContext> scriptContext = do_QueryInterface(supports);
|
||||
nsCOMPtr<nsIScriptContext> scriptContext;
|
||||
GetScriptContextFromJSContext(cx, getter_AddRefs(scriptContext));
|
||||
if (scriptContext) {
|
||||
nsCOMPtr<nsIScriptGlobalObject> globalObject;
|
||||
scriptContext->GetGlobalObject(getter_AddRefs(globalObject));
|
||||
|
Loading…
x
Reference in New Issue
Block a user