From 9e497a23ce83ee280675fd5da208088831faba94 Mon Sep 17 00:00:00 2001 From: Tom Schuster Date: Mon, 17 Aug 2020 09:52:14 +0000 Subject: [PATCH] Bug 1650607 - Do not replace / with : in File constructor. r=baku Basically a backout of https://hg.mozilla.org/mozilla-central/rev/1857e763332c. Pending spec change: https://github.com/w3c/FileAPI/issues/41 Differential Revision: https://phabricator.services.mozilla.com/D86981 --- dom/file/File.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/dom/file/File.cpp b/dom/file/File.cpp index 68403a758a5f2..60c3e7d244d74 100644 --- a/dom/file/File.cpp +++ b/dom/file/File.cpp @@ -135,11 +135,7 @@ already_AddRefed File::Constructor(const GlobalObject& aGlobal, const nsAString& aName, const FilePropertyBag& aBag, ErrorResult& aRv) { - // Normalizing the filename - nsString name(aName); - name.ReplaceChar('/', ':'); - - RefPtr impl = new MultipartBlobImpl(name); + RefPtr impl = new MultipartBlobImpl(aName); nsCOMPtr global = do_QueryInterface(aGlobal.GetAsSupports()); MOZ_ASSERT(global);