https://github.com/web-platform-tests/wpt
Revision c26bdad5f6e564f0a791c746c549493c6f9dae7a authored by andypaicu@chromium.org on 16 August 2017, 15:22:43 UTC, committed by Chromium WPT Sync on 16 August 2017, 15:22:43 UTC
Modified resource fetching to allow piping back to the ResourceClient a
struct needed for firing the securityviolationevent. This allows us
to specify the targeted element as well in the event.

CSP violation events have overly vague srcElement and path when being
triggered for an element that requires a fetch because the element is not
being passed down to where the csp check takes place and the report is
fired.

Bug: 737647
Change-Id: I944ea2ea69447c612c01b9e6f723f110fa28a1f5
Reviewed-on: https://chromium-review.googlesource.com/558917
Commit-Queue: Andy Paicu <andypaicu@chromium.org>
Reviewed-by: Mike West <mkwst@chromium.org>
WPT-Export-Revision: 31f217e45648ca2ab02d5c681cde6e48f0134852
1 parent 2a86707
History
Tip revision: c26bdad5f6e564f0a791c746c549493c6f9dae7a authored by andypaicu@chromium.org on 16 August 2017, 15:22:43 UTC
Fixed securityviolationevent not containing the full src and path
Tip revision: c26bdad
File Mode Size
OWNERS -rw-r--r-- 22 bytes
background-image-alpha-ref.html -rw-r--r-- 792 bytes
background-image-alpha.html -rw-r--r-- 1.2 KB
background-image-multiple-ref.html -rw-r--r-- 350 bytes
background-image-multiple.html -rw-r--r-- 803 bytes
background-image-tiled-ref.html -rw-r--r-- 834 bytes
background-image-tiled.html -rw-r--r-- 1.0 KB
geometry-background-image-001-ref.html -rw-r--r-- 353 bytes
geometry-background-image-001.html -rw-r--r-- 798 bytes
geometry-background-image-002-ref.html -rw-r--r-- 353 bytes
geometry-background-image-002.html -rw-r--r-- 798 bytes
geometry-background-image-003-ref.html -rw-r--r-- 380 bytes
geometry-background-image-003.html -rw-r--r-- 836 bytes
geometry-background-image-tiled-001-ref.html -rw-r--r-- 324 bytes
geometry-background-image-tiled-001.html -rw-r--r-- 871 bytes
geometry-background-image-tiled-002-ref.html -rw-r--r-- 396 bytes
geometry-background-image-tiled-002.html -rw-r--r-- 866 bytes
geometry-background-image-tiled-003-ref.html -rw-r--r-- 396 bytes
geometry-background-image-tiled-003.html -rw-r--r-- 869 bytes
geometry-border-image-001-ref.html -rw-r--r-- 835 bytes
geometry-border-image-001.html -rw-r--r-- 1021 bytes
geometry-border-image-002-ref.html -rw-r--r-- 398 bytes
geometry-border-image-002.html -rw-r--r-- 1023 bytes
geometry-border-image-003-ref.html -rw-r--r-- 400 bytes
geometry-border-image-003.html -rw-r--r-- 1.0 KB
geometry-border-image-004-ref.html -rw-r--r-- 789 bytes
geometry-border-image-004.html -rw-r--r-- 1.1 KB
geometry-border-image-005-ref.html -rw-r--r-- 402 bytes
geometry-border-image-005.html -rw-r--r-- 1.0 KB
invalid-image-constructor-error-ref.html -rw-r--r-- 113 bytes
invalid-image-constructor-error.html -rw-r--r-- 777 bytes
invalid-image-paint-error-ref.html -rw-r--r-- 113 bytes
invalid-image-paint-error.html -rw-r--r-- 756 bytes
invalid-image-pending-script-ref.html -rw-r--r-- 113 bytes
invalid-image-pending-script.html -rw-r--r-- 489 bytes
overdraw-ref.html -rw-r--r-- 113 bytes
overdraw.html -rw-r--r-- 719 bytes
paint-arguments-ref.html -rw-r--r-- 789 bytes
paint-arguments.html -rw-r--r-- 1.0 KB
paint-function-arguments-ref.html -rw-r--r-- 831 bytes
paint-function-arguments.html -rw-r--r-- 1.1 KB
paint2d-composite-ref.html -rw-r--r-- 1.3 KB
paint2d-composite.html -rw-r--r-- 2.0 KB
paint2d-filter-ref.html -rw-r--r-- 1.9 KB
paint2d-filter.html -rw-r--r-- 3.1 KB
paint2d-gradient-ref.html -rw-r--r-- 711 bytes
paint2d-gradient.html -rw-r--r-- 1.2 KB
paint2d-image-ref.html -rw-r--r-- 315 bytes
paint2d-image.html -rw-r--r-- 802 bytes
paint2d-paths-ref.html -rw-r--r-- 689 bytes
paint2d-paths.html -rw-r--r-- 1.2 KB
paint2d-rects-ref.html -rw-r--r-- 395 bytes
paint2d-rects.html -rw-r--r-- 854 bytes
paint2d-shadows-ref.html -rw-r--r-- 484 bytes
paint2d-shadows.html -rw-r--r-- 968 bytes
paint2d-transform-ref.html -rw-r--r-- 446 bytes
paint2d-transform.html -rw-r--r-- 920 bytes
paint2d-zoom-ref.html -rw-r--r-- 407 bytes
paint2d-zoom.html -rw-r--r-- 800 bytes
parse-input-arguments-001.html -rw-r--r-- 1.1 KB
parse-input-arguments-002.html -rw-r--r-- 1.2 KB
parse-input-arguments-003.html -rw-r--r-- 1.1 KB
parse-input-arguments-004.html -rw-r--r-- 1.0 KB
parse-input-arguments-005.html -rw-r--r-- 1.1 KB
parse-input-arguments-006.html -rw-r--r-- 1.1 KB
parse-input-arguments-007.html -rw-r--r-- 1.1 KB
parse-input-arguments-008.html -rw-r--r-- 1.2 KB
parse-input-arguments-009.html -rw-r--r-- 1.1 KB
parse-input-arguments-010.html -rw-r--r-- 1.1 KB
parse-input-arguments-011.html -rw-r--r-- 1.1 KB
parse-input-arguments-012.html -rw-r--r-- 1.1 KB
parse-input-arguments-013.html -rw-r--r-- 978 bytes
parse-input-arguments-014.html -rw-r--r-- 1.0 KB
parse-input-arguments-015.html -rw-r--r-- 1.1 KB
parse-input-arguments-016.html -rw-r--r-- 1.2 KB
parse-input-arguments-017.html -rw-r--r-- 1.0 KB
parse-input-arguments-018-ref.html -rw-r--r-- 540 bytes
parse-input-arguments-018.html -rw-r--r-- 1.9 KB
parse-input-arguments-ref.html -rw-r--r-- 298 bytes
registered-properties-in-custom-paint.html -rw-r--r-- 2.0 KB
style-background-image-ref.html -rw-r--r-- 325 bytes
style-background-image.html -rw-r--r-- 1.9 KB
style-before-pseudo-ref.html -rw-r--r-- 677 bytes
style-before-pseudo.html -rw-r--r-- 1.8 KB
style-first-letter-pseudo-ref.html -rw-r--r-- 597 bytes
style-first-letter-pseudo.html -rw-r--r-- 1.7 KB
valid-image-after-load-ref.html -rw-r--r-- 113 bytes
valid-image-after-load.html -rw-r--r-- 1022 bytes
valid-image-before-load-ref.html -rw-r--r-- 113 bytes
valid-image-before-load.html -rw-r--r-- 1016 bytes

back to top