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

Issue 410873005: Added code to disable 'paste' if nothing is present in clipboard to paste. (Closed)

Created:
6 years, 5 months ago by ankit
Modified:
6 years, 4 months ago
CC:
blink-reviews, groby+blinkspell_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

Added code to disable 'paste' if nothing is present in clipboard to paste. On right click in editable node context menu was always having 'paste' option as enabled. Added check that if clipboard is not empty then only show 'paste' option. BUG=396616

Patch Set 1 #

Total comments: 1

Patch Set 2 : Modified code as suggested #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -3 lines) Patch
M chrome/browser/renderer_context_menu/render_view_context_menu.cc View 1 1 chunk +8 lines, -3 lines 1 comment Download

Messages

Total messages: 19 (0 generated)
ankit
PTAL
6 years, 5 months ago (2014-07-23 13:55:31 UTC) #1
ankit
PTAL
6 years, 5 months ago (2014-07-24 15:11:24 UTC) #2
jamesr
https://codereview.chromium.org/410873005/diff/1/Source/core/editing/Editor.cpp File Source/core/editing/Editor.cpp (right): https://codereview.chromium.org/410873005/diff/1/Source/core/editing/Editor.cpp#newcode244 Source/core/editing/Editor.cpp:244: String text = Pasteboard::generalPasteboard()->plainText(); this is going to do ...
6 years, 5 months ago (2014-07-24 18:27:15 UTC) #3
ankit
On 2014/07/24 18:27:15, jamesr wrote: > https://codereview.chromium.org/410873005/diff/1/Source/core/editing/Editor.cpp > File Source/core/editing/Editor.cpp (right): > > https://codereview.chromium.org/410873005/diff/1/Source/core/editing/Editor.cpp#newcode244 > ...
6 years, 5 months ago (2014-07-25 10:08:30 UTC) #4
ankit
On 2014/07/25 10:08:30, ankit wrote: > On 2014/07/24 18:27:15, jamesr wrote: > > > https://codereview.chromium.org/410873005/diff/1/Source/core/editing/Editor.cpp ...
6 years, 4 months ago (2014-07-27 16:43:51 UTC) #5
abarth-chromium
not lgtm The fix for this issue is worse than the underlying problem.
6 years, 4 months ago (2014-07-29 16:40:12 UTC) #6
ankit
On 2014/07/29 16:40:12, abarth wrote: > not lgtm > > The fix for this issue ...
6 years, 4 months ago (2014-07-30 04:08:08 UTC) #7
groby-ooo-7-16
According to the bug, this affects the context menu for text fields in the content ...
6 years, 4 months ago (2014-07-30 23:24:26 UTC) #8
ankit
On 2014/07/30 23:24:26, groby wrote: > According to the bug, this affects the context menu ...
6 years, 4 months ago (2014-07-31 09:34:03 UTC) #9
groby-ooo-7-16
You cannot know that the paste target is a text field. The HTML clipboard API ...
6 years, 4 months ago (2014-08-01 00:23:35 UTC) #10
ankit
On 2014/08/01 00:23:35, groby wrote: > You cannot know that the paste target is a ...
6 years, 4 months ago (2014-08-01 04:37:25 UTC) #11
ankit
PTAL
6 years, 4 months ago (2014-08-04 03:55:56 UTC) #12
Avi (use Gerrit)
Seems like you already have plenty of reviewers.
6 years, 4 months ago (2014-08-04 16:56:13 UTC) #13
ankit
@groby @abarth PTAL
6 years, 4 months ago (2014-08-05 11:29:31 UTC) #14
groby-ooo-7-16
LGTM - but not owner. You need abarth to sign off. https://codereview.chromium.org/410873005/diff/20001/chrome/browser/renderer_context_menu/render_view_context_menu.cc File chrome/browser/renderer_context_menu/render_view_context_menu.cc (right): ...
6 years, 4 months ago (2014-08-05 17:58:55 UTC) #15
abarth-chromium
I have no idea what the consequences are of this change.
6 years, 4 months ago (2014-08-05 20:55:06 UTC) #16
groby-ooo-7-16
abarth: Ah, sorry, I thought you might be owner. Either way, your NOT will block ...
6 years, 4 months ago (2014-08-05 21:07:23 UTC) #17
abarth-chromium
On 2014/08/05 at 21:07:23, groby wrote: > abarth: Ah, sorry, I thought you might be ...
6 years, 4 months ago (2014-08-05 23:13:53 UTC) #18
ankit
6 years, 4 months ago (2014-08-06 08:25:32 UTC) #19
On 2014/08/05 23:13:53, abarth wrote:
> On 2014/08/05 at 21:07:23, groby wrote:
> > abarth: Ah, sorry, I thought you might be owner. Either way, your NOT will
> block submit until you retract, no? Or do I have that wrong?
> 
> IMHO, ankit should just make a new CL.  My comment was about a change to a
> different repo entirely.
> 
> > ankit: You'll need to get somebody who's OWNER to review. First step, I
> suggest you clean out existing reviewers list, and _just_ pick an owner.
Nobody
> else on the list.

Closing this issue as per above suggestion.
Raised a new CL as suggested(https://codereview.chromium.org/443073002/).

@groby
PTAL new CL

Powered by Google App Engine
This is Rietveld 408576698