<?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>273924</bug_id>
          
          <creation_ts>2024-05-08 22:16:46 -0700</creation_ts>
          <short_desc>Explicitly clear event queues on a process swap</short_desc>
          <delta_ts>2024-06-05 15:40:18 -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>UI Events</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</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="Charlie Wolfe">charliew</reporter>
          <assigned_to name="Charlie Wolfe">charliew</assigned_to>
          <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2034207</commentid>
    <comment_count>0</comment_count>
    <who name="Charlie Wolfe">charliew</who>
    <bug_when>2024-05-08 22:16:46 -0700</bug_when>
    <thetext>This is a speculative fix for recent reports that web pages are unresponsive to mouse events.

In 269366@main, I removed code that explicitly cleared event queues on a process swap because, after 267849@main, we could rely on in-flight completion handlers to be called for terminated web processes. However, if the web process we are navigating away from does not terminate (i.e., if it is hosting another webpage), we rely on it to dequeue the events in the UI process.

This change makes it so that we once again clear the event queues on a process swap. If the process we navigated away from has terminated or changed, we do not attempt to dequeue previous events because they have already been cleared. This way, if the source web process is unresponsive for any reason, it does not prevent events from being sent to the new page.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2034208</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2024-05-08 22:18:19 -0700</bug_when>
    <thetext>&lt;rdar://problem/127788996&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2034214</commentid>
    <comment_count>2</comment_count>
    <who name="Charlie Wolfe">charliew</who>
    <bug_when>2024-05-08 22:21:48 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/28322</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2034324</commentid>
    <comment_count>3</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2024-05-09 10:09:29 -0700</bug_when>
    <thetext>Committed 278568@main (fe4ddfdad76f): &lt;https://commits.webkit.org/278568@main&gt;

Reviewed commits have been landed. Closing PR #28322 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2034513</commentid>
    <comment_count>4</comment_count>
    <who name="Charlie Wolfe">charliew</who>
    <bug_when>2024-05-10 04:22:33 -0700</bug_when>
    <thetext>rdar://127828852</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2034517</commentid>
    <comment_count>5</comment_count>
    <who name="Charlie Wolfe">charliew</who>
    <bug_when>2024-05-10 04:27:39 -0700</bug_when>
    <thetext>^ ignore

rdar://127788996</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2039969</commentid>
    <comment_count>6</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2024-06-05 15:40:18 -0700</bug_when>
    <thetext>Committed 272448.1068@safari-7618-branch (5d22b5945943): &lt;https://commits.webkit.org/272448.1068@safari-7618-branch&gt;

Reviewed commits have been landed. Closing PR #1318 and removing active labels.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>