Issue #2648 - Apply CSP to documents sent through multipart/x-mixed-replace

This commit is contained in:
Moonchild 2024-10-30 09:06:43 +01:00 committed by roytam1
commit 6fe326c7bb
2 changed files with 32 additions and 1 deletions

View file

@ -96,7 +96,7 @@ protected:
// main stream and sending them off the destination stream listener, than doing any real
// stream parsing/converting.
//
// WARNING: This converter requires that it's destination stream listener be able to handle
// WARNING: This converter requires that its destination stream listener be able to handle
// multiple OnStartRequest(), OnDataAvailable(), and OnStopRequest() call combinations.
// Each series represents the beginning, data production, and ending phase of each sub-
// part of the original stream.
@ -156,6 +156,8 @@ protected:
nsCOMPtr<nsISupports> mContext;
nsCString mContentType;
nsCString mContentDisposition;
nsCString mContentSecurityPolicy;
nsCString mRootContentSecurityPolicy;
uint64_t mContentLength;
char *mBuffer;