Bug 1293211 - wait for xul wrapper popupshown event in HTMLTooltip;r=bgrins draft
authorJulian Descottes <jdescottes@mozilla.com>
Mon, 08 Aug 2016 11:29:31 +0200
changeset 398494 db0c040c86e1c74588e4e3769bd00539e6720146
parent 398493 512ce890615dfda849c582317fbf10ebde3432be
child 398495 dd7feb69cb5a019892a737871ae48c85d903dee4
push id25542
push userjdescottes@mozilla.com
push dateTue, 09 Aug 2016 07:23:26 +0000
reviewersbgrins
bugs1293211
milestone51.0a1
Bug 1293211 - wait for xul wrapper popupshown event in HTMLTooltip;r=bgrins MozReview-Commit-ID: Gv04Fc1cfgI
devtools/client/shared/widgets/HTMLTooltip.js
--- 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.