[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [Git][tpo/applications/tor-browser][tor-browser-150.0a1-16.0-2] fixup! BB 44772: Disable efficient randomization for canvases.



Title: GitLab

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:

Changes:

  • dom/canvas/CanvasUtils.cpp
    ... ... @@ -381,9 +381,14 @@ ImageExtraction ImageExtractionResult(dom::HTMLCanvasElement* aCanvasElement,
    381 381
         return ImageExtraction::Placeholder;
    
    382 382
       }
    
    383 383
     
    
    384
    -  if ((ownerDoc->ShouldResistFingerprinting(
    
    385
    -           RFPTarget::EfficientCanvasRandomization) ||
    
    386
    -       ownerDoc->ShouldResistFingerprinting(RFPTarget::CanvasRandomization) ||
    
    384
    +  if (ownerDoc->ShouldResistFingerprinting(
    
    385
    +          RFPTarget::EfficientCanvasRandomization) &&
    
    386
    +      GetCanvasExtractDataPermission(aPrincipal) !=
    
    387
    +          nsIPermissionManager::ALLOW_ACTION) {
    
    388
    +    return ImageExtraction::EfficientRandomize;
    
    389
    +  }
    
    390
    +
    
    391
    +  if ((ownerDoc->ShouldResistFingerprinting(RFPTarget::CanvasRandomization) ||
    
    387 392
            ownerDoc->ShouldResistFingerprinting(RFPTarget::WebGLRandomization)) &&
    
    388 393
           GetCanvasExtractDataPermission(aPrincipal) !=
    
    389 394
               nsIPermissionManager::ALLOW_ACTION) {
    

  • _______________________________________________
    tor-commits mailing list -- tor-commits@xxxxxxxxxxxxxxxxxxxx
    To unsubscribe send an email to tor-commits-leave@xxxxxxxxxxxxxxxxxxxx