Skip to content

Commit

Permalink
Bug 1650607 - Do not replace / with : in File constructor. r=baku
Browse files Browse the repository at this point in the history
  • Loading branch information
evilpie committed Aug 17, 2020
1 parent c2daadf commit 9e497a2
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions dom/file/File.cpp
Expand Up @@ -135,11 +135,7 @@ already_AddRefed<File> File::Constructor(const GlobalObject& aGlobal,
const nsAString& aName,
const FilePropertyBag& aBag,
ErrorResult& aRv) {
// Normalizing the filename
nsString name(aName);
name.ReplaceChar('/', ':');

RefPtr<MultipartBlobImpl> impl = new MultipartBlobImpl(name);
RefPtr<MultipartBlobImpl> impl = new MultipartBlobImpl(aName);

nsCOMPtr<nsIGlobalObject> global = do_QueryInterface(aGlobal.GetAsSupports());
MOZ_ASSERT(global);
Expand Down

0 comments on commit 9e497a2

Please sign in to comment.