<?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>53218</bug_id>
          
          <creation_ts>2011-01-26 18:12:55 -0800</creation_ts>
          <short_desc>Add a test mode to WebKit2 that exercises reentrancy while waiting for reply to a synchronous message</short_desc>
          <delta_ts>2014-01-28 20:18:51 -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>WebKit2</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows XP</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar, PlatformOnly</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Adam Roben (:aroben)">aroben</reporter>
          <assigned_to name="Adam Roben (:aroben)">aroben</assigned_to>
          <cc>andersca</cc>
    
    <cc>sam</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>340678</commentid>
    <comment_count>0</comment_count>
    <who name="Adam Roben (:aroben)">aroben</who>
    <bug_when>2011-01-26 18:12:55 -0800</bug_when>
    <thetext>As described in bug 51351 comment 4 and in bug 51352, we&apos;re going to make WebKit2 spin a run loop while waiting for a reply to all synchronous messages. This will provide many more opportunities for reentrancy into WebKit. To uncover issues this causes, we should add a test mode to WebKit2 that explicitly causes this reentrancy to happen.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>340679</commentid>
    <comment_count>1</comment_count>
    <who name="Adam Roben (:aroben)">aroben</who>
    <bug_when>2011-01-26 18:14:08 -0800</bug_when>
    <thetext>One way to do this is:

Add a message-only window inside WebKit2. Whenever we are about to spin a run loop while waiting for a reply to a synchronous message, post a custom window message to the message-only window. When the message-only window receives the message, make some call into WebKit (e.g., try to close a page, modify the DOM and trigger layout, etc.).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>340680</commentid>
    <comment_count>2</comment_count>
    <who name="Adam Roben (:aroben)">aroben</who>
    <bug_when>2011-01-26 18:14:21 -0800</bug_when>
    <thetext>We could turn this mode on while running the regression tests, e.g.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>340684</commentid>
    <comment_count>3</comment_count>
    <who name="Anders Carlsson">andersca</who>
    <bug_when>2011-01-26 18:16:19 -0800</bug_when>
    <thetext>&lt;rdar://problem/8922495&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>