From 36d22d82aa202bb199967e9512281e9a53db42c9 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 21:33:14 +0200 Subject: Adding upstream version 115.7.0esr. Signed-off-by: Daniel Baumann --- dom/tests/mochitest/geolocation/chrome.ini | 6 + .../mochitest/geolocation/crossorigin_iframe.html | 33 +++++ .../mochitest/geolocation/file_featurePolicy.html | 47 +++++++ dom/tests/mochitest/geolocation/geolocation.html | 13 ++ .../mochitest/geolocation/geolocation_common.js | 154 +++++++++++++++++++++ dom/tests/mochitest/geolocation/mochitest.ini | 82 +++++++++++ .../mochitest/geolocation/network_geolocation.sjs | 81 +++++++++++ dom/tests/mochitest/geolocation/popup.html | 19 +++ .../mochitest/geolocation/test_allowCurrent.html | 41 ++++++ .../mochitest/geolocation/test_allowWatch.html | 44 ++++++ .../mochitest/geolocation/test_cachedPosition.html | 83 +++++++++++ .../mochitest/geolocation/test_cancelCurrent.html | 45 ++++++ .../mochitest/geolocation/test_cancelWatch.html | 49 +++++++ .../mochitest/geolocation/test_clearWatch.html | 76 ++++++++++ .../geolocation/test_clearWatchBeforeAllowing.html | 62 +++++++++ .../geolocation/test_clearWatch_invalid.html | 47 +++++++ .../geolocation/test_crossorigin_iframe.html | 61 ++++++++ .../geolocation/test_enableHighAccuracy.html | 73 ++++++++++ .../mochitest/geolocation/test_errorcheck.html | 52 +++++++ .../mochitest/geolocation/test_featurePolicy.html | 51 +++++++ .../mochitest/geolocation/test_garbageWatch.html | 56 ++++++++ ...GetCurrentPositionBlockedInInsecureContext.html | 47 +++++++ ...t_geoWatchPositionBlockedInInsecureContext.html | 51 +++++++ ..._geolocation_is_undefined_when_pref_is_off.html | 36 +++++ ...ation_is_undefined_when_pref_is_off_iframe.html | 28 ++++ .../geolocation/test_handlerSpinsEventLoop.html | 70 ++++++++++ dom/tests/mochitest/geolocation/test_hidden.html | 110 +++++++++++++++ .../geolocation/test_manyCurrentConcurrent.html | 60 ++++++++ .../geolocation/test_manyCurrentSerial.html | 47 +++++++ .../geolocation/test_manyWatchConcurrent.html | 60 ++++++++ .../geolocation/test_manyWatchSerial.html | 56 ++++++++ .../mochitest/geolocation/test_manyWindows.html | 67 +++++++++ .../geolocation/test_native_provider.html | 70 ++++++++++ .../geolocation/test_not_fully_active.html | 93 +++++++++++++ .../geolocation/test_optional_api_params.html | 126 +++++++++++++++++ dom/tests/mochitest/geolocation/test_shutdown.html | 63 +++++++++ .../mochitest/geolocation/test_timeoutCurrent.html | 56 ++++++++ .../mochitest/geolocation/test_timeoutWatch.html | 65 +++++++++ .../geolocation/test_timerRestartWatch.html | 75 ++++++++++ .../mochitest/geolocation/test_windowClose.html | 36 +++++ .../test_worseAccuracyDoesNotBlockCallback.html | 51 +++++++ dom/tests/mochitest/geolocation/windowTest.html | 44 ++++++ 42 files changed, 2486 insertions(+) create mode 100644 dom/tests/mochitest/geolocation/chrome.ini create mode 100644 dom/tests/mochitest/geolocation/crossorigin_iframe.html create mode 100644 dom/tests/mochitest/geolocation/file_featurePolicy.html create mode 100644 dom/tests/mochitest/geolocation/geolocation.html create mode 100644 dom/tests/mochitest/geolocation/geolocation_common.js create mode 100644 dom/tests/mochitest/geolocation/mochitest.ini create mode 100644 dom/tests/mochitest/geolocation/network_geolocation.sjs create mode 100644 dom/tests/mochitest/geolocation/popup.html create mode 100644 dom/tests/mochitest/geolocation/test_allowCurrent.html create mode 100644 dom/tests/mochitest/geolocation/test_allowWatch.html create mode 100644 dom/tests/mochitest/geolocation/test_cachedPosition.html create mode 100644 dom/tests/mochitest/geolocation/test_cancelCurrent.html create mode 100644 dom/tests/mochitest/geolocation/test_cancelWatch.html create mode 100644 dom/tests/mochitest/geolocation/test_clearWatch.html create mode 100644 dom/tests/mochitest/geolocation/test_clearWatchBeforeAllowing.html create mode 100644 dom/tests/mochitest/geolocation/test_clearWatch_invalid.html create mode 100644 dom/tests/mochitest/geolocation/test_crossorigin_iframe.html create mode 100644 dom/tests/mochitest/geolocation/test_enableHighAccuracy.html create mode 100644 dom/tests/mochitest/geolocation/test_errorcheck.html create mode 100644 dom/tests/mochitest/geolocation/test_featurePolicy.html create mode 100644 dom/tests/mochitest/geolocation/test_garbageWatch.html create mode 100644 dom/tests/mochitest/geolocation/test_geoGetCurrentPositionBlockedInInsecureContext.html create mode 100644 dom/tests/mochitest/geolocation/test_geoWatchPositionBlockedInInsecureContext.html create mode 100644 dom/tests/mochitest/geolocation/test_geolocation_is_undefined_when_pref_is_off.html create mode 100644 dom/tests/mochitest/geolocation/test_geolocation_is_undefined_when_pref_is_off_iframe.html create mode 100644 dom/tests/mochitest/geolocation/test_handlerSpinsEventLoop.html create mode 100644 dom/tests/mochitest/geolocation/test_hidden.html create mode 100644 dom/tests/mochitest/geolocation/test_manyCurrentConcurrent.html create mode 100644 dom/tests/mochitest/geolocation/test_manyCurrentSerial.html create mode 100644 dom/tests/mochitest/geolocation/test_manyWatchConcurrent.html create mode 100644 dom/tests/mochitest/geolocation/test_manyWatchSerial.html create mode 100644 dom/tests/mochitest/geolocation/test_manyWindows.html create mode 100644 dom/tests/mochitest/geolocation/test_native_provider.html create mode 100644 dom/tests/mochitest/geolocation/test_not_fully_active.html create mode 100644 dom/tests/mochitest/geolocation/test_optional_api_params.html create mode 100644 dom/tests/mochitest/geolocation/test_shutdown.html create mode 100644 dom/tests/mochitest/geolocation/test_timeoutCurrent.html create mode 100644 dom/tests/mochitest/geolocation/test_timeoutWatch.html create mode 100644 dom/tests/mochitest/geolocation/test_timerRestartWatch.html create mode 100644 dom/tests/mochitest/geolocation/test_windowClose.html create mode 100644 dom/tests/mochitest/geolocation/test_worseAccuracyDoesNotBlockCallback.html create mode 100644 dom/tests/mochitest/geolocation/windowTest.html (limited to 'dom/tests/mochitest/geolocation') diff --git a/dom/tests/mochitest/geolocation/chrome.ini b/dom/tests/mochitest/geolocation/chrome.ini new file mode 100644 index 0000000000..1922074f17 --- /dev/null +++ b/dom/tests/mochitest/geolocation/chrome.ini @@ -0,0 +1,6 @@ +[DEFAULT] +support-files = + geolocation_common.js + network_geolocation.sjs + +[test_handlerSpinsEventLoop.html] diff --git a/dom/tests/mochitest/geolocation/crossorigin_iframe.html b/dom/tests/mochitest/geolocation/crossorigin_iframe.html new file mode 100644 index 0000000000..f370003ad8 --- /dev/null +++ b/dom/tests/mochitest/geolocation/crossorigin_iframe.html @@ -0,0 +1,33 @@ + + + +
+
+
+ + diff --git a/dom/tests/mochitest/geolocation/file_featurePolicy.html b/dom/tests/mochitest/geolocation/file_featurePolicy.html new file mode 100644 index 0000000000..3028321721 --- /dev/null +++ b/dom/tests/mochitest/geolocation/file_featurePolicy.html @@ -0,0 +1,47 @@ + + + + + + + + + + diff --git a/dom/tests/mochitest/geolocation/geolocation.html b/dom/tests/mochitest/geolocation/geolocation.html new file mode 100644 index 0000000000..e62f13e7d3 --- /dev/null +++ b/dom/tests/mochitest/geolocation/geolocation.html @@ -0,0 +1,13 @@ + + + Simple access of geolocation + + + + + diff --git a/dom/tests/mochitest/geolocation/geolocation_common.js b/dom/tests/mochitest/geolocation/geolocation_common.js new file mode 100644 index 0000000000..2868215e76 --- /dev/null +++ b/dom/tests/mochitest/geolocation/geolocation_common.js @@ -0,0 +1,154 @@ +"use strict"; + +var harness = + SimpleTest.harnessParameters.testRoot == "chrome" ? "chrome" : "tests"; +var BASE_URL = + "http://mochi.test:8888/" + + harness + + "/dom/tests/mochitest/geolocation/network_geolocation.sjs"; + +function set_geo_wifi_uri(uri, callback) { + // Disable NetworkGeolocationProvider.js request cache because the cache + // does not remember from which location service it came from. We expect + // different results when we change the provider URL (geo.provider.network.url). + set_network_request_cache_enabled(false, () => { + SpecialPowers.pushPrefEnv( + { set: [["geo.provider.network.url", uri]] }, + callback + ); + }); +} + +function sleep(delay) { + var start = Date.now(); + while (Date.now() < start + delay) {} +} + +function force_prompt(allow, callback) { + SpecialPowers.pushPrefEnv( + { + set: [ + ["geo.prompt.testing", true], + ["geo.prompt.testing.allow", allow], + ], + }, + callback + ); +} + +function start_sending_garbage(callback) { + set_geo_wifi_uri(BASE_URL + "?action=respond-garbage", () => { + // we need to be sure that all location data has been purged/set. + sleep(1000); + callback.call(); + }); +} + +function stop_sending_garbage(callback) { + set_geo_wifi_uri(BASE_URL + "", () => { + // we need to be sure that all location data has been purged/set. + sleep(1000); + callback.call(); + }); +} + +function stop_geolocationProvider(callback) { + set_geo_wifi_uri(BASE_URL + "?action=stop-responding", () => { + // we need to be sure that all location data has been purged/set. + sleep(1000); + callback.call(); + }); +} + +function set_network_request_cache_enabled(enabled, callback) { + SpecialPowers.pushPrefEnv( + { set: [["geo.provider.network.debug.requestCache.enabled", enabled]] }, + callback + ); +} + +function worse_geolocationProvider(callback) { + set_geo_wifi_uri(BASE_URL + "?action=worse-accuracy", callback); +} + +function resume_geolocationProvider(callback) { + set_geo_wifi_uri(BASE_URL + "", callback); +} + +function delay_geolocationProvider(delay, callback) { + set_geo_wifi_uri(BASE_URL + "?delay=" + delay, callback); +} + +function send404_geolocationProvider(callback) { + set_geo_wifi_uri(BASE_URL + "?action=send404", callback); +} + +function check_geolocation(location) { + ok(location, "Check to see if this location is non-null"); + + const timestamp = location.timestamp; + dump(`timestamp=${timestamp}\n`); + ok(IsNumber(timestamp), "check timestamp type"); + ok(timestamp > 0, "check timestamp range"); + + // eventually, coords may be optional (eg, when civic addresses are supported) + ok("coords" in location, "Check to see if this location has a coords"); + + const { + latitude, + longitude, + accuracy, + altitude, + altitudeAccuracy, + speed, + heading, + } = location.coords; + + dump(`latitude=${latitude}\n`); + dump(`longitude=${longitude}\n`); + dump(`accuracy=${accuracy}\n`); + dump(`altitude=${altitude}\n`); + dump(`altitudeAccuracy=${altitudeAccuracy}\n`); + dump(`speed=${speed}\n`); + dump(`heading=${heading}\n`); + + ok(IsNumber(latitude), "check latitude type"); + ok(IsNumber(longitude), "check longitude type"); + + ok( + Math.abs(latitude - 37.41857) < 0.001, + "latitude matches hard-coded value" + ); + ok( + Math.abs(longitude + 122.08769) < 0.001, + "longitude matches hard-coded value" + ); + + ok(IsNonNegativeNumber(accuracy), "check accuracy type and range"); + ok(IsNumber(altitude) || altitude === null, "check accuracy type"); + + ok( + (IsNonNegativeNumber(altitudeAccuracy) && IsNumber(altitude)) || + altitudeAccuracy === null, + "check altitudeAccuracy type and range" + ); + + ok( + IsNonNegativeNumber(speed) || speed === null, + "check speed type and range" + ); + + ok( + (IsNonNegativeNumber(heading) && heading < 360 && speed > 0) || + heading === null, + "check heading type and range" + ); +} + +function IsNumber(x) { + return typeof x === "number" && !Number.isNaN(x); +} + +function IsNonNegativeNumber(x) { + return IsNumber(x) && x >= 0; +} diff --git a/dom/tests/mochitest/geolocation/mochitest.ini b/dom/tests/mochitest/geolocation/mochitest.ini new file mode 100644 index 0000000000..44caab9fa5 --- /dev/null +++ b/dom/tests/mochitest/geolocation/mochitest.ini @@ -0,0 +1,82 @@ +[DEFAULT] +tags = geolocation condprof +scheme = https +support-files = + geolocation.html + geolocation_common.js + network_geolocation.sjs + windowTest.html + popup.html +prefs = + dom.security.featurePolicy.header.enabled=true + dom.security.featurePolicy.webidl.enabled=true + +[test_allowCurrent.html] +skip-if = xorigin # Hangs +[test_allowWatch.html] +skip-if = xorigin # Hangs +[test_hidden.html] +skip-if = xorigin # Hangs + toolkit == 'android' # test uses popup windows + condprof #: timed out +support-files = popup.html +[test_cachedPosition.html] +fail-if = xorigin +[test_cancelCurrent.html] +[test_cancelWatch.html] +[test_clearWatch.html] +skip-if = xorigin # Hangs +[test_clearWatchBeforeAllowing.html] +skip-if = xorigin # Hangs +[test_clearWatch_invalid.html] +[test_crossorigin_iframe.html] +support-files = crossorigin_iframe.html +fail-if = xorigin +[test_enableHighAccuracy.html] +skip-if = xorigin +[test_errorcheck.html] +fail-if = xorigin +[test_geolocation_is_undefined_when_pref_is_off.html] +support-files = test_geolocation_is_undefined_when_pref_is_off_iframe.html +[test_manyCurrentConcurrent.html] +fail-if = xorigin +skip-if = condprof #: timed out +[test_manyCurrentSerial.html] +skip-if = xorigin # Hangs + condprof #: timed out +[test_manyWatchConcurrent.html] +fail-if = xorigin +skip-if = condprof #: timed out +[test_manyWatchSerial.html] +skip-if = xorigin # Hangs +[test_manyWindows.html] +[test_native_provider.html] +skip-if = toolkit != 'android' +[test_optional_api_params.html] +[test_shutdown.html] +fail-if = xorigin +[test_timeoutCurrent.html] +fail-if = xorigin +[test_timerRestartWatch.html] +skip-if = xorigin # Hangs +[test_windowClose.html] +[test_worseAccuracyDoesNotBlockCallback.html] +skip-if = xorigin # Hangs +[test_featurePolicy.html] +support-files = file_featurePolicy.html +fail-if = xorigin +[test_not_fully_active.html] +skip-if = xorigin # Hangs +support-files = popup.html + +# This test REQUIRES to run on HTTP (_NOT_ HTTPS). +[test_geoWatchPositionBlockedInInsecureContext.html] +scheme = http +skip-if = + http3 + +# This test REQUIRES to run on HTTP (_NOT_ HTTPS). +[test_geoGetCurrentPositionBlockedInInsecureContext.html] +scheme = http +skip-if = + http3 diff --git a/dom/tests/mochitest/geolocation/network_geolocation.sjs b/dom/tests/mochitest/geolocation/network_geolocation.sjs new file mode 100644 index 0000000000..1868aaa8f3 --- /dev/null +++ b/dom/tests/mochitest/geolocation/network_geolocation.sjs @@ -0,0 +1,81 @@ +function parseQueryString(str) { + if (str == "") { + return {}; + } + + var paramArray = str.split("&"); + var regex = /^([^=]+)=(.*)$/; + var params = {}; + for (var i = 0, sz = paramArray.length; i < sz; i++) { + var match = regex.exec(paramArray[i]); + if (!match) { + throw "Bad parameter in queryString! '" + paramArray[i] + "'"; + } + params[decodeURIComponent(match[1])] = decodeURIComponent(match[2]); + } + + return params; +} + +function getPosition(action) { + var response = { + status: "OK", + location: { + lat: 37.41857, + lng: -122.08769, + }, + accuracy: action == "worse-accuracy" ? 100 : 42, + }; + + return JSON.stringify(response); +} + +var timer; +function handleRequest(request, response) { + var params = parseQueryString(request.queryString); + + if (params.action == "stop-responding") { + response.processAsync(); + return; + } + + var position = getPosition(params.action); + + if (params.action == "respond-garbage") { + // better way? + var chars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz"; + position = ""; + var len = Math.floor(Math.random() * 5000); + + for (var i = 0; i < len; i++) { + var c = Math.floor(Math.random() * chars.length); + position += chars.substring(c, c + 1); + } + } + + var response; + response.processAsync(); + response.setStatusLine("1.0", 200, "OK"); + response.setHeader("Cache-Control", "no-cache", false); + response.setHeader("Content-Type", "aplication/x-javascript", false); + + var delay = 0; + if ("delay" in params) { + delay = params.delay; + } + if (params.action === "send404") { + response.setStatusLine("1.0", 404, "Not Found"); + position = ""; + } + timer = Components.classes["@mozilla.org/timer;1"].createInstance( + Components.interfaces.nsITimer + ); + timer.initWithCallback( + function () { + response.write(position); + response.finish(); + }, + delay, + timer.TYPE_ONE_SHOT + ); +} diff --git a/dom/tests/mochitest/geolocation/popup.html b/dom/tests/mochitest/geolocation/popup.html new file mode 100644 index 0000000000..b286f16ff3 --- /dev/null +++ b/dom/tests/mochitest/geolocation/popup.html @@ -0,0 +1,19 @@ + + + Simple access of geolocation + + + + + + + +

Just a support file

+ + diff --git a/dom/tests/mochitest/geolocation/test_allowCurrent.html b/dom/tests/mochitest/geolocation/test_allowCurrent.html new file mode 100644 index 0000000000..a0ebefdc60 --- /dev/null +++ b/dom/tests/mochitest/geolocation/test_allowCurrent.html @@ -0,0 +1,41 @@ + + + + + Test for getCurrentPosition + + + + + + +Mozilla Bug 478911 +

+ +
+
+
+ + + diff --git a/dom/tests/mochitest/geolocation/test_allowWatch.html b/dom/tests/mochitest/geolocation/test_allowWatch.html new file mode 100644 index 0000000000..782d5ee071 --- /dev/null +++ b/dom/tests/mochitest/geolocation/test_allowWatch.html @@ -0,0 +1,44 @@ + + + + + Test for watchPosition + + + + + + +Mozilla Bug 478911 +

+ +
+
+
+ + + diff --git a/dom/tests/mochitest/geolocation/test_cachedPosition.html b/dom/tests/mochitest/geolocation/test_cachedPosition.html new file mode 100644 index 0000000000..1422c3c3bb --- /dev/null +++ b/dom/tests/mochitest/geolocation/test_cachedPosition.html @@ -0,0 +1,83 @@ + + + + + Test for getCurrentPosition + + + + + + +Mozilla Bug 850442 +

+ +
+
+
+ + diff --git a/dom/tests/mochitest/geolocation/test_cancelCurrent.html b/dom/tests/mochitest/geolocation/test_cancelCurrent.html new file mode 100644 index 0000000000..a5357ac938 --- /dev/null +++ b/dom/tests/mochitest/geolocation/test_cancelCurrent.html @@ -0,0 +1,45 @@ + + + + + Test for getCurrentPosition + + + + + + +Mozilla Bug 478911 +

+ +
+
+
+ + + diff --git a/dom/tests/mochitest/geolocation/test_cancelWatch.html b/dom/tests/mochitest/geolocation/test_cancelWatch.html new file mode 100644 index 0000000000..18ca21ba18 --- /dev/null +++ b/dom/tests/mochitest/geolocation/test_cancelWatch.html @@ -0,0 +1,49 @@ + + + + + Test for watchPosition + + + + + + +Mozilla Bug 478911 +

+ +
+
+
+ + + + + diff --git a/dom/tests/mochitest/geolocation/test_clearWatch.html b/dom/tests/mochitest/geolocation/test_clearWatch.html new file mode 100644 index 0000000000..4c1776331e --- /dev/null +++ b/dom/tests/mochitest/geolocation/test_clearWatch.html @@ -0,0 +1,76 @@ + + + + + Test for watchPosition and clearWatch + + + + + + +Mozilla Bug 478911 +

+ +
+
+
+ + diff --git a/dom/tests/mochitest/geolocation/test_clearWatchBeforeAllowing.html b/dom/tests/mochitest/geolocation/test_clearWatchBeforeAllowing.html new file mode 100644 index 0000000000..3ac82232b7 --- /dev/null +++ b/dom/tests/mochitest/geolocation/test_clearWatchBeforeAllowing.html @@ -0,0 +1,62 @@ + + + + + Test for getCurrentPosition + + + + + + +Mozilla Bug 886026 +

+ +
+
+
+ + diff --git a/dom/tests/mochitest/geolocation/test_clearWatch_invalid.html b/dom/tests/mochitest/geolocation/test_clearWatch_invalid.html new file mode 100644 index 0000000000..fe2007481e --- /dev/null +++ b/dom/tests/mochitest/geolocation/test_clearWatch_invalid.html @@ -0,0 +1,47 @@ + + + + + Test for Bug 463039 + + + + + +Mozilla Bug 463039 +

+ +
+
+
+ + + diff --git a/dom/tests/mochitest/geolocation/test_crossorigin_iframe.html b/dom/tests/mochitest/geolocation/test_crossorigin_iframe.html new file mode 100644 index 0000000000..3a5080dcb0 --- /dev/null +++ b/dom/tests/mochitest/geolocation/test_crossorigin_iframe.html @@ -0,0 +1,61 @@ + + + + Test for geolocation is disabled by default, and set + allow="geolocation" in iframe could enable geolcation + + + + + + + diff --git a/dom/tests/mochitest/geolocation/test_enableHighAccuracy.html b/dom/tests/mochitest/geolocation/test_enableHighAccuracy.html new file mode 100644 index 0000000000..f139c15d01 --- /dev/null +++ b/dom/tests/mochitest/geolocation/test_enableHighAccuracy.html @@ -0,0 +1,73 @@ + + + + + Tests for watchPosition and getCurrentPosition with setHighAccuracy + + + + +Mozilla Bug 1765835 + + + diff --git a/dom/tests/mochitest/geolocation/test_errorcheck.html b/dom/tests/mochitest/geolocation/test_errorcheck.html new file mode 100644 index 0000000000..7900aed1e2 --- /dev/null +++ b/dom/tests/mochitest/geolocation/test_errorcheck.html @@ -0,0 +1,52 @@ + + + + + Test for ErrorChecking + + + + + + +Mozilla Bug 684722 +

+ +
+
+
+ + + diff --git a/dom/tests/mochitest/geolocation/test_featurePolicy.html b/dom/tests/mochitest/geolocation/test_featurePolicy.html new file mode 100644 index 0000000000..f603c7f8f2 --- /dev/null +++ b/dom/tests/mochitest/geolocation/test_featurePolicy.html @@ -0,0 +1,51 @@ + + + + Test for geolocation + featurePolicy + + + + + + + diff --git a/dom/tests/mochitest/geolocation/test_garbageWatch.html b/dom/tests/mochitest/geolocation/test_garbageWatch.html new file mode 100644 index 0000000000..65e2fc8ac6 --- /dev/null +++ b/dom/tests/mochitest/geolocation/test_garbageWatch.html @@ -0,0 +1,56 @@ + + + + + Test for garbage data returned from location provider + + + + + + +Mozilla Bug 482260 +

+ +
+
+
+ + diff --git a/dom/tests/mochitest/geolocation/test_geoGetCurrentPositionBlockedInInsecureContext.html b/dom/tests/mochitest/geolocation/test_geoGetCurrentPositionBlockedInInsecureContext.html new file mode 100644 index 0000000000..55435f6f16 --- /dev/null +++ b/dom/tests/mochitest/geolocation/test_geoGetCurrentPositionBlockedInInsecureContext.html @@ -0,0 +1,47 @@ + + + + + Test for Bug 1269531 + + + + + + Mozilla Bug 1269531 +

+ +
+  
+  
+ + + diff --git a/dom/tests/mochitest/geolocation/test_geoWatchPositionBlockedInInsecureContext.html b/dom/tests/mochitest/geolocation/test_geoWatchPositionBlockedInInsecureContext.html new file mode 100644 index 0000000000..60bad9f644 --- /dev/null +++ b/dom/tests/mochitest/geolocation/test_geoWatchPositionBlockedInInsecureContext.html @@ -0,0 +1,51 @@ + + + + + Test for Bug 1269531 + + + + + + Mozilla Bug 1269531 +

+ +
+  
+  
+ + + diff --git a/dom/tests/mochitest/geolocation/test_geolocation_is_undefined_when_pref_is_off.html b/dom/tests/mochitest/geolocation/test_geolocation_is_undefined_when_pref_is_off.html new file mode 100644 index 0000000000..cfdc537a1b --- /dev/null +++ b/dom/tests/mochitest/geolocation/test_geolocation_is_undefined_when_pref_is_off.html @@ -0,0 +1,36 @@ + + + + + Test for getCurrentPosition + + + + + + +Mozilla Bug 884921 +

+ +
+
+
+ + diff --git a/dom/tests/mochitest/geolocation/test_geolocation_is_undefined_when_pref_is_off_iframe.html b/dom/tests/mochitest/geolocation/test_geolocation_is_undefined_when_pref_is_off_iframe.html new file mode 100644 index 0000000000..1be69a2212 --- /dev/null +++ b/dom/tests/mochitest/geolocation/test_geolocation_is_undefined_when_pref_is_off_iframe.html @@ -0,0 +1,28 @@ + + + + + Test for getCurrentPosition + + + + + + +Mozilla Bug 884921 +

+ +
+
+
+ + diff --git a/dom/tests/mochitest/geolocation/test_handlerSpinsEventLoop.html b/dom/tests/mochitest/geolocation/test_handlerSpinsEventLoop.html new file mode 100644 index 0000000000..99ae586c4e --- /dev/null +++ b/dom/tests/mochitest/geolocation/test_handlerSpinsEventLoop.html @@ -0,0 +1,70 @@ + + + + + Test for spinning the event loop inside position handlers + + + + + + +Mozilla Bug 911595 +

+ +
+
+
+ + diff --git a/dom/tests/mochitest/geolocation/test_hidden.html b/dom/tests/mochitest/geolocation/test_hidden.html new file mode 100644 index 0000000000..25f7f80d43 --- /dev/null +++ b/dom/tests/mochitest/geolocation/test_hidden.html @@ -0,0 +1,110 @@ + + + + +Test that geolocation position can't be gotten when document is hidden + + + + +Mozilla Bug 1653549 +

+ +
+
+
+
+ + + diff --git a/dom/tests/mochitest/geolocation/test_manyCurrentConcurrent.html b/dom/tests/mochitest/geolocation/test_manyCurrentConcurrent.html new file mode 100644 index 0000000000..b70bf09633 --- /dev/null +++ b/dom/tests/mochitest/geolocation/test_manyCurrentConcurrent.html @@ -0,0 +1,60 @@ + + + + + Test for getCurrentPosition + + + + + + +Mozilla Bug 482260 +

+ +
+
+
+ + + diff --git a/dom/tests/mochitest/geolocation/test_manyCurrentSerial.html b/dom/tests/mochitest/geolocation/test_manyCurrentSerial.html new file mode 100644 index 0000000000..9afb62e52e --- /dev/null +++ b/dom/tests/mochitest/geolocation/test_manyCurrentSerial.html @@ -0,0 +1,47 @@ + + + + + Test for getCurrentPosition + + + + + + +Mozilla Bug 482260 +

+ +
+
+
+ + + diff --git a/dom/tests/mochitest/geolocation/test_manyWatchConcurrent.html b/dom/tests/mochitest/geolocation/test_manyWatchConcurrent.html new file mode 100644 index 0000000000..8d22e442cb --- /dev/null +++ b/dom/tests/mochitest/geolocation/test_manyWatchConcurrent.html @@ -0,0 +1,60 @@ + + + + + Test for watchPosition + + + + + + +Mozilla Bug 482260 +

+ +
+
+
+ + diff --git a/dom/tests/mochitest/geolocation/test_manyWatchSerial.html b/dom/tests/mochitest/geolocation/test_manyWatchSerial.html new file mode 100644 index 0000000000..bb27651d56 --- /dev/null +++ b/dom/tests/mochitest/geolocation/test_manyWatchSerial.html @@ -0,0 +1,56 @@ + + + + + Test for watchPosition + + + + + + +Mozilla Bug 482260 +

+ +
+
+
+ + + diff --git a/dom/tests/mochitest/geolocation/test_manyWindows.html b/dom/tests/mochitest/geolocation/test_manyWindows.html new file mode 100644 index 0000000000..5e6e74c61f --- /dev/null +++ b/dom/tests/mochitest/geolocation/test_manyWindows.html @@ -0,0 +1,67 @@ + + + + + Test for many windows + + + + + + +Crash in Multiple Windows +

+ +
+
+
+ + diff --git a/dom/tests/mochitest/geolocation/test_native_provider.html b/dom/tests/mochitest/geolocation/test_native_provider.html new file mode 100644 index 0000000000..e0c26c611a --- /dev/null +++ b/dom/tests/mochitest/geolocation/test_native_provider.html @@ -0,0 +1,70 @@ + + + + + Test for getCurrentPosition with native location provider + + + + +Mozilla Bug 1596164 +Mozilla Bug 1765835 + + + diff --git a/dom/tests/mochitest/geolocation/test_not_fully_active.html b/dom/tests/mochitest/geolocation/test_not_fully_active.html new file mode 100644 index 0000000000..6fc7689c8c --- /dev/null +++ b/dom/tests/mochitest/geolocation/test_not_fully_active.html @@ -0,0 +1,93 @@ + + + + + Test for when geolocation is used on non fully active documents + + + + + + + + + diff --git a/dom/tests/mochitest/geolocation/test_optional_api_params.html b/dom/tests/mochitest/geolocation/test_optional_api_params.html new file mode 100644 index 0000000000..4aeb488a64 --- /dev/null +++ b/dom/tests/mochitest/geolocation/test_optional_api_params.html @@ -0,0 +1,126 @@ + + + + + Test for Bug 452566 + + + + + +Mozilla Bug 452566 +

+ +
+
+
+ + diff --git a/dom/tests/mochitest/geolocation/test_shutdown.html b/dom/tests/mochitest/geolocation/test_shutdown.html new file mode 100644 index 0000000000..4b9133ef9d --- /dev/null +++ b/dom/tests/mochitest/geolocation/test_shutdown.html @@ -0,0 +1,63 @@ + + + + + Test for getCurrentPosition + + + + + + +Mozilla Bug 716127 +

+ +
+
+
+ + + diff --git a/dom/tests/mochitest/geolocation/test_timeoutCurrent.html b/dom/tests/mochitest/geolocation/test_timeoutCurrent.html new file mode 100644 index 0000000000..283f26b1fe --- /dev/null +++ b/dom/tests/mochitest/geolocation/test_timeoutCurrent.html @@ -0,0 +1,56 @@ + + + + + Test for timeout option + + + + + + +Mozilla Bug 858827 +

+ +
+
+
+ + + diff --git a/dom/tests/mochitest/geolocation/test_timeoutWatch.html b/dom/tests/mochitest/geolocation/test_timeoutWatch.html new file mode 100644 index 0000000000..324886a4e7 --- /dev/null +++ b/dom/tests/mochitest/geolocation/test_timeoutWatch.html @@ -0,0 +1,65 @@ + + + + + Test for timeout option + + + + + + +Mozilla Bug 478911 +

+ +
+
+
+ + diff --git a/dom/tests/mochitest/geolocation/test_timerRestartWatch.html b/dom/tests/mochitest/geolocation/test_timerRestartWatch.html new file mode 100644 index 0000000000..fe190951b7 --- /dev/null +++ b/dom/tests/mochitest/geolocation/test_timerRestartWatch.html @@ -0,0 +1,75 @@ + + + + + Test for watchPosition + + + + + + +Mozilla Bug 526326 +

+ +
+
+
+ + diff --git a/dom/tests/mochitest/geolocation/test_windowClose.html b/dom/tests/mochitest/geolocation/test_windowClose.html new file mode 100644 index 0000000000..4ff858e8bb --- /dev/null +++ b/dom/tests/mochitest/geolocation/test_windowClose.html @@ -0,0 +1,36 @@ + + + + + Test for geolocation in chrome + + + + + + +Mozilla Bug 493615 +

+ +
+
+
+ + + diff --git a/dom/tests/mochitest/geolocation/test_worseAccuracyDoesNotBlockCallback.html b/dom/tests/mochitest/geolocation/test_worseAccuracyDoesNotBlockCallback.html new file mode 100644 index 0000000000..76d60ac97b --- /dev/null +++ b/dom/tests/mochitest/geolocation/test_worseAccuracyDoesNotBlockCallback.html @@ -0,0 +1,51 @@ + + + + + Test for getCurrentPosition + + + + + + +Mozilla Bug 494924 +

+ +
+
+
+ + diff --git a/dom/tests/mochitest/geolocation/windowTest.html b/dom/tests/mochitest/geolocation/windowTest.html new file mode 100644 index 0000000000..0366ffbe1e --- /dev/null +++ b/dom/tests/mochitest/geolocation/windowTest.html @@ -0,0 +1,44 @@ + + + + + Test for closing a window while it is doing a geolocation request + + + + + + +Mozilla Bug 493615 +

+ +
+
+
+ + + -- cgit v1.2.3