Changeset 171280 in webkit


Ignore:
Timestamp:
Jul 20, 2014 9:48:35 AM (10 years ago)
Author:
mitz@apple.com
Message:

<rdar://problem/17739804> REGRESSION (r171057): Crash in WebPage::getPositionInformation()
https://bugs.webkit.org/show_bug.cgi?id=135099

Reviewed by David Kilzer.

  • WebProcess/WebPage/ios/WebPageIOS.mm:

(WebKit::WebPage::getPositionInformation): Added a null check.

Location:
trunk/Source/WebKit2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r171260 r171280  
     12014-07-20  Dan Bernstein  <mitz@apple.com>
     2
     3        <rdar://problem/17739804> REGRESSION (r171057): Crash in WebPage::getPositionInformation()
     4        https://bugs.webkit.org/show_bug.cgi?id=135099
     5
     6        Reviewed by David Kilzer.
     7
     8        * WebProcess/WebPage/ios/WebPageIOS.mm:
     9        (WebKit::WebPage::getPositionInformation): Added a null check.
     10
    1112014-07-19  Zan Dobersek  <zdobersek@igalia.com>
    212
  • trunk/Source/WebKit2/WebProcess/WebPage/ios/WebPageIOS.mm

    r171253 r171280  
    18601860            if (elementIsLinkOrImage) {
    18611861                // Ensure that the image contains at most 600K pixels, so that it is not too big.
    1862                 info.image = snapshotNode(*element, SnapshotOptionsShareable, 600 * 1024)->bitmap();
     1862                if (RefPtr<WebImage> snapshot = snapshotNode(*element, SnapshotOptionsShareable, 600 * 1024))
     1863                    info.image = snapshot->bitmap();
    18631864            }
    18641865            if (linkElement)
Note: See TracChangeset for help on using the changeset viewer.