Bug 1499136 - Disable dom.xhr.standard_content_type_normalization for now due to webcompat issues; r=hsivonen

Disable dom.xhr.standard_content_type_normalization for now due to webcompat issues

Differential Revision: https://phabricator.services.mozilla.com/D8789

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Thomas Wisniewski 2018-10-18 02:10:25 +00:00
parent e55a046d93
commit 3c40ce1478
2 changed files with 11 additions and 7 deletions

View File

@ -8,7 +8,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=464848
<script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
</head>
<body onload="createFiles();">
<body onload="setupAndRunTests();">
<a target="_blank"
href="https://bugzilla.mozilla.org/show_bug.cgi?id=464848">Mozilla Bug 464848</a>
<p id="display">
@ -26,6 +26,14 @@ var fileTypes = ["text/plain", "image/png", "image/jpeg", "image/gif", "text/xml
var gen;
var testDOMFiles;
function setupAndRunTests() {
SpecialPowers.pushPrefEnv({set: [["dom.xhr.standard_content_type_normalization", true]]},
function() {
gen = runTests();
createFiles();
});
}
function createFiles() {
var filesToCreate = new Array();
extensions.forEach(function (extension) {
@ -259,11 +267,6 @@ function is_identical_arraybuffer(ab1, ab2) {
SimpleTest.finish();
} /* runTests */
SpecialPowers.pushPrefEnv({set: [["dom.xhr.standard_content_type_normalization", true]]},
function() {
gen = runTests();
});
</script>
</pre>
</body>

View File

@ -423,10 +423,11 @@ VARCACHE_PREF(
)
// Enable content type normalization of XHR uploads via MIME Sniffing standard
// Disabled for now in bz1499136
VARCACHE_PREF(
"dom.xhr.standard_content_type_normalization",
dom_xhr_standard_content_type_normalization,
RelaxedAtomicBool, true
RelaxedAtomicBool, false
)
//---------------------------------------------------------------------------