<?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>168604</bug_id>
          
          <creation_ts>2017-02-20 09:14:52 -0800</creation_ts>
          <short_desc>[GTK] Do something with processDidBecomeUnresponsive</short_desc>
          <delta_ts>2017-03-13 12:13:07 -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>WebKitGTK</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=168479</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Michael Catanzaro">mcatanzaro</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bugs-noreply</cc>
    
    <cc>mcatanzaro</cc>
    
    <cc>mcrha</cc>
    
    <cc>tpopela</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1278950</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2017-02-20 09:14:52 -0800</bug_when>
    <thetext>We have an issue in Epiphany where attempting to Stop or close an unresponsive web process takes a very long time (I think 30 seconds). It would be useful for us to have a way to detect this and kill the process immediately. I do think this should really be handled by WebKit, not the application, though: if the web process doesn&apos;t respond to Stop or close within a second or two, something&apos;s gone wrong and it surely needs to be killed.

The WebKit::NavigationClient and WebKit::LoaderClient classes expose processDidBecomeUnresponsive/processDidBecomeResponsive alongside processDidCrash. I don&apos;t know what the difference between the two clients is, but we implement WebKit::LoaderClient in WebKitLoaderClient.cpp. We should probably handle unresponsive notifications there, e.g. by manually killing the web process and then calling webkitWebViewWebProcessCrashed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1279074</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2017-02-20 15:08:43 -0800</bug_when>
    <thetext>I think Evolution has had problems with this as well, though I&apos;ve never noticed had any problems with it myself.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1279075</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2017-02-20 15:09:41 -0800</bug_when>
    <thetext>(In reply to comment #0)
&gt; We
&gt; should probably handle unresponsive notifications there, e.g. by manually
&gt; killing the web process and then calling webkitWebViewWebProcessCrashed.

Or just expose a new signal for unresponsive process.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1279288</commentid>
    <comment_count>3</comment_count>
    <who name="Milan Crha">mcrha</who>
    <bug_when>2017-02-21 01:40:05 -0800</bug_when>
    <thetext>It&apos;s not always stuck, it can sometimes do something with a large page in the main thread, which makes the WebProcess &quot;unresponsive&quot;. Like the recent hyphenation issue. The 30 seconds can be about D-Bus timeouts, it is as such in the evolution side at least, when talking to its web extension.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1287280</commentid>
    <comment_count>4</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2017-03-13 12:13:07 -0700</bug_when>
    <thetext>Separately, we ought to handle processes that exceed reasonable CPU usage. See bug #169456.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>