зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1040333 - Set principal flags in WorkerPrivateParent ctor. r=khuey
This commit is contained in:
Родитель
ff85627591
Коммит
c0344960db
|
@ -3844,6 +3844,12 @@ WorkerPrivate::GetLoadInfo(JSContext* aCx, nsPIDOMWindow* aWindow,
|
|||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
|
||||
loadInfo.mXHRParamsAllowed = perm == nsIPermissionManager::ALLOW_ACTION;
|
||||
|
||||
uint16_t appStatus = loadInfo.mPrincipal->GetAppStatus();
|
||||
loadInfo.mIsInPrivilegedApp =
|
||||
(appStatus == nsIPrincipal::APP_STATUS_CERTIFIED ||
|
||||
appStatus == nsIPrincipal::APP_STATUS_PRIVILEGED);
|
||||
loadInfo.mIsInCertifiedApp = (appStatus == nsIPrincipal::APP_STATUS_CERTIFIED);
|
||||
} else {
|
||||
// Not a window
|
||||
MOZ_ASSERT(isChrome);
|
||||
|
|
Загрузка…
Ссылка в новой задаче