Automatically add extra capabilities to policyTypesMap.
This commit is contained in:
parent
8e6ef7aefd
commit
74213aa8ee
|
@ -41,7 +41,13 @@ var RequestGuard = (() => {
|
|||
other: "",
|
||||
};
|
||||
|
||||
Object.assign(policyTypesMap, {"webgl": "webgl"}); // fake types
|
||||
// add "fake" mappings for reporting capabilities handled outside of RequestGuard
|
||||
for (const cap of Permissions.ALL) {
|
||||
if (!(cap in policyTypesMap)) {
|
||||
policyTypesMap[cap] = cap;
|
||||
}
|
||||
}
|
||||
|
||||
const TabStatus = {
|
||||
map: new Map(),
|
||||
_originsCache: new Map(),
|
||||
|
|
Loading…
Reference in New Issue