diff --git a/browser/devtools/markupview/markup-view.js b/browser/devtools/markupview/markup-view.js index adaaacb9847a..234b10281583 100644 --- a/browser/devtools/markupview/markup-view.js +++ b/browser/devtools/markupview/markup-view.js @@ -2162,7 +2162,7 @@ MarkupElementContainer.prototype = Heritage.extend(MarkupContainer.prototype, { */ isImagePreviewTarget: function(target, tooltip) { if (!this.tooltipData || this.tooltipData.target !== target) { - return promise.reject(); + return promise.reject(false); } return this.tooltipData.data.then(({data, size}) => { diff --git a/browser/devtools/shared/widgets/Tooltip.js b/browser/devtools/shared/widgets/Tooltip.js index abe8a818c856..977752e14ee2 100644 --- a/browser/devtools/shared/widgets/Tooltip.js +++ b/browser/devtools/shared/widgets/Tooltip.js @@ -453,8 +453,6 @@ Tooltip.prototype = { if (res && res.then) { return res.then(arg => { return arg instanceof Ci.nsIDOMNode ? arg : target; - }, () => { - return false; }); } else { let newTarget = res instanceof Ci.nsIDOMNode ? res : target;