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

Issue 2737343004: CSP: A new set of test with form resubmission. (Closed)

Created:
3 years, 9 months ago by arthursonzogni
Modified:
3 years, 9 months ago
Reviewers:
Mike West
CC:
alexmos, blink-reviews, chromium-reviews, clamy, nasko
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

CSP: A new set of test with form resubmission. The goal of this set of test is to document the current interactions between the "form-action" directive and form **re**submissions. It shows that the CSP that applies are the one of frame/window that is reloading the document, not the one that has initiated the reload. BUG=685074 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation;master.tryserver.chromium.linux:linux_site_isolation,linux_chromium_browser_side_navigation_rel Review-Url: https://codereview.chromium.org/2737343004 Cr-Commit-Position: refs/heads/master@{#458038} Committed: https://chromium.googlesource.com/chromium/src/+/01b5c7b1560e884426a2ef014c61acc74cd17a80

Patch Set 1 #

Total comments: 4

Patch Set 2 : Addressed comments @mkwst #

Patch Set 3 : Re-add form submission into the main frame. #

Total comments: 2

Patch Set 4 : Use testharness for main page form resubmission. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+323 lines, -0 lines) Patch
A third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/1.1/form-action-resubmission-iframe-reload-from-child.html View 1 1 chunk +34 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/1.1/form-action-resubmission-iframe-reload-from-child-expected.txt View 1 1 chunk +6 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/1.1/form-action-resubmission-iframe-reload-from-parent.html View 1 1 chunk +57 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/1.1/form-action-resubmission-iframe-reload-from-parent-expected.txt View 1 1 chunk +6 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/1.1/form-action-resubmission-main-page.html View 1 2 3 1 chunk +26 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/1.1/form-action-resubmission-main-page-expected.txt View 1 2 3 1 chunk +6 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/1.1/form-action-resubmission-window-reload-from-child.html View 1 1 chunk +34 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/1.1/form-action-resubmission-window-reload-from-child-expected.txt View 1 1 chunk +6 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/1.1/form-action-resubmission-window-reload-from-parent.html View 1 1 chunk +58 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/1.1/form-action-resubmission-window-reload-from-parent-expected.txt View 1 1 chunk +6 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/resources/form-action-none.html View 1 1 chunk +28 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/resources/form-action-none-and-reload.html View 1 1 chunk +23 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/resources/form-action-resubmission-main-page-callee.html View 1 2 3 1 chunk +20 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/resources/form-action-resubmission-main-page-caller.html View 1 2 3 1 chunk +13 lines, -0 lines 0 comments Download

Messages

Total messages: 38 (24 generated)
arthursonzogni
Hi Mike, Here is the set of tests I was talking about yesterday. It shows ...
3 years, 9 months ago (2017-03-09 13:09:01 UTC) #5
Mike West
Documenting the existing behavior is great, even though I'm not sure it all makes sense. ...
3 years, 9 months ago (2017-03-10 13:44:41 UTC) #10
arthursonzogni
Thanks Mike! I transformed the tests such that they are using testharness.js I droped form-action-resubmission-main-page.html, ...
3 years, 9 months ago (2017-03-13 13:25:55 UTC) #14
arthursonzogni
Hi Mike, I added back the test that does a form resubmission in the main ...
3 years, 9 months ago (2017-03-15 17:06:56 UTC) #20
Mike West
LGTM. https://codereview.chromium.org/2737343004/diff/100001/third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/1.1/form-action-resubmission-main-page.html File third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/1.1/form-action-resubmission-main-page.html (right): https://codereview.chromium.org/2737343004/diff/100001/third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/1.1/form-action-resubmission-main-page.html#newcode7 third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/1.1/form-action-resubmission-main-page.html:7: TODO(mkwst). This might be wrong. Can you change ...
3 years, 9 months ago (2017-03-16 06:09:20 UTC) #23
arthursonzogni
https://codereview.chromium.org/2737343004/diff/100001/third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/1.1/form-action-resubmission-main-page.html File third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/1.1/form-action-resubmission-main-page.html (right): https://codereview.chromium.org/2737343004/diff/100001/third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/1.1/form-action-resubmission-main-page.html#newcode7 third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/1.1/form-action-resubmission-main-page.html:7: TODO(mkwst). This might be wrong. On 2017/03/16 06:09:20, Mike ...
3 years, 9 months ago (2017-03-16 09:32:52 UTC) #24
Mike West
Still LGTM, thanks for the rewrite!
3 years, 9 months ago (2017-03-18 06:15:41 UTC) #28
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/2737343004/120001
3 years, 9 months ago (2017-03-20 09:07:34 UTC) #30
commit-bot: I haz the power
There were warnings when CQ was processing your CL: * CQ is not running the ...
3 years, 9 months ago (2017-03-20 09:07:35 UTC) #31
commit-bot: I haz the power
There were warnings when CQ was processing your CL: * CQ is not running the ...
3 years, 9 months ago (2017-03-20 09:31:38 UTC) #32
commit-bot: I haz the power
There were warnings when CQ was processing your CL: * CQ is not running the ...
3 years, 9 months ago (2017-03-20 10:01:40 UTC) #33
commit-bot: I haz the power
There were warnings when CQ was processing your CL: * CQ is not running the ...
3 years, 9 months ago (2017-03-20 10:31:40 UTC) #34
commit-bot: I haz the power
There were warnings when CQ was processing your CL: * CQ is not running the ...
3 years, 9 months ago (2017-03-20 11:01:42 UTC) #35
commit-bot: I haz the power
3 years, 9 months ago (2017-03-20 11:21:34 UTC) #38
Message was sent while issue was closed.
Committed patchset #4 (id:120001) as
https://chromium.googlesource.com/chromium/src/+/01b5c7b1560e884426a2ef014c61...

Powered by Google App Engine
This is Rietveld 408576698