Map csp_report to other

Related issue:
- https://github.com/uBlockOrigin/uBlock-issues/issues/1622
This commit is contained in:
Raymond Hill 2021-06-24 08:09:18 -04:00
parent 39a51a6e43
commit ad15a5dd51
No known key found for this signature in database
GPG key ID: 25E1490B761470C2

View file

@ -1143,6 +1143,7 @@ const reloadTab = function(ev) {
'css': 'stylesheet',
'frame': 'subdocument',
'object_subrequest': 'object',
'csp_report': 'other',
};
const createdStaticFilters = {};
@ -1778,12 +1779,13 @@ const reloadTab = function(ev) {
nodes.push(select);
break;
case '{{type}}':
case '{{type}}': {
const filterType = staticFilterTypes[targetType] || targetType;
select = document.createElement('select');
select.className = 'static type';
option = document.createElement('option');
option.setAttribute('value', targetType);
option.textContent = vAPI.i18n('loggerStaticFilteringSentencePartType').replace('{{type}}', targetType);
option.setAttribute('value', filterType);
option.textContent = vAPI.i18n('loggerStaticFilteringSentencePartType').replace('{{type}}', filterType);
select.appendChild(option);
option = document.createElement('option');
option.setAttribute('value', '');
@ -1791,7 +1793,7 @@ const reloadTab = function(ev) {
select.appendChild(option);
nodes.push(select);
break;
}
case '{{url}}':
select = document.createElement('select');
select.className = 'static url';