Issue #2402 - Move WorkerPrivate::SetPrincipal() logic into a WorkerLoadInfo method. https://bugzilla.mozilla.org/show_bug.cgi?id=1333573 Make worker SetPrincipalOnMainThread fallible. https://bugzilla.mozilla.org/show_bug.cgi?id=1338523

This commit is contained in:
Brian Smith 2024-01-05 02:18:41 -06:00 committed by roytam1
commit f8a174e19f
5 changed files with 47 additions and 27 deletions

View file

@ -268,6 +268,8 @@ struct WorkerLoadInfo
~WorkerLoadInfo();
void StealFrom(WorkerLoadInfo& aOther);
nsresult SetPrincipalOnMainThread(nsIPrincipal* aPrincipal, nsILoadGroup* aLoadGroup);
};
// All of these are implemented in RuntimeService.cpp