Bug 808259 - Don't kill a process because of missing permissions. r=cjones

This commit is contained in:
Gregor Wagner 2012-11-03 15:43:18 -07:00
parent f4daa9bb9d
commit eadb2e4099

View File

@ -41,6 +41,10 @@ AssertAppProcessPermission(PBrowserParent* aActor, const char* aPermission)
if (!hasPermission) {
printf_stderr("Security problem: Content process does not have `%s' permission. It will be killed.\n", aPermission);
if (!strcmp(aPermission, "indexedDB-chrome-settings-read") || !strcmp(aPermission, "indexedDB-chrome-settings-write")) {
printf_stderr("XXX FIXXME BUG 808327: We ignore indexedDB-chrome-settings-* for now.");
return true;
}
ContentParent* process = static_cast<ContentParent*>(aActor->Manager());
process->KillHard();
}