Closed GJFR closed 1 year ago
Perfect, thanks! This script should be sufficient:
function test_remote_scripting_support() {
const report = document.getElementById('remote_scripting_support');
report.textContent = 'This reading system fetched and executed a remote script.';
}
window.addEventListener('load', test_remote_scripting_support);
Currently we check whether stylesheets are fetched and loaded without consent by simply referring to the spec's stylesheet, but this is not ideal (and this stylesheet may be subject to change in the future). Could you please host the stylesheet below as well? I think this would make the tests more future-proof and robust.
.paint_red {
color: red
}
It's the last one, I promise 😉
All done!
Add test for checking whether sideloaded EPUB publications require user consent for scripting and loading of remote resources (#297, spec).
_scripting
and_network
, but of course, these can be merged if that would be more convenient.