Open Bug 1651543 Opened 5 years ago Updated 5 years ago

The frame selector can cause the debugger to lose sources

Categories

(DevTools :: Debugger, defect, P2)

defect

Tracking

(Not tracked)

People

(Reporter: loganfsmyth, Unassigned, Mentored)

References

(Depends on 1 open bug)

Details

Steps:

  1. Open data:text/html,<iframe srcdoc="<script>onclick=function(){}</script>body"></iframe>
  2. Open devtools, which will show a source named "srcdoc" in the file tree
  3. Use the frame selector in the devtools toolbar to choose the "about:srcdoc" frame

ER: The source should be visible since it is inside the iframe
AR: No sources are visible in the debugger

Additionally, if you select the top-level frame again, the sources are still gone.

Additional steps:

  1. Close and reopen devtools

ER: The sources should be visible
AR: "Error loading this URI: Unknown source"

Mentor: hmanilla
You need to log in before you can comment on or make changes to this bug.