Breakpoint does not remain on refresh within iframes, only on top level documents
Categories
(DevTools :: Debugger, defect, P3)
Tracking
(Not tracked)
People
(Reporter: gregwhitworth, Assigned: bhackett1024)
References
(Blocks 2 open bugs, )
Details
(Whiteboard: [debugger-mvp])
Reporter | ||
Updated•9 years ago
|
Updated•9 years ago
|
Comment 1•9 years ago
|
||
Comment 2•9 years ago
|
||
Updated•7 years ago
|
Comment 4•6 years ago
|
||
Here are my STRs & analysis:
Part I.
- Open DevTools Toolbox and select the Debugger panel
- Load http://www.thedamageisdone.net/?expref=next-blog
- Select an iframe (using the button int the Toolbar, right side): followers.g
- Select
www.bloger.com/followers.g
file in the Sources panel - Create BP at the first line in
nextPage
function (107 atm) - Click
next page
(it's localized link) in the iframe - BP hits, resume
- The iframe has been reloaded and:
- The iframe picked in step #3 is no longer selected. The context is the page itself again.
- The
www.bloger.com/followers.g
file is no longer selected in Source panel (I think it's actually not available there anymore, but should be) - The
www.bloger.com/followers.g
source tab is closed
Part II.
- Select
www.bloger.com/followers.g
file in the Sources panel again
- You can notice that it has different source (but the same URL in the Sources panel?, does Source panel hides the query params? this seems to be wrong)
- The BP from step #4 is gone, obviously (different URL with different URL params).
- There is no
nextPage
function, but there isprevPage
function
- Create BP at the first line in
prevPage
function (106 atm) - Click
prev page
(it's localized link) in the iframe - BP hits, resume
- The source stays, BP stays, but doesn't work anymore
- Check out the Sources view, the number of
followers.g
scripts grows every time you click, they have different URL -> thus BP don't work. Now the URL params are properly displayed.
- It looks like a problem with loosing the current frame => Not debugger related.
- There is the confusing thing with hiding URL params. The server returns different source & URL params every time and the Sources view seems to be confused => Debugger related.
@Jason, can you see the same results? Could this belong to dbg-sources meta?
Honza
Updated•6 years ago
|
Updated•6 years ago
|
Updated•6 years ago
|
Updated•5 years ago
|
Updated•5 years ago
|
Assignee | ||
Comment 6•5 years ago
|
||
(In reply to Jason Laster [:jlast] from comment #5)
Brian, would you be able to look into this?
I don't understand what change in behavior is desired from comment 4. When navigating backward and forward in the followers pane the client will show a bunch of followers.g sources, but they have different URL parameters (and the client shows the different URL parameters when there are more than one of them) so they are different sources and need breakpoints to be set differently. When going backward and forward several times a bunch of old followers.g sources will pile up, but those sources correspond to scripts that exist in the server (they won't be GC'ed as long as the devtools are attached) and the client is doing a good job of differentiating them AFAICT.
Updated•5 years ago
|
Comment 7•5 years ago
|
||
Thanks Brian for looking into this! The explanation make sense and I am closing this report.
@gwhit: feel free to reopen or file new one if you feel like there is still a bug
Thanks,
Honza
Description
•