зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1507895 - Part V, Remove dom.ua_widget.enabled pref r=smaug
With all the dependency removed this pref can be safely removed. Depends on D17574 Differential Revision: https://phabricator.services.mozilla.com/D17575 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
38f8d61ad5
Коммит
c013639646
|
@ -1,5 +1,4 @@
|
|||
[DEFAULT]
|
||||
prefs = dom.ua_widget.enabled=true
|
||||
support-files =
|
||||
blocklist_proxy.js
|
||||
blockNoPlugins.xml
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
[DEFAULT]
|
||||
tags = devtools
|
||||
subsuite = devtools
|
||||
prefs = dom.ua_widget.enabled=false
|
||||
support-files =
|
||||
doc_markup_anonymous.html
|
||||
doc_markup_anonymous_xul.xul
|
||||
|
|
|
@ -76,7 +76,6 @@ add_task(async function() {
|
|||
});
|
||||
|
||||
async function setup({ showUserAgentShadowRoots }) {
|
||||
await pushPref("dom.ua_widget.enabled", true);
|
||||
await pushPref("devtools.inspector.showUserAgentShadowRoots", showUserAgentShadowRoots);
|
||||
|
||||
const { inspector } = await openInspectorForURL(TEST_URL);
|
||||
|
|
|
@ -68,7 +68,6 @@ add_task(async function testElementPicker() {
|
|||
});
|
||||
|
||||
async function setup({ showAllAnonymousContent }) {
|
||||
await pushPref("dom.ua_widget.enabled", true);
|
||||
await pushPref("devtools.inspector.showUserAgentShadowRoots", true);
|
||||
await pushPref("devtools.inspector.showAllAnonymousContent", showAllAnonymousContent);
|
||||
|
||||
|
|
|
@ -141,7 +141,6 @@ add_task(async function() {
|
|||
add_task(async function() {
|
||||
info("Test UA widgets when showUserAgentShadowRoots is true");
|
||||
await SpecialPowers.pushPrefEnv({"set": [
|
||||
["dom.ua_widget.enabled", true],
|
||||
["devtools.inspector.showUserAgentShadowRoots", true],
|
||||
]});
|
||||
|
||||
|
@ -161,7 +160,6 @@ add_task(async function() {
|
|||
add_task(async function() {
|
||||
info("Test UA widgets when showUserAgentShadowRoots is false");
|
||||
await SpecialPowers.pushPrefEnv({"set": [
|
||||
["dom.ua_widget.enabled", true],
|
||||
["devtools.inspector.showUserAgentShadowRoots", false],
|
||||
]});
|
||||
|
||||
|
|
|
@ -310,7 +310,6 @@ bool nsContentUtils::sIsPerformanceTimingEnabled = false;
|
|||
bool nsContentUtils::sIsResourceTimingEnabled = false;
|
||||
bool nsContentUtils::sIsPerformanceNavigationTimingEnabled = false;
|
||||
bool nsContentUtils::sIsFormAutofillAutocompleteEnabled = false;
|
||||
bool nsContentUtils::sIsUAWidgetEnabled = false;
|
||||
bool nsContentUtils::sSendPerformanceTimingNotifications = false;
|
||||
bool nsContentUtils::sUseActivityCursor = false;
|
||||
bool nsContentUtils::sAnimationsAPICoreEnabled = false;
|
||||
|
@ -658,9 +657,6 @@ nsresult nsContentUtils::Init() {
|
|||
Preferences::AddBoolVarCache(&sIsFormAutofillAutocompleteEnabled,
|
||||
"dom.forms.autocomplete.formautofill", false);
|
||||
|
||||
Preferences::AddBoolVarCache(&sIsUAWidgetEnabled, "dom.ua_widget.enabled",
|
||||
false);
|
||||
|
||||
Preferences::AddIntVarCache(&sPrivacyMaxInnerWidth,
|
||||
"privacy.window.maxInnerWidth", 1000);
|
||||
|
||||
|
|
|
@ -3152,17 +3152,6 @@ class nsContentUtils {
|
|||
JSContext* aCx, const mozilla::dom::Sequence<JSObject*>& aTransfer,
|
||||
JS::MutableHandle<JS::Value> aValue);
|
||||
|
||||
/**
|
||||
* Returns whether or not UA Widget is enabled, controlled by pref
|
||||
* dom.ua_widget.enabled.
|
||||
*
|
||||
* When enabled, UA Widget will replace legacy XBL when rendering
|
||||
* JS-implemented web content widgets (videocontrols/datetimebox/etc.)
|
||||
*
|
||||
* It is really enabled only if Shadow DOM is also enabled.
|
||||
*/
|
||||
static bool IsUAWidgetEnabled() { return sIsUAWidgetEnabled; }
|
||||
|
||||
/**
|
||||
* Returns true if reserved key events should be prevented from being sent
|
||||
* to their target. Instead, the key event should be handled by chrome only.
|
||||
|
@ -3446,7 +3435,6 @@ class nsContentUtils {
|
|||
static bool sIsUpgradableDisplayContentPrefEnabled;
|
||||
static bool sIsFrameTimingPrefEnabled;
|
||||
static bool sIsFormAutofillAutocompleteEnabled;
|
||||
static bool sIsUAWidgetEnabled;
|
||||
static bool sSendPerformanceTimingNotifications;
|
||||
static bool sUseActivityCursor;
|
||||
static bool sAnimationsAPICoreEnabled;
|
||||
|
|
|
@ -1459,8 +1459,6 @@ pref("dom.event.clipboardevents.enabled", true);
|
|||
pref("dom.event.highrestimestamp.enabled", true);
|
||||
pref("dom.event.coalesce_mouse_move", true);
|
||||
|
||||
pref("dom.ua_widget.enabled", true);
|
||||
|
||||
pref("javascript.enabled", true);
|
||||
pref("javascript.options.strict", false);
|
||||
#ifdef DEBUG
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
[DEFAULT]
|
||||
prefs =
|
||||
dom.ua_widget.enabled=true
|
||||
skip-if = os == 'android'
|
||||
support-files =
|
||||
tree_shared.js
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
[DEFAULT]
|
||||
prefs =
|
||||
dom.ua_widget.enabled=true
|
||||
support-files =
|
||||
audio.wav
|
||||
audio.ogg
|
||||
|
|
Загрузка…
Ссылка в новой задаче