From 5d618d3e7182c355bea97b85b14b80662d7b6bbe Mon Sep 17 00:00:00 2001 From: Christian Holler Date: Wed, 31 Jul 2024 12:14:55 +0000 Subject: [PATCH] Bug 1905284 - Mark triggering principal as not nullable in BlobURLDataRequest. r=nika Differential Revision: https://phabricator.services.mozilla.com/D215183 --- dom/file/uri/BlobURLInputStream.cpp | 2 +- dom/ipc/PContent.ipdl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dom/file/uri/BlobURLInputStream.cpp b/dom/file/uri/BlobURLInputStream.cpp index 41259baa82f1..a9553f0481e5 100644 --- a/dom/file/uri/BlobURLInputStream.cpp +++ b/dom/file/uri/BlobURLInputStream.cpp @@ -430,7 +430,7 @@ void BlobURLInputStream::RetrieveBlobData(const MutexAutoLock& aProofOfLock) { contentChild ->SendBlobURLDataRequest( - mBlobURLSpec, triggeringPrincipal, loadingPrincipal, + mBlobURLSpec, WrapNotNull(triggeringPrincipal), loadingPrincipal, loadInfo->GetOriginAttributes(), loadInfo->GetInnerWindowID(), NS_ConvertUTF16toUTF8(partKey)) ->Then( diff --git a/dom/ipc/PContent.ipdl b/dom/ipc/PContent.ipdl index 3ab168765d81..092d8238544c 100644 --- a/dom/ipc/PContent.ipdl +++ b/dom/ipc/PContent.ipdl @@ -1801,7 +1801,7 @@ parent: bool aUserActivation) returns(int32_t? requestedIndex); async BlobURLDataRequest(nsCString aBlobURL, - nullable nsIPrincipal aTriggeringPrincipal, + nsIPrincipal aTriggeringPrincipal, nullable nsIPrincipal aLoadingPrincipal, OriginAttributes aOriginAttributes, uint64_t aInnerWindowId,