Allow local RSS messages to bypass the remote image blocking policy for Thunderbird. Improvement to Bug #250246.

(NOT PART OF THE SEAMONKEY BUILD which is closed)
This commit is contained in:
scott%scott-macgregor.org 2004-07-31 03:57:39 +00:00
Родитель a07963370c
Коммит d7f2b29ce0
1 изменённых файлов: 10 добавлений и 2 удалений

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

@ -199,9 +199,17 @@ nsMsgContentPolicy::ShouldLoad(PRUint32 aContentType,
PRUint32 remoteContentPolicy = kNoRemoteContentPolicy;
msgHdr->GetUint32Property("remoteContentPolicy", &remoteContentPolicy);
// get the folder and the server from the msghdr
// an error trying to get the folder shouldn't make us quit...
nsCOMPtr<nsIRssIncomingServer> rssServer;
nsCOMPtr<nsIMsgFolder> folder;
rv = msgHdr->GetFolder(getter_AddRefs(folder));
if (NS_SUCCEEDED(rv))
{
nsCOMPtr<nsIMsgIncomingServer> server;
mailnewsUrl->GetServer(getter_AddRefs(server));
nsCOMPtr<nsIRssIncomingServer> rssServer = do_QueryInterface(server);
folder->GetServer(getter_AddRefs(server));
rssServer = do_QueryInterface(server);
}
// Case #1 and #2: special case RSS. Allow urls that are RSS feeds to show remote image (Bug #250246)
// Honor the message specific remote content policy