Page 1 of 1

[Fixed] TypeError: csp.blocks is not a function

Posted: Mon Dec 16, 2024 5:07 pm
by barbaz
Firefox 133.0.3
NoScript 11.5.3rc2

In my main Firefox profile, I'm getting the following errors in the Browser Console every time I load any webpage -

Code: Select all

TypeError: csp.blocks is not a function RequestGuard.js:712:35
csp.blocks is not a function RequestGuard.js:712:35
    scriptBlocked moz-extension://xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/bg/RequestGuard.js:712
    some self-hosted:137
    onResponseStarted moz-extension://xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/bg/RequestGuard.js:711
    apply self-hosted:2285
    applySafeWithoutClone resource://gre/modules/ExtensionCommon.sys.mjs:675
    fire resource://gre/modules/ExtensionChild.sys.mjs:840
    recvRunListener resource://gre/modules/ExtensionChild.sys.mjs:844
    _recv resource://gre/modules/ConduitsChild.sys.mjs:90
    receiveMessage resource://gre/modules/ConduitsChild.sys.mjs:201
    run resource://gre/modules/ConduitsChild.sys.mjs:192
    receiveMessage resource://gre/modules/ConduitsChild.sys.mjs:193
    map self-hosted:175
    receiveMessage resource://gre/modules/ConduitsChild.sys.mjs:193
It doesn't happen in a clean Firefox profile, and I don't think it was happening initially after updating NoScript to 11.5.3rc2.

Disabling all my other extensions in my main profile doesn't stop the errors, and importing my entire NoScript config into the clean profile (with NoScript Options > Export/Import) doesn't produce the errors. Trying to bisect prefs.js doesn't seem to be getting anywhere.

Any idea what might be causing this? Or any insight that might hint where to look next to figure out why this is happening?

Re: TypeError: csp.blocks is not a function

Posted: Mon Dec 16, 2024 9:05 pm
by fatboy
Win7 SP1 Fx 115.18.0esr

The situation is a bit different.
11.5.3rc2 - the same error in the main profile and in the clean profile.
Downgrade to 11.5.3rc1 - no error in both main and clean profiles.

I have removed several lines from prefs.js each.
Only extensions.webextensions.ExtensionStorageIDB.migrated.{73a6fe31-595d-460b-a920-fcc0f8843232};true has an effect.

Re: TypeError: csp.blocks is not a function

Posted: Mon Dec 16, 2024 10:15 pm
by barbaz
fatboy wrote: Mon Dec 16, 2024 9:05 pm Downgrade to 11.5.3rc1 - no error in both main and clean profiles.
Downgrading NoScript to 11.5.3rc1 fixes this for my main profile too. Thanks!

Re: TypeError: csp.blocks is not a function

Posted: Mon Dec 16, 2024 11:27 pm
by Giorgio Maone
That was mostly a cosmetic bug, anyway fixed in 12.0.901, which on the other brings a lot of dramatic future-proofing changes from the 12 MV3 branch (including the digit-only versioning): beware and brace!

Re: TypeError: csp.blocks is not a function

Posted: Mon Dec 16, 2024 11:37 pm
by barbaz
Thanks Giorgio for the fix! Not sure why that type of issue didn't reproduce in a clean profile Image Anyway 12.0.901 fixed this error in my main profile.