Changeset 112491 in webkit


Ignore:
Timestamp:
Mar 28, 2012 6:50:06 PM (12 years ago)
Author:
andersca@apple.com
Message:

Fix a crash and an assertion when recovering from a web process crash
https://bugs.webkit.org/show_bug.cgi?id=82559
<rdar://problem/10902574>

Reviewed by Mark Rowe.

  • UIProcess/API/mac/WKView.mm:

(-[WKView _processDidCrash]):
If we're currently in accelerated compositing mode, exit.

(-[WKView updateLayer]):
Guard against a null drawing area.

Location:
trunk/Source/WebKit2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r112474 r112491  
     12012-03-28  Anders Carlsson  <andersca@apple.com>
     2
     3        Fix a crash and an assertion when recovering from a web process crash
     4        https://bugs.webkit.org/show_bug.cgi?id=82559
     5        <rdar://problem/10902574>
     6
     7        Reviewed by Mark Rowe.
     8
     9        * UIProcess/API/mac/WKView.mm:
     10        (-[WKView _processDidCrash]):
     11        If we're currently in accelerated compositing mode, exit.
     12
     13        (-[WKView updateLayer]):
     14        Guard against a null drawing area.
     15
    1162012-03-28  Nate Chapin  <japhet@chromium.org>
    217
  • trunk/Source/WebKit2/UIProcess/API/mac/WKView.mm

    r112457 r112491  
    22172217- (void)_processDidCrash
    22182218{
     2219    if (_data->_layerHostingView)
     2220        [self _exitAcceleratedCompositingMode];
     2221
    22192222    [self _updateRemoteAccessibilityRegistration:NO];
    22202223}
     
    29252928{
    29262929    self.layer.backgroundColor = CGColorGetConstantColor(kCGColorWhite);
    2927     _data->_page->drawingArea()->waitForPossibleGeometryUpdate();
     2930
     2931    if (DrawingAreaProxy* drawingArea = _data->_page->drawingArea())
     2932        drawingArea->waitForPossibleGeometryUpdate();
    29282933}
    29292934#endif
Note: See TracChangeset for help on using the changeset viewer.