Description[Android] 'Open in new Chrome (incognito) tab under context menu does not work for images and videos
For links of images and videos, the options 'Open in new Chrome tab'
and 'Open in Chrome incognito tab' under context menu do not work,
because the linkUrl is empty.
To fix this, check whether the link is video or image, if so, pass the
srcUrl instead of linkUrl.
Also for downloaded images and videos, the context menu should be
disabled because current options ('Share' and 'Download image/video')
could be achieved through overflow menu.
To fix this, check if the srcUrl starts with 'file://'.
BUG=696417
Review-Url: https://codereview.chromium.org/2725473002
Cr-Commit-Position: refs/heads/master@{#455181}
Committed: https://chromium.googlesource.com/chromium/src/+/2fc04cd1fea6d3c1fc5d8e1bd5fa2528b2a462d8
Patch Set 1 #
Total comments: 4
Patch Set 2 : Update base on Yusuf's comments. #
Messages
Total messages: 17 (9 generated)
|