fune/dom/base/test/file_location_href_unknown_protocol.html
Emilio Cobos Álvarez 266c1d0b6c Bug 1528305 - Don't show an error page for unknown protocols for page-triggered navigations that replace a document. r=mattwoodrow
Pages apparently do this to try to open to native apps, and that on Firefox
causes an error page to be shown if the app is not installed, which is pretty
bad.

Differential Revision: https://phabricator.services.mozilla.com/D68471

--HG--
extra : moz-landing-system : lando
2020-03-27 17:20:14 +00:00

15 lines
312 B
HTML

<!doctype html>
<script>
onbeforeunload = function() {
opener.onChildBeforeUnload();
};
onload = function() {
location.href = "this-protocol-is-unlikely-to-exist://foo";
setTimeout(function() {
opener.onChildLoadTimedOut();
}, 1000);
};
onunload = function() {
opener.onChildUnload();
};
</script>