Chromium Code Reviews
[email protected] (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(16)

Issue 14180010: Translate: browser test for Chrome Translate in an isolated world (Closed)

Created:
7 years, 8 months ago by Takashi Toyoshima
Modified:
7 years, 4 months ago
CC:
chromium-reviews
Visibility:
Public.

Description

Translate: browser test for Chrome Translate in an isolated world An browser test which cover whole translate process was disabled tentatively. This is because now Translate scripts runs inside a v8 isolated world and it make impossible to run with local testing server. This change introduce a flag to change the allowed server for XHR, and make the test enabled again. Note that this flag is warned by infobar when it is enabled. BUG=268785 TEST=browser_tests --gtest_filter='Translate*.*' [email protected] Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=215912

Patch Set 1 : split #

Patch Set 2 : (rebase) #

Patch Set 3 : (rebase) #

Patch Set 4 : fix rebase error #

Patch Set 5 : for review #

Total comments: 1

Patch Set 6 : revive command passing from browser to renderer #

Patch Set 7 : (rebase) #

Patch Set 8 : (rebase: similarity=90) #

Total comments: 5

Patch Set 9 : make comments awesome (I hope so) #

Patch Set 10 : factor out infobar check #

Total comments: 5

Patch Set 11 : (rebase) #

Patch Set 12 : review #14, #15 #

Patch Set 13 : (rebase) #

Patch Set 14 : fix two memory bugs #

Unified diffs Side-by-side diffs Delta from patch set Stats (+121 lines, -68 lines) Patch
M chrome/browser/chrome_content_browser_client.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/translate/translate_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 13 chunks +95 lines, -67 lines 0 comments Download
M chrome/browser/ui/startup/bad_flags_prompt.cc View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/chrome_switches.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/chrome_switches.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/renderer/translate/translate_helper.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +7 lines, -1 line 0 comments Download
M chrome/test/data/translate/fr_test.html View 1 2 3 4 5 1 chunk +3 lines, -0 lines 0 comments Download
A chrome/test/data/translate/fr_test.js View 1 2 3 4 5 6 7 1 chunk +10 lines, -0 lines 0 comments Download

Messages

Total messages: 26 (0 generated)
Takashi Toyoshima
Hi Mike, and Mad, I split browser test from the change for CSP support. Now, ...
7 years, 8 months ago (2013-04-22 06:31:27 UTC) #1
Takashi Toyoshima
Since the main change looks difficult to land soon and another change by Hajime depends ...
7 years, 8 months ago (2013-04-23 07:32:47 UTC) #2
Takashi Toyoshima
Hey, now is the time to enable browser tests in the isolated world. Can you ...
7 years, 4 months ago (2013-07-30 07:09:05 UTC) #3
hajimehoshi
https://chromiumcodereview.appspot.com/14180010/diff/25001/chrome/test/data/translate/fr_test.html File chrome/test/data/translate/fr_test.html (right): https://chromiumcodereview.appspot.com/14180010/diff/25001/chrome/test/data/translate/fr_test.html#newcode12 chrome/test/data/translate/fr_test.html:12: <script>world='ng';</script> <!-- This line doesn't run because of CSP. ...
7 years, 4 months ago (2013-07-30 08:29:05 UTC) #4
Takashi Toyoshima
I remember what this test does. global variable 'world' checks two features working correctly. 1. ...
7 years, 4 months ago (2013-07-30 09:31:22 UTC) #5
hajimehoshi
https://codereview.chromium.org/14180010/diff/41001/chrome/browser/translate/translate_browsertest.cc File chrome/browser/translate/translate_browsertest.cc (right): https://codereview.chromium.org/14180010/diff/41001/chrome/browser/translate/translate_browsertest.cc#newcode101 chrome/browser/translate/translate_browsertest.cc:101: EXPECT_TRUE(confirm); Please add comment to explain why the confirm ...
7 years, 4 months ago (2013-07-31 06:59:22 UTC) #6
hajimehoshi
I think the comment should exist on each test. https://codereview.chromium.org/14180010/diff/41001/chrome/browser/translate/translate_browsertest.cc File chrome/browser/translate/translate_browsertest.cc (right): https://codereview.chromium.org/14180010/diff/41001/chrome/browser/translate/translate_browsertest.cc#newcode221 chrome/browser/translate/translate_browsertest.cc:221: ...
7 years, 4 months ago (2013-07-31 07:04:00 UTC) #7
hajimehoshi
chrome/*/translate/* lgtm On 2013/07/31 07:04:00, hajimehoshi wrote: > I think the comment should exist on ...
7 years, 4 months ago (2013-07-31 07:55:50 UTC) #8
Takashi Toyoshima
As we discussed offline, I factor out infobar check as a class method so to ...
7 years, 4 months ago (2013-07-31 13:19:32 UTC) #9
Takashi Toyoshima
+sky for chrome/ since this change introduces new *bad* flag and passes it to renderers. ...
7 years, 4 months ago (2013-07-31 13:22:58 UTC) #10
sky
LGTM - but I get nervous when I see 'security' in the name of something. ...
7 years, 4 months ago (2013-07-31 16:26:14 UTC) #11
sky
Also, the description makes no sense to me. Please update it. On Wed, Jul 31, ...
7 years, 4 months ago (2013-07-31 16:26:34 UTC) #12
Takashi Toyoshima
Add Palmer for security concern. He was looped in the discussion for Translate CSP support. ...
7 years, 4 months ago (2013-08-01 02:57:36 UTC) #13
palmer
This looks reasonable to me, but tsepez is a better reviewer for CSP things than ...
7 years, 4 months ago (2013-08-01 21:22:38 UTC) #14
Tom Sepez
Looks reasonable, but seems redundant to have both extern const char kTranslateScriptURL[]; extern const char ...
7 years, 4 months ago (2013-08-01 21:31:32 UTC) #15
Takashi Toyoshima
Palmer and Tom, Thank you for your checking this. Tom: In this browser test, these ...
7 years, 4 months ago (2013-08-02 04:18:31 UTC) #16
Takashi Toyoshima
Thanks. Now, I push this change to CQ. https://chromiumcodereview.appspot.com/14180010/diff/53001/chrome/browser/translate/translate_browsertest.cc File chrome/browser/translate/translate_browsertest.cc (right): https://chromiumcodereview.appspot.com/14180010/diff/53001/chrome/browser/translate/translate_browsertest.cc#newcode54 chrome/browser/translate/translate_browsertest.cc:54: // ...
7 years, 4 months ago (2013-08-02 04:40:19 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/[email protected]/14180010/67001
7 years, 4 months ago (2013-08-02 04:40:46 UTC) #18
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=182795
7 years, 4 months ago (2013-08-02 08:05:13 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/[email protected]/14180010/67001
7 years, 4 months ago (2013-08-02 09:07:58 UTC) #20
commit-bot: I haz the power
Retried try job too often on win7_aura for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win7_aura&number=66336
7 years, 4 months ago (2013-08-02 11:23:45 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/[email protected]/14180010/67001
7 years, 4 months ago (2013-08-05 05:41:37 UTC) #22
commit-bot: I haz the power
Retried try job too often on win7_aura for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win7_aura&number=66785
7 years, 4 months ago (2013-08-05 08:39:18 UTC) #23
Takashi Toyoshima
Two memory bugs caused win7_aura and win_rel build failures. I fixed them in Patch Set ...
7 years, 4 months ago (2013-08-06 13:12:10 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/[email protected]/14180010/107001
7 years, 4 months ago (2013-08-06 13:13:17 UTC) #25
commit-bot: I haz the power
7 years, 4 months ago (2013-08-06 17:14:23 UTC) #26
Message was sent while issue was closed.
Change committed as 215912

Powered by Google App Engine
This is Rietveld 408576698