Bug 1453423 - follow-up: check for openTrustedLinkIn in openTrustedLink(); r=birtles

MozReview-Commit-ID: 7JZ2NtNJrez
This commit is contained in:
Julian Descottes 2018-04-12 09:05:41 +02:00
Родитель 3f9f68c861
Коммит 3550b37454
1 изменённых файлов: 1 добавлений и 1 удалений

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

@ -51,7 +51,7 @@ exports.openWebLink = async function(url, toolbox, options) {
*/
exports.openTrustedLink = async function(url, toolbox, options) {
const top = _getTopWindow(toolbox);
if (top && typeof top.openWebLinkIn === "function") {
if (top && typeof top.openTrustedLinkIn === "function") {
top.openTrustedLinkIn(url, "tab", options);
}
};