Changeset 206702 in webkit


Ignore:
Timestamp:
Sep 30, 2016, 6:27:35 PM (9 years ago)
Author:
mitz@apple.com
Message:

[iOS] Editing menu omits the Share command if the selected text is longer than 200 characters
https://bugs.webkit.org/show_bug.cgi?id=162821
<rdar://problem/28409828>

Reviewed by Tim Horton.

  • UIProcess/ios/WKContentViewInteraction.mm:

(-[WKContentView canPerformAction:withSender:]): Changed to return YES for the _share:

action even if the selection is longer than 200 characters. While Define should not have
been available for longer selections, Share does not have such a limitation.

Location:
trunk/Source/WebKit2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r206701 r206702  
     12016-09-30  Dan Bernstein  <mitz@apple.com>
     2
     3        [iOS] Editing menu omits the Share command if the selected text is longer than 200 characters
     4        https://bugs.webkit.org/show_bug.cgi?id=162821
     5        <rdar://problem/28409828>
     6
     7        Reviewed by Tim Horton.
     8
     9        * UIProcess/ios/WKContentViewInteraction.mm:
     10        (-[WKContentView canPerformAction:withSender:]): Changed to return YES for the _share:
     11          action even if the selection is longer than 200 characters. While Define should not have
     12          been available for longer selections, Share does not have such a limitation.
     13
    1142016-09-30  Myles C. Maxfield  <mmaxfield@apple.com>
    215
  • trunk/Source/WebKit2/UIProcess/ios/WKContentViewInteraction.mm

    r206645 r206702  
    18631863            return NO;
    18641864
    1865         NSUInteger textLength = _page->editorState().postLayoutData().selectedTextLength;
    1866         // See FIXME above for _define.
    1867         if (!textLength || textLength > 200)
    1868             return NO;
    1869        
    1870         return YES;
     1865        return _page->editorState().postLayoutData().selectedTextLength > 0;
    18711866    }
    18721867
Note: See TracChangeset for help on using the changeset viewer.