зеркало из https://github.com/mozilla/ubiquity.git
DFP: Now always trusts local URLs.
This commit is contained in:
Родитель
c1293fb038
Коммит
33bb4aee96
|
@ -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;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче