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

Ask for help about NoScript, no registration needed to post
barbaz
Senior Member
Posts: 11064
Joined: Sat Aug 03, 2013 5:45 pm

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

Post 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?
*Always* check the changelogs BEFORE updating that important software!
Mozilla/5.0 (X11; Linux x86_64; rv:133.0) Gecko/20100101 Firefox/133.0
fatboy
Senior Member
Posts: 122
Joined: Fri Jul 25, 2014 6:56 am
Contact:

Re: TypeError: csp.blocks is not a function

Post 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.
Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:109.0) Gecko/20100101 Fx/115.18.0esr NS/11.5.3rc2
barbaz
Senior Member
Posts: 11064
Joined: Sat Aug 03, 2013 5:45 pm

Re: TypeError: csp.blocks is not a function

Post 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!
*Always* check the changelogs BEFORE updating that important software!
Mozilla/5.0 (X11; Linux x86_64; rv:133.0) Gecko/20100101 Firefox/133.0
User avatar
Giorgio Maone
Site Admin
Posts: 9524
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: TypeError: csp.blocks is not a function

Post 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!
Mozilla/5.0 (X11; Linux x86_64; rv:134.0) Gecko/20100101 Firefox/134.0
barbaz
Senior Member
Posts: 11064
Joined: Sat Aug 03, 2013 5:45 pm

Re: TypeError: csp.blocks is not a function

Post 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.
*Always* check the changelogs BEFORE updating that important software!
Mozilla/5.0 (X11; Linux x86_64; rv:133.0) Gecko/20100101 Firefox/133.0
Post Reply