Issue #1721 - Implement GlobalPrivacyControl

(and get rid of failed DoNotTrack)
This commit is contained in:
Moonchild 2021-10-07 21:38:26 +00:00 committed by roytam1
commit 50ad087351
14 changed files with 41 additions and 50 deletions

View file

@ -309,7 +309,7 @@ bool nsContentUtils::sFragmentParsingActive = false;
bool nsContentUtils::sDOMWindowDumpEnabled;
#endif
bool nsContentUtils::sDoNotTrackEnabled = false;
bool nsContentUtils::sGPCEnabled = false;
mozilla::LazyLogModule nsContentUtils::sDOMDumpLog("Dump");
@ -626,8 +626,8 @@ nsContentUtils::Init()
"browser.dom.window.dump.enabled");
#endif
Preferences::AddBoolVarCache(&sDoNotTrackEnabled,
"privacy.donottrackheader.enabled", false);
Preferences::AddBoolVarCache(&sGPCEnabled,
"privacy.GPCheader.enabled", false);
Preferences::AddBoolVarCache(&sUseActivityCursor,
"ui.use_activity_cursor", false);
@ -7337,9 +7337,9 @@ nsContentUtils::DOMWindowDumpEnabled()
}
bool
nsContentUtils::DoNotTrackEnabled()
nsContentUtils::GPCEnabled()
{
return nsContentUtils::sDoNotTrackEnabled;
return nsContentUtils::sGPCEnabled;
}
mozilla::LogModule*