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

Issue 339573002: ContextMenu shows about:blank (Closed)

Created:
6 years, 6 months ago by Jitu( very slow this week)
Modified:
6 years, 6 months ago
Reviewers:
bengr, Yaron, bolian, bulach
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

As per the ContextMenuParam structure (context_menu_params.h) mLinkText may be an empty string if the contents of the link are an image. So here as we are doing long press on image link the mLinkText is coming as empty string from nativeside. And in buildContextMenu it sets header title as mLinkText so it sets "about:blank" This patch checks if link are an image then sets title as source URL. BUG=385000 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=279673

Patch Set 1 #

Total comments: 4

Patch Set 2 : Fixed linkurl start check comments #

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

Messages

Total messages: 12 (0 generated)
Jitu( very slow this week)
PTAL
6 years, 6 months ago (2014-06-16 10:10:10 UTC) #1
kbalazs
On 2014/06/16 10:10:10, Jitu wrote: > PTAL Change looks good, but imho you should document ...
6 years, 6 months ago (2014-06-18 20:40:57 UTC) #2
Jitu( very slow this week)
On 2014/06/18 20:40:57, kbalazs wrote: > On 2014/06/16 10:10:10, Jitu wrote: > > PTAL > ...
6 years, 6 months ago (2014-06-19 06:35:33 UTC) #3
bengr
https://codereview.chromium.org/339573002/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/339573002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/contextmenu/ChromeContextMenuPopulator.java#newcode41 chrome/android/java/src/org/chromium/chrome/browser/contextmenu/ChromeContextMenuPopulator.java:41: if (!TextUtils.isEmpty(params.getLinkUrl()) && params.getLinkUrl().startsWith("http")) Why is this limited to ...
6 years, 6 months ago (2014-06-19 12:46:24 UTC) #4
Jitu( very slow this week)
Please check my comment https://codereview.chromium.org/339573002/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/339573002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/contextmenu/ChromeContextMenuPopulator.java#newcode41 chrome/android/java/src/org/chromium/chrome/browser/contextmenu/ChromeContextMenuPopulator.java:41: if (!TextUtils.isEmpty(params.getLinkUrl()) && params.getLinkUrl().startsWith("http")) On ...
6 years, 6 months ago (2014-06-19 14:31:38 UTC) #5
bengr
On 2014/06/19 14:31:38, Jitu wrote: > Please check my comment > > https://codereview.chromium.org/339573002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/contextmenu/ChromeContextMenuPopulator.java > File ...
6 years, 6 months ago (2014-06-19 15:15:53 UTC) #6
Yaron
https://codereview.chromium.org/339573002/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/339573002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/contextmenu/ChromeContextMenuPopulator.java#newcode41 chrome/android/java/src/org/chromium/chrome/browser/contextmenu/ChromeContextMenuPopulator.java:41: if (!TextUtils.isEmpty(params.getLinkUrl()) && params.getLinkUrl().startsWith("http")) On 2014/06/19 14:31:38, Jitu wrote: ...
6 years, 6 months ago (2014-06-23 18:56:02 UTC) #7
Jitu( very slow this week)
On 2014/06/23 18:56:02, Yaron wrote: > https://codereview.chromium.org/339573002/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): > > ...
6 years, 6 months ago (2014-06-24 12:35:33 UTC) #8
Yaron
lgtm
6 years, 6 months ago (2014-06-24 17:23:37 UTC) #9
Jitu( very slow this week)
The CQ bit was checked by jitendra.ks@samsung.com
6 years, 6 months ago (2014-06-25 06:13:33 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jitendra.ks@samsung.com/339573002/20001
6 years, 6 months ago (2014-06-25 06:16:20 UTC) #11
commit-bot: I haz the power
6 years, 6 months ago (2014-06-25 11:45:50 UTC) #12
Message was sent while issue was closed.
Change committed as 279673

Powered by Google App Engine
This is Rietveld 408576698