Currently, JavaScriptSourceFrame._highlightExpression() directly modifiers DOM owned by TextViewer in order to highlight an expression that is used by the Popover. Occasionally, TextViewer may re-create DOM elements used by the highlight, leading to highlight being detached from the DOM tree. The correct approach would be for TextViewer to create and own the highlight. See also bug 71363.