Open Bug 1757716 Opened 3 years ago Updated 3 years ago

Debugger doesn't pause in a popup window

Categories

(DevTools :: Debugger, defect, P3)

defect

Tracking

(Not tracked)

People

(Reporter: Honza, Unassigned)

References

(Blocks 1 open bug)

Details

STR:

  1. Load http://janodvarko.cz/tests/bugzilla/1757716
  2. Open DevTools Toolbox
  3. Click the Open Window button on the page to open a popup window (in a new tab)
  4. Click the Pause JS Execution button on the new popup window
  5. The Debugger (in the Toolbox opened in step #2) should activate

AR: The debugger is not activated
ER: The debugger should pause JS execution

Note that the popup window seems to be frozen as if it was paused in Debugger, but the Debugger panel UI doesn't indicate that.

Honza

Alex, can you reproduce this on your machine?

Flags: needinfo?(poirot.alex)

I don't reproduce, the debugger correctly pauses on the debugger statement of the popup document.
May be I'm having something special on my profile? Are you testing with an empty profile?

Flags: needinfo?(poirot.alex)

I just tested with an empty profile and this works fine.
Also tested while opening the inspector by default. (I was testing with the debugger opened by default)

I tried to retest with default profile using mach run. It worked the first time just fine, but as soon as I restarted (using "Restart" in the File menu) I saw the same symptoms (as described above).

Not sure if it's related but I am seeing the following error in the Browser Console

TypeError: can't access property "destructor", loader is undefined 2 base-loader.js:449:21
    unload resource://devtools/shared/loader/base-loader.js:449
    destroy resource://devtools/shared/loader/Loader.jsm:151
    didDestroy resource://devtools/server/connectors/js-window-actor/DevToolsFrameChild.jsm:725
    handleEvent resource://devtools/server/connectors/js-window-actor/DevToolsFrameChild.jsm:698
    switchHost resource://devtools/client/framework/toolbox-host-manager.js:278
    InterpretGeneratorResume self-hosted:1475
    AsyncFunctionNext self-hosted:685

I can reproduce the issue.
Clicking the Pause JS Execution does nothing.
Also note: If i open the web toolbox in the popup window clicking the Pause JS Execution get hit in that debugger

Severity: -- → S3
Priority: -- → P3
You need to log in before you can comment on or make changes to this bug.