Source code

Revision control

Copy as Markdown

Other Tools

<!--
Any copyright is dedicated to the Public Domain.
-->
<!DOCTYPE HTML>
<html>
<head>
<title>Bug 982726 - test match_all not crashing</title>
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
<!-- some tests will intercept this bogus script request -->
<script type="text/javascript" src="does_not_exist.js"></script>
</head>
<body>
<p id="display"></p>
<div id="content" style="display: none"></div>
<pre id="test"></pre>
<script class="testbody" type="text/javascript">
if (!parent) {
dump("sw_clients/simple.html shouldn't be launched directly!");
}
window.addEventListener("message", function(event) {
if (event.data === "REFRESH") {
window.location.reload();
} else if (event.data === "FORCE_REFRESH") {
window.location.reload(true);
}
});
navigator.serviceWorker.ready.then(function() {
parent.postMessage("READY", "*");
});
</script>
</pre>
</body>
</html>