blob: c96a94727433c8c5beb34fab3ac2890cc9022e99 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<script src='resources/multiple-iframe-test.js'></script>
<script>
var dataURL = "data:application/javascript;base64," +
btoa("var result = document.getElementById('result');" +
"result.firstChild.nodeValue = result.attributes.getNamedItem('text').value;");
var tests = [
['yes', 'script-src data:', dataURL],
['no', 'script-src \'self\'', dataURL],
['no', 'script-src https://127.0.0.1:8000', dataURL],
];
</script>
</head>
<body onload="test()">
<p>
Test proper handling of data: URLs.
</p>