Bug#368532 --> inline table editing controls aren't being displayed because the content policy is blocking resource urls. sr=bienvenu

This commit is contained in:
scott%scott-macgregor.org 2007-01-29 07:40:18 +00:00
Родитель 40e2fd46a8
Коммит a79d5a42c1
1 изменённых файлов: 4 добавлений и 4 удалений

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

@ -290,11 +290,11 @@ nsMsgContentPolicy::ShouldLoad(PRUint32 aContentType,
contentScheme.LowerCaseEqualsLiteral("about")) contentScheme.LowerCaseEqualsLiteral("about"))
isExposedProtocol = PR_TRUE; isExposedProtocol = PR_TRUE;
#endif #endif
rv = aContentLocation->SchemeIs("chrome", &isChrome);
NS_ENSURE_SUCCESS(rv, NS_OK);
if (isExposedProtocol || isChrome) rv = aContentLocation->SchemeIs("chrome", &isChrome);
rv |= aContentLocation->SchemeIs("resource", &isRes);
if (isExposedProtocol || (NS_SUCCEEDED(rv) && (isChrome || isRes)))
{ {
*aDecision = nsIContentPolicy::ACCEPT; *aDecision = nsIContentPolicy::ACCEPT;
return NS_OK; return NS_OK;