Changeset 202390 in webkit


Ignore:
Timestamp:
Jun 23, 2016 12:17:49 PM (8 years ago)
Author:
ap@apple.com
Message:

Handle (0, 0) ranges from Lookup
https://bugs.webkit.org/show_bug.cgi?id=159062
rdar://problem/26960385

Reviewed by Tim Horton.

Source/WebCore:

  • editing/mac/DictionaryLookup.mm: (WebCore::DictionaryLookup::rangeAtHitTestResult):

Paper over <https://bugs.webkit.org/show_bug.cgi?id=159063>, which seems too involved
to fix now.

LayoutTests:

  • platform/mac/TestExpectations: Unmark the test that was broken due to this.
Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r202382 r202390  
     12016-06-23  Alexey Proskuryakov  <ap@apple.com>
     2
     3        Handle (0, 0) ranges from Lookup
     4        https://bugs.webkit.org/show_bug.cgi?id=159062
     5        rdar://problem/26960385
     6
     7        Reviewed by Tim Horton.
     8
     9        * platform/mac/TestExpectations: Unmark the test that was broken due to this.
     10
    1112016-06-23  Joseph Pecoraro  <pecoraro@apple.com>
    212
  • trunk/LayoutTests/platform/mac/TestExpectations

    r202376 r202390  
    14411441# rdar://problem/26950065
    14421442[ Sierra+ ] editing/mac/input/unconfirmed-text-navigation-with-page-cache.html [ Skip ]
    1443 
    1444 # rdar://problem/26960385
    1445 [ Sierra+ ] editing/mac/dictionary-lookup/dictionary-lookup-input.html [ Failure ]
  • trunk/Source/WebCore/ChangeLog

    r202384 r202390  
     12016-06-23  Alexey Proskuryakov  <ap@apple.com>
     2
     3        Handle (0, 0) ranges from Lookup
     4        https://bugs.webkit.org/show_bug.cgi?id=159062
     5        rdar://problem/26960385
     6
     7        Reviewed by Tim Horton.
     8
     9        * editing/mac/DictionaryLookup.mm: (WebCore::DictionaryLookup::rangeAtHitTestResult):
     10        Paper over <https://bugs.webkit.org/show_bug.cgi?id=159063>, which seems too involved
     11        to fix now.
     12
    1132016-06-23  Joseph Pecoraro  <pecoraro@apple.com>
    214
  • trunk/Source/WebCore/editing/mac/DictionaryLookup.mm

    r201038 r202390  
    142142
    143143    // This function sometimes returns {NSNotFound, 0} if it was unable to determine a good string.
    144     if (extractedRange.location == NSNotFound)
     144    // FIXME (159063): We shouldn't need to check for zero length here.
     145    if (extractedRange.location == NSNotFound || extractedRange.length == 0)
    145146        return nullptr;
    146147
Note: See TracChangeset for help on using the changeset viewer.