Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Tor Browser
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
The Tor Project
Applications
Tor Browser
Commits
a6db7b91
Verified
Commit
a6db7b91
authored
1 year ago
by
ma1
Browse files
Options
Downloads
Patches
Plain Diff
fixup! Bug 32308: use direct browser sizing for letterboxing.
parent
5db35e85
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
toolkit/components/resistfingerprinting/RFPHelper.jsm
+7
-3
7 additions, 3 deletions
toolkit/components/resistfingerprinting/RFPHelper.jsm
with
7 additions
and
3 deletions
toolkit/components/resistfingerprinting/RFPHelper.jsm
+
7
−
3
View file @
a6db7b91
...
@@ -51,7 +51,7 @@ function forEachWindow(callback) {
...
@@ -51,7 +51,7 @@ function forEachWindow(callback) {
async
function
windowResizeHandler
(
aEvent
)
{
async
function
windowResizeHandler
(
aEvent
)
{
if
(
RFPHelper
.
letterboxingEnabled
)
{
if
(
RFPHelper
.
letterboxingEnabled
||
!
RFPHelper
.
rfpEnabled
)
{
return
;
return
;
}
}
if
(
Services
.
prefs
.
getIntPref
(
kPrefResizeWarnings
)
<=
0
)
{
if
(
Services
.
prefs
.
getIntPref
(
kPrefResizeWarnings
)
<=
0
)
{
...
@@ -250,7 +250,9 @@ class _RFPHelper {
...
@@ -250,7 +250,9 @@ class _RFPHelper {
}
}
_handleResistFingerprintingChanged
()
{
_handleResistFingerprintingChanged
()
{
if
(
Services
.
prefs
.
getBoolPref
(
kPrefResistFingerprinting
))
{
if
(
(
this
.
rfpEnabled
=
Services
.
prefs
.
getBoolPref
(
kPrefResistFingerprinting
))
)
{
this
.
_addRFPObservers
();
this
.
_addRFPObservers
();
Services
.
ww
.
registerNotification
(
this
);
Services
.
ww
.
registerNotification
(
this
);
forEachWindow
(
win
=>
this
.
_attachWindow
(
win
));
forEachWindow
(
win
=>
this
.
_attachWindow
(
win
));
...
@@ -397,7 +399,9 @@ class _RFPHelper {
...
@@ -397,7 +399,9 @@ class _RFPHelper {
kPrefLetterboxing
,
kPrefLetterboxing
,
false
false
);
);
forEachWindow
(
win
=>
this
.
_updateSizeForTabsInWindow
(
win
));
if
(
this
.
rfpEnabled
)
{
forEachWindow
(
win
=>
this
.
_updateSizeForTabsInWindow
(
win
));
}
}
}
// The function to parse the dimension set from the pref value. The pref value
// The function to parse the dimension set from the pref value. The pref value
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment