forked from mirrors/gecko-dev
Bug 1797846 - Remove network.url.strip-data-url-whitespace pref r=valentin,sunil,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D209433
This commit is contained in:
parent
7ba63347da
commit
ffe0356dc3
2 changed files with 1 additions and 9 deletions
|
|
@ -13042,12 +13042,6 @@
|
|||
value: 32 * 1024 * 1024
|
||||
mirror: always
|
||||
|
||||
# Should be removed if no breakage occurs. See bug 1797846
|
||||
- name: network.url.strip-data-url-whitespace
|
||||
type: RelaxedAtomicBool
|
||||
value: false
|
||||
mirror: always
|
||||
|
||||
# If true, will be more strict with status code parsing
|
||||
- name: network.url.strict_data_url_base64_placement
|
||||
type: RelaxedAtomicBool
|
||||
|
|
|
|||
|
|
@ -50,9 +50,7 @@ nsDataHandler::GetScheme(nsACString& result) {
|
|||
// Strip whitespace unless this is text, where whitespace is important
|
||||
// Don't strip escaped whitespace though (bug 391951)
|
||||
nsresult rv;
|
||||
if (base64 || (StaticPrefs::network_url_strip_data_url_whitespace() &&
|
||||
strncmp(contentType.get(), "text/", 5) != 0 &&
|
||||
contentType.Find("xml") == kNotFound)) {
|
||||
if (base64) {
|
||||
// it's ascii encoded binary, don't let any spaces in
|
||||
rv = NS_MutateURI(new mozilla::net::nsSimpleURI::Mutator())
|
||||
.Apply(&nsISimpleURIMutator::SetSpecAndFilterWhitespace, aSpec,
|
||||
|
|
|
|||
Loading…
Reference in a new issue