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
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
The Tor Project
Applications
Tor Browser
Commits
9bdd279c
Verified
Commit
9bdd279c
authored
Mar 29, 2023
by
Pier Angelo Vendrame
Browse files
Options
Downloads
Patches
Plain Diff
fixup! Bug 31740: Remove some unnecessary RemoteSettings instances
Bug 41704: Immediately return on remoteSettings.pollChanges
parent
a825810a
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
services/settings/remote-settings.js
+6
-1
6 additions, 1 deletion
services/settings/remote-settings.js
services/settings/servicesSettings.manifest
+1
-1
1 addition, 1 deletion
services/settings/servicesSettings.manifest
with
7 additions
and
2 deletions
services/settings/remote-settings.js
+
6
−
1
View file @
9bdd279c
...
...
@@ -200,12 +200,17 @@ function remoteSettingsFunction() {
full
=
false
,
}
=
{})
=>
{
// When running in full mode, we ignore last polling status.
if
(
full
)
{
if
(
full
||
AppConstants
.
BASE_BROWSER_VERSION
)
{
gPrefs
.
clearUserPref
(
PREF_SETTINGS_SERVER_BACKOFF
);
gPrefs
.
clearUserPref
(
PREF_SETTINGS_LAST_UPDATE
);
gPrefs
.
clearUserPref
(
PREF_SETTINGS_LAST_ETAG
);
}
if
(
AppConstants
.
BASE_BROWSER_VERSION
)
{
// tor-browser#41704: pollChanges is always online, so do not allow it.
return
;
}
let
pollTelemetryArgs
=
{
source
:
TELEMETRY_SOURCE_POLL
,
trigger
,
...
...
This diff is collapsed.
Click to expand it.
services/settings/servicesSettings.manifest
+
1
−
1
View file @
9bdd279c
...
...
@@ -4,4 +4,4 @@ resource services-settings resource://gre/modules/services-settings/
# Schedule polling of remote settings changes
# (default 24H, max 72H)
# see syntax https://searchfox.org/mozilla-central/rev/cc280c4be94ff8cf64a27cc9b3d6831ffa49fa45/toolkit/components/timermanager/UpdateTimerManager.jsm#155
category update-timer RemoteSettingsComponents @mozilla.org/services/settings;1,getService,services-settings-poll-changes,services.settings.poll_interval,86400,259200
#
category update-timer RemoteSettingsComponents @mozilla.org/services/settings;1,getService,services-settings-poll-changes,services.settings.poll_interval,86400,259200
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
sign in
to comment