<?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>142162</bug_id>
          
          <creation_ts>2015-03-02 05:23:19 -0800</creation_ts>
          <short_desc>[WinCairo] Crash in DefaultPolicyDelegate::decidePolicyForNavigationAction.</short_desc>
          <delta_ts>2015-03-02 13:12:30 -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 Misc.</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></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>peavo</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>achristensen</cc>
    
    <cc>bfulgham</cc>
    
    <cc>ossy</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1073283</commentid>
    <comment_count>0</comment_count>
    <who name="">peavo</who>
    <bug_when>2015-03-02 05:23:19 -0800</bug_when>
    <thetext>I have had some crashes lately, where the IWebView parameter was NULL, causing an access violoation.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1073284</commentid>
    <comment_count>1</comment_count>
      <attachid>247660</attachid>
    <who name="">peavo</who>
    <bug_when>2015-03-02 05:28:42 -0800</bug_when>
    <thetext>Created attachment 247660
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1073313</commentid>
    <comment_count>2</comment_count>
      <attachid>247660</attachid>
    <who name="Anders Carlsson">andersca</who>
    <bug_when>2015-03-02 08:11:56 -0800</bug_when>
    <thetext>Comment on attachment 247660
Patch

Delegate callbacks should never be called with a null web view. I think you should try to figure out why it is null instead of adding a null-check.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1073358</commentid>
    <comment_count>3</comment_count>
    <who name="">peavo</who>
    <bug_when>2015-03-02 10:02:10 -0800</bug_when>
    <thetext>(In reply to comment #2)
&gt; Comment on attachment 247660 [details]
&gt; Patch
&gt; 
&gt; Delegate callbacks should never be called with a null web view. I think you
&gt; should try to figure out why it is null instead of adding a null-check.

Ok, thanks for reviewing :) I will investigate why it happens.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1073364</commentid>
    <comment_count>4</comment_count>
      <attachid>247660</attachid>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2015-03-02 10:18:33 -0800</bug_when>
    <thetext>Comment on attachment 247660
Patch

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

&gt; Source/WebKit/win/DefaultPolicyDelegate.cpp:106
&gt; +

Even though Anders doesn&apos;t like this check and return, it definitely seems like we should ASSERT here (or maybe even RELEASE_ASSERT?) so we can catch when this happens.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1073427</commentid>
    <comment_count>5</comment_count>
    <who name="">peavo</who>
    <bug_when>2015-03-02 13:12:30 -0800</bug_when>
    <thetext>(In reply to comment #4)
&gt; Comment on attachment 247660 [details]
&gt; Patch
&gt; 
&gt; View in context:
&gt; https://bugs.webkit.org/attachment.cgi?id=247660&amp;action=review
&gt; 
&gt; &gt; Source/WebKit/win/DefaultPolicyDelegate.cpp:106
&gt; &gt; +
&gt; 
&gt; Even though Anders doesn&apos;t like this check and return, it definitely seems
&gt; like we should ASSERT here (or maybe even RELEASE_ASSERT?) so we can catch
&gt; when this happens.

Thanks :) I will add the ASSERT, and see if I can find the cause.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>247660</attachid>
            <date>2015-03-02 05:28:42 -0800</date>
            <delta_ts>2015-03-02 08:11:56 -0800</delta_ts>
            <desc>Patch</desc>
            <filename>bug-142162-20150302142819.patch</filename>
            <type>text/plain</type>
            <size>1414</size>
            <attacher>peavo</attacher>
            
              <data encoding="base64">SW5kZXg6IFNvdXJjZS9XZWJLaXQvd2luL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBTb3VyY2Uv
V2ViS2l0L3dpbi9DaGFuZ2VMb2cJKHJldmlzaW9uIDE4MDg4MikKKysrIFNvdXJjZS9XZWJLaXQv
d2luL0NoYW5nZUxvZwkod29ya2luZyBjb3B5KQpAQCAtMSwzICsxLDE1IEBACisyMDE1LTAzLTAy
ICBwZWF2b0BvdXRsb29rLmNvbSAgPHBlYXZvQG91dGxvb2suY29tPgorCisgICAgICAgIFtXaW5D
YWlyb10gQ3Jhc2ggaW4gRGVmYXVsdFBvbGljeURlbGVnYXRlOjpkZWNpZGVQb2xpY3lGb3JOYXZp
Z2F0aW9uQWN0aW9uLgorICAgICAgICBodHRwczovL2J1Z3Mud2Via2l0Lm9yZy9zaG93X2J1Zy5j
Z2k/aWQ9MTQyMTYyCisKKyAgICAgICAgUmV2aWV3ZWQgYnkgTk9CT0RZIChPT1BTISkuCisKKyAg
ICAgICAgQWRkZWQgbnVsbCBwb2ludGVyIGNoZWNrLgorCisgICAgICAgICogRGVmYXVsdFBvbGlj
eURlbGVnYXRlLmNwcDoKKyAgICAgICAgKERlZmF1bHRQb2xpY3lEZWxlZ2F0ZTo6ZGVjaWRlUG9s
aWN5Rm9yTmF2aWdhdGlvbkFjdGlvbik6CisKIDIwMTUtMDMtMDEgIENocmlzIER1bWV6ICA8Y2R1
bWV6QGFwcGxlLmNvbT4KIAogICAgICAgICBNYWtlIE5vdGlmaWNhdGlvbkNlbnRlciAvIE5vdGlm
aWNhdGlvbiBzdXNwZW5kYWJsZQpJbmRleDogU291cmNlL1dlYktpdC93aW4vRGVmYXVsdFBvbGlj
eURlbGVnYXRlLmNwcAo9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBTb3VyY2UvV2ViS2l0L3dpbi9EZWZhdWx0UG9s
aWN5RGVsZWdhdGUuY3BwCShyZXZpc2lvbiAxODA4ODIpCisrKyBTb3VyY2UvV2ViS2l0L3dpbi9E
ZWZhdWx0UG9saWN5RGVsZWdhdGUuY3BwCSh3b3JraW5nIGNvcHkpCkBAIC0xMDEsNiArMTAxLDkg
QEAgVUxPTkcgU1RETUVUSE9EQ0FMTFRZUEUgRGVmYXVsdFBvbGljeURlbAogSFJFU1VMVCBEZWZh
dWx0UG9saWN5RGVsZWdhdGU6OmRlY2lkZVBvbGljeUZvck5hdmlnYXRpb25BY3Rpb24oSVdlYlZp
ZXcqIHdlYlZpZXcsIElQcm9wZXJ0eUJhZyogYWN0aW9uSW5mb3JtYXRpb24sIAogICAgIElXZWJV
UkxSZXF1ZXN0KiByZXF1ZXN0LCBJV2ViRnJhbWUqIC8qZnJhbWUqLywgSVdlYlBvbGljeURlY2lz
aW9uTGlzdGVuZXIqIGxpc3RlbmVyKQogeworICAgIGlmICghd2ViVmlldykKKyAgICAgICAgcmV0
dXJuIEVfRkFJTDsKKwogICAgIGludCBuYXZUeXBlID0gMDsKICAgICBfdmFyaWFudF90IHZhcjsK
ICAgICBpZiAoU1VDQ0VFREVEKGFjdGlvbkluZm9ybWF0aW9uLT5SZWFkKFdlYkFjdGlvbk5hdmln
YXRpb25UeXBlS2V5LCAmdmFyLkdldFZBUklBTlQoKSwgbnVsbHB0cikpKSB7Cg==
</data>
<flag name="review"
          id="272575"
          type_id="1"
          status="-"
          setter="andersca"
    />
          </attachment>
      

    </bug>

</bugzilla>