Pier Angelo Vendrame pushed to branch tor-browser-153.1.0esr-16.0-1 at The Tor Project / Applications / Tor Browser

Commits:

1 changed file:

Changes:

  • dom/base/ScreenOrientation.cpp
    ... ... @@ -562,6 +562,15 @@ already_AddRefed<Promise> ScreenOrientation::LockInternal(
    562 562
         return p.forget();
    
    563 563
       }
    
    564 564
     
    
    565
    +#  if defined(XP_WIN)
    
    566
    +  // The actual configurations supporting this on Windows are very few, so it
    
    567
    +  // makes sense to disable screen locking under RFP.
    
    568
    +  if (doc->ShouldResistFingerprinting(RFPTarget::ScreenOrientation)) {
    
    569
    +    p->MaybeReject(NS_ERROR_DOM_NOT_SUPPORTED_ERR);
    
    570
    +    return p.forget();
    
    571
    +  }
    
    572
    +#  endif
    
    573
    +
    
    565 574
       RefPtr<BrowsingContext> bc = docShell->GetBrowsingContext();
    
    566 575
       bc = bc ? bc->Top() : nullptr;
    
    567 576
       if (!bc) {