mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-06 07:48:38 +09:00
Bug 1329032 - Extend loadURIWithOptions by a triggeringPrincipal (without an hard e10s)
This commit is contained in:
parent
102550a483
commit
dee826b7ee
10 changed files with 56 additions and 22 deletions
|
|
@ -9776,9 +9776,13 @@ nsContentUtils::AttemptLargeAllocationLoad(nsIHttpChannel* aChannel)
|
|||
rv = aChannel->GetReferrer(getter_AddRefs(referrer));
|
||||
NS_ENSURE_SUCCESS(rv, false);
|
||||
|
||||
nsCOMPtr<nsILoadInfo> loadInfo = aChannel->GetLoadInfo();
|
||||
nsCOMPtr<nsIPrincipal> triggeringPrincipal = loadInfo->TriggeringPrincipal();
|
||||
|
||||
// Actually perform the cross process load
|
||||
bool reloadSucceeded = false;
|
||||
rv = wbc3->ReloadInFreshProcess(docShell, uri, referrer, &reloadSucceeded);
|
||||
rv = wbc3->ReloadInFreshProcess(docShell, uri, referrer,
|
||||
triggeringPrincipal, &reloadSucceeded);
|
||||
NS_ENSURE_SUCCESS(rv, false);
|
||||
|
||||
return reloadSucceeded;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue