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

Issue 2736863003: Test that no crash happens with the CWS error page.

Created:
3 years, 9 months ago by arthursonzogni
Modified:
3 years, 5 months ago
Reviewers:
lazyboy, nasko
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org, Charlie Reis
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Test that no crash happens with the CWS error page. A renderer kill could happens when the Chrome Web Store page is loaded inside an iframe. This test assert that it doesn't happens. BUG=622385 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation

Patch Set 1 #

Total comments: 12

Patch Set 2 : Addressed comments #

Total comments: 6

Patch Set 3 : Nit #

Patch Set 4 : Rebase. #

Patch Set 5 : Prevent crash of the renderer. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+46 lines, -1 line) Patch
M chrome/browser/extensions/process_management_browsertest.cc View 1 2 3 2 chunks +31 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/iframe-child-src-none.html View 1 1 chunk +9 lines, -0 lines 0 comments Download
M content/browser/frame_host/navigation_request.cc View 1 2 3 4 1 chunk +6 lines, -1 line 1 comment Download

Messages

Total messages: 22 (13 generated)
arthursonzogni
Hi Nasko, Here is a test that will fails with --browser-side-navigation when you will apply: ...
3 years, 9 months ago (2017-03-07 15:28:21 UTC) #4
lazyboy
On 2017/03/07 15:28:21, arthursonzogni wrote: > Hi Nasko, > > Here is a test that ...
3 years, 9 months ago (2017-03-08 22:11:12 UTC) #7
nasko
https://codereview.chromium.org/2736863003/diff/1/chrome/browser/extensions/process_management_browsertest.cc File chrome/browser/extensions/process_management_browsertest.cc (right): https://codereview.chromium.org/2736863003/diff/1/chrome/browser/extensions/process_management_browsertest.cc#newcode394 chrome/browser/extensions/process_management_browsertest.cc:394: // This problem is similar to crbug.com/622385. It happens ...
3 years, 9 months ago (2017-03-09 05:07:22 UTC) #8
nasko
Also, adding creis@ for visibility.
3 years, 9 months ago (2017-03-09 05:07:53 UTC) #9
arthursonzogni
Thanks @lazyboy and @nasko! I applied Nasko's suggestions in the last patch. https://codereview.chromium.org/2736863003/diff/1/chrome/browser/extensions/process_management_browsertest.cc File chrome/browser/extensions/process_management_browsertest.cc ...
3 years, 9 months ago (2017-03-09 15:40:52 UTC) #13
nasko
https://codereview.chromium.org/2736863003/diff/1/chrome/test/data/extensions/webstore_blocked_by_frame_src.html File chrome/test/data/extensions/webstore_blocked_by_frame_src.html (right): https://codereview.chromium.org/2736863003/diff/1/chrome/test/data/extensions/webstore_blocked_by_frame_src.html#newcode7 chrome/test/data/extensions/webstore_blocked_by_frame_src.html:7: <iframe src="https://chrome.google.com/webstore"> </iframe> On 2017/03/09 15:40:52, arthursonzogni wrote: > ...
3 years, 9 months ago (2017-03-09 17:18:11 UTC) #14
arthursonzogni
Thanks Nasko. I fixed the nit and answered some comments below: https://codereview.chromium.org/2736863003/diff/1/chrome/test/data/extensions/webstore_blocked_by_frame_src.html File chrome/test/data/extensions/webstore_blocked_by_frame_src.html (right): ...
3 years, 9 months ago (2017-03-10 09:25:47 UTC) #17
arthursonzogni
Hi Nasko, I rebased the code, so * https://codereview.chromium.org/2736863003 => Implement error page commit policy ...
3 years, 9 months ago (2017-03-22 16:19:06 UTC) #20
nasko
3 years, 9 months ago (2017-03-22 17:35:22 UTC) #21
I think we know the crash will occur and it is there for a good reason - prevent
people from iframing the CWS. Fixing error pages is going to be a full project
on its own, so I don't think we should be landing this test.

https://codereview.chromium.org/2736863003/diff/120001/content/browser/frame_...
File content/browser/frame_host/navigation_request.cc (right):

https://codereview.chromium.org/2736863003/diff/120001/content/browser/frame_...
content/browser/frame_host/navigation_request.cc:622: common_params_.url =
GURL(kUnreachableWebDataURL);
This is not something we should do. Charlie, Alex and I discussed what the right
thing for error pages to is, but it is not a simple fix, rather a project on its
own.

Powered by Google App Engine
This is Rietveld 408576698