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

[tor-commits] [Git][tpo/applications/mullvad-browser][mullvad-browser-153.1.0esr-16.0-1] Bug 2059465 - Disable screen orientation locking on Windows with RFP on. r=timhuang



Title: GitLab

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

Commits:

  • 1bb5906e
    by Pier Angelo Vendrame at 2026-08-18T12:16:20+02:00
    Bug 2059465 - Disable screen orientation locking on Windows with RFP on. r=timhuang
    
    Differential Revision: https://phabricator.services.mozilla.com/D315311
    

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) {
    

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