Bug 139830 - [WinCairo] Crash after failing to create GL context in accelerated compositing mode.
Summary: [WinCairo] Crash after failing to create GL context in accelerated compositin...
Status: RESOLVED FIXED
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: 2014-12-19 12:54 PST by peavo
Modified: 2014-12-19 14:06 PST (History)
3 users (show)

See Also:


Attachments
Patch (1.47 KB, patch)
2014-12-19 12:57 PST, peavo
no flags Details | Formatted Diff | Diff
Patch (1.35 KB, patch)
2014-12-19 13:30 PST, peavo
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description peavo 2014-12-19 12:54:13 PST
There is missing a null pointer check.
Comment 1 peavo 2014-12-19 12:57:31 PST
Created attachment 243569 [details]
Patch
Comment 2 Alex Christensen 2014-12-19 13:25:34 PST
Comment on attachment 243569 [details]
Patch

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

> Source/WebKit/win/WebCoreSupport/AcceleratedCompositingContext.cpp:99
> +    m_context = GLContext::createContextForWindow(m_window, GLContext::sharingContext());

What if we already have a context?  Shouldn't this also be in an if (!m_context)?
Comment 3 peavo 2014-12-19 13:30:20 PST
Created attachment 243572 [details]
Patch
Comment 4 peavo 2014-12-19 13:31:02 PST
(In reply to comment #2)
> Comment on attachment 243569 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=243569&action=review
> 
> > Source/WebKit/win/WebCoreSupport/AcceleratedCompositingContext.cpp:99
> > +    m_context = GLContext::createContextForWindow(m_window, GLContext::sharingContext());
> 
> What if we already have a context?  Shouldn't this also be in an if
> (!m_context)?

Thanks for reviewing :) Updated patch.
Comment 5 WebKit Commit Bot 2014-12-19 14:06:24 PST
Comment on attachment 243572 [details]
Patch

Clearing flags on attachment: 243572

Committed r177595: <http://trac.webkit.org/changeset/177595>
Comment 6 WebKit Commit Bot 2014-12-19 14:06:29 PST
All reviewed patches have been landed.  Closing bug.