Changeset 185917 in webkit


Ignore:
Timestamp:
Jun 24, 2015, 10:57:49 AM (10 years ago)
Author:
timothy_horton@apple.com
Message:

REGRESSION (r185804): Crash selecting time in the form on https://backup.brighthorizons.com/BackupCareRequest.aspx
<rdar://problem/21525376>

Reviewed by Sam Weinig.

  • page/TextIndicator.cpp:

(WebCore::TextIndicator::createWithRange):
Null check.

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r185916 r185917  
     12015-06-24  Tim Horton  <timothy_horton@apple.com>
     2
     3        REGRESSION (r185804): Crash selecting time in the form on https://backup.brighthorizons.com/BackupCareRequest.aspx
     4        <rdar://problem/21525376>
     5
     6        Reviewed by Sam Weinig.
     7
     8        * page/TextIndicator.cpp:
     9        (WebCore::TextIndicator::createWithRange):
     10        Null check.
     11
    1122015-06-24  Zalan Bujtas  <zalan@apple.com>
    213
  • trunk/Source/WebCore/page/TextIndicator.cpp

    r185804 r185917  
    106106    frame->selection().setSelection(oldSelection);
    107107
    108     indicator->setWantsMargin(!areRangesEqual(&range, oldSelection.toNormalizedRange().get()));
     108    if (indicator)
     109        indicator->setWantsMargin(!areRangesEqual(&range, oldSelection.toNormalizedRange().get()));
    109110   
    110111    return indicator.release();
Note: See TracChangeset for help on using the changeset viewer.