Skip to content

Commit

Permalink
Bug 808259 - Don't kill a process because of missing permissions. r=c…
Browse files Browse the repository at this point in the history
…jones. a=blocking-basecamp
  • Loading branch information
Gregor Wagner committed Nov 3, 2012
1 parent 2ed61e2 commit 3b580ca
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions dom/ipc/AppProcessPermissions.cpp
Expand Up @@ -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();
}
Expand Down

0 comments on commit 3b580ca

Please sign in to comment.