⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 254292 in webkit


Ignore:
Timestamp:
Jan 9, 2020, 1:10:17 PM (7 years ago)
Author:
Megan Gardner
Message:

Set the title for images so it will be correctly displayed in UIContextMenus
​https://bugs.webkit.org/show_bug.cgi?id=205980
<rdar://problem/57701988>

Reviewed by Dean Jackson.

Need to set the title text for images.

  • UIProcess/ios/WKContentViewInteraction.mm:

(-[WKContentView continueContextMenuInteraction:]):

Location:
trunk/Source/WebKit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r254287 r254292  
     12020-01-09  Megan Gardner  <megan_gardner@apple.com>
     2
     3        Set the title for images so it will be correctly displayed in UIContextMenus
     4        https://bugs.webkit.org/show_bug.cgi?id=205980
     5        <rdar://problem/57701988>
     6
     7        Reviewed by Dean Jackson.
     8
     9        Need to set the title text for images.
     10
     11        * UIProcess/ios/WKContentViewInteraction.mm:
     12        (-[WKContentView continueContextMenuInteraction:]):
     13
    1142020-01-09  Peng Liu  <peng.liu6@apple.com>
    215
  • trunk/Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm

    r254025 r254292  
    84818481                RetainPtr<NSArray<_WKElementAction *>> defaultActionsFromAssistant = [strongSelf->_actionSheetAssistant defaultActionsForImageSheet:elementInfo.get()];
    84828482                auto actions = menuElementsFromDefaultActions(defaultActionsFromAssistant, elementInfo);
    8483                 return [UIMenu menuWithTitle:@"" children:actions];
     8483                return [UIMenu menuWithTitle:strongSelf->_positionInformation.title children:actions];
    84848484            };
    84858485
Note: See TracChangeset for help on using the changeset viewer.