Open Bug 1200061 Opened 4 years ago Updated 6 months ago

Focus not on active element when using javascript debugger after clicking resume


(DevTools :: Debugger, defect, P3)

43 Branch


(Not tracked)


(Reporter: krishna2642, Unassigned)


(Blocks 1 open bug)


(Whiteboard: needs-review)


(1 file)

Attached file Bug report.html
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:43.0) Gecko/20100101 Firefox/43.0
Build ID: 20150830030224

Steps to reproduce:

1. Open the attached file in the browser.
2. Open javascript debugger
3 Keep the breakpoint at line 25.
4. Start typing in one of the text fields and press "enter".
5. After debugger stops at line 25, click on resume.

Actual results:

Current active element("p") not outlined after clicking on resume.

Expected results:

Current active element ("P") should be outlined after clicking resume.
Component: Untriaged → Developer Tools: Debugger
Please provide a way to get focus on active element after clicking resume button.
This issue works correctly when the debugger is detached from browser window but not when it is attached to browser window.
When the debugger is detached, press alt+tab after clicking resume. This gets the focus to correct active element on the browser.
Noticed this issue in both windows and linux. Changed platform to all.
OS: Unspecified → All
Hardware: Unspecified → x86_64
Product: Firefox → DevTools

Honza, what do you think we should do here?

Flags: needinfo?(odvarko)
Whiteboard: needs-review
Blocks: dbg-control

I can still reproduce this issue. The focus on an input element isn't restored after resuming the debugger.
(no matter whether the Toolbox is docked or running in separate window)

Note, adding the following to the test case helps testing:

<style type="text/css">
    input:focus {
        border-color: red;


Flags: needinfo?(odvarko)
Ever confirmed: true
Priority: -- → P3
You need to log in before you can comment on or make changes to this bug.