Skip to content

Commit

Permalink
Bug 1306300, null check nsILoadContext in GetLoadContextCodebasePrinc…
Browse files Browse the repository at this point in the history
…ipal, r=baku
  • Loading branch information
Olli Pettay authored and Olli Pettay committed Sep 29, 2016
1 parent 7c53a79 commit 9f0454f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions caps/nsScriptSecurityManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1169,6 +1169,7 @@ nsScriptSecurityManager::
nsILoadContext* aLoadContext,
nsIPrincipal** aPrincipal)
{
NS_ENSURE_STATE(aLoadContext);
DocShellOriginAttributes docShellAttrs;
bool result = aLoadContext->GetOriginAttributes(docShellAttrs);;
NS_ENSURE_TRUE(result, NS_ERROR_FAILURE);
Expand Down

0 comments on commit 9f0454f

Please sign in to comment.