Bug 959800 - [Offline] mozbrowser iframes don't display correct offline content. r=fabrice, bz

This commit is contained in:
Michael Henretty
2014-01-30 15:06:34 -08:00
parent 6ee6f63cd3
commit 27392eefc0
3 changed files with 21 additions and 2 deletions

View File

@@ -4791,6 +4791,10 @@ nsDocShell::LoadErrorPage(nsIURI *aURI, const char16_t *aURL,
errorPageUrl.AppendASCII(manifestParam.get());
}
nsAutoCString frameType(FrameTypeToString(mFrameType));
errorPageUrl.AppendLiteral("&f=");
errorPageUrl.AppendASCII(frameType.get());
nsCOMPtr<nsIURI> errorPageURI;
rv = NS_NewURI(getter_AddRefs(errorPageURI), errorPageUrl);
NS_ENSURE_SUCCESS(rv, rv);