blob: 08e6b211416173b5b726f242b01f48de5cd915a2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
description("Exercises a condition where the DOMWindow may leak if Geolocation requests are ongoing when the page is navigated away or closed. The page should reoload.");
if (window.layoutTestController) layoutTestController.setGeolocationPermission(true);
if (window.layoutTestController) layoutTestController.setMockGeolocationPosition(51.478, -0.166, 100.0);
navigator.geolocation.watchPosition(function() {}, null);
document.body.onload = function() {
location = "data:text/html,Exercises a condition where the DOMWindow may leak if Geolocation requests are ongoing when the page is navigated away or closed. Complete.<script>if (window.layoutTestController) layoutTestController.notifyDone();</" + "script>";
}
window.jsTestIsAsync = true;
window.successfullyParsed = true;
|