зеркало из https://github.com/mozilla/gecko-dev.git
sr=rpotts, r=gagan. 70743. switching over to new extensible URI::SchemeIs() api
This commit is contained in:
Родитель
846b77f4e4
Коммит
20f0ac2a44
|
@ -860,7 +860,7 @@ nsXMLHttpRequest::OpenRequest(const char *method,
|
|||
// The following check takes the place of nsScriptSecurityManager::CheckLoadURI
|
||||
// since loads of http URLs are always allowed.
|
||||
PRBool isHTTP = PR_FALSE;
|
||||
uri->SchemeIs(nsIURI::HTTP, &isHTTP);
|
||||
uri->SchemeIs("http", &isHTTP);
|
||||
if (!isHTTP)
|
||||
return NS_ERROR_INVALID_ARG;
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче