Open Bug 1396690 Opened 7 years ago Updated 2 years ago

Box Model Highlighter markup is duplicated when the tab is dragged


(DevTools :: Inspector, defect, P3)



(firefox57 fix-optional)

Tracking Status
firefox57 --- fix-optional


(Reporter: zer0, Unassigned)



1. navigate to "about:config"
2. set "devtools.inspector.showAllAnonymousContent" to "true"
3. navigate to any page (the default "about:home" is fine)
4. Open the DevTools Inspector.
5. Check at the end of the markup view, you will see:
  <div class="moz-custom-content-container">
    <div class="highlighter-container box-model"></div>

  That's the box model highlighter

6. Open a new Tab (cmd / ctrl + t)
7. Drag the previous tab (the one with the inspector active) to create a new browser window
8. Open the Devtools Inspector again

Actual Result:

The <div> "moz-custom-content-container" now contains two box model highlighter (one is hidden)

Expected Result:

Only one box model highlighter markup is present.
It should be only one box model highlighter markup.
A quick fix it would be probably destroy the highlighter instead of hiding when the "pagehide" event is emitted – some highlighter are doing that already.
Priority: -- → P3
Product: Firefox → DevTools
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.