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

Issue 2425663002: Add an error page for resources blocked via XSS Auditor. (Closed)

Created:
4 years, 2 months ago by Mike West
Modified:
4 years ago
CC:
blink-reviews, blink-reviews-api_chromium.org, blink-reviews-html_chromium.org, cbentzel+watch_chromium.org, chromium-reviews, creis+watch_chromium.org, darin-cc_chromium.org, dcheng, dglazkov+blink, estark, gavinp+loader_chromium.org, jam, Nate Chapin, kinuko+watch, lgarron, loading-reviews+parser_chromium.org, loading-reviews_chromium.org, meacer, mlamouri+watch-blink_chromium.org, mlamouri+watch-content_chromium.org, nasko+codewatch_chromium.org, tyoshino+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add an error page for resources blocked via XSS Auditor. Currently, when the XSS Auditor blocks a page, we render a lovely white rectangle for the user. This, though calming and serene, is not terribly informative. This patch wires XSS Auditor blocks up to the general error page mechanism, giving users some clue as to what's going on. BUG=654794 Committed: https://crrev.com/b5a70d6b91eeabba6752f56cf9d79b8eb57fcf8c Cr-Commit-Position: refs/heads/master@{#434375}

Patch Set 1 #

Total comments: 1

Patch Set 2 : Fix. #

Patch Set 3 : frameNavigation test. #

Total comments: 2

Patch Set 4 : XSS_AUDITOR. #

Total comments: 2

Patch Set 5 : wordsmithing #

Patch Set 6 : Words. #

Patch Set 7 : Words. #

Patch Set 8 : Test+Words. #

Patch Set 9 : Words. #

Total comments: 1

Patch Set 10 : Words. #

Patch Set 11 : Test. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+166 lines, -37 lines) Patch
M components/error_page/common/localized_error.cc View 1 2 3 4 5 6 7 8 9 4 chunks +25 lines, -0 lines 0 comments Download
M components/error_page/renderer/net_error_helper_core.cc View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M components/error_page_strings.grdp View 1 2 3 4 5 6 7 8 9 3 chunks +7 lines, -1 line 0 comments Download
M components/test_runner/web_frame_test_client.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M components/test_runner/web_frame_test_client.cc View 1 2 3 4 5 6 2 chunks +8 lines, -0 lines 0 comments Download
M content/renderer/render_frame_impl.h View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/render_frame_impl.cc View 1 2 3 4 5 6 7 8 9 1 chunk +17 lines, -0 lines 0 comments Download
M net/base/net_error_list.h View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/security/frameNavigation/resources/iframe-that-performs-top-navigation-without-user-gesture.html View 1 2 1 chunk +6 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/security/frameNavigation/xss-DENIED-top-navigation-user-gesture-in-parent.html View 1 2 3 4 5 6 7 2 chunks +8 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/security/frameNavigation/xss-DENIED-top-navigation-without-user-gesture.html View 1 2 3 4 5 6 7 8 9 10 1 chunk +11 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/security/frameNavigation/xss-DENIED-top-navigation-without-user-gesture-expected.txt View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/security/xssAuditor/full-block-base-href.html View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/security/xssAuditor/full-block-base-href-expected.txt View 1 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/security/xssAuditor/full-block-iframe-javascript-url.html View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/security/xssAuditor/full-block-iframe-javascript-url-expected.txt View 1 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/security/xssAuditor/full-block-javascript-link.html View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/security/xssAuditor/full-block-javascript-link-expected.txt View 1 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/security/xssAuditor/full-block-link-onclick.html View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/security/xssAuditor/full-block-link-onclick-expected.txt View 1 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/security/xssAuditor/full-block-object-tag.html View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/security/xssAuditor/full-block-object-tag-expected.txt View 1 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/security/xssAuditor/full-block-script-tag-expected.txt View 1 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/security/xssAuditor/full-block-script-tag-with-source.html View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/security/xssAuditor/full-block-script-tag-with-source-expected.txt View 1 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/security/xssAuditor/resources/utilities.js View 1 1 chunk +17 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/security/xssAuditor/xss-protection-parsing-03.html View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/security/xssAuditor/xss-protection-parsing-03-expected.txt View 1 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/security/xssAuditor/xss-protection-parsing-04.html View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/security/xssAuditor/xss-protection-parsing-04-expected.txt View 1 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/frame/Frame.cpp View 1 2 3 4 5 6 7 8 9 2 chunks +4 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/html/parser/XSSAuditorDelegate.cpp View 1 2 3 2 chunks +5 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/loader/EmptyClients.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/loader/FrameLoaderClient.h View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/loader/NavigationScheduler.h View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/loader/NavigationScheduler.cpp View 1 2 3 4 5 6 7 8 9 2 chunks +12 lines, -19 lines 0 comments Download
M third_party/WebKit/Source/platform/network/ResourceError.h View 1 2 3 4 2 chunks +6 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/web/FrameLoaderClientImpl.h View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp View 1 2 3 4 5 6 7 8 9 1 chunk +5 lines, -0 lines 0 comments Download
M third_party/WebKit/public/web/WebFrameClient.h View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 92 (56 generated)
Mike West
Hey Tom, I'm trying to add an error page to the auditor's blocking mechanism so ...
4 years, 2 months ago (2016-10-20 11:49:27 UTC) #6
Tom Sepez
On 2016/10/20 11:49:27, Mike West wrote: > Hey Tom, I'm trying to add an error ...
4 years, 2 months ago (2016-10-20 16:39:51 UTC) #7
Tom Sepez
https://codereview.chromium.org/2425663002/diff/1/content/renderer/render_frame_impl.cc File content/renderer/render_frame_impl.cc (right): https://codereview.chromium.org/2425663002/diff/1/content/renderer/render_frame_impl.cc#newcode2493 content/renderer/render_frame_impl.cc:2493: WebString::fromUTF8("UTF-8"), GURL(kUnreachableWebDataURL), Maybe truncate the ? and # portions ...
4 years, 2 months ago (2016-10-20 18:26:58 UTC) #8
Tom Sepez
> Maybe truncate the ? and # portions of the url? Also, prolly path, just ...
4 years, 2 months ago (2016-10-20 18:28:10 UTC) #9
Mike West
On 2016/10/20 at 16:39:51, tsepez wrote: > On 2016/10/20 11:49:27, Mike West wrote: > > ...
4 years, 2 months ago (2016-10-21 07:30:16 UTC) #10
Mike West
On 2016/10/21 at 07:30:16, Mike West wrote: > > We've been leery about adding this, ...
4 years, 1 month ago (2016-10-24 10:41:21 UTC) #17
Mike West
https://codereview.chromium.org/2425663002/diff/60001/third_party/WebKit/LayoutTests/http/tests/security/frameNavigation/xss-DENIED-top-navigation-without-user-gesture.html File third_party/WebKit/LayoutTests/http/tests/security/frameNavigation/xss-DENIED-top-navigation-without-user-gesture.html (right): https://codereview.chromium.org/2425663002/diff/60001/third_party/WebKit/LayoutTests/http/tests/security/frameNavigation/xss-DENIED-top-navigation-without-user-gesture.html#newcode11 third_party/WebKit/LayoutTests/http/tests/security/frameNavigation/xss-DENIED-top-navigation-without-user-gesture.html:11: // internals.runtimeFlags.setFramebustingNeedsSameOriginOrUserGesture(true); TODO(me): Delete these lines (oops). The timing ...
4 years, 1 month ago (2016-10-24 11:46:18 UTC) #21
mmenke
[+edwardjung] for new error code text. https://codereview.chromium.org/2425663002/diff/60001/components/error_page_strings.grdp File components/error_page_strings.grdp (right): https://codereview.chromium.org/2425663002/diff/60001/components/error_page_strings.grdp#newcode264 components/error_page_strings.grdp:264: This page may ...
4 years, 1 month ago (2016-10-24 14:44:43 UTC) #25
edwardjung
On 2016/10/24 14:44:43, mmenke wrote: > [+edwardjung] for new error code text. Hi Mike, could ...
4 years, 1 month ago (2016-10-24 16:00:25 UTC) #26
Mike West
On 2016/10/24 at 14:44:43, mmenke wrote: > [+edwardjung] for new error code text. > > ...
4 years, 1 month ago (2016-10-24 19:39:02 UTC) #27
mmenke
On 2016/10/24 19:39:02, Mike West wrote: > On 2016/10/24 at 14:44:43, mmenke wrote: > > ...
4 years, 1 month ago (2016-10-24 19:42:14 UTC) #28
Mike West
On 2016/10/24 at 16:00:25, edwardjung wrote: > On 2016/10/24 14:44:43, mmenke wrote: > > [+edwardjung] ...
4 years, 1 month ago (2016-10-24 19:46:45 UTC) #29
Mike West
On 2016/10/24 at 19:42:14, mmenke wrote: > On 2016/10/24 19:39:02, Mike West wrote: > > ...
4 years, 1 month ago (2016-10-25 05:03:55 UTC) #30
mmenke
On 2016/10/25 05:03:55, Mike West wrote: > On 2016/10/24 at 19:42:14, mmenke wrote: > > ...
4 years, 1 month ago (2016-10-25 21:14:50 UTC) #31
Mike West
On 2016/10/25 at 21:14:50, mmenke wrote: > > Yes. Something like "The XSS Auditor blocked ...
4 years, 1 month ago (2016-10-26 08:16:26 UTC) #32
Tom Sepez
Adding a smattering of enamel folks ... https://codereview.chromium.org/2425663002/diff/80001/components/error_page_strings.grdp File components/error_page_strings.grdp (right): https://codereview.chromium.org/2425663002/diff/80001/components/error_page_strings.grdp#newcode263 components/error_page_strings.grdp:263: <message name="IDS_ERRORPAGES_SUMMARY_BLOCKED_BY_XSS_AUDITOR" ...
4 years, 1 month ago (2016-10-28 16:45:59 UTC) #38
meacer
https://codereview.chromium.org/2425663002/diff/80001/components/error_page_strings.grdp File components/error_page_strings.grdp (right): https://codereview.chromium.org/2425663002/diff/80001/components/error_page_strings.grdp#newcode263 components/error_page_strings.grdp:263: <message name="IDS_ERRORPAGES_SUMMARY_BLOCKED_BY_XSS_AUDITOR" desc="Summary in the error page when the ...
4 years, 1 month ago (2016-10-28 17:38:30 UTC) #39
Tom Sepez
> I'm worried that some clever attacker will trigger this and use it for social ...
4 years, 1 month ago (2016-10-28 20:02:09 UTC) #40
Mike West
Thanks for taking a look; I was briefly OOO, so apologies for the delayed response. ...
4 years, 1 month ago (2016-11-03 13:18:17 UTC) #41
mmenke
On 2016/11/03 13:18:17, Mike West wrote: > Thanks for taking a look; I was briefly ...
4 years, 1 month ago (2016-11-03 13:35:43 UTC) #42
edwardjung
Sorry for the hold up from the UX front, rachelis, Mike and I just met ...
4 years, 1 month ago (2016-11-03 15:30:19 UTC) #43
mmenke
On 2016/11/03 15:30:19, edwardjung wrote: > Sorry for the hold up from the UX front, ...
4 years, 1 month ago (2016-11-03 16:04:49 UTC) #44
Tom Sepez
Another alternative would be to just stop rendering any more scripts/elements at the point the ...
4 years, 1 month ago (2016-11-03 16:22:54 UTC) #45
edwardjung
https://codereview.chromium.org/2425663002/diff/180001/components/error_page_strings.grdp File components/error_page_strings.grdp (right): https://codereview.chromium.org/2425663002/diff/180001/components/error_page_strings.grdp#newcode110 components/error_page_strings.grdp:110: Try <ph name="LINK">&lt;a jsvalues="href:originURL;.jstdata:$this" onmousedown="linkClicked(this.jstdata)"&gt;visiting the site's homepage&lt;/a&gt;<ex>www.somewhere.com</ex></ph> To ...
4 years, 1 month ago (2016-11-18 16:18:47 UTC) #60
Mike West
Thanks folks. Moving some people to CC to make things a little clearer... edwardjung@: I've ...
4 years ago (2016-11-23 08:31:35 UTC) #66
jochen (gone - plz use gerrit)
lgtm
4 years ago (2016-11-23 15:07:14 UTC) #69
edwardjung
lgtm
4 years ago (2016-11-23 21:33:13 UTC) #70
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2425663002/220001
4 years ago (2016-11-24 11:41:20 UTC) #76
commit-bot: I haz the power
Try jobs failed on following builders: blimp_linux_dbg on master.tryserver.chromium.linux (JOB_TIMED_OUT, no build URL) cast_shell_linux on ...
4 years ago (2016-11-24 12:03:31 UTC) #78
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2425663002/220001
4 years ago (2016-11-24 12:30:23 UTC) #80
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_TIMED_OUT, no build URL)
4 years ago (2016-11-24 13:42:50 UTC) #82
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2425663002/220001
4 years ago (2016-11-24 14:24:19 UTC) #84
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/321765)
4 years ago (2016-11-24 16:52:58 UTC) #86
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2425663002/220001
4 years ago (2016-11-24 16:55:59 UTC) #88
commit-bot: I haz the power
Committed patchset #11 (id:220001)
4 years ago (2016-11-24 19:03:24 UTC) #90
commit-bot: I haz the power
4 years ago (2016-11-24 19:05:07 UTC) #92
Message was sent while issue was closed.
Patchset 11 (id:??) landed as
https://crrev.com/b5a70d6b91eeabba6752f56cf9d79b8eb57fcf8c
Cr-Commit-Position: refs/heads/master@{#434375}

Powered by Google App Engine
This is Rietveld 408576698