Bug 1244402 - Allow touch events on Windows to ride the trains. r?jimm
MozReview-Commit-ID: 1CjDhVdyYVB
--- a/modules/libpref/init/all.js
+++ b/modules/libpref/init/all.js
@@ -4804,18 +4804,16 @@ pref("dom.mozNetworkStats.enabled", fals
pref("dom.mozSettings.enabled", false);
pref("dom.mozPermissionSettings.enabled", false);
// W3C touch events
// 0 - disabled, 1 - enabled, 2 - autodetect
// Autodetection is currently only supported on Windows and GTK3
#if defined(XP_MACOSX)
pref("dom.w3c_touch_events.enabled", 0);
-#elif defined(XP_WIN) && !defined(NIGHTLY_BUILD)
-pref("dom.w3c_touch_events.enabled", 0);
#else
pref("dom.w3c_touch_events.enabled", 2);
#endif
// W3C draft pointer events
pref("dom.w3c_pointer_events.enabled", false);
// W3C pointer events draft
@@ -4830,21 +4828,17 @@ pref("media.ondevicechange.enabled", fal
// W3C MediaDevices devicechange fake event
pref("media.ondevicechange.fakeDeviceChangeEvent.enabled", false);
// W3C touch-action css property (related to touch and pointer events)
// Note that we turn this on even on platforms/configurations where touch
// events are not supported (e.g. OS X, or Windows with e10s disabled). For
// those platforms we don't handle touch events anyway so it's conceptually
// a no-op.
-#ifdef NIGHTLY_BUILD
pref("layout.css.touch_action.enabled", true);
-#else
-pref("layout.css.touch_action.enabled", false);
-#endif
// Enables some assertions in nsStyleContext that are too expensive
// for general use, but might be useful to enable for specific tests.
// This only has an effect in DEBUG-builds.
pref("layout.css.expensive-style-struct-assertions.enabled", false);
// enable JS dump() function.
pref("browser.dom.window.dump.enabled", false);
@@ -5205,25 +5199,21 @@ pref("browser.safebrowsing.id", "Firefox
#endif
// Turn off Spatial navigation by default.
pref("snav.enabled", false);
// New implementation to unify touch-caret and selection-carets.
pref("layout.accessiblecaret.enabled", false);
-// On Nightly, enable the accessible caret on platforms/devices
+// Enable the accessible caret on platforms/devices
// that we detect have touch support. Note that this pref is an
// additional way to enable the accessible carets, rather than
// overriding the layout.accessiblecaret.enabled pref.
-#ifdef NIGHTLY_BUILD
pref("layout.accessiblecaret.enabled_on_touch", true);
-#else
-pref("layout.accessiblecaret.enabled_on_touch", false);
-#endif
// CSS attributes of the AccessibleCaret in CSS pixels.
pref("layout.accessiblecaret.width", "34.0");
pref("layout.accessiblecaret.height", "36.0");
pref("layout.accessiblecaret.margin-left", "-18.5");
pref("layout.accessiblecaret.bar.width", "2.0");
// Show no selection bars at the two ends of the selection highlight.