DFP: Now always trusts local URLs.

This commit is contained in:
satyr 2010-09-08 21:50:29 +09:00
Родитель c1293fb038
Коммит 33bb4aee96
1 изменённых файлов: 2 добавлений и 1 удалений

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

@ -100,7 +100,8 @@ function DefaultFeedPlugin(feedManager, messageService, webJsm,
title: title,
});
if (!isTrustedUrl(commandsUrl, targetLink.type)) {
if (!LocalUriCodeSource.isValidUri(commandsUrl) &&
!isTrustedUrl(commandsUrl, targetLink.type)) {
Utils.openUrlInBrowser(confirmUrl);
return;
}