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

Issue 140073002: <webview>: navigating to WebStore should fire a loadabort instead of crashing. (Closed)

Created:
6 years, 11 months ago by Fady Samuel
Modified:
6 years, 10 months ago
Reviewers:
cmp, lazyboy, jam, nasko
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

<webview>: navigating to WebStore should fire a loadabort instead of crashing. All top-level navigations now get plumbed through: BrowserPluginGuest::LoadURLWithParams. URL validation now happens there. If a URL is determined to be inappropriate for a <webview>, a loadabort event will fire instead of crashing the <webview> guest content. BUG=334531 Test=WebViewTest.Shim_TestNavigateToWebStore Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=248828

Patch Set 1 #

Patch Set 2 : Added test #

Total comments: 14

Patch Set 3 : Fixed NewWindow and External Protocol tests #

Patch Set 4 : Added TODO #

Patch Set 5 : Addressed comments #

Total comments: 4

Patch Set 6 : Fixed test race #

Total comments: 2

Patch Set 7 : Updated Comment + Merged with ToT #

Patch Set 8 : Merge with ToT #

Unified diffs Side-by-side diffs Delta from patch set Stats (+157 lines, -52 lines) Patch
M chrome/browser/apps/web_view_browsertest.cc View 1 2 3 4 5 6 7 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/test/data/extensions/platform_apps/web_view/shim/inject_comm_channel.js View 1 2 3 4 1 chunk +19 lines, -8 lines 0 comments Download
M chrome/test/data/extensions/platform_apps/web_view/shim/inject_resize_test.js View 1 1 chunk +1 line, -1 line 0 comments Download
A chrome/test/data/extensions/platform_apps/web_view/shim/inject_webstore_nav_test.js View 1 2 3 4 5 6 7 1 chunk +17 lines, -0 lines 0 comments Download
M chrome/test/data/extensions/platform_apps/web_view/shim/main.js View 1 2 3 4 5 3 chunks +76 lines, -2 lines 0 comments Download
M content/browser/browser_plugin/browser_plugin_guest.h View 1 2 3 4 5 6 7 1 chunk +0 lines, -2 lines 0 comments Download
M content/browser/browser_plugin/browser_plugin_guest.cc View 1 2 3 4 5 6 7 5 chunks +37 lines, -38 lines 0 comments Download
M content/browser/renderer_host/render_view_host_impl.cc View 1 2 3 4 5 6 7 1 chunk +3 lines, -1 line 0 comments Download

Messages

Total messages: 53 (0 generated)
Fady Samuel
6 years, 11 months ago (2014-01-16 18:11:05 UTC) #1
nasko
LGTM content/browser/browser_plugin/browser_plugin_guest.cc
6 years, 11 months ago (2014-01-16 21:27:59 UTC) #2
Fady Samuel
6 years, 11 months ago (2014-01-16 21:28:36 UTC) #3
sadrul
I started looking at the test, and realized I am not really familiar with executeScript/postMessage ...
6 years, 11 months ago (2014-01-16 21:43:54 UTC) #4
lazyboy
https://chromiumcodereview.appspot.com/140073002/diff/30001/chrome/test/data/extensions/platform_apps/web_view/shim/inject_webstore_nav_test.js File chrome/test/data/extensions/platform_apps/web_view/shim/inject_webstore_nav_test.js (right): https://chromiumcodereview.appspot.com/140073002/diff/30001/chrome/test/data/extensions/platform_apps/web_view/shim/inject_webstore_nav_test.js#newcode7 chrome/test/data/extensions/platform_apps/web_view/shim/inject_webstore_nav_test.js:7: case 'navigate': { nit: here and in other places, ...
6 years, 11 months ago (2014-01-16 22:31:24 UTC) #5
Fady Samuel
PTAL nasko. I have made some changes to fix tests. In particular, what are your ...
6 years, 11 months ago (2014-01-16 23:40:26 UTC) #6
nasko
On 2014/01/16 23:40:26, Fady Samuel wrote: > PTAL nasko. I have made some changes to ...
6 years, 11 months ago (2014-01-17 00:00:17 UTC) #7
nasko
After offline discussion, this seems a reasonable solution for now. LGTM
6 years, 11 months ago (2014-01-17 16:32:26 UTC) #8
Fady Samuel
Istiaque, could you please take another look at the tests? Thanks!
6 years, 11 months ago (2014-01-17 16:37:29 UTC) #9
lazyboy
https://chromiumcodereview.appspot.com/140073002/diff/180001/chrome/test/data/extensions/platform_apps/web_view/shim/main.js File chrome/test/data/extensions/platform_apps/web_view/shim/main.js (right): https://chromiumcodereview.appspot.com/140073002/diff/180001/chrome/test/data/extensions/platform_apps/web_view/shim/main.js#newcode1279 chrome/test/data/extensions/platform_apps/web_view/shim/main.js:1279: window.console.log( Here ^^^ https://chromiumcodereview.appspot.com/140073002/diff/180001/chrome/test/data/extensions/platform_apps/web_view/shim/main.js#newcode1285 chrome/test/data/extensions/platform_apps/web_view/shim/main.js:1285: webview.contentWindow.postMessage(JSON.stringify(msg), '*'); I'd move ...
6 years, 11 months ago (2014-01-17 20:42:53 UTC) #10
Fady Samuel
PTAL Istiaque https://chromiumcodereview.appspot.com/140073002/diff/180001/chrome/test/data/extensions/platform_apps/web_view/shim/main.js File chrome/test/data/extensions/platform_apps/web_view/shim/main.js (right): https://chromiumcodereview.appspot.com/140073002/diff/180001/chrome/test/data/extensions/platform_apps/web_view/shim/main.js#newcode1279 chrome/test/data/extensions/platform_apps/web_view/shim/main.js:1279: window.console.log( On 2014/01/17 20:42:54, lazyboy wrote: > ...
6 years, 11 months ago (2014-01-17 21:54:35 UTC) #11
lazyboy
lgtm Thanks for making the changes.
6 years, 11 months ago (2014-01-17 21:56:13 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/fsamuel@chromium.org/140073002/320001
6 years, 11 months ago (2014-01-17 21:59:16 UTC) #13
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=45377
6 years, 11 months ago (2014-01-17 22:27:16 UTC) #14
Fady Samuel
+jam@: John, Charlie is OOO, could you please sign off on this as a content ...
6 years, 11 months ago (2014-01-17 22:32:06 UTC) #15
jam
lgtm https://codereview.chromium.org/140073002/diff/320001/content/browser/browser_plugin/browser_plugin_guest.cc File content/browser/browser_plugin/browser_plugin_guest.cc (right): https://codereview.chromium.org/140073002/diff/320001/content/browser/browser_plugin/browser_plugin_guest.cc#newcode614 content/browser/browser_plugin/browser_plugin_guest.cc:614: // navigations still continue to function inside the ...
6 years, 11 months ago (2014-01-17 23:09:14 UTC) #16
Fady Samuel
Addressed nits, CQ'ing now.. https://codereview.chromium.org/140073002/diff/320001/content/browser/browser_plugin/browser_plugin_guest.cc File content/browser/browser_plugin/browser_plugin_guest.cc (right): https://codereview.chromium.org/140073002/diff/320001/content/browser/browser_plugin/browser_plugin_guest.cc#newcode614 content/browser/browser_plugin/browser_plugin_guest.cc:614: // navigations still continue to ...
6 years, 11 months ago (2014-01-18 22:45:57 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/fsamuel@chromium.org/140073002/460001
6 years, 11 months ago (2014-01-18 22:46:17 UTC) #18
commit-bot: I haz the power
Retried try job too often on mac_rel for step(s) interactive_ui_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=mac_rel&number=213612
6 years, 11 months ago (2014-01-18 23:36:18 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/fsamuel@chromium.org/140073002/460001
6 years, 11 months ago (2014-01-19 14:20:33 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/fsamuel@chromium.org/140073002/460001
6 years, 11 months ago (2014-01-20 12:23:57 UTC) #21
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) interactive_ui_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=248752
6 years, 11 months ago (2014-01-20 21:48:28 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/fsamuel@chromium.org/140073002/460001
6 years, 11 months ago (2014-01-20 21:55:30 UTC) #23
cmp
On 2014/01/20 21:48:28, I haz the power (commit-bot) wrote: > Retried try job too often ...
6 years, 11 months ago (2014-01-20 21:55:39 UTC) #24
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) interactive_ui_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=248887
6 years, 11 months ago (2014-01-20 23:44:32 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/fsamuel@chromium.org/140073002/460001
6 years, 11 months ago (2014-01-21 17:32:13 UTC) #26
cmp
On 2014/01/21 17:32:13, I haz the power (commit-bot) wrote: > CQ is trying da patch. ...
6 years, 11 months ago (2014-01-21 17:35:14 UTC) #27
Fady Samuel
On 2014/01/21 17:35:14, cmp wrote: > On 2014/01/21 17:32:13, I haz the power (commit-bot) wrote: ...
6 years, 11 months ago (2014-01-21 17:47:57 UTC) #28
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) interactive_ui_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=249185
6 years, 11 months ago (2014-01-21 22:46:22 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/fsamuel@chromium.org/140073002/460001
6 years, 10 months ago (2014-01-29 21:09:51 UTC) #30
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) browser_tests, interactive_ui_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=253793
6 years, 10 months ago (2014-01-29 23:29:11 UTC) #31
Fady Samuel
The CQ bit was checked by fsamuel@chromium.org
6 years, 10 months ago (2014-02-04 00:37:40 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/fsamuel@chromium.org/140073002/1000001
6 years, 10 months ago (2014-02-04 00:38:12 UTC) #33
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-02-04 02:20:22 UTC) #34
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) browser_tests, nacl_integration, sync_integration_tests, telemetry_perf_unittests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=256002
6 years, 10 months ago (2014-02-04 02:20:22 UTC) #35
Fady Samuel
The CQ bit was checked by fsamuel@chromium.org
6 years, 10 months ago (2014-02-04 02:44:46 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/fsamuel@chromium.org/140073002/1000001
6 years, 10 months ago (2014-02-04 02:45:10 UTC) #37
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-02-04 03:13:12 UTC) #38
commit-bot: I haz the power
Retried try job too often on win for step(s) compile http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win&number=145847
6 years, 10 months ago (2014-02-04 03:13:13 UTC) #39
Fady Samuel
The CQ bit was checked by fsamuel@chromium.org
6 years, 10 months ago (2014-02-04 03:15:31 UTC) #40
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/fsamuel@chromium.org/140073002/1000001
6 years, 10 months ago (2014-02-04 03:16:37 UTC) #41
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-02-04 07:24:01 UTC) #42
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) browser_tests, sync_integration_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=256268
6 years, 10 months ago (2014-02-04 07:24:02 UTC) #43
Fady Samuel
The CQ bit was checked by fsamuel@chromium.org
6 years, 10 months ago (2014-02-04 12:13:53 UTC) #44
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/fsamuel@chromium.org/140073002/1000001
6 years, 10 months ago (2014-02-04 12:14:07 UTC) #45
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-02-04 16:42:12 UTC) #46
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) browser_tests, sync_integration_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=256489
6 years, 10 months ago (2014-02-04 16:42:13 UTC) #47
Fady Samuel
The CQ bit was checked by fsamuel@chromium.org
6 years, 10 months ago (2014-02-04 17:38:49 UTC) #48
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/fsamuel@chromium.org/140073002/1000001
6 years, 10 months ago (2014-02-04 17:41:54 UTC) #49
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) browser_tests, sync_integration_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=256776
6 years, 10 months ago (2014-02-04 20:36:49 UTC) #50
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/fsamuel@chromium.org/140073002/1000001
6 years, 10 months ago (2014-02-04 20:37:22 UTC) #51
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/fsamuel@chromium.org/140073002/1000001
6 years, 10 months ago (2014-02-05 00:51:47 UTC) #52
commit-bot: I haz the power
6 years, 10 months ago (2014-02-05 02:04:31 UTC) #53
Message was sent while issue was closed.
Change committed as 248828

Powered by Google App Engine
This is Rietveld 408576698