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

Issue 495213002: Add tests to make sure copy/paste in an about:blank iframe in a hosted app works. (Closed)

Created:
6 years, 4 months ago by Marijn Kruisselbrink
Modified:
6 years, 4 months ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, dcheng, extensions-reviews_chromium.org
Project:
chromium
Visibility:
Public.

Description

Add tests to make sure copy/paste in an about:blank iframe in a hosted app or extension works. BUG=395376 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=291268

Patch Set 1 #

Patch Set 2 : #

Total comments: 5

Patch Set 3 : #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+74 lines, -27 lines) Patch
M chrome/browser/extensions/extension_dom_clipboard_apitest.cc View 1 2 3 chunks +42 lines, -27 lines 0 comments Download
M chrome/test/data/extensions/api_test/clipboard/extension/test.js View 1 chunk +16 lines, -0 lines 1 comment Download
M chrome/test/data/extensions/api_test/clipboard/extension_no_permission/test.js View 1 1 chunk +16 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
Marijn Kruisselbrink
6 years, 4 months ago (2014-08-21 20:19:35 UTC) #1
not at google - send to devlin
LGTM but I think this patch can be a negative line count :) https://codereview.chromium.org/495213002/diff/20001/chrome/browser/extensions/extension_dom_clipboard_apitest.cc File ...
6 years, 4 months ago (2014-08-21 20:28:11 UTC) #2
Marijn Kruisselbrink
https://codereview.chromium.org/495213002/diff/20001/chrome/browser/extensions/extension_dom_clipboard_apitest.cc File chrome/browser/extensions/extension_dom_clipboard_apitest.cc (right): https://codereview.chromium.org/495213002/diff/20001/chrome/browser/extensions/extension_dom_clipboard_apitest.cc#newcode99 chrome/browser/extensions/extension_dom_clipboard_apitest.cc:99: return true; On 2014/08/21 20:28:11, kalman wrote: > We ...
6 years, 4 months ago (2014-08-21 20:50:20 UTC) #3
Marijn Kruisselbrink
The CQ bit was checked by mek@chromium.org
6 years, 4 months ago (2014-08-21 20:50:23 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mek@chromium.org/495213002/40001
6 years, 4 months ago (2014-08-21 20:51:55 UTC) #5
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_chromium_gn_compile_rel on tryserver.chromium.linux ...
6 years, 4 months ago (2014-08-21 22:07:41 UTC) #6
commit-bot: I haz the power
Committed patchset #3 (40001) as 291268
6 years, 4 months ago (2014-08-22 00:29:32 UTC) #7
not at google - send to devlin
6 years, 4 months ago (2014-08-22 14:03:13 UTC) #8
Message was sent while issue was closed.
https://codereview.chromium.org/495213002/diff/40001/chrome/test/data/extensi...
File chrome/test/data/extensions/api_test/clipboard/extension/test.js (right):

https://codereview.chromium.org/495213002/diff/40001/chrome/test/data/extensi...
chrome/test/data/extensions/api_test/clipboard/extension/test.js:32: if
(ifr.contentDocument.execCommand('paste'))
Ok - I was being a bit silly here. I *would* expect this to work because the
execCommand call is still coming from the same context (this one).

The actual way to trigger an execCommand from a different context would be:

ifr.contentDocument.write('<script>execCommand("copy")</script>')

Powered by Google App Engine
This is Rietveld 408576698