<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>148487</bug_id>
          
          <creation_ts>2015-08-26 11:58:01 -0700</creation_ts>
          <short_desc>JSContext Inspector: Add Resources scope bar to filter anonymous/named scripts</short_desc>
          <delta_ts>2016-03-03 13:50:41 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Web Inspector</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Blaze Burg">bburg</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bburg</cc>
    
    <cc>graouts</cc>
    
    <cc>joepeck</cc>
    
    <cc>mattbaker</cc>
    
    <cc>nvasilyev</cc>
    
    <cc>timothy</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1121008</commentid>
    <comment_count>0</comment_count>
    <who name="Blaze Burg">bburg</who>
    <bug_when>2015-08-26 11:58:01 -0700</bug_when>
    <thetext>There could easily be a barrage of anonymous scripts, might want to filter those out.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1121010</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2015-08-26 11:58:28 -0700</bug_when>
    <thetext>&lt;rdar://problem/22441559&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1169384</commentid>
    <comment_count>2</comment_count>
    <who name="Nikita Vasilyev">nvasilyev</who>
    <bug_when>2016-03-01 00:10:09 -0800</bug_when>
    <thetext>Could you provide steps to inspect JSContext?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1169526</commentid>
    <comment_count>3</comment_count>
    <who name="Joseph Pecoraro">joepeck</who>
    <bug_when>2016-03-01 12:06:10 -0800</bug_when>
    <thetext>(In reply to comment #2)
&gt; Could you provide steps to inspect JSContext?

To inspect a JSContext, create an OS X Application that links JavaScriptCore.framework and creates a JSContext. Remember to add the &quot;com.apple.security.get-task-allow&quot; entitlement so that it can be remotely debugged by Safari.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1169527</commentid>
    <comment_count>4</comment_count>
    <who name="Joseph Pecoraro">joepeck</who>
    <bug_when>2016-03-01 12:08:40 -0800</bug_when>
    <thetext>(In reply to comment #0)
&gt; There could easily be a barrage of anonymous scripts, might want to filter
&gt; those out.

I&apos;m not sure I understand the concern. What types of anonymous scripts do you expect will show up in a JSContext?

Currently a JSContext inspector will only show named scripts. For example:
  - -[JSContext evaluateScript:withSourceURL]
  - JSEvaluateScript(...sourceURL...)
  - script with &quot;//# sourceURL=name&quot; directive

All other scripts won&apos;t appear by default, and I&apos;m not sure they can be made to show.

Perhaps this bug is behaves correctly?</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>