Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(681)

Issue 2842303002: "Open in new chrome tab" and "open in incognito tab" missing for images in context menu CCT. (Closed)

Created:
3 years, 8 months ago by ltian
Modified:
3 years, 7 months ago
Reviewers:
Ted C
CC:
chromium-reviews, agrieve+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

"Open in new chrome tab" and "open in incognito tab" missing for images in context menu CCT. This is a regression bug because the recent fix checked the wrong field. If the url of a image is empty and blank, both two options should be hidden. However, for images and video, the urls are stored in the srcUrl instead of linkUrl. Also if the url is emtpy, the "open in [default browser]" option should also be hidden. BUG=715381 Review-Url: https://codereview.chromium.org/2842303002 Cr-Commit-Position: refs/heads/master@{#467571} Committed: https://chromium.googlesource.com/chromium/src/+/2236c8e01131fe9f2d02056a04d7494188d83a23

Patch Set 1 #

Total comments: 2

Patch Set 2 : Update Ted's nit. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+14 lines, -5 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/contextmenu/ChromeContextMenuPopulator.java View 1 3 chunks +14 lines, -5 lines 0 comments Download

Messages

Total messages: 10 (5 generated)
ltian
Could you take a look of my change in this CL? Thanks!
3 years, 8 months ago (2017-04-26 21:35:20 UTC) #2
Ted C
lgtm https://codereview.chromium.org/2842303002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/contextmenu/ChromeContextMenuPopulator.java File chrome/android/java/src/org/chromium/chrome/browser/contextmenu/ChromeContextMenuPopulator.java (right): https://codereview.chromium.org/2842303002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/contextmenu/ChromeContextMenuPopulator.java#newcode399 chrome/android/java/src/org/chromium/chrome/browser/contextmenu/ChromeContextMenuPopulator.java:399: if (TextUtils.isEmpty(params.getLinkUrl()) should we use isEmptyUrl here?
3 years, 8 months ago (2017-04-27 00:08:07 UTC) #3
ltian
https://codereview.chromium.org/2842303002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/contextmenu/ChromeContextMenuPopulator.java File chrome/android/java/src/org/chromium/chrome/browser/contextmenu/ChromeContextMenuPopulator.java (right): https://codereview.chromium.org/2842303002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/contextmenu/ChromeContextMenuPopulator.java#newcode399 chrome/android/java/src/org/chromium/chrome/browser/contextmenu/ChromeContextMenuPopulator.java:399: if (TextUtils.isEmpty(params.getLinkUrl()) On 2017/04/27 00:08:07, Ted C wrote: > ...
3 years, 8 months ago (2017-04-27 00:37:23 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2842303002/20001
3 years, 8 months ago (2017-04-27 00:39:18 UTC) #7
commit-bot: I haz the power
3 years, 7 months ago (2017-04-27 03:44:29 UTC) #10
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/2236c8e01131fe9f2d02056a04d7...

Powered by Google App Engine
This is Rietveld 408576698