Backed out changeset 84021c7d6b39 (bug 1354633)
authorSebastian Hengst <archaeopteryx@coole-files.de>
Thu, 31 Aug 2017 18:03:19 +0200
changeset 378004 b3ac3b6c7775b1403247dd97123b476007ac3519
parent 378003 e3f42eca51c1c10bc3bde2884061806d0a0631c7
child 378005 10c3e8bf658fc41744760c5c48c8610812557644
push id50144
push userarchaeopteryx@coole-files.de
push dateThu, 31 Aug 2017 16:05:16 +0000
treeherderautoland@10c3e8bf658f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs1354633
milestone57.0a1
backs out84021c7d6b3924cfc907c75bdf3608c3e2980a04
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Backed out changeset 84021c7d6b39 (bug 1354633)
browser/components/resistfingerprinting/test/mochitest/decode_error.mp4
browser/components/resistfingerprinting/test/mochitest/mochitest.ini
browser/components/resistfingerprinting/test/mochitest/test_bug1354633_media_error.html
deleted file mode 100644
index ee72e2dd7596ddeb7e93bcb6802818e618726dc1..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
GIT binary patch
literal 0
Hc$@<O00001
--- a/browser/components/resistfingerprinting/test/mochitest/mochitest.ini
+++ b/browser/components/resistfingerprinting/test/mochitest/mochitest.ini
@@ -12,10 +12,8 @@ support-files =
 [test_geolocation.html]
 scheme = https
 [test_reduce_time_precision.html]
 [test_hide_gamepad_info.html]
 support-files = test_hide_gamepad_info_iframe.html
 [test_speech_synthesis.html]
 [test_bug1382499_touch_api.html]
 [test_bug863246_resource_uri.html]
-[test_bug1354633_media_error.html]
-support-files = decode_error.mp4
deleted file mode 100644
--- a/browser/components/resistfingerprinting/test/mochitest/test_bug1354633_media_error.html
+++ /dev/null
@@ -1,53 +0,0 @@
-<!DOCTYPE html>
-<meta charset="utf-8">
-<script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
-<script>
-/* global SimpleTest SpecialPowers */
-
-let errorMessageMap = {};
-
-let testPromise = (resistFingerprinting, src, whitelist) => new Promise(resolve => {
-  let video = document.createElement("video");
-  video.src = src;
-  video.controls = "true";
-  video.onerror = () => {
-    let message = video.error.message;
-    if (!resistFingerprinting) {
-      SimpleTest.isnot(message, "", "Message should not be blank");
-      SimpleTest.info(src + ": " + message);
-      errorMessageMap[src] = message;
-    } else if (whitelist) {
-      SimpleTest.is(message, whitelist, "Error message in whitelist: " + whitelist);
-    } else {
-      SimpleTest.is(message, "", "Blank error message: " + errorMessageMap[src]);
-    }
-    resolve();
-  };
-  document.body.appendChild(video);
-});
-
-async function testBody(resistFingerprinting) {
-  await SpecialPowers.pushPrefEnv({
-    set: [
-      ["privacy.resistFingerprinting", resistFingerprinting]
-    ]
-  });
-  await testPromise(
-    resistFingerprinting,
-    "load_error.mp4",
-    "404: Not Found" // whitelist
-  );
-  await testPromise(
-    resistFingerprinting,
-    "decode_error.mp4",
-    false // whitelist
-  );
-};
-
-SimpleTest.waitForExplicitFinish();
-document.addEventListener("DOMContentLoaded", async () => {
-  await testBody(false);
-  await testBody(true);
-  SimpleTest.finish();
-});
-</script>