From 0ebf5bdf043a27fd3dfb7f92e0cb63d88954c44d Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 19 Apr 2024 03:47:29 +0200 Subject: Adding upstream version 115.8.0esr. Signed-off-by: Daniel Baumann --- .../test/mochitest/.eslintrc.js | 7 + .../test/mochitest/decode_error.mp4 | Bin 0 -> 344124 bytes .../test/mochitest/file_animation_api.html | 104 +++++++++ .../test/mochitest/mochitest.ini | 29 +++ .../test/mochitest/test_animation_api.html | 78 +++++++ .../mochitest/test_bug1354633_media_error.html | 53 +++++ .../test/mochitest/test_bug1382499_touch_api.html | 70 ++++++ .../mochitest/test_bug863246_resource_uri.html | 43 ++++ .../test/mochitest/test_device_sensor_event.html | 50 +++++ .../test/mochitest/test_geolocation.html | 68 ++++++ .../test/mochitest/test_hide_gamepad_info.html | 23 ++ .../mochitest/test_hide_gamepad_info_iframe.html | 45 ++++ .../test/mochitest/test_iframe.html | 18 ++ .../test/mochitest/test_keyboard_event.html | 61 ++++++ .../test/mochitest/test_pointer_event.html | 242 +++++++++++++++++++++ .../test/mochitest/test_speech_synthesis.html | 105 +++++++++ .../test/mochitest/worker_child.js | 28 +++ .../test/mochitest/worker_grandchild.js | 10 + 18 files changed, 1034 insertions(+) create mode 100644 browser/components/resistfingerprinting/test/mochitest/.eslintrc.js create mode 100644 browser/components/resistfingerprinting/test/mochitest/decode_error.mp4 create mode 100644 browser/components/resistfingerprinting/test/mochitest/file_animation_api.html create mode 100644 browser/components/resistfingerprinting/test/mochitest/mochitest.ini create mode 100644 browser/components/resistfingerprinting/test/mochitest/test_animation_api.html create mode 100644 browser/components/resistfingerprinting/test/mochitest/test_bug1354633_media_error.html create mode 100644 browser/components/resistfingerprinting/test/mochitest/test_bug1382499_touch_api.html create mode 100644 browser/components/resistfingerprinting/test/mochitest/test_bug863246_resource_uri.html create mode 100644 browser/components/resistfingerprinting/test/mochitest/test_device_sensor_event.html create mode 100644 browser/components/resistfingerprinting/test/mochitest/test_geolocation.html create mode 100644 browser/components/resistfingerprinting/test/mochitest/test_hide_gamepad_info.html create mode 100644 browser/components/resistfingerprinting/test/mochitest/test_hide_gamepad_info_iframe.html create mode 100644 browser/components/resistfingerprinting/test/mochitest/test_iframe.html create mode 100644 browser/components/resistfingerprinting/test/mochitest/test_keyboard_event.html create mode 100644 browser/components/resistfingerprinting/test/mochitest/test_pointer_event.html create mode 100644 browser/components/resistfingerprinting/test/mochitest/test_speech_synthesis.html create mode 100644 browser/components/resistfingerprinting/test/mochitest/worker_child.js create mode 100644 browser/components/resistfingerprinting/test/mochitest/worker_grandchild.js (limited to 'browser/components/resistfingerprinting/test/mochitest') diff --git a/browser/components/resistfingerprinting/test/mochitest/.eslintrc.js b/browser/components/resistfingerprinting/test/mochitest/.eslintrc.js new file mode 100644 index 0000000000..16ee78885f --- /dev/null +++ b/browser/components/resistfingerprinting/test/mochitest/.eslintrc.js @@ -0,0 +1,7 @@ +"use strict"; + +module.exports = { + rules: { + "no-eval": "off", + }, +}; diff --git a/browser/components/resistfingerprinting/test/mochitest/decode_error.mp4 b/browser/components/resistfingerprinting/test/mochitest/decode_error.mp4 new file mode 100644 index 0000000000..ee72e2dd75 Binary files /dev/null and b/browser/components/resistfingerprinting/test/mochitest/decode_error.mp4 differ diff --git a/browser/components/resistfingerprinting/test/mochitest/file_animation_api.html b/browser/components/resistfingerprinting/test/mochitest/file_animation_api.html new file mode 100644 index 0000000000..376fddf343 --- /dev/null +++ b/browser/components/resistfingerprinting/test/mochitest/file_animation_api.html @@ -0,0 +1,104 @@ + + + + + Test for Bug 1382545 + + + +
test
+ + diff --git a/browser/components/resistfingerprinting/test/mochitest/mochitest.ini b/browser/components/resistfingerprinting/test/mochitest/mochitest.ini new file mode 100644 index 0000000000..2429f5e4dc --- /dev/null +++ b/browser/components/resistfingerprinting/test/mochitest/mochitest.ini @@ -0,0 +1,29 @@ +[DEFAULT] +skip-if = toolkit == 'android' # bug 1730213 +tags = resistfingerprinting + +support-files = + file_animation_api.html + worker_child.js + worker_grandchild.js + !/dom/tests/mochitest/geolocation/network_geolocation.sjs + +[test_animation_api.html] +[test_bug1354633_media_error.html] +support-files = decode_error.mp4 +[test_bug1382499_touch_api.html] +[test_bug863246_resource_uri.html] +[test_device_sensor_event.html] +[test_geolocation.html] +scheme = https +fail-if = xorigin +[test_hide_gamepad_info.html] +scheme = https +support-files = test_hide_gamepad_info_iframe.html +[test_iframe.html] +[test_keyboard_event.html] +[test_pointer_event.html] + support-files = + ../../../../../dom/events/test/pointerevents/mochitest_support_external.js +[test_speech_synthesis.html] +skip-if = verify diff --git a/browser/components/resistfingerprinting/test/mochitest/test_animation_api.html b/browser/components/resistfingerprinting/test/mochitest/test_animation_api.html new file mode 100644 index 0000000000..e754eeac7d --- /dev/null +++ b/browser/components/resistfingerprinting/test/mochitest/test_animation_api.html @@ -0,0 +1,78 @@ + + + + + + Test for Bug 1382545 + + + + + + + diff --git a/browser/components/resistfingerprinting/test/mochitest/test_bug1354633_media_error.html b/browser/components/resistfingerprinting/test/mochitest/test_bug1354633_media_error.html new file mode 100644 index 0000000000..1155ab1778 --- /dev/null +++ b/browser/components/resistfingerprinting/test/mochitest/test_bug1354633_media_error.html @@ -0,0 +1,53 @@ + + + + diff --git a/browser/components/resistfingerprinting/test/mochitest/test_bug1382499_touch_api.html b/browser/components/resistfingerprinting/test/mochitest/test_bug1382499_touch_api.html new file mode 100644 index 0000000000..c440d37cf2 --- /dev/null +++ b/browser/components/resistfingerprinting/test/mochitest/test_bug1382499_touch_api.html @@ -0,0 +1,70 @@ + + + + + + +
target 0
diff --git a/browser/components/resistfingerprinting/test/mochitest/test_bug863246_resource_uri.html b/browser/components/resistfingerprinting/test/mochitest/test_bug863246_resource_uri.html new file mode 100644 index 0000000000..fda1c04200 --- /dev/null +++ b/browser/components/resistfingerprinting/test/mochitest/test_bug863246_resource_uri.html @@ -0,0 +1,43 @@ + + + + diff --git a/browser/components/resistfingerprinting/test/mochitest/test_device_sensor_event.html b/browser/components/resistfingerprinting/test/mochitest/test_device_sensor_event.html new file mode 100644 index 0000000000..7ec4dce94f --- /dev/null +++ b/browser/components/resistfingerprinting/test/mochitest/test_device_sensor_event.html @@ -0,0 +1,50 @@ + + + + + + Test for Bug 1369319 + + + + + +Mozilla Bug +

+ +

+
+
diff --git a/browser/components/resistfingerprinting/test/mochitest/test_geolocation.html b/browser/components/resistfingerprinting/test/mochitest/test_geolocation.html
new file mode 100644
index 0000000000..95394ddb56
--- /dev/null
+++ b/browser/components/resistfingerprinting/test/mochitest/test_geolocation.html
@@ -0,0 +1,68 @@
+
+
+
+
+  
+  Test for Bug 1372069
+  
+  
+  
+
+
+Mozilla Bug 
+

+ +

+
+
diff --git a/browser/components/resistfingerprinting/test/mochitest/test_hide_gamepad_info.html b/browser/components/resistfingerprinting/test/mochitest/test_hide_gamepad_info.html
new file mode 100644
index 0000000000..08fdb0c852
--- /dev/null
+++ b/browser/components/resistfingerprinting/test/mochitest/test_hide_gamepad_info.html
@@ -0,0 +1,23 @@
+
+
+
+
diff --git a/browser/components/resistfingerprinting/test/mochitest/test_hide_gamepad_info_iframe.html b/browser/components/resistfingerprinting/test/mochitest/test_hide_gamepad_info_iframe.html
new file mode 100644
index 0000000000..5946e1ce6e
--- /dev/null
+++ b/browser/components/resistfingerprinting/test/mochitest/test_hide_gamepad_info_iframe.html
@@ -0,0 +1,45 @@
+
+
+
+
diff --git a/browser/components/resistfingerprinting/test/mochitest/test_iframe.html b/browser/components/resistfingerprinting/test/mochitest/test_iframe.html
new file mode 100644
index 0000000000..f01809b28c
--- /dev/null
+++ b/browser/components/resistfingerprinting/test/mochitest/test_iframe.html
@@ -0,0 +1,18 @@
+
+
+
+
+
+
diff --git a/browser/components/resistfingerprinting/test/mochitest/test_keyboard_event.html b/browser/components/resistfingerprinting/test/mochitest/test_keyboard_event.html
new file mode 100644
index 0000000000..72f2d29b90
--- /dev/null
+++ b/browser/components/resistfingerprinting/test/mochitest/test_keyboard_event.html
@@ -0,0 +1,61 @@
+
+
+
+
+  
+  Test for Bug 1222285
+  
+  
+  
+  
+
+
+
+
diff --git a/browser/components/resistfingerprinting/test/mochitest/test_pointer_event.html b/browser/components/resistfingerprinting/test/mochitest/test_pointer_event.html
new file mode 100644
index 0000000000..5b8271274e
--- /dev/null
+++ b/browser/components/resistfingerprinting/test/mochitest/test_pointer_event.html
@@ -0,0 +1,242 @@
+
+
+
+
+  
+  Test for Pointer Events spoofing
+  
+  
+  
+
+
+
+
+ + + diff --git a/browser/components/resistfingerprinting/test/mochitest/test_speech_synthesis.html b/browser/components/resistfingerprinting/test/mochitest/test_speech_synthesis.html new file mode 100644 index 0000000000..a1778a0a0d --- /dev/null +++ b/browser/components/resistfingerprinting/test/mochitest/test_speech_synthesis.html @@ -0,0 +1,105 @@ + + + + + + Test for Bug 1333641 + + + + + +Mozilla Bug +

+ +

+
+
diff --git a/browser/components/resistfingerprinting/test/mochitest/worker_child.js b/browser/components/resistfingerprinting/test/mochitest/worker_child.js
new file mode 100644
index 0000000000..fa340fc652
--- /dev/null
+++ b/browser/components/resistfingerprinting/test/mochitest/worker_child.js
@@ -0,0 +1,28 @@
+let timeStampCodes;
+let worker = new Worker("worker_grandchild.js");
+
+function listenToParent(event) {
+  self.removeEventListener("message", listenToParent);
+  timeStampCodes = event.data;
+
+  let timeStamps = [];
+  for (let timeStampCode of timeStampCodes) {
+    timeStamps.push(eval(timeStampCode));
+  }
+  // Send the timeStamps to the parent.
+  postMessage(timeStamps);
+
+  // Tell the grandchild to start.
+  worker.postMessage(timeStampCodes);
+}
+
+// The worker grandchild will send results back.
+function listenToChild(event) {
+  worker.removeEventListener("message", listenToChild);
+  // Pass the results to the parent.
+  postMessage(event.data);
+  worker.terminate();
+}
+
+worker.addEventListener("message", listenToChild);
+self.addEventListener("message", listenToParent);
diff --git a/browser/components/resistfingerprinting/test/mochitest/worker_grandchild.js b/browser/components/resistfingerprinting/test/mochitest/worker_grandchild.js
new file mode 100644
index 0000000000..ef9940d7ab
--- /dev/null
+++ b/browser/components/resistfingerprinting/test/mochitest/worker_grandchild.js
@@ -0,0 +1,10 @@
+self.addEventListener("message", function (event) {
+  let timeStampCodes = event.data;
+
+  let timeStamps = [];
+  for (let timeStampCode of timeStampCodes) {
+    timeStamps.push(eval(timeStampCode));
+  }
+  // Send the timeStamps to the parent.
+  postMessage(timeStamps);
+});
-- 
cgit v1.2.3