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)
        DevTools
          
        
        
      
        
    
        Debugger
          
        
        
      
        
    Tracking
(Not tracked)
        NEW
        
        
    
  
People
(Reporter: loganfsmyth, Unassigned, Mentored)
References
(Depends on 1 open bug)
Details
Steps:
- Open data:text/html,<iframe srcdoc="<script>onclick=function(){}</script>body"></iframe>
- Open devtools, which will show a source named "srcdoc" in the file tree
- 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:
- Close and reopen devtools
ER: The sources should be visible
AR: "Error loading this URI: Unknown source"
| Updated•5 years ago
           | 
Mentor: hmanilla
          You need to log in
          before you can comment on or make changes to this bug.
        
Description
•