<?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>53798</bug_id>
          
          <creation_ts>2011-02-04 12:22:31 -0800</creation_ts>
          <short_desc>Assertion failure in WebInspectorProxy::platformClose closing main window when inspecting a popup window, or when running regression tests</short_desc>
          <delta_ts>2011-02-04 12:33:38 -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 7</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</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="Brian Weinstein">bweinstein</reporter>
          <assigned_to name="Brian Weinstein">bweinstein</assigned_to>
          <cc>aroben</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>345681</commentid>
    <comment_count>0</comment_count>
    <who name="Brian Weinstein">bweinstein</who>
    <bug_when>2011-02-04 12:22:31 -0800</bug_when>
    <thetext>Assertion failure in WebInspectorProxy::platformClose closing main window when inspecting a popup window, or when running regression tests.


&gt;    WebKit.dll!WebKit::WebInspectorProxy::platformClose()  Line 174 + 0x25 bytes    C++
    WebKit.dll!WebKit::WebInspectorProxy::invalidate()  Line 74    C++
    WebKit.dll!WebKit::WebPageProxy::close()  Line 240    C++
    WebKit.dll!WKPageClose(const OpaqueWKPage * pageRef=0x061f0f58)  Line 103    C++

ASSERT(m_inspectorWindow) is the failing assertion.

&lt;rdar://problem/8814364&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>345687</commentid>
    <comment_count>1</comment_count>
      <attachid>81264</attachid>
    <who name="Brian Weinstein">bweinstein</who>
    <bug_when>2011-02-04 12:26:51 -0800</bug_when>
    <thetext>Created attachment 81264
[PATCH] Fix</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>345691</commentid>
    <comment_count>2</comment_count>
      <attachid>81264</attachid>
    <who name="Adam Roben (:aroben)">aroben</who>
    <bug_when>2011-02-04 12:28:36 -0800</bug_when>
    <thetext>Comment on attachment 81264
[PATCH] Fix

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

&gt; Source/WebKit2/UIProcess/win/WebInspectorProxyWin.cpp:178
&gt; +    if (m_isVisible) {
&gt; +        ASSERT(m_inspectorWindow);
&gt; +        ASSERT(m_inspectorView);
&gt; +    }

To get rid of the if in Release builds, you could do:

ASSERT(!m_isVisible || m_inspectorWindow);
ASSERT(!m_isVisible || m_inspectorView);

&gt; Source/WebKit2/UIProcess/win/WebInspectorProxyWin.cpp:181
&gt; +        ASSERT(::IsWindow(m_inspectorWindow));

Have you verified that this is true even when the inspector is docked?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>345694</commentid>
    <comment_count>3</comment_count>
    <who name="Brian Weinstein">bweinstein</who>
    <bug_when>2011-02-04 12:31:52 -0800</bug_when>
    <thetext>(In reply to comment #2)
&gt; (From update of attachment 81264 [details])
&gt; View in context: https://bugs.webkit.org/attachment.cgi?id=81264&amp;action=review
&gt; 
&gt; &gt; Source/WebKit2/UIProcess/win/WebInspectorProxyWin.cpp:178
&gt; &gt; +    if (m_isVisible) {
&gt; &gt; +        ASSERT(m_inspectorWindow);
&gt; &gt; +        ASSERT(m_inspectorView);
&gt; &gt; +    }
&gt; 
&gt; To get rid of the if in Release builds, you could do:
&gt; 
&gt; ASSERT(!m_isVisible || m_inspectorWindow);
&gt; ASSERT(!m_isVisible || m_inspectorView);

Fixed.

&gt; 
&gt; &gt; Source/WebKit2/UIProcess/win/WebInspectorProxyWin.cpp:181
&gt; &gt; +        ASSERT(::IsWindow(m_inspectorWindow));
&gt; 
&gt; Have you verified that this is true even when the inspector is docked?

We don&apos;t support a docked inspector in WebKit2 yet, but I will make sure to check this when we do.

Thanks!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>345695</commentid>
    <comment_count>4</comment_count>
    <who name="Brian Weinstein">bweinstein</who>
    <bug_when>2011-02-04 12:33:38 -0800</bug_when>
    <thetext>Landed in r77655.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>81264</attachid>
            <date>2011-02-04 12:26:51 -0800</date>
            <delta_ts>2011-02-04 12:28:36 -0800</delta_ts>
            <desc>[PATCH] Fix</desc>
            <filename>inspector_assert.patch</filename>
            <type>text/plain</type>
            <size>1722</size>
            <attacher name="Brian Weinstein">bweinstein</attacher>
            
              <data encoding="base64">SW5kZXg6IFNvdXJjZS9XZWJLaXQyL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBTb3VyY2UvV2Vi
S2l0Mi9DaGFuZ2VMb2cJKHJldmlzaW9uIDc3NjUyKQorKysgU291cmNlL1dlYktpdDIvQ2hhbmdl
TG9nCSh3b3JraW5nIGNvcHkpCkBAIC0xLDMgKzEsMTggQEAKKzIwMTEtMDItMDQgIEJyaWFuIFdl
aW5zdGVpbiAgPGJ3ZWluc3RlaW5AYXBwbGUuY29tPgorCisgICAgICAgIFJldmlld2VkIGJ5IE5P
Qk9EWSAoT09QUyEpLgorCisgICAgICAgIEFzc2VydGlvbiBmYWlsdXJlIGluIFdlYkluc3BlY3Rv
clByb3h5OjpwbGF0Zm9ybUNsb3NlIGNsb3NpbmcgbWFpbiB3aW5kb3cgd2hl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kod29ya2luZyBjb3B5KQpAQCAtMTcyLDEwICsxNzIsMTUgQEAgdm9pZCBXZWJJ
bnNwZWN0b3JQcm94eTo6cGxhdGZvcm1PcGVuKCkKIAogdm9pZCBXZWJJbnNwZWN0b3JQcm94eTo6
cGxhdGZvcm1DbG9zZSgpCiB7Ci0gICAgQVNTRVJUKG1faW5zcGVjdG9yV2luZG93KTsKLSAgICBB
U1NFUlQobV9pbnNwZWN0b3JWaWV3KTsKKyAgICBpZiAobV9pc1Zpc2libGUpIHsKKyAgICAgICAg
QVNTRVJUKG1faW5zcGVjdG9yV2luZG93KTsKKyAgICAgICAgQVNTRVJUKG1faW5zcGVjdG9yVmll
dyk7CisgICAgfQogCi0gICAgOjpEZXN0cm95V2luZG93KG1faW5zcGVjdG9yV2luZG93KTsKKyAg
ICBpZiAobV9pbnNwZWN0b3JXaW5kb3cpIHsKKyAgICAgICAgQVNTRVJUKDo6SXNXaW5kb3cobV9p
bnNwZWN0b3JXaW5kb3cpKTsKKyAgICAgICAgOjpEZXN0cm95V2luZG93KG1faW5zcGVjdG9yV2lu
ZG93KTsKKyAgICB9CiAKICAgICBtX2luc3BlY3RvcldpbmRvdyA9IDA7CiAgICAgbV9pbnNwZWN0
b3JWaWV3ID0gMDsK
</data>
<flag name="review"
          id="72833"
          type_id="1"
          status="+"
          setter="aroben"
    />
          </attachment>
      

    </bug>

</bugzilla>