Bug 1453423 - follow-up: check for openTrustedLinkIn in openTrustedLink(); r=birtles
authorJulian Descottes <jdescottes@mozilla.com>
Thu, 12 Apr 2018 09:05:41 +0200
changeset 412947 68d9ee4629e45587abfadec3172fcc33c2c3579f
parent 412946 4966b5fef257fda94abb735c79634bd8fdd27817
child 412948 bc2413bb322f84d3fb13dd9a17ca57fc2b8d4aaf
push id33828
push userarchaeopteryx@coole-files.de
push dateThu, 12 Apr 2018 19:19:41 +0000
treeherdermozilla-central@6e22c4a726c2 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbirtles
bugs1453423
milestone61.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1453423 - follow-up: check for openTrustedLinkIn in openTrustedLink(); r=birtles MozReview-Commit-ID: 7JZ2NtNJrez
devtools/client/shared/link.js
--- a/devtools/client/shared/link.js
+++ b/devtools/client/shared/link.js
@@ -46,12 +46,12 @@ exports.openWebLink = async function(url
  *        The url to open.
  * @param {Toolbox} toolbox
  *        Toolbox reference to find the parent window.
  * @param {Object} options
  *        Optional parameters, see documentation for openUILinkIn in utilityOverlay.js
  */
 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);
   }
 };