Check for invalid combination of load flags. b=87353 r=radha@netscape.com sr=blizzard@mozilla.org

This commit is contained in:
locka@iol.ie
2003-05-26 12:14:17 +00:00
parent 5f4a29a6d0
commit 7f8a84d1e3
2 changed files with 28 additions and 1 deletions

View File

@@ -4917,6 +4917,8 @@ nsDocShell::InternalLoad(nsIURI * aURI,
return NS_ERROR_NULL_POINTER;
}
NS_ENSURE_TRUE(IsValidLoadType(aLoadType), NS_ERROR_INVALID_ARG);
// wyciwyg urls can only be loaded through history. Any normal load of
// wyciwyg through docshell is illegal. Disallow such loads.
if (aLoadType & LOAD_CMD_NORMAL) {