Closed Bug 1609366 Opened 5 years ago Closed 5 years ago

Calling inspect(domElement) from a WebExtension opens a split console and doesn't select the node

Categories

(DevTools :: Inspector, defect)

72 Branch
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1609345

People

(Reporter: dainius.dauksevicius, Unassigned)

Details

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:72.0) Gecko/20100101 Firefox/72.0

Steps to reproduce:

  1. Open a webpage.
  2. Have a WebExtension be setup so that it has a panel in DevTools>Inspect tab next to Rules, Layout, etc.
  3. When the custom panel is open (so DOM is visible on one side and the custom panel on the other side), from a WebExtension call devtools.inspectedWindow.eval(inspect($('body'))).

Actual results:

Split console got opened, focus was set to the console input, given node got printed in the console, but was not selected in the DOM

Expected results:

Element gets selected and scrolled to in the DOM. It can be printed to the console, but should not be opened. For correct behavior check how Chrome works in this scenario.

Might be related to https://bugzilla.mozilla.org/show_bug.cgi?id=1609345 but might also be not related.

Nicolas, do you think this could be a duplicate of bug 1609345?

Flags: needinfo?(nchevobbe)

(In reply to Patrick Brosset <:pbro> from comment #1)

Nicolas, do you think this could be a duplicate of bug 1609345?

Yes, it looks like the same issue to me.

Dar, would you be able to test on Nightly ?

Flags: needinfo?(nchevobbe) → needinfo?(dainius.dauksevicius)

Checked it. Works as expected. Split console is not opened, element gets selected in the DOM and in the page. I consider it fixed :)

Flags: needinfo?(dainius.dauksevicius)

great, thanks for checking

Status: UNCONFIRMED → RESOLVED
Closed: 5 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.