mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Back out bug 785632 for breaking several things (7de3b05cd7d8)
--HG-- extra : rebase_source : 316d258d39e86a760326c14f3196fff5319dc2b1
This commit is contained in:
parent
014d556657
commit
a9e25eb7d3
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user