Bug 142162 - [WinCairo] Crash in DefaultPolicyDelegate::decidePolicyForNavigationAction.
Summary: [WinCairo] Crash in DefaultPolicyDelegate::decidePolicyForNavigationAction.
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit Misc. (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-03-02 05:23 PST by peavo
Modified: 2015-03-02 13:12 PST (History)
3 users (show)

See Also:


Attachments
Patch (1.38 KB, patch)
2015-03-02 05:28 PST, peavo
andersca: review-
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description peavo 2015-03-02 05:23:19 PST
I have had some crashes lately, where the IWebView parameter was NULL, causing an access violoation.
Comment 1 peavo 2015-03-02 05:28:42 PST
Created attachment 247660 [details]
Patch
Comment 2 Anders Carlsson 2015-03-02 08:11:56 PST
Comment on attachment 247660 [details]
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.
Comment 3 peavo 2015-03-02 10:02:10 PST
(In reply to comment #2)
> Comment on attachment 247660 [details]
> 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.

Ok, thanks for reviewing :) I will investigate why it happens.
Comment 4 Brent Fulgham 2015-03-02 10:18:33 PST
Comment on attachment 247660 [details]
Patch

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

> Source/WebKit/win/DefaultPolicyDelegate.cpp:106
> +

Even though Anders doesn'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.
Comment 5 peavo 2015-03-02 13:12:30 PST
(In reply to comment #4)
> Comment on attachment 247660 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=247660&action=review
> 
> > Source/WebKit/win/DefaultPolicyDelegate.cpp:106
> > +
> 
> Even though Anders doesn'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.

Thanks :) I will add the ASSERT, and see if I can find the cause.