Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Memory leaks occur when using the extension on certain whitelist sites. #737

Open
2 tasks done
Iz-zzzzz opened this issue Dec 27, 2024 · 0 comments
Open
2 tasks done

Comments

@Iz-zzzzz
Copy link

Iz-zzzzz commented Dec 27, 2024

CanvasBlocker extension causes memory leaks on some sites, such as youtube.com, mail.google.com, and translate.google.com, etc.

Description (How to reproduce on youtube.com)

  1. Install new fresh Firefox profile
  2. Set Enhanced Tracking Protection to Strict (Enable FPP)
  3. Install latest version of CanvasBlocker from CanvasBlocker Beta
  4. Add youtube.com,google.com to CanvasBlocker's whilelist
  5. Go to video page on youtube.com -> clear site data/click next video/backward/refresh/hard refresh/terminate web process until noticing page is freeze.
  6. Go to about:processes to see memory using more than usual (up to 5 GB)

Note

  • Possibility to get memory leak on Windows is about 30%, and 80% on Android according to my tests.

Expected Behaviour

CPU and Memory usage should be normal.

Current Behaviour

Firefox 133.0.3 64-bit Windows 11

image
image

2024-12-28.00-42-55.mp4

Firefox 134 Beta on Android 13

Screen_Recording_20241227_033618.mp4

Possible Solution

  • Restart related web processes
  • Completely disable CanvasBlocker

Context

I have been testing in various environments to identify what exactly causes the issue(which part of FPP or CanvasBlocker), but I still cannot figure it out. I think I need help from others.

Your Environment

  • CanvasBlocker Version used: Version 1.11.20241222
  • Firefox 133.0.3 64-bit Windows 10, 11(Intel i5 Gen9) and Firefox 134 Beta on Android 12, 13, and 14
  • Installed addons: CanvasBlocker beta
  • ETP strict mode.
  • Browser Privacy > Website Privacy Preferences
    • Tell websites not to sell or share my data
    • Send websites a “Do Not Track” request

Your Settings

Stock setting but add youtube.com,google.com to CanvasBlocker's whilelist.

{
	"logLevel": 1,
	"urlSettings": [],
	"hiddenSettings": {},
	"expandStatus": {},
	"displayHiddenSettings": false,
	"whiteList": "youtube.com,google.com",
	"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": 1735298609352,
	"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": "25",
	"historyLengthThreshold": 2,
	"protectWindow": false,
	"allowWindowNameInFrames": false,
	"protectDOMRect": true,
	"domRectIntegerFactor": 4,
	"protectSVG": true,
	"protectTextMetrics": true,
	"blockDataURLs": false,
	"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
}
@Iz-zzzzz Iz-zzzzz changed the title [HELP] Memory leaks while using CanvasBlocker on some sites. Memory leaks occur when using the extension on certain sites. Jan 9, 2025
@Iz-zzzzz Iz-zzzzz changed the title Memory leaks occur when using the extension on certain sites. Memory leaks occur when using the extension on certain whitelist sites. Jan 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant