1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-09-15 15:32:28 +02:00

Fix scriptlets not being reported in logger (Firefox)

Regression from:
- efe2e0c78a

Related issue:
- https://github.com/uBlockOrigin/uBlock-issues/issues/2072
This commit is contained in:
Raymond Hill 2022-03-31 11:50:45 -04:00
parent 879e721338
commit dd5a93d477
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2
2 changed files with 2 additions and 2 deletions

View File

@ -658,7 +658,7 @@ const retrieveContentScriptParameters = async function(sender, request) {
µb.canInjectScriptletsNow === false || µb.canInjectScriptletsNow === false ||
isNetworkURI(sender.frameURL) === false isNetworkURI(sender.frameURL) === false
) { ) {
response.scriptlets = scriptletFilteringEngine.retrieve(request); scriptletFilteringEngine.injectNow(request);
} }
// https://github.com/NanoMeow/QuickReports/issues/6#issuecomment-414516623 // https://github.com/NanoMeow/QuickReports/issues/6#issuecomment-414516623

View File

@ -118,7 +118,7 @@ const contentscriptCode = (( ) => {
'"', 'hostname-slot', '", ', '"', 'hostname-slot', '", ',
'"', 'scriptlets-slot', '"', '"', 'scriptlets-slot', '"',
');', ');',
'0;', '\n0;',
]; ];
return { return {
parts: parts, parts: parts,