diff --git a/common/content/bindings.xml b/common/content/bindings.xml index 3f9d2c11..8b95165b 100644 --- a/common/content/bindings.xml +++ b/common/content/bindings.xml @@ -14,11 +14,6 @@ - - - document.getAnonymousElementByAttribute(this, "anonid", "hints"); - - diff --git a/common/content/hints.js b/common/content/hints.js index 8d098728..6e56acfa 100644 --- a/common/content/hints.js +++ b/common/content/hints.js @@ -291,6 +291,8 @@ const Hints = Module("hints", { if (body) { let fragment = util.xmlToDom(
, doc); body.appendChild(fragment); + util.computedStyle(fragment).height; // Force application of binding. + let container = doc.getAnonymousElementByAttribute(fragment, "anonid", "hints"); let baseNodeAbsolute = util.xmlToDom(, doc); @@ -326,7 +328,7 @@ const Hints = Module("hints", { hint.span.style.left = leftPos + "px"; hint.span.style.top = topPos + "px"; - fragment.wrappedJSObject.hints.appendChild(hint.span); + container.appendChild(hint.span); this._pageHints.push(hint); } @@ -421,7 +423,7 @@ const Hints = Module("hints", { if (!rect) continue; - hint.imgSpan = util.xmlToDom(, doc); + hint.imgSpan = util.xmlToDom(, doc); hint.imgSpan.style.left = (rect.left + offsetX) + "px"; hint.imgSpan.style.top = (rect.top + offsetY) + "px"; hint.imgSpan.style.width = (rect.right - rect.left) + "px";