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

git-svn-id: svn://10.0.0.236/trunk@142912 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
locka%iol.ie
2003-05-26 12:14:17 +00:00
parent f5fcbf23dc
commit ca19d857f9
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) {