mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-13 05:15:45 +00:00
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:
parent
e55a046d93
commit
3c40ce1478
@ -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>
|
||||
|
@ -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
|
||||
)
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user