mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-04 23:08:39 +09:00
Issue #2736 - Part 3: Use TriggeringPrincipal for image loads.
The imgLoader code consistently uses the term `loadingPrincipal` for the principal that is called the `triggeringPrincipal` everywhere else. This aligns the naming to avoid confusion in later changes.
This commit is contained in:
parent
824d0cad58
commit
166b25a42c
3 changed files with 49 additions and 48 deletions
|
|
@ -91,7 +91,7 @@ imgRequest::Init(nsIURI *aURI,
|
|||
nsIChannel *aChannel,
|
||||
imgCacheEntry *aCacheEntry,
|
||||
nsISupports* aCX,
|
||||
nsIPrincipal* aLoadingPrincipal,
|
||||
nsIPrincipal* aTriggeringPrincipal,
|
||||
int32_t aCORSMode,
|
||||
ReferrerPolicy aReferrerPolicy)
|
||||
{
|
||||
|
|
@ -119,7 +119,7 @@ imgRequest::Init(nsIURI *aURI,
|
|||
mChannel = aChannel;
|
||||
mTimedChannel = do_QueryInterface(mChannel);
|
||||
|
||||
mLoadingPrincipal = aLoadingPrincipal;
|
||||
mTriggeringPrincipal = aTriggeringPrincipal;
|
||||
mCORSMode = aCORSMode;
|
||||
mReferrerPolicy = aReferrerPolicy;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue