author | Sebastian Hengst <archaeopteryx@coole-files.de> |
Thu, 31 Aug 2017 18:03:19 +0200 | |
changeset 378081 | b3ac3b6c7775b1403247dd97123b476007ac3519 |
parent 378080 | e3f42eca51c1c10bc3bde2884061806d0a0631c7 |
child 378082 | 10c3e8bf658fc41744760c5c48c8610812557644 |
push id | 94412 |
push user | archaeopteryx@coole-files.de |
push date | Fri, 01 Sep 2017 08:46:09 +0000 |
treeherder | mozilla-inbound@d56571d7f1be [default view] [failures only] |
perfherder | [talos] [build metrics] [platform microbench] (compared to previous push) |
bugs | 1354633 |
milestone | 57.0a1 |
backs out | 84021c7d6b3924cfc907c75bdf3608c3e2980a04 |
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
|
deleted file mode 100644 index ee72e2dd7596ddeb7e93bcb6802818e618726dc1..0000000000000000000000000000000000000000 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>