<?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>145626</bug_id>
          
          <creation_ts>2015-06-03 18:12:38 -0700</creation_ts>
          <short_desc>Non-deterministic Inspector Pause and Resume events makes tests flaky</short_desc>
          <delta_ts>2016-12-14 13:19:58 -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>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>161951</dup_id>
          
          <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="Mark Lam">mark.lam</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bburg</cc>
    
    <cc>graouts</cc>
    
    <cc>inspector-bugzilla-changes</cc>
    
    <cc>jonowells</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1099349</commentid>
    <comment_count>0</comment_count>
    <who name="Mark Lam">mark.lam</who>
    <bug_when>2015-06-03 18:12:38 -0700</bug_when>
    <thetext>DebuggerManager.debuggerDidResume() defers the dispatch of the Resumed event.  DebuggerManager.debuggerDidPause() can eat that Resumed event as well as the next Paused Event if debuggerDidPause() happens to be called before debuggerDidResume()&apos;s delayedWork() fires.  As a result, we can cannot write tests that can depend on a consistent order of Pause and Resume events.

I was advised to use the CallFramesDidChange event instead.  The problem with this is that the number of CallFramesDidChange events firing also depends on the race between debuggerDidPause() and debuggerDidResume()&apos;s delayedWork().  For example, the regression test of https://bugs.webkit.org/show_bug.cgi?id=145525 (which is currently written to assume that some Paused and Resume events will be eaten) runs fine on WK1 using DumpRenderTree.  When we run it on WK2 using WKRT which runs a lot slower, the events don&apos;t get eaten.  As a result, the test fails.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1099350</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2015-06-03 18:13:12 -0700</bug_when>
    <thetext>&lt;rdar://problem/21234384&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1259876</commentid>
    <comment_count>2</comment_count>
    <who name="Blaze Burg">bburg</who>
    <bug_when>2016-12-14 13:19:58 -0800</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 161951 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>