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
.well-known
2dcontext
FileAPI
IndexedDB
WebCryptoAPI
WebIDL
XMLHttpRequest
accelerometer
ambient-light
annotation-model
annotation-protocol
annotation-vocab
apng
app-uri
assumptions
auxclick
background-fetch
battery-status
beacon
bluetooth
clear-site-data
clipboard
clipboard-apis
common
compat
conformance-checkers
console
content-security-policy
cookies
cors
credential-management
css
css-backgrounds
css-cascade
css-font-display
css-font-loading
css-fonts
css-paint-api
css-timing
css-typed-om
css-values
cssom
cssom-view
custom-elements
docs
dom
domparsing
domxpath
dpub-aam
dpub-aria
editing
encoding
encrypted-media
eventsource
ext-xhtml-pubid
feature-policy
fetch
fonts
fullscreen
gamepad
generic-sensor
geolocation-API
gyroscope
hr-time
html
html-imports
html-longdesc
html-media-capture
http
imagebitmap-renderingcontext
images
infrastructure
innerText
input-events
interfaces
intersection-observer
js
keyboard-lock
longtask-timing
magnetometer
mathml
media
media-capabilities
media-source
mediacapture-fromelement
mediacapture-image
mediacapture-record
mediacapture-streams
mediasession
microdata
mixed-content
navigation-timing
netinfo
notifications
offscreen-canvas
old-tests
orientation-event
orientation-sensor
page-visibility
payment-method-basic-card
payment-method-id
payment-request
performance-timeline
pointerevents
pointerlock
preload
presentation-api
progress-events
proximity
quirks-mode
referrer-policy
remote-playback
resource-timing
resources
screen-orientation
scroll-anchoring
secure-contexts
selection
selectors
server-timing
service-workers
shadow-dom
staticrange
storage
streams
subresource-integrity
svg
svg-aam
tools
touch-events
uievents
upgrade-insecure-requests
url
user-timing
vibration
viewport
wai-aria
wasm
web-animations
web-nfc
web-share
webaudio
webauthn
webdriver
webgl
webmessaging
webrtc
websockets
webstorage
webusb
webvr
webvtt
workers
x-frame-options
.codecov.yml -rw-r--r-- 66 bytes
.gitignore -rw-r--r-- 182 bytes
.gitmodules -rw-r--r-- 519 bytes
.travis.yml -rw-r--r-- 4.1 KB
CONTRIBUTING.md -rw-r--r-- 1.6 KB
LICENSE.md -rw-r--r-- 5.1 KB
README.md -rw-r--r-- 13.2 KB
check_stability.ini -rw-r--r-- 524 bytes
config.default.json -rw-r--r-- 695 bytes
lint.whitelist -rw-r--r-- 46.4 KB
serve.py -rw-r--r-- 263 bytes
server-side.md -rw-r--r-- 8.1 KB
testharness_runner.html -rw-r--r-- 95 bytes
update-built-tests.sh -rwxr-xr-x 131 bytes
wpt -rwxr-xr-x 95 bytes

README.md

back to top