Fix regression bug 244926. Only use the "blocked protocol" handler for

protocols that are actually blocked.  r=biesi, sr=darin
This commit is contained in:
bzbarsky%mit.edu 2004-06-02 01:52:28 +00:00
Родитель cffb10cb94
Коммит 23b2212405
1 изменённых файлов: 1 добавлений и 1 удалений

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

@ -340,7 +340,7 @@ nsIOService::GetProtocolHandler(const char* scheme, nsIProtocolHandler* *result)
// If the pref for this protocol was explicitly set to false, we want to
// use our special "blocked protocol" handler. That will ensure we don't
// open any channels for this protocol.
if (listedProtocol) {
if (listedProtocol && !externalProtocol) {
rv = CallGetService(NS_NETWORK_PROTOCOL_CONTRACTID_PREFIX"default-blocked",
result);
if (NS_FAILED(rv)) return NS_ERROR_UNKNOWN_PROTOCOL;