mirror of
https://github.com/servo/servo
synced 2026-04-30 11:27:28 +02:00
18 lines
499 B
HTML
18 lines
499 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<script>
|
|
function createLink(rel, src) {
|
|
var link = document.createElement('link');
|
|
link.rel = rel;
|
|
link.href = src;
|
|
document.head.appendChild(link);
|
|
}
|
|
window.addEventListener('DOMContentLoaded', function() {
|
|
createLink('icon', 'http://localhost/foo?q=from_icon'); {}
|
|
});
|
|
|
|
</script>
|
|
<p>Use callbacks to show that favicons are not loaded in violation of CSP when link tags are dynamically added to the page.</p>
|
|
|
|
</html>
|