<?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>104472</bug_id>
          
          <creation_ts>2012-12-09 02:12:46 -0800</creation_ts>
          <short_desc>[Windows]ASSERTION failed in Windows: css3/css3-modsel-33.html</short_desc>
          <delta_ts>2012-12-10 21:18:52 -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>WebKit API</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></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="huangxueqing">huangxueqing</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bdakin</cc>
    
    <cc>bfulgham</cc>
    
    <cc>roger_fong</cc>
    
    <cc>thorton</cc>
    
    <cc>webkit.review.bot</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>786718</commentid>
    <comment_count>0</comment_count>
    <who name="huangxueqing">huangxueqing</who>
    <bug_when>2012-12-09 02:12:46 -0800</bug_when>
    <thetext>In WebFrameLoaderClient::dispatchDidLayout, |milestones| maybe was |DidFirstLayout &amp; DidFirstVisuallyNonEmptyLayout|, which will call webView-&gt;frameLoadDelegatePrivate(&amp;frameLoadDelegatePrivate) twice, we should rest |frameLoadDelegatePrivate| after the first one, otherwise |T** operator&amp;()| will hit |ASSERT(!m_ptr)|.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>786732</commentid>
    <comment_count>1</comment_count>
      <attachid>178402</attachid>
    <who name="huangxueqing">huangxueqing</who>
    <bug_when>2012-12-09 03:02:02 -0800</bug_when>
    <thetext>Created attachment 178402
patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>787559</commentid>
    <comment_count>2</comment_count>
      <attachid>178402</attachid>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2012-12-10 11:12:44 -0800</bug_when>
    <thetext>Comment on attachment 178402
patch

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

I think this looks like a good change, but I wonder if things might be clearer if we didn&apos;t reuse the variable for two different purposes.

&gt; Source/WebKit/win/WebCoreSupport/WebFrameLoaderClient.cpp:429
&gt; +    frameLoadDelegatePrivate = 0;

This seems like a good change, but would it be clearer if we used separate COMPtrs for the two possible cases? Maybe we should have each one declared within the scope of the DidFirstlayout and DidFirstVisuallyNonEmpty Layout?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>787560</commentid>
    <comment_count>3</comment_count>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2012-12-10 11:13:19 -0800</bug_when>
    <thetext>Tim, what do you think about making these two separate variables, rather than reusing the same COMPtr?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>787566</commentid>
    <comment_count>4</comment_count>
      <attachid>178402</attachid>
    <who name="Tim Horton">thorton</who>
    <bug_when>2012-12-10 11:22:16 -0800</bug_when>
    <thetext>Comment on attachment 178402
patch

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

&gt;&gt; Source/WebKit/win/WebCoreSupport/WebFrameLoaderClient.cpp:429
&gt;&gt; +    frameLoadDelegatePrivate = 0;
&gt; 
&gt; This seems like a good change, but would it be clearer if we used separate COMPtrs for the two possible cases? Maybe we should have each one declared within the scope of the DidFirstlayout and DidFirstVisuallyNonEmpty Layout?

I agree, Brent&apos;s plan (two separate locals inside the if blocks) is clearer.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>787595</commentid>
    <comment_count>5</comment_count>
      <attachid>178402</attachid>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2012-12-10 11:40:34 -0800</bug_when>
    <thetext>Comment on attachment 178402
patch

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

Thanks for taking the time to post this fix.  I think it looks good, but we would like you to move the COMPtr declaration inside the two &quot;if&quot; cases. This will make it clearer that the COMPtr is not needed elsewhere.
For this reason, r-, but please update the patch and I&apos;ll approve it.

&gt;&gt;&gt; Source/WebKit/win/WebCoreSupport/WebFrameLoaderClient.cpp:429
&gt;&gt;&gt; +    frameLoadDelegatePrivate = 0;
&gt;&gt; 
&gt;&gt; This seems like a good change, but would it be clearer if we used separate COMPtrs for the two possible cases? Maybe we should have each one declared within the scope of the DidFirstlayout and DidFirstVisuallyNonEmpty Layout?
&gt; 
&gt; I agree, Brent&apos;s plan (two separate locals inside the if blocks) is clearer.

Okay -- please move the scope of &quot;COMPtr&lt;IWebFrameLoadDelegatePrivate&gt; frameLoadDelegatePrivate&quot; to be enclosed inside the two cases.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>787968</commentid>
    <comment_count>6</comment_count>
      <attachid>178695</attachid>
    <who name="huangxueqing">huangxueqing</who>
    <bug_when>2012-12-10 20:13:23 -0800</bug_when>
    <thetext>Created attachment 178695
patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>787970</commentid>
    <comment_count>7</comment_count>
    <who name="huangxueqing">huangxueqing</who>
    <bug_when>2012-12-10 20:19:44 -0800</bug_when>
    <thetext>(In reply to comment #5)
&gt; (From update of attachment 178402 [details])
&gt; View in context: https://bugs.webkit.org/attachment.cgi?id=178402&amp;action=review
&gt; 
&gt; Thanks for taking the time to post this fix.  I think it looks good, but we would like you to move the COMPtr declaration inside the two &quot;if&quot; cases. This will make it clearer that the COMPtr is not needed elsewhere.
&gt; For this reason, r-, but please update the patch and I&apos;ll approve it.
&gt; 
&gt; &gt;&gt;&gt; Source/WebKit/win/WebCoreSupport/WebFrameLoaderClient.cpp:429
&gt; &gt;&gt;&gt; +    frameLoadDelegatePrivate = 0;
&gt; &gt;&gt; 
&gt; &gt;&gt; This seems like a good change, but would it be clearer if we used separate COMPtrs for the two possible cases? Maybe we should have each one declared within the scope of the DidFirstlayout and DidFirstVisuallyNonEmpty Layout?
&gt; &gt; 
&gt; &gt; I agree, Brent&apos;s plan (two separate locals inside the if blocks) is clearer.
&gt; 
&gt; Okay -- please move the scope of &quot;COMPtr&lt;IWebFrameLoadDelegatePrivate&gt; frameLoadDelegatePrivate&quot; to be enclosed inside the two cases.

Done, it seems more reasonable, thanks for review.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>787996</commentid>
    <comment_count>8</comment_count>
      <attachid>178695</attachid>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2012-12-10 20:59:55 -0800</bug_when>
    <thetext>Comment on attachment 178695
patch

Rejecting attachment 178695 from commit-queue.

New failing tests:
inspector-protocol/debugger-terminate-dedicated-worker-while-paused.html
Full output: http://queues.webkit.org/results/15260214</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>788003</commentid>
    <comment_count>9</comment_count>
      <attachid>178695</attachid>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2012-12-10 21:18:48 -0800</bug_when>
    <thetext>Comment on attachment 178695
patch

Clearing flags on attachment: 178695

Committed r137246: &lt;http://trac.webkit.org/changeset/137246&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>788004</commentid>
    <comment_count>10</comment_count>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2012-12-10 21:18:52 -0800</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="1"
              ispatch="1"
              isprivate="0"
          >
            <attachid>178402</attachid>
            <date>2012-12-09 03:02:02 -0800</date>
            <delta_ts>2012-12-10 20:13:23 -0800</delta_ts>
            <desc>patch</desc>
            <filename>104472.patch</filename>
            <type>text/plain</type>
            <size>1708</size>
            <attacher name="huangxueqing">huangxueqing</attacher>
            
              <data encoding="base64">SW5kZXg6IFNvdXJjZS9XZWJLaXQvd2luL0NoYW5nZUxvZw0KPT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PQ0KLS0tIFNvdXJj
ZS9XZWJLaXQvd2luL0NoYW5nZUxvZwkocmV2aXNpb24gMTM3MDY0KQ0KKysrIFNvdXJjZS9XZWJL
aXQvd2luL0NoYW5nZUxvZwkod29ya2luZyBjb3B5KQ0KQEAgLTEsMyArMSwxOSBAQA0KKzIwMTIt
MTItMDkgIFh1ZXFpbmcgSHVhbmcgIDxodWFuZ3h1ZXFpbmdAYmFpZHUuY29tPgorCisgICAgICAg
IEFTU0VSVElPTiBmYWlsZWQgaW4gV2luZG93czogY3NzMy9jc3MzLW1vZHNlbC0zMy5odG1sCisg
ICAgICAgIGh0dHBzOi8vYnVncy53ZWJraXQub3JnL3Nob3dfYnVnLmNnaT9pZD0xMDQ0NzIKKwor
ICAgICAgICBSZXZpZXdlZCBieSBOT0JPRFkgKE9PUFMhKS4KKworICAgICAgICBJbiBXZWJGcmFt
ZUxvYWRlckNsaWVudDo6ZGlzcGF0Y2hEaWRMYXlvdXQsIG1pbGVzdG9uZXMgbWF5YmUgCisgICAg
ICAgIERpZEZpcnN0TGF5b3V0ICYgRGlkRmlyc3RWaXN1YWxseU5vbkVtcHR5TGF5b3V0LCB3aGlj
aCB3aWxsIGNhbGwgCisgICAgICAgIHdlYlZpZXctPmZyYW1lTG9hZERlbGVnYXRlUHJpdmF0ZSgm
ZnJhbWVMb2FkRGVsZWdhdGVQcml2YXRlKSB0d2ljZSwgCisgICAgICAgIHdlIHNob3VsZCByZXNl
dCBmcmFtZUxvYWREZWxlZ2F0ZVByaXZhdGUgYWZ0ZXIgdGhlIGZpcnN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ZWdhdGVQcml2YXRlKCZmcmFtZUxvYWREZWxlZ2F0ZVByaXZhdGUpKSAmJiBmcmFtZUxvYWREZWxl
Z2F0ZVByaXZhdGUpCiAgICAgICAgICAgICBmcmFtZUxvYWREZWxlZ2F0ZVByaXZhdGUtPmRpZEZp
cnN0VmlzdWFsbHlOb25FbXB0eUxheW91dEluRnJhbWUod2ViVmlldywgbV93ZWJGcmFtZSk7Cg==
</data>
<flag name="review"
          id="194927"
          type_id="1"
          status="-"
          setter="bfulgham"
    />
    <flag name="commit-queue"
          id="194928"
          type_id="3"
          status="-"
          setter="bfulgham"
    />
          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>178695</attachid>
            <date>2012-12-10 20:13:23 -0800</date>
            <delta_ts>2012-12-10 21:18:48 -0800</delta_ts>
            <desc>patch</desc>
            <filename>104472.patch</filename>
            <type>text/plain</type>
            <size>2014</size>
            <attacher name="huangxueqing">huangxueqing</attacher>
            
              <data encoding="base64">SW5kZXg6IFNvdXJjZS9XZWJLaXQvd2luL0NoYW5nZUxvZw0KPT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PQ0KLS0tIFNvdXJj
ZS9XZWJLaXQvd2luL0NoYW5nZUxvZwkocmV2aXNpb24gMTM3MjQwKQ0KKysrIFNvdXJjZS9XZWJL
aXQvd2luL0NoYW5nZUxvZwkod29ya2luZyBjb3B5KQ0KQEAgLTEsMyArMSwxNyBAQA0KKzIwMTIt
MTItMTAgIFh1ZXFpbmcgSHVhbmcgIDxodWFuZ3h1ZXFpbmdAYmFpZHUuY29tPgorCisgICAgICAg
IEFTU0VSVElPTiBmYWlsZWQgaW4gV2luZG93czogY3NzMy9jc3MzLW1vZHNlbC0zMy5odG1sCisg
ICAgICAgIGh0dHBzOi8vYnVncy53ZWJraXQub3JnL3Nob3dfYnVnLmNnaT9pZD0xMDQ0NzIKKwor
ICAgICAgICBSZX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