From 73a3557c9c89af13a5f61261b857145347d72c77 Mon Sep 17 00:00:00 2001 From: Mounir Lamouri Date: Tue, 25 Sep 2012 23:50:17 +0100 Subject: [PATCH] Bug 785632 - Remove the permission manager workaround for Gaia. r=jlebar --- extensions/cookie/nsPermissionManager.cpp | 9 --------- 1 file changed, 9 deletions(-) diff --git a/extensions/cookie/nsPermissionManager.cpp b/extensions/cookie/nsPermissionManager.cpp index ef6c92ab0787..baa5b9abd234 100644 --- a/extensions/cookie/nsPermissionManager.cpp +++ b/extensions/cookie/nsPermissionManager.cpp @@ -1022,15 +1022,6 @@ nsPermissionManager::GetPermissionHashKey(const nsACString& aHost, nsRefPtr 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);