Files
brave-core/test/data/blocking_csp.html
T
Shivan Kaul Sahib a87d3e4fce Redirect URL support for adblock
- Add support for redirect URLs in adblock ffi
- Rename `mock_data_url`
- If the adblock url in ctx is of type http/https, redirect
- Add tests
- Add CSP bypass for sugarcoat rules + tests
- Add restrictions for CSP bypass
- Add feature flag for Sugarcoat in net::features
2021-10-29 15:18:07 -07:00

22 lines
541 B
HTML

<html>
<head>
<meta http-equiv="Content-Security-Policy" content="default-src 'none'; script-src 'self' 'unsafe-inline' 'unsafe-eval'">
<script>
// Adds an script to the DOM with the specified src
function addScript(src) {
const script = document.createElement('script')
script.src = src
script.onload = function() {
window.domAutomationController.send(true);
};
script.onerror = function() {
window.domAutomationController.send(false);
};
document.body.appendChild(script)
}
</script>
</head>
<body>
</body>
</html>