From 43a97878ce14b72f0981164f87f2e35e14151312 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 11:22:09 +0200 Subject: Adding upstream version 110.0.1. 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 | 48 ++++ .../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, 1012 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..2ebbc0382f --- /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_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 +[test_bug1382499_touch_api.html] +[test_bug863246_resource_uri.html] +[test_bug1354633_media_error.html] +support-files = decode_error.mp4 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..74f6f3083e --- /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..a53a3ad34a --- /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..45743f3dc3 --- /dev/null +++ b/browser/components/resistfingerprinting/test/mochitest/test_bug1382499_touch_api.html @@ -0,0 +1,48 @@ + + + + + + +
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..afc6bbfb40 --- /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..7dc2059dd9
--- /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..f2ef7107f8
--- /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..49c83910b0
--- /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..e8df16c665 --- /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..cd21508b2b
--- /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