<?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>135746</bug_id>
          
          <creation_ts>2014-08-07 22:28:46 -0700</creation_ts>
          <short_desc>Web Inspector: add a Scripts timeline record for Promise fulfillment</short_desc>
          <delta_ts>2016-07-22 20:05:08 -0700</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>528+ (Nightly build)</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</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="Brian Burg">burg</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>barraclough</cc>
    
    <cc>graouts</cc>
    
    <cc>joepeck</cc>
    
    <cc>sam</cc>
    
    <cc>timothy</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1027780</commentid>
    <comment_count>0</comment_count>
    <who name="Brian Burg">burg</who>
    <bug_when>2014-08-07 22:28:46 -0700</bug_when>
    <thetext>This will require new instrumentation. It should be like Timer Fired, except more promising. It should be simple to also include whether the promise was resolved or rejected. Sometimes, it doesn&apos;t quite work the way people expect.. :)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1027781</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2014-08-07 22:29:23 -0700</bug_when>
    <thetext>&lt;rdar://problem/17956025&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1028045</commentid>
    <comment_count>2</comment_count>
    <who name="Brian Burg">burg</who>
    <bug_when>2014-08-08 23:24:17 -0700</bug_when>
    <thetext>I am not sure how we would get these callbacks through to an inspector agent. Current paths include plumbing to call into the global object&apos;s JSGlobalObjectInspectorController (i.e, to report exceptions) and through ScriptDebugServer listeners. The former seems better here, but that controller is guarded by ENABLE(REMOTE_INSPECTOR).

Any thoughts, Joe?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1028237</commentid>
    <comment_count>3</comment_count>
    <who name="Joseph Pecoraro">joepeck</who>
    <bug_when>2014-08-11 11:29:12 -0700</bug_when>
    <thetext>(In reply to comment #2)
&gt; I am not sure how we would get these callbacks through to an inspector agent. Current paths include plumbing to call into the global object&apos;s JSGlobalObjectInspectorController (i.e, to report exceptions) and through ScriptDebugServer listeners. The former seems better here, but that controller is guarded by ENABLE(REMOTE_INSPECTOR).

JSGlobalObjectInspectorController is only for JSContext inspection.

I think this should go through the JSGlobalObject::debugger JSC::Debugger (ScriptDebugServer).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1213820</commentid>
    <comment_count>4</comment_count>
    <who name="Joseph Pecoraro">joepeck</who>
    <bug_when>2016-07-22 20:05:08 -0700</bug_when>
    <thetext>We did this with ScriptProfiler&apos;s Event records. Promise fulfillment is a Microtask event, and we have bubbles and profiling data for these evaluations.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>