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

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



Title: GitLab

Pier Angelo Vendrame pushed to branch tor-browser-149.0a1-16.0-2 at The Tor Project / Applications / Tor Browser

Commits:

  • 881103bb
    by Pier Angelo Vendrame at 2026-03-23T16:01:55+01:00
    BB 44772: Disable efficient randomization for canvases.
    
    Always use the regular randomization algorithm, instead.
    

1 changed file:

Changes:

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

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