chromium/chrome/test/data/permissions/requests-before-after-load.html

<!DOCTYPE html>
<html>
<script>
function requestGeolocation() {
  navigator.geolocation.getCurrentPosition(function(){});
}

requestGeolocation();

document.onload = function() {
  setTimeout(Notification.requestPermission, 0);
};
</script>
<body>
</body>
</html>