Skip to content

Commit

Permalink
Back out bug 785632 for breaking several things (7de3b05cd7d8)
Browse files Browse the repository at this point in the history
  • Loading branch information
joneschrisg committed Sep 26, 2012
1 parent b27a62e commit 029aa38
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions extensions/cookie/nsPermissionManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1022,6 +1022,15 @@ nsPermissionManager::GetPermissionHashKey(const nsACString& aHost,
nsRefPtr<PermissionKey> key = new PermissionKey(Substring(aHost, offset), aAppId, aIsInBrowserElement);
entry = mPermissionTable.GetEntry(key);

if (!entry) {
// This is a temporary fix to have Gaia working and allow a time frame to
// update profiles. With this hack, if a permission isn't found for an app
// the check will be done for the same host outside of any app.
// TODO: remove this with bug 785632.
key = new PermissionKey(Substring(aHost, offset), nsIScriptSecurityManager::NO_APP_ID, false);
entry = mPermissionTable.GetEntry(key);
}

if (entry) {
PermissionEntry permEntry = entry->GetPermission(aType);

Expand Down

0 comments on commit 029aa38

Please sign in to comment.