From 2170051c4ac56d606e117964ae3c66945a987311 Mon Sep 17 00:00:00 2001 From: Raymond Hill Date: Tue, 7 Nov 2023 17:29:25 -0500 Subject: [PATCH] Fix documentation in comment following recent changes --- src/js/static-net-filtering.js | 29 ++++++++++++++++++----------- 1 file changed, 18 insertions(+), 11 deletions(-) diff --git a/src/js/static-net-filtering.js b/src/js/static-net-filtering.js index 26248d387..11ec8c153 100644 --- a/src/js/static-net-filtering.js +++ b/src/js/static-net-filtering.js @@ -57,17 +57,24 @@ const keyvalStore = typeof vAPI !== 'undefined' /******************************************************************************/ -// fedcba9876543210 -// || | || | -// || | || | -// || | || | -// || | || | -// || | || +---- bit 0- 1: block=0, allow=1, block important=2 -// || | |+------ bit 2: modifier -// || | +------- bit 3- 4: party [0-3] -// || +--------- bit 5- 9: type [0-31] -// |+-------------- bit 10: headers-based filters -// +--------------- bit 11-15: unused +// 0fedcba9876543210 +// ||||||| | || | +// ||||||| | || | +// ||||||| | || | +// ||||||| | || | +// ||||||| | || +---- bit 0- 1: block=0, allow=1, block important=2 +// ||||||| | |+------ bit 2: unused +// ||||||| | +------- bit 3- 4: party [0-3] +// ||||||| +--------- bit 5- 9: type [0-31] +// ||||||+-------------- bit 10: headers-based filters +// |||||+--------------- bit 11: redirect filters +// ||||+---------------- bit 12: removeparam filters +// |||+----------------- bit 13: csp filters +// ||+------------------ bit 14: permissions filters +// |+------------------- bit 15: urltransform filters +// +-------------------- bit 16: replace filters +// TODO: bit 11-16 can be combined into 3-bit value, as these are not to be +// combined. const RealmBitsMask = 0b00000000111; const ActionBitsMask = 0b00000000011;