Bug 1497598. Stop using GetCurrentJSContext in loadcontext code. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D8122
This commit is contained in:
@@ -13704,12 +13704,10 @@ nsDocShell::GetIsTopLevelContentDocShell(bool* aIsTopLevelContentDocShell)
|
||||
|
||||
// Implements nsILoadContext.originAttributes
|
||||
NS_IMETHODIMP
|
||||
nsDocShell::GetScriptableOriginAttributes(JS::MutableHandle<JS::Value> aVal)
|
||||
nsDocShell::GetScriptableOriginAttributes(JSContext* aCx,
|
||||
JS::MutableHandle<JS::Value> aVal)
|
||||
{
|
||||
JSContext* cx = nsContentUtils::GetCurrentJSContext();
|
||||
MOZ_ASSERT(cx);
|
||||
|
||||
return GetOriginAttributes(cx, aVal);
|
||||
return GetOriginAttributes(aCx, aVal);
|
||||
}
|
||||
|
||||
// Implements nsIDocShell.GetOriginAttributes()
|
||||
|
||||
Reference in New Issue
Block a user