Bug 827309 - AddrefAppId/ReleaseAppId just for the parent process, r=sicking

This commit is contained in:
Andrea Marchesini 2013-01-07 16:38:47 +01:00
parent 397ee6df66
commit be2680e4c7

View File

@ -2557,6 +2557,12 @@ nsFrameLoader::AttributeChanged(nsIDocument* aDocument,
void
nsFrameLoader::ResetPermissionManagerStatus()
{
// The resetting of the permissions status can run only
// in the main process.
if (XRE_GetProcessType() == GeckoProcessType_Content) {
return;
}
// Finding the new app Id:
// . first we check if the owner is an app frame
// . second, we check if the owner is a browser frame