mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-28 01:57:30 +09:00
Bug 1357002 - Part 1: Cache dom.webcomponents.customelements.enabled preference;
Tag UXP Issue #1344
This commit is contained in:
parent
d662ddd6b6
commit
979d2bfb96
3 changed files with 9 additions and 1 deletions
|
|
@ -171,7 +171,7 @@ NS_INTERFACE_MAP_END
|
||||||
/* static */ bool
|
/* static */ bool
|
||||||
CustomElementRegistry::IsCustomElementEnabled(JSContext* aCx, JSObject* aObject)
|
CustomElementRegistry::IsCustomElementEnabled(JSContext* aCx, JSObject* aObject)
|
||||||
{
|
{
|
||||||
return Preferences::GetBool("dom.webcomponents.customelements.enabled") ||
|
return nsContentUtils::IsCustomElementsEnabled() ||
|
||||||
nsContentUtils::IsWebComponentsEnabled();
|
nsContentUtils::IsWebComponentsEnabled();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -285,6 +285,7 @@ bool nsContentUtils::sIsPerformanceNavigationTimingEnabled = false;
|
||||||
bool nsContentUtils::sIsUserTimingLoggingEnabled = false;
|
bool nsContentUtils::sIsUserTimingLoggingEnabled = false;
|
||||||
bool nsContentUtils::sIsExperimentalAutocompleteEnabled = false;
|
bool nsContentUtils::sIsExperimentalAutocompleteEnabled = false;
|
||||||
bool nsContentUtils::sIsWebComponentsEnabled = false;
|
bool nsContentUtils::sIsWebComponentsEnabled = false;
|
||||||
|
bool nsContentUtils::sIsCustomElementsEnabled = false;
|
||||||
bool nsContentUtils::sEncodeDecodeURLHash = false;
|
bool nsContentUtils::sEncodeDecodeURLHash = false;
|
||||||
bool nsContentUtils::sGettersDecodeURLHash = false;
|
bool nsContentUtils::sGettersDecodeURLHash = false;
|
||||||
bool nsContentUtils::sPrivacyResistFingerprinting = false;
|
bool nsContentUtils::sPrivacyResistFingerprinting = false;
|
||||||
|
|
@ -588,6 +589,9 @@ nsContentUtils::Init()
|
||||||
Preferences::AddBoolVarCache(&sIsWebComponentsEnabled,
|
Preferences::AddBoolVarCache(&sIsWebComponentsEnabled,
|
||||||
"dom.webcomponents.enabled", false);
|
"dom.webcomponents.enabled", false);
|
||||||
|
|
||||||
|
Preferences::AddBoolVarCache(&sIsCustomElementsEnabled,
|
||||||
|
"dom.webcomponents.customelements.enabled", false);
|
||||||
|
|
||||||
Preferences::AddBoolVarCache(&sEncodeDecodeURLHash,
|
Preferences::AddBoolVarCache(&sEncodeDecodeURLHash,
|
||||||
"dom.url.encode_decode_hash", false);
|
"dom.url.encode_decode_hash", false);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2746,6 +2746,9 @@ public:
|
||||||
static bool
|
static bool
|
||||||
IsWebComponentsEnabled() { return sIsWebComponentsEnabled; }
|
IsWebComponentsEnabled() { return sIsWebComponentsEnabled; }
|
||||||
|
|
||||||
|
static bool
|
||||||
|
IsCustomElementsEnabled() { return sIsCustomElementsEnabled; }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
static bool InitializeEventTable();
|
static bool InitializeEventTable();
|
||||||
|
|
||||||
|
|
@ -2854,6 +2857,7 @@ private:
|
||||||
static bool sIsFrameTimingPrefEnabled;
|
static bool sIsFrameTimingPrefEnabled;
|
||||||
static bool sIsExperimentalAutocompleteEnabled;
|
static bool sIsExperimentalAutocompleteEnabled;
|
||||||
static bool sIsWebComponentsEnabled;
|
static bool sIsWebComponentsEnabled;
|
||||||
|
static bool sIsCustomElementsEnabled;
|
||||||
static bool sEncodeDecodeURLHash;
|
static bool sEncodeDecodeURLHash;
|
||||||
static bool sGettersDecodeURLHash;
|
static bool sGettersDecodeURLHash;
|
||||||
static bool sPrivacyResistFingerprinting;
|
static bool sPrivacyResistFingerprinting;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue