File tree Expand file tree Collapse file tree 2 files changed +1
-6
lines changed
components/dash-html-components/scripts
tests/integration/security Expand file tree Collapse file tree 2 files changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -256,7 +256,6 @@ const customImportsForComponents = {
256
256
object : `import {sanitizeUrl} from '@braintree/sanitize-url';` ,
257
257
embed : `import {sanitizeUrl} from '@braintree/sanitize-url';` ,
258
258
button : `import {sanitizeUrl} from '@braintree/sanitize-url';` ,
259
- img : `import {sanitizeUrl} from '@braintree/sanitize-url';` ,
260
259
}
261
260
262
261
function createXSSProtection ( propName ) {
@@ -282,8 +281,7 @@ const customCodesForComponents = {
282
281
iframe : createXSSProtection ( 'src' ) ,
283
282
object : createXSSProtection ( 'data' ) ,
284
283
embed : createXSSProtection ( 'src' ) ,
285
- button : createXSSProtection ( 'formAction' ) ,
286
- img : createXSSProtection ( 'src' ) ,
284
+ button : createXSSProtection ( 'formAction' )
287
285
}
288
286
289
287
function generateComponent ( Component , element , attributes ) {
Original file line number Diff line number Diff line change @@ -27,8 +27,6 @@ def test_xss001_banned_protocols(dash_duo):
27
27
html .Iframe (src = 'javascript:alert("iframe")' , id = "iframe-src" ),
28
28
html .ObjectEl (data = 'javascript:alert("data-object")' , id = "object-data" ),
29
29
html .Embed (src = 'javascript:alert("embed")' , id = "embed-src" ),
30
- # older browser
31
- html .Img (src = "javascript:alert('img-sr')" , id = "img-src" ),
32
30
]
33
31
)
34
32
@@ -41,7 +39,6 @@ def test_xss001_banned_protocols(dash_duo):
41
39
("#object-data" , "data" ),
42
40
("#embed-src" , "src" ),
43
41
("#button-form-action" , "formAction" ),
44
- ("#img-src" , "src" ),
45
42
):
46
43
47
44
element = dash_duo .find_element (element_id )
You can’t perform that action at this time.
0 commit comments