diff --git a/mozilla/docshell/base/nsWebShell.cpp b/mozilla/docshell/base/nsWebShell.cpp index ad8301bf440..68f55561f66 100644 --- a/mozilla/docshell/base/nsWebShell.cpp +++ b/mozilla/docshell/base/nsWebShell.cpp @@ -894,6 +894,10 @@ NS_IMETHODIMP nsWebShell::OnStateChange(nsIWebProgress *aProgress, nsIRequest *aRequest, PRInt32 aStateFlags, nsresult aStatus) { + if (!aRequest) { + return NS_OK; + } + if (aStateFlags & STATE_IS_DOCUMENT) { nsCOMPtr webProgress(do_QueryInterface(mLoadCookie));