sr=rpotts, r=gagan. 70743. switching over to new extensible URI::SchemeIs() api
git-svn-id: svn://10.0.0.236/trunk@89422 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -526,8 +526,8 @@ nsScriptSecurityManager::CheckLoadURIFromScript(JSContext *cx,
|
||||
// UniversalFileRead capability trump the above check.
|
||||
PRBool isFile = PR_FALSE;
|
||||
PRBool isRes = PR_FALSE;
|
||||
if (NS_FAILED(aURI->SchemeIs(nsIURI::FILE, &isFile)) ||
|
||||
NS_FAILED(aURI->SchemeIs(nsIURI::RESOURCE, &isRes)))
|
||||
if (NS_FAILED(aURI->SchemeIs("file", &isFile)) ||
|
||||
NS_FAILED(aURI->SchemeIs("resource", &isRes)))
|
||||
return NS_ERROR_FAILURE;
|
||||
if (isFile || isRes)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user