Bug 482659. Give about:blank documents the base URI of the document that did the load. r=dcamp, sr=jst

This commit is contained in:
Boris Zbarsky
2009-03-16 20:59:33 -04:00
parent 935488294e
commit ccbe4f4682
14 changed files with 393 additions and 4 deletions

View File

@@ -159,7 +159,7 @@ nsFrameLoader::LoadFrame()
// If the URI was malformed, try to recover by loading about:blank.
if (rv == NS_ERROR_MALFORMED_URI) {
rv = NS_NewURI(getter_AddRefs(uri), NS_LITERAL_STRING("about:blank"),
charset);
charset, base_uri);
}
NS_ENSURE_SUCCESS(rv, rv);