mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-05 23:38:38 +09:00
Issue #1721 - Implement GlobalPrivacyControl
(and get rid of failed DoNotTrack)
This commit is contained in:
parent
0315aeee73
commit
50ad087351
14 changed files with 41 additions and 50 deletions
|
|
@ -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*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue