зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
cffb10cb94
Коммит
23b2212405
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче