Pier Angelo Vendrame pushed to branch tor-browser-153.1.0esr-16.0-1 at The Tor Project / Applications / Tor Browser Commits: 0a0fe734 by Pier Angelo Vendrame at 2026-08-18T11:25:56+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: - dom/base/ScreenOrientation.cpp Changes: ===================================== dom/base/ScreenOrientation.cpp ===================================== @@ -562,6 +562,15 @@ already_AddRefed<Promise> ScreenOrientation::LockInternal( return p.forget(); } +# if defined(XP_WIN) + // The actual configurations supporting this on Windows are very few, so it + // makes sense to disable screen locking under RFP. + if (doc->ShouldResistFingerprinting(RFPTarget::ScreenOrientation)) { + p->MaybeReject(NS_ERROR_DOM_NOT_SUPPORTED_ERR); + return p.forget(); + } +# endif + RefPtr<BrowsingContext> bc = docShell->GetBrowsingContext(); bc = bc ? bc->Top() : nullptr; if (!bc) { View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser/-/commit/0a0fe734... -- View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser/-/commit/0a0fe734... 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)