/usr/lib/ruby/vendor_ruby/capybara/spec/views/with_unload_alert.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 | <html>
<head>
<script>
window.onbeforeunload = function(e) {
return 'Unload?';
};
</script>
</head>
<body>
<div>This triggers an alert on unload</div>
<a href="/">Go away</a>
</body>
</html>
|