Closed Bug 958752 Opened 10 years ago Closed 5 years ago

Breakpoints don't trigger when closing/reopening panel

Categories

(DevTools :: Debugger, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: dmosedale, Unassigned, NeedInfo)

References

(Blocks 2 open bugs)

Details

(Whiteboard: [chrome-debug])

This is more painful than might be expected because, as a consequence, one can't set a breakpoint in code that runs as part of the setup of the app in the iframe.

One-time setup:

* got to http://talkilla.mozillalabs.com/ in Nightly and click activate
* drop down Phone icon panel; sign in with persona

Steps to reproduce:

* drop down Phone icon panel
* click on a name so that a chat window opens
* choose Tools -> Web Developer -> Browser Toolbox
* use the Debugger panel search box to go to js/chat/app.js
* set a breakpoint on the first line of the ChatApp() constructor
* click the X button on the chat window to close it
* drop down the Phone icon Panel and click on a name

Note that the chat window opens again, and the breakpoint never fires.

My suspicion is that this has to do with the iframe panel nodes being removed (and recreated, perhaps?) and then reinserted in the DOM.

If you have any problems with the steps to reproduce, feel free to ping me on IRC, and I'll be happy to help.
Whiteboard: [chrome-debug]
Priority: -- → P3
just a note.  The new chat window opened (via the last step in the STR) is a new iframe loading the chat url.  The previously closed chat window was removed when closed.
Summary: breakpoints set in social API panel (iframe) code don't fire on subsequent panel opens → Breakpoints don't trigger when closing/reopening panel
Product: Firefox → DevTools

Hey Dan, would you mind re-testing this and seeing if this is still a concern?

Flags: needinfo?(dmose)
Priority: P3 → --

So Hello and SocialAPI is not a thing anymore, but I think either Ed or Kate has a prototype that does something similar that they might be able to test with.

Flags: needinfo?(khudson)
Flags: needinfo?(edilee)
Flags: needinfo?(dmose)

I don't have any recent prototypes that have to do with iframes unfortunately, Ed might!

Flags: needinfo?(khudson)
Blocks: dbg-chrome

Thanks Kate, I'll close this for now, but happy to re-open if Ed has a good example.

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