Box Model Highlighter markup is duplicated when the tab is dragged

NEW
Unassigned

Status

DevTools
Inspector
P3
normal
11 months ago
a month ago

People

(Reporter: zer0, Unassigned)

Tracking

unspecified

Firefox Tracking Flags

(firefox57 fix-optional)

Details

(Reporter)

Description

11 months ago
STR:

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>
  </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.
(Reporter)

Comment 1

11 months ago
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.

Updated

10 months ago
Priority: -- → P3

Updated

10 months ago
status-firefox57: --- → fix-optional

Updated

a month ago
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.