Changeset 151879 in webkit


Ignore:
Timestamp:
Jun 22, 2013 1:29:30 PM (11 years ago)
Author:
Simon Fraser
Message:

Followup from r151877 .
Fix crash in fast/frames/iframe-access-screen-of-deleted.html by null-checking the widget.

  • platform/mac/PlatformScreenMac.mm:

(WebCore::screenForWidget):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r151878 r151879  
     12013-06-22  Simon Fraser  <simon.fraser@apple.com>
     2
     3        Followup from r151877 .
     4        Fix crash in fast/frames/iframe-access-screen-of-deleted.html by null-checking the widget.
     5
     6        * platform/mac/PlatformScreenMac.mm:
     7        (WebCore::screenForWidget):
     8
    192013-06-22  Hans Muller  <hmuller@adobe.com>
    210
  • trunk/Source/WebCore/platform/mac/PlatformScreenMac.mm

    r151877 r151879  
    7676   
    7777    // Didn't get an NSWindow; probably WebKit2. Try using the Widget's display ID.
    78     if (NSScreen *screen = [NSScreen screenForDislayID:widget->windowDisplayID()])
     78    if (NSScreen *screen = widget ? [NSScreen screenForDislayID:widget->windowDisplayID()] : nil)
    7979        return screen;
    8080   
Note: See TracChangeset for help on using the changeset viewer.