mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 06:11:37 +00:00
Bug fixes to isSecurePrincipal. We weren't checking codebase_principal preference correctly.
This commit is contained in:
parent
a32ad94d34
commit
a298828e34
@ -360,13 +360,13 @@ PRBool nsPrincipal::isSecurePrincipal(void)
|
||||
if (!isCodebase())
|
||||
return PR_TRUE;
|
||||
|
||||
if ((memcmp("https:", itsKey, strlen("https:"))) ||
|
||||
(memcmp("file:", itsKey, strlen("file:"))))
|
||||
if ((0 == memcmp("https:", itsKey, strlen("https:"))) ||
|
||||
(0 == memcmp("file:", itsKey, strlen("file:"))))
|
||||
return PR_TRUE;
|
||||
|
||||
/* signed.applets.codebase_principal_support */
|
||||
if ((memcmp("http:", itsKey, strlen("http:"))) &&
|
||||
(!CMGetBoolPref("signed.applets.codebase_principal_support")))
|
||||
if ((0 == memcmp("http:", itsKey, strlen("http:"))) &&
|
||||
(CMGetBoolPref("signed.applets.codebase_principal_support")))
|
||||
return PR_TRUE;
|
||||
|
||||
return PR_FALSE;
|
||||
|
Loading…
Reference in New Issue
Block a user