Fixing bustage in a different way! Courtesy: Heikki

This commit is contained in:
harishd%netscape.com 2003-03-25 02:02:33 +00:00
Родитель ed289a9b65
Коммит 9bd2582d31
2 изменённых файлов: 4 добавлений и 8 удалений

Просмотреть файл

@ -542,10 +542,8 @@ nsWebScriptsAccess::CheckAccess(AccessInfoEntry* aEntry,
NS_REINTERPRET_CAST(AccessInfo*, aEntry->mInfoArray.ElementAt(index));
NS_ASSERTION(access_info, "Entry is missing attribute information");
const nsAString& type =
access_info->mType ?
nsDependentString(access_info->mType) : nsDependentString(kAny.get());
if (type.Equals(kAny) || type.Equals(aRequestType)) {
if (!access_info->mType || kAny.Equals(access_info->mType) ||
aRequestType.Equals(access_info->mType)) {
if (!access_info->mFrom) {
// If "from" is not specified, then all scripts will be allowed
*aAccessGranted = PR_TRUE;

Просмотреть файл

@ -542,10 +542,8 @@ nsWebScriptsAccess::CheckAccess(AccessInfoEntry* aEntry,
NS_REINTERPRET_CAST(AccessInfo*, aEntry->mInfoArray.ElementAt(index));
NS_ASSERTION(access_info, "Entry is missing attribute information");
const nsAString& type =
access_info->mType ?
nsDependentString(access_info->mType) : nsDependentString(kAny.get());
if (type.Equals(kAny) || type.Equals(aRequestType)) {
if (!access_info->mType || kAny.Equals(access_info->mType) ||
aRequestType.Equals(access_info->mType)) {
if (!access_info->mFrom) {
// If "from" is not specified, then all scripts will be allowed
*aAccessGranted = PR_TRUE;