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

Issue 1123783002: Add ExecuteJavaScriptForTest and make all tests use it (Closed)

Created:
5 years, 7 months ago by jochen (gone - plz use gerrit)
Modified:
5 years, 5 months ago
Reviewers:
mdjones, sof, jam, Torne
CC:
aandrey+blink_chromium.org, aboxhall+watch_chromium.org, asanka, benjhayden+dwatch_chromium.org, cbentzel+watch_chromium.org, chromium-apps-reviews_chromium.org, chromium-reviews, creis+watch_chromium.org, darin-cc_chromium.org, davemoore+watch_chromium.org, davidben+watch_chromium.org, devtools-reviews_chromium.org, dmazzoni+watch_chromium.org, dtseng+watch_chromium.org, dzhioev+watch_chromium.org, eroman, estade+watch_chromium.org, extensions-reviews_chromium.org, gavinp+prer_chromium.org, Greg Billock, gcasto+watchlist_chromium.org, grt+watch_chromium.org, jam, je_julie(Not used), mkwst+watchlist-passwords_chromium.org, mkwst+moarreviews-renderer_chromium.org, mlamouri+watch-geolocation_chromium.org, mlamouri+watch-content_chromium.org, mmenke, Michael van Ouwerkerk, nasko+codewatch_chromium.org, nektar+watch_chromium.org, oshima+watch_chromium.org, pfeldman, plundblad+watch_chromium.org, rouslan+autofillwatch_chromium.org, stevenjb+watch_chromium.org, tburkard+watch_chromium.org, tfarina, Lei Zhang, tommycli, vabr+watchlist_chromium.org, vandebo (ex-Chrome), yurys, yuzo+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add ExecuteJavaScriptForTest and make all tests use it Additionally, restrict the URLs that ExecuteJavaScript can be invoked on to chrome-controlled URLs. R=jam@chromium.org BUG=507809 Committed: https://crrev.com/904f14ebdc3bdb8e893df0a3211d09de42d5619c Cr-Commit-Position: refs/heads/master@{#340231}

Patch Set 1 #

Patch Set 2 : updates #

Patch Set 3 : rebase #

Patch Set 4 : updates #

Patch Set 5 : updates #

Patch Set 6 : updates #

Patch Set 7 : updates #

Patch Set 8 : updates #

Patch Set 9 : updates #

Patch Set 10 : updates #

Patch Set 11 : updates #

Patch Set 12 : updates #

Patch Set 13 : updates #

Patch Set 14 : android #

Total comments: 2

Patch Set 15 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+301 lines, -146 lines) Patch
M android_webview/browser/aw_browser_main_parts.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +3 lines, -0 lines 0 comments Download
M android_webview/java/src/org/chromium/android_webview/AwContents.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +16 lines, -0 lines 0 comments Download
M android_webview/javatests/src/org/chromium/android_webview/test/AwContentsTest.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -1 line 0 comments Download
M android_webview/javatests/src/org/chromium/android_webview/test/AwJavaBridgeTest.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -1 line 0 comments Download
M android_webview/javatests/src/org/chromium/android_webview/test/AwTestBase.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -1 line 0 comments Download
M android_webview/javatests/src/org/chromium/android_webview/test/GeolocationTest.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 5 chunks +5 lines, -5 lines 0 comments Download
M android_webview/javatests/src/org/chromium/android_webview/test/util/JSUtils.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/JavaScriptEvalChromeTest.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +4 lines, -4 lines 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/ModalDialogTest.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/TabsTest.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/apps/custom_launcher_page_browsertest_views.cc View 1 2 3 4 5 6 5 chunks +6 lines, -6 lines 0 comments Download
M chrome/browser/chromeos/login/lock/screen_locker_tester.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/download/download_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/errorpage_browsertest.cc View 1 2 7 chunks +8 lines, -8 lines 0 comments Download
M chrome/browser/extensions/alert_apitest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/api/media_galleries/media_galleries_watch_apitest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/api/web_navigation/web_navigation_apitest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/geolocation/geolocation_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/mouseleave_browsertest.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/prerender/prerender_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +7 lines, -4 lines 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_blocking_page_test.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/task_manager/task_manager_browsertest.cc View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/blocked_content/popup_blocker_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/ui/browser_browsertest.cc View 1 2 7 chunks +7 lines, -7 lines 0 comments Download
M chrome/browser/ui/views/select_file_dialog_extension_browsertest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/chromeos/login/gaia_screen_handler.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/browser/ui/webui/net_internals/net_internals_ui_browsertest.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/web_ui_test_handler.cc View 2 chunks +5 lines, -4 lines 0 comments Download
M chrome/renderer/autofill/autofill_renderer_browsertest.cc View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/renderer/autofill/form_autocomplete_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 5 chunks +8 lines, -7 lines 0 comments Download
M chrome/renderer/autofill/form_autofill_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/renderer/autofill/page_click_tracker_browsertest.cc View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/renderer/autofill/password_autofill_agent_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/renderer/autofill/password_generation_agent_browsertest.cc View 1 2 3 chunks +5 lines, -4 lines 0 comments Download
M components/dom_distiller/content/browser/distiller_page_web_contents_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -1 line 0 comments Download
M components/dom_distiller/content/browser/test/dom_distiller_js_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -1 line 0 comments Download
M components/printing/test/print_web_view_helper_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download
M content/browser/accessibility/accessibility_win_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download
M content/browser/accessibility/dump_accessibility_events_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -1 line 0 comments Download
M content/browser/frame_host/render_frame_host_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +7 lines, -0 lines 0 comments Download
M content/browser/frame_host/render_frame_host_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 6 chunks +40 lines, -0 lines 0 comments Download
M content/browser/web_contents/web_contents_android.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +4 lines, -0 lines 0 comments Download
M content/browser/web_contents/web_contents_android.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +33 lines, -0 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/webcontents/WebContentsImpl.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +8 lines, -1 line 0 comments Download
M content/public/android/java/src/org/chromium/content_public/browser/WebContents.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +16 lines, -1 line 0 comments Download
M content/public/android/javatests/src/org/chromium/content/browser/ContentViewLocationTest.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 4 chunks +4 lines, -4 lines 0 comments Download
M content/public/android/javatests/src/org/chromium/content/browser/JavaBridgeBareboneTest.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -1 line 0 comments Download
M content/public/android/javatests/src/org/chromium/content/browser/JavaBridgeChildFrameTest.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -1 line 0 comments Download
M content/public/android/javatests/src/org/chromium/content/browser/NavigationTest.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +4 lines, -2 lines 0 comments Download
M content/public/android/javatests/src/org/chromium/content/browser/TestsJavaScriptEvalTest.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -1 line 0 comments Download
M content/public/browser/render_frame_host.h View 1 2 3 4 5 6 7 8 2 chunks +14 lines, -2 lines 0 comments Download
M content/public/test/android/javatests/src/org/chromium/content/browser/test/util/JavaScriptUtils.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +2 lines, -2 lines 0 comments Download
M content/public/test/android/javatests/src/org/chromium/content/browser/test/util/TestCallbackHelperContainer.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +3 lines, -3 lines 0 comments Download
M content/public/test/render_view_test.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M content/public/test/render_view_test.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -1 line 0 comments Download
M content/public/test/test_utils.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/accessibility/renderer_accessibility_browsertest.cc View 1 2 3 4 3 chunks +6 lines, -6 lines 0 comments Download
M content/renderer/devtools/v8_sampling_profiler_browsertest.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/render_view_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 chunks +23 lines, -21 lines 0 comments Download
M content/renderer/render_view_browsertest_mac.mm View 3 chunks +5 lines, -5 lines 0 comments Download
M extensions/browser/api/system_storage/system_storage_eject_apitest.cc View 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 20 (7 generated)
mdjones
jochen@ The reader mode pages are closely controlled by us similar to how the internal/UI ...
5 years, 7 months ago (2015-05-06 21:01:26 UTC) #2
jochen (gone - plz use gerrit)
On 2015/05/06 at 21:01:26, mdjones wrote: > jochen@ The reader mode pages are closely controlled ...
5 years, 7 months ago (2015-05-07 05:07:16 UTC) #3
mdjones
On 2015/05/07 05:07:16, jochen wrote: > On 2015/05/06 at 21:01:26, mdjones wrote: > > jochen@ ...
5 years, 7 months ago (2015-05-07 15:44:12 UTC) #4
jam
lgtm
5 years, 7 months ago (2015-05-07 17:00:41 UTC) #5
jochen (gone - plz use gerrit)
ptal we're down to DOM distiller now. Matthew tells me that they run the distiller ...
5 years, 5 months ago (2015-07-16 04:53:17 UTC) #7
Torne
android_webview LGTM https://codereview.chromium.org/1123783002/diff/250001/content/public/browser/render_frame_host.h File content/public/browser/render_frame_host.h (right): https://codereview.chromium.org/1123783002/diff/250001/content/public/browser/render_frame_host.h#newcode41 content/public/browser/render_frame_host.h:41: static void AllowInjectingJavaScriptForAndroidWebView(); On 2015/07/16 04:53:17, jochen ...
5 years, 5 months ago (2015-07-16 12:41:57 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1123783002/270001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1123783002/270001
5 years, 5 months ago (2015-07-23 22:02:40 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_android_rel_ng/builds/48011)
5 years, 5 months ago (2015-07-23 23:50:48 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1123783002/270001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1123783002/270001
5 years, 5 months ago (2015-07-24 04:04:56 UTC) #15
commit-bot: I haz the power
Committed patchset #15 (id:270001)
5 years, 5 months ago (2015-07-24 06:41:05 UTC) #16
commit-bot: I haz the power
Patchset 15 (id:??) landed as https://crrev.com/904f14ebdc3bdb8e893df0a3211d09de42d5619c Cr-Commit-Position: refs/heads/master@{#340231}
5 years, 5 months ago (2015-07-24 06:41:36 UTC) #17
sof
Causing meltdown on most bots? http://build.chromium.org/p/chromium.webkit/builders/WebKit%20Linux/builds/51422 http://build.chromium.org/p/chromium.webkit/builders/WebKit%20Linux%20Leak/builds/12810
5 years, 5 months ago (2015-07-24 08:16:58 UTC) #19
sof
5 years, 5 months ago (2015-07-24 08:40:16 UTC) #20
Message was sent while issue was closed.
A revert of this CL (patchset #15 id:270001) has been created in
https://codereview.chromium.org/1257603003/ by sigbjornf@opera.com.

The reason for reverting is: Speculatively reverting to address failures,


http://build.chromium.org/p/chromium.webkit/builders/WebKit%20Linux/builds/51422.

Powered by Google App Engine
This is Rietveld 408576698