CanvasBlocker icon indicating copy to clipboard operation
CanvasBlocker copied to clipboard

Disable on a page doesn't effect the website

Open andreapx opened this issue 1 year ago • 11 comments

Description

I have a problem with Grafana (hosted in LAN): until yesterday the Grafana webpage was working without a problem, now it trows an error. If I completely disable CanvasBlocker addon, Grafana starts to work, but it I enable CanvasBlocker and disable it in the Grafana website, the page won't load.

Expected Behaviour

A complete shut off if I disable it in a single website

Current Behaviour

CanvasBlocker still does something when disabled on a single website

Steps to Reproduce (for bugs)

  1. create a fresh Firefox profile
  2. Install CanvasBLocker
  3. open Grafana webpage (hosted in LAN)
  4. see the meggase: "If you're seeing this Grafana has failed to load its application files "

Your Environment

  • CanvasBlocker Version used: 1.10.1
  • Firefox version incl. 32- or 64-bit: 125.0.1 (64 bit)
  • Operating System and version (desktop or mobile): Windows 10
  • Installed addons: in the new profile no other extensions are present

Your Settings

 {
	"logLevel": 1,
	"urlSettings": [
		{
			"url": "172.20.0.14",
			"blockMode": "allowEverything",
			"blockDataURLs": false
		}
	],
	"hiddenSettings": {},
	"expandStatus": {},
	"displayHiddenSettings": false,
	"whiteList": "",
	"sessionWhiteList": "",
	"blackList": "",
	"blockMode": "fake",
	"protectedCanvasPart": "readout",
	"minFakeSize": 1,
	"maxFakeSize": 0,
	"rng": "nonPersistent",
	"protectedAPIFeatures": {},
	"useCanvasCache": true,
	"ignoreFrequentColors": 0,
	"minColors": 0,
	"fakeAlphaChannel": false,
	"webGLVendor": "",
	"webGLRenderer": "",
	"webGLUnmaskedVendor": "",
	"webGLUnmaskedRenderer": "",
	"persistentRndStorage": "",
	"persistentIncognitoRndStorage": "",
	"storePersistentRnd": false,
	"persistentRndClearIntervalValue": 0,
	"persistentRndClearIntervalUnit": "days",
	"lastPersistentRndClearing": 1713514203754,
	"sharePersistentRndBetweenDomains": false,
	"askOnlyOnce": "individual",
	"askDenyMode": "block",
	"showCanvasWhileAsking": true,
	"showNotifications": true,
	"highlightPageAction": "none",
	"highlightBrowserAction": "color",
	"displayBadge": true,
	"storeNotificationData": false,
	"storeImageForInspection": false,
	"ignoreList": "",
	"ignoredAPIs": {},
	"showCallingFile": false,
	"showCompleteCallingStack": false,
	"enableStackList": false,
	"stackList": "",
	"protectAudio": true,
	"audioFakeRate": "100",
	"audioNoiseLevel": "minimal",
	"useAudioCache": true,
	"audioUseFixedIndices": true,
	"audioFixedIndices": "22",
	"historyLengthThreshold": 2,
	"protectWindow": false,
	"allowWindowNameInFrames": false,
	"protectDOMRect": true,
	"domRectIntegerFactor": 4,
	"protectSVG": true,
	"protectTextMetrics": true,
	"blockDataURLs": true,
	"protectNavigator": false,
	"navigatorDetails": {},
	"protectScreen": true,
	"screenSize": "",
	"fakeMinimalScreenSize": true,
	"displayAdvancedSettings": true,
	"displayDescriptions": false,
	"theme": "auto",
	"showPresetsOnInstallation": true,
	"dontShowOptionsOnUpdate": false,
	"disruptSessionOnUpdate": false,
	"updatePending": false,
	"isStillDefault": false,
	"storageVersion": 1
}

andreapx avatar Apr 19 '24 08:04 andreapx

@andreapx This is a known regression (https://github.com/kkapsner/CanvasBlocker/issues/705) of the latest CanvasBlocker update, it will be fixed in the next version. In the meantime you can switch to the latest beta version (self-hosted on https://canvasblocker.kkapsner.de/versions/?C=M;O=D), where the fix(es) are already included, just make sure to disable the "regular" CanvasBlocker when the beta version is enabled.

spodermenpls avatar Apr 19 '24 11:04 spodermenpls

@spodermenpls thanks for your kind reply! When will the new update be released (about)?

andreapx avatar Apr 19 '24 13:04 andreapx

@andreapx That depends mostly on the speed of the manual code review done by Mozilla, since CanvasBlocker is one of its "recommended addons" and has to jump through that hoop, before it is publicly available. But as I've said, the beta version including the fix is already there, it just needs a few clicks to install it.

spodermenpls avatar Apr 19 '24 14:04 spodermenpls

Thanks for the bug report, I was about to file a similar one while investigating my own Grafana issues :) And also, thanks for the great extension, keep up the good work !

kot0dama avatar Apr 21 '24 13:04 kot0dama

@spodermenpls I've installed the latest beta (1.10.1), but the problem persist, I've disabled Canvas blocker in a single website (Grafana), but I still have the problem. If I completely disable it, Grafana works.

andreapx avatar Apr 24 '24 07:04 andreapx

@andreapx The latest beta is named 1.11 (https://canvasblocker.kkapsner.de/versions/?C=M;O=D), 1.10.1 is the old and faulty release version. Over at #705, two people reported that the changes in the beta version fixed the Grafana issue, so I'd be surprised if it really doesn't work in your case.

spodermenpls avatar Apr 24 '24 08:04 spodermenpls

@andreapx The latest beta is named 1.11 (https://canvasblocker.kkapsner.de/versions/?C=M;O=D), 1.10.1 is the old and faulty release version. Over at #705, two people reported that the changes in the beta version fixed the Grafana issue, so I'd be surprised if it really doesn't work in your case.

@spodermenpls I'm on V 1.11.20240417 but I still have the problem... :(

andreapx avatar Apr 29 '24 15:04 andreapx

@andreapx That's unfortunate, I guess there's still some work to do for @kkapsner .

spodermenpls avatar Apr 29 '24 16:04 spodermenpls

Not sure if this helps, but I lost the whitelist when installing the beta. I did not recreate it, but during the setup screen I applied the convenience settings and the reCAPTCHA fix, and Grafana is working fine again for me.

rrrnld avatar May 04 '24 20:05 rrrnld

@heyarne What do you mean by "losing the whitelist", I guess the fact that the Beta version is installed from scratch, and doesn't contain/import any of the settings made by a user inside the normal release version?

@andreapx Does Grafana work with the Beta version, when you use the same settings as you have with the release version, in particular with the custom reCAPTCHA setting? You can use the "save" and "load" feature at the bottom of the settings panel, to export and import the settings between "release" CB and "beta" CB very quickly.

spodermenpls avatar May 05 '24 07:05 spodermenpls

The current beta fixes my Grafana problem. Whew.

Any idea what the hold-up is? 3+ months for a regression fix is kindof uncomfortably long.

smurfix avatar Aug 15 '24 08:08 smurfix

Close as a duplicate from https://github.com/kkapsner/CanvasBlocker/issues/705

kkapsner avatar Dec 22 '24 03:12 kkapsner