diff --git a/Extension/src/background/filter/filtering-log/filtering-log.__ABSTRACT_API__.js b/Extension/src/background/filter/filtering-log/filtering-log.__ABSTRACT_API__.js index e73e6e9fb8..433aaa3792 100644 --- a/Extension/src/background/filter/filtering-log/filtering-log.__ABSTRACT_API__.js +++ b/Extension/src/background/filter/filtering-log/filtering-log.__ABSTRACT_API__.js @@ -15,7 +15,6 @@ * along with Adguard Browser Extension. If not, see . */ - /** * This is an abstract filtering log module with methods throwing errors if used. * It should be replaced by webpack during compilation diff --git a/Extension/src/background/filter/filtering-log/filtering-log.browsers.js b/Extension/src/background/filter/filtering-log/filtering-log.browsers.js index a15f1c0747..c50e53fab0 100644 --- a/Extension/src/background/filter/filtering-log/filtering-log.browsers.js +++ b/Extension/src/background/filter/filtering-log/filtering-log.browsers.js @@ -619,8 +619,8 @@ const browsersFilteringLog = (function () { /** * Remove log requests for tab - * @param tabId - * @param {boolean} ignorePreserveLog + * @param {number} tabId + * @param {boolean} [ignorePreserveLog] */ const clearEventsByTabId = function (tabId, ignorePreserveLog) { const tabInfo = tabsInfoMap[tabId]; diff --git a/Extension/src/background/filter/request-blocking.js b/Extension/src/background/filter/request-blocking.js index f53b2e9330..be443ff041 100644 --- a/Extension/src/background/filter/request-blocking.js +++ b/Extension/src/background/filter/request-blocking.js @@ -155,7 +155,7 @@ export const webRequestService = (function () { referrerUrl, requestType, tab, - requestRule + requestRule, }); return isRequestBlockedByRule(requestRule); @@ -449,9 +449,9 @@ export const webRequestService = (function () { const ruleResult = r.getAdvancedModifier().removeParameters(result); if (ruleResult !== result) { filteringLog.addRemoveParamEvent({ - tab, - frameUrl: requestUrl, - requestType, + tab, + frameUrl: requestUrl, + requestType, rule: r, timestamp: Date.now(), }); diff --git a/Extension/src/background/webrequest.js b/Extension/src/background/webrequest.js index 5b70972d58..d9cbefbafb 100644 --- a/Extension/src/background/webrequest.js +++ b/Extension/src/background/webrequest.js @@ -104,17 +104,6 @@ const webrequestInit = function () { // Reset tab button state listeners.notifyListeners(listeners.UPDATE_TAB_BUTTON_STATE, tab, true); - // Record request context for the main frame - requestContextStorage.record({ - requestId, - requestUrl, - referrerUrl: requestUrl, - originUrl, - requestType, - tab, - method, - }); - /** * Just to remember! * In the case of the "about:newtab" pages we don't receive onResponseReceived event for the main_frame @@ -517,7 +506,6 @@ const webrequestInit = function () { const requestContext = requestContextStorage.get(requestId); if (!requestContext) { // Record request for other types - //const { requestId, requestUrl, referrerUrl, originUrl, requestType, tab } = params; requestContextStorage.record({ requestId, requestUrl,