diff --git a/mozilla/docshell/base/nsDocShell.cpp b/mozilla/docshell/base/nsDocShell.cpp index aa70b81a826..fbae0051f78 100644 --- a/mozilla/docshell/base/nsDocShell.cpp +++ b/mozilla/docshell/base/nsDocShell.cpp @@ -3648,10 +3648,14 @@ nsDocShell::OnStateChange(nsIWebProgress * aProgress, nsIRequest * aRequest, PRInt32 aStateFlags, nsresult aStatus) { nsresult rv; + // Update the busy cursor if ((~aStateFlags & (STATE_START | STATE_IS_NETWORK)) == 0) { - nsCOMPtr wcwgChannel(do_QueryInterface(aRequest)); - if (wcwgChannel && !mLSHE && (mItemType == typeContent)) { + nsCOMPtr wcwgChannel(do_QueryInterface(aRequest)); + nsCOMPtr webProgress(do_QueryInterface(mLoadCookie)); + + // Was the wyciwyg document loaded on this docshell? + if (wcwgChannel && !mLSHE && (mItemType == typeContent) && aProgress == webProgress.get()) { nsCOMPtr uri; wcwgChannel->GetURI(getter_AddRefs(uri));