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

Issue 647483006: Fixed to return original context element. (Closed)

Created:
6 years, 2 months ago by yawano
Modified:
5 years, 8 months ago
Reviewers:
Dan Beam
CC:
chromium-reviews, oshima+watch_chromium.org, yoshiki, Haruki Sato
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fixed to return original context element. BUG=423248 TEST=out/Release/browser_tests --gtest_filter=WebUIResourceBrowserTest.ContextMenuHandlerTest Committed: https://crrev.com/4830c50b38bcb3b5c2144b7d85fb34ab7f985270 Cr-Commit-Position: refs/heads/master@{#327004}

Patch Set 1 #

Patch Set 2 : Added test case. #

Patch Set 3 : nit. #

Patch Set 4 : Changed to use event.type directly. #

Total comments: 4

Patch Set 5 : Fixed variable names and comments. #

Patch Set 6 : Rebase #

Patch Set 7 : Added log to debug the failed test case. #

Patch Set 8 : Fixed a test case which fails on Windows. #

Patch Set 9 : Rebase. #

Patch Set 10 : Rebase again. #

Total comments: 1

Patch Set 11 : Rebase. #

Patch Set 12 : Remove setTimeout from test code. #

Total comments: 6

Patch Set 13 : Address comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+80 lines, -1 line) Patch
A chrome/test/data/webui/context_menu_handler_test.html View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +65 lines, -0 lines 0 comments Download
M chrome/test/data/webui/webui_resource_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +14 lines, -0 lines 0 comments Download
M ui/webui/resources/js/cr/ui/context_menu_handler.js View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 48 (19 generated)
yawano
PTAL.
6 years, 2 months ago (2014-10-14 08:01:03 UTC) #2
Dan Beam
lgtm, but you'd get more points if you wrote a test in the style of ...
6 years, 2 months ago (2014-10-14 18:06:21 UTC) #3
yawano
Thank you for the review. I added a test case for this patch. PTAL.
6 years, 2 months ago (2014-10-15 03:07:28 UTC) #4
Dan Beam
lgtm, yawano++ https://codereview.chromium.org/647483006/diff/60001/chrome/test/data/webui/context_menu_handler_test.html File chrome/test/data/webui/context_menu_handler_test.html (right): https://codereview.chromium.org/647483006/diff/60001/chrome/test/data/webui/context_menu_handler_test.html#newcode7 chrome/test/data/webui/context_menu_handler_test.html:7: var cm = cr.ui.contextMenuHandler; nit: cmh https://codereview.chromium.org/647483006/diff/60001/chrome/test/data/webui/context_menu_handler_test.html#newcode9 ...
6 years, 2 months ago (2014-10-15 03:09:41 UTC) #5
yawano
Thanks for the review. https://codereview.chromium.org/647483006/diff/60001/chrome/test/data/webui/context_menu_handler_test.html File chrome/test/data/webui/context_menu_handler_test.html (right): https://codereview.chromium.org/647483006/diff/60001/chrome/test/data/webui/context_menu_handler_test.html#newcode7 chrome/test/data/webui/context_menu_handler_test.html:7: var cm = cr.ui.contextMenuHandler; On ...
6 years, 2 months ago (2014-10-15 04:16:27 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/647483006/80001
6 years, 2 months ago (2014-10-15 04:17:06 UTC) #8
commit-bot: I haz the power
Try jobs failed on following builders: linux_gpu on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/linux_gpu/builds/79204) android_aosp on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_aosp/builds/24358) linux_chromium_compile_dbg_32 ...
6 years, 2 months ago (2014-10-15 04:20:01 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/647483006/80001
6 years, 2 months ago (2014-10-15 06:03:52 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: android_aosp on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_aosp/builds/24377) linux_chromium_compile_dbg_32 on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_compile_dbg_32/builds/2200)
6 years, 2 months ago (2014-10-15 06:06:30 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/647483006/80001
6 years, 2 months ago (2014-10-16 03:14:01 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: linux_gpu on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/linux_gpu/builds/79640) mac_gpu on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/mac_gpu/builds/69247) android_aosp ...
6 years, 2 months ago (2014-10-16 03:18:15 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/647483006/100001
6 years, 2 months ago (2014-10-16 03:54:25 UTC) #20
commit-bot: I haz the power
Try jobs failed on following builders: win_gpu_triggered_tests on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/win_gpu_triggered_tests/builds/63949)
6 years, 2 months ago (2014-10-16 04:56:37 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/647483006/100001
6 years, 2 months ago (2014-10-16 05:30:37 UTC) #24
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel_swarming on tryserver.chromium.win (http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_swarming/builds/19614)
6 years, 2 months ago (2014-10-16 07:40:51 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/647483006/100001
6 years, 2 months ago (2014-10-17 01:36:11 UTC) #28
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel_swarming on tryserver.chromium.win (http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_swarming/builds/20001)
6 years, 2 months ago (2014-10-17 03:32:52 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/647483006/120001
6 years, 2 months ago (2014-10-17 05:03:45 UTC) #34
yawano
On 2014/10/17 05:03:45, I haz the power (commit-bot) wrote: > CQ is trying da patch. ...
6 years, 2 months ago (2014-10-20 01:14:07 UTC) #36
yawano
The test case has failed on Windows since we had to wait at least 50ms ...
6 years, 1 month ago (2014-10-27 01:11:36 UTC) #37
yawano
@dbeam: Could you take a look at this CL since I changed the code of ...
6 years, 1 month ago (2014-10-29 01:14:38 UTC) #38
Dan Beam
https://codereview.chromium.org/647483006/diff/180001/chrome/test/data/webui/context_menu_handler_test.html File chrome/test/data/webui/context_menu_handler_test.html (right): https://codereview.chromium.org/647483006/diff/180001/chrome/test/data/webui/context_menu_handler_test.html#newcode42 chrome/test/data/webui/context_menu_handler_test.html:42: setTimeout(function() { this is almost never a good idea. ...
6 years, 1 month ago (2014-10-29 01:17:17 UTC) #39
yawano
On 2014/10/29 01:17:17, Dan Beam wrote: > https://codereview.chromium.org/647483006/diff/180001/chrome/test/data/webui/context_menu_handler_test.html > File chrome/test/data/webui/context_menu_handler_test.html (right): > > https://codereview.chromium.org/647483006/diff/180001/chrome/test/data/webui/context_menu_handler_test.html#newcode42 ...
6 years, 1 month ago (2014-10-30 09:21:10 UTC) #40
yawano
Sorry for asking review of very old CL. I changed not to use setTimeout in ...
5 years, 8 months ago (2015-04-22 02:25:50 UTC) #41
Dan Beam
lgtm https://codereview.chromium.org/647483006/diff/220001/chrome/test/data/webui/context_menu_handler_test.html File chrome/test/data/webui/context_menu_handler_test.html (right): https://codereview.chromium.org/647483006/diff/220001/chrome/test/data/webui/context_menu_handler_test.html#newcode6 chrome/test/data/webui/context_menu_handler_test.html:6: function testShowAndHideEvents() { var originalDateNow = Date.now; https://codereview.chromium.org/647483006/diff/220001/chrome/test/data/webui/context_menu_handler_test.html#newcode30 ...
5 years, 8 months ago (2015-04-22 18:15:59 UTC) #42
yawano
Thank you! https://codereview.chromium.org/647483006/diff/220001/chrome/test/data/webui/context_menu_handler_test.html File chrome/test/data/webui/context_menu_handler_test.html (right): https://codereview.chromium.org/647483006/diff/220001/chrome/test/data/webui/context_menu_handler_test.html#newcode6 chrome/test/data/webui/context_menu_handler_test.html:6: function testShowAndHideEvents() { On 2015/04/22 18:15:59, Dan ...
5 years, 8 months ago (2015-04-27 05:25:32 UTC) #43
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/647483006/240001
5 years, 8 months ago (2015-04-27 05:26:03 UTC) #46
commit-bot: I haz the power
Committed patchset #13 (id:240001)
5 years, 8 months ago (2015-04-27 06:34:33 UTC) #47
commit-bot: I haz the power
5 years, 8 months ago (2015-04-27 06:35:26 UTC) #48
Message was sent while issue was closed.
Patchset 13 (id:??) landed as
https://crrev.com/4830c50b38bcb3b5c2144b7d85fb34ab7f985270
Cr-Commit-Position: refs/heads/master@{#327004}

Powered by Google App Engine
This is Rietveld 408576698