Bug 1293211 - wait for xul wrapper popupshown event in HTMLTooltip;r=bgrins
MozReview-Commit-ID: Gv04Fc1cfgI
--- a/devtools/client/shared/widgets/HTMLTooltip.js
+++ b/devtools/client/shared/widgets/HTMLTooltip.js
@@ -364,17 +364,17 @@ HTMLTooltip.prototype = {
this.container.style.width = width + "px";
if (this.type === TYPE.ARROW) {
this.arrow.style.left = arrowLeft + "px";
}
if (this.useXulWrapper) {
- this._showXulWrapperAt(left, top);
+ yield this._showXulWrapperAt(left, top);
} else {
this.container.style.left = left + "px";
this.container.style.top = top + "px";
}
this.container.classList.add("tooltip-visible");
// Keep a pointer on the focused element to refocus it when hiding the tooltip.