зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1453423 - follow-up: check for openTrustedLinkIn in openTrustedLink(); r=birtles
MozReview-Commit-ID: 7JZ2NtNJrez
This commit is contained in:
Родитель
3f9f68c861
Коммит
3550b37454
|
@ -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);
|
||||
}
|
||||
};
|
||||
|
|
Загрузка…
Ссылка в новой задаче