<?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>151319</bug_id>
          
          <creation_ts>2015-11-16 12:18:15 -0800</creation_ts>
          <short_desc>A window with a hung tab waits 5s before closing</short_desc>
          <delta_ts>2015-11-17 13:32:04 -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>New Bugs</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></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Geoffrey Garen">ggaren</reporter>
          <assigned_to name="Geoffrey Garen">ggaren</assigned_to>
          <cc>andersca</cc>
    
    <cc>commit-queue</cc>
    
    <cc>sam</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1142298</commentid>
    <comment_count>0</comment_count>
    <who name="Geoffrey Garen">ggaren</who>
    <bug_when>2015-11-16 12:18:15 -0800</bug_when>
    <thetext>A window with a hung tab waits 5s before closing</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1142312</commentid>
    <comment_count>1</comment_count>
      <attachid>265607</attachid>
    <who name="Geoffrey Garen">ggaren</who>
    <bug_when>2015-11-16 13:23:43 -0800</bug_when>
    <thetext>Created attachment 265607
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1142366</commentid>
    <comment_count>2</comment_count>
      <attachid>265607</attachid>
    <who name="Anders Carlsson">andersca</who>
    <bug_when>2015-11-16 15:45:41 -0800</bug_when>
    <thetext>Comment on attachment 265607
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=265607&amp;action=review

&gt; Source/WebKit2/UIProcess/WebPageProxy.cpp:867
&gt; +    // Close without delay if the process allows it. Our goal is to terminate
&gt; +    // the process, so we check a per-process status bit.
&gt; +    if (m_process-&gt;isSuddenTerminationEnabled())
&gt; +        return true;

Don&apos;t you also want to check that the process has one page?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1142451</commentid>
    <comment_count>3</comment_count>
    <who name="Geoffrey Garen">ggaren</who>
    <bug_when>2015-11-16 19:32:08 -0800</bug_when>
    <thetext>&gt; &gt; Source/WebKit2/UIProcess/WebPageProxy.cpp:867
&gt; &gt; +    // Close without delay if the process allows it. Our goal is to terminate
&gt; &gt; +    // the process, so we check a per-process status bit.
&gt; &gt; +    if (m_process-&gt;isSuddenTerminationEnabled())
&gt; &gt; +        return true;
&gt; 
&gt; Don&apos;t you also want to check that the process has one page?

I don&apos;t think we need to. Returning true here just means that we skip the tryClose message and go straight to close. That should be safe even if there&apos;s another page in the process. (WKWebView always does this.)

Skipping the tryClose message in a process with more than one page is a tiny optimization -- but I mostly did it because it is simpler this way.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1142631</commentid>
    <comment_count>4</comment_count>
      <attachid>265607</attachid>
    <who name="Geoffrey Garen">ggaren</who>
    <bug_when>2015-11-17 13:25:01 -0800</bug_when>
    <thetext>Comment on attachment 265607
Patch

cq+</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1142635</commentid>
    <comment_count>5</comment_count>
      <attachid>265607</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2015-11-17 13:32:01 -0800</bug_when>
    <thetext>Comment on attachment 265607
Patch

Clearing flags on attachment: 265607

Committed r192528: &lt;http://trac.webkit.org/changeset/192528&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1142636</commentid>
    <comment_count>6</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2015-11-17 13:32:04 -0800</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>265607</attachid>
            <date>2015-11-16 13:23:43 -0800</date>
            <delta_ts>2015-11-17 13:32:01 -0800</delta_ts>
            <desc>Patch</desc>
            <filename>bug-151319-20151116132333.patch</filename>
            <type>text/plain</type>
            <size>2205</size>
            <attacher name="Geoffrey Garen">ggaren</attacher>
            
              <data encoding="base64">SW5kZXg6IFNvdXJjZS9XZWJLaXQyL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBTb3VyY2UvV2Vi
S2l0Mi9DaGFuZ2VMb2cJKHJldmlzaW9uIDE5MjQ3OSkKKysrIFNvdXJjZS9XZWJLaXQyL0NoYW5n
ZUxvZwkod29ya2luZyBjb3B5KQpAQCAtMSwzICsxLDIyIEBACisyMDE1LTExLTE2ICBHZW9mZnJl
eSBHYXJlbiAgPGdnYXJlbkBhcHBsZS5jb20+CisKKyAgICAgICAgQSB3aW5kb3cgd2l0aCBhIGh1
bmcgdGFiIHdhaXRzIDVzIGJlZm9yZSBjbG9zaW5nCisgICAgICAgIGh0dHBzOi8vYnVncy53ZWJr
aXQub3JnL3Nob3dfYnVnLmNnaT9pZD0xNTEzMTkKKworICAgICAgICBSZXZpZXdlZCBieSBOT0JP
RFkgKE9PUFMhKS4KKworICAgICAgICBJIG1hbnVhbGx5IHRlc3RlZCB0aGF0IEkgZGlkIG5vdCBi
cmVhayB1bmxvYWQgZXZlbnRzIHVwb24gd2luZG93IGNsb3NlCisgICAgICAgIGJ5IHJ1bm5pbmcg
cnVuLXdlYmtpdC1odHRwZCBhbmQgaW52b2tpbm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