/usr/lib/ruby/vendor_ruby/capybara/spec/views/with_slow_unload.erb is in ruby-capybara 2.10.2-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | <html>
<head>
<script>
function delay_unload() {
var start = new Date();
var i = 0;
while ((new Date()) - start < 1000){ i = i + 1; };
return null;
}
window.onbeforeunload = delay_unload;
window.onunload = delay_unload;
</script>
</head>
<body>
<div>This delays unload by 2 seconds</div>
</body>
</html>
|