Pier Angelo Vendrame pushed to branch tor-browser-150.0a1-16.0-2 at The Tor Project / Applications / Tor Browser Commits: 7d0e7ae6 by Pier Angelo Vendrame at 2026-04-27T09:06:32+02:00 fixup! BB 44772: Disable efficient randomization for canvases. BB 44895: Revert "BB 44772: Disable efficient randomization for canvases." This reverts commit ced1d9a35c7d8cbb727d8c1c450b2dce62cd7289. We have investigated this issue more, and this change was not needed after all, therefore we can just revert this patch. - - - - - 1 changed file: - dom/canvas/CanvasUtils.cpp Changes: ===================================== dom/canvas/CanvasUtils.cpp ===================================== @@ -381,9 +381,14 @@ ImageExtraction ImageExtractionResult(dom::HTMLCanvasElement* aCanvasElement, return ImageExtraction::Placeholder; } - if ((ownerDoc->ShouldResistFingerprinting( - RFPTarget::EfficientCanvasRandomization) || - ownerDoc->ShouldResistFingerprinting(RFPTarget::CanvasRandomization) || + if (ownerDoc->ShouldResistFingerprinting( + RFPTarget::EfficientCanvasRandomization) && + GetCanvasExtractDataPermission(aPrincipal) != + nsIPermissionManager::ALLOW_ACTION) { + return ImageExtraction::EfficientRandomize; + } + + if ((ownerDoc->ShouldResistFingerprinting(RFPTarget::CanvasRandomization) || ownerDoc->ShouldResistFingerprinting(RFPTarget::WebGLRandomization)) && GetCanvasExtractDataPermission(aPrincipal) != nsIPermissionManager::ALLOW_ACTION) { View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser/-/commit/7d0e7ae6... -- View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser/-/commit/7d0e7ae6... You're receiving this email because of your account on gitlab.torproject.org. Manage all notifications: https://gitlab.torproject.org/-/profile/notifications | Help: https://gitlab.torproject.org/help
participants (1)
-
Pier Angelo Vendrame (@pierov)