Bug 1331551 - [Pointer Event] Turn on PointerEvent preference on Windows nightly. r=smaug
authorStone Shih <sshih@mozilla.com>
Tue, 17 Jan 2017 14:16:24 +0800
changeset 345325 5ef0e255799d58592fbb7f70636cbb91c8b90c6a
parent 345324 e7b9fda58dd570add4a4c2d3cacab2a94fd74654
child 345326 acf42887c8a7cf23ff677d49742cd6610545a38b
push id87557
push userryanvm@gmail.com
push dateWed, 01 Mar 2017 17:03:02 +0000
treeherdermozilla-inbound@5ef0e255799d [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssmaug
bugs1331551
milestone54.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1331551 - [Pointer Event] Turn on PointerEvent preference on Windows nightly. r=smaug
dom/tests/mochitest/general/test_interfaces.js
modules/libpref/init/all.js
--- a/dom/tests/mochitest/general/test_interfaces.js
+++ b/dom/tests/mochitest/general/test_interfaces.js
@@ -749,17 +749,17 @@ var interfaceNamesInGlobalScope =
     "Permissions",
 // IMPORTANT: Do not change this list without review from a DOM peer!
     "PermissionStatus",
 // IMPORTANT: Do not change this list without review from a DOM peer!
     "Plugin",
 // IMPORTANT: Do not change this list without review from a DOM peer!
     "PluginArray",
 // IMPORTANT: Do not change this list without review from a DOM peer!
-    {name: "PointerEvent", nightly: true, desktop: true, disabled: true},
+    {name: "PointerEvent", nightly: true, desktop: true, windows: true},
 // IMPORTANT: Do not change this list without review from a DOM peer!
     "PopStateEvent",
 // IMPORTANT: Do not change this list without review from a DOM peer!
     "PopupBlockedEvent",
 // IMPORTANT: Do not change this list without review from a DOM peer!
     {name: "PopupBoxObject", xbl: true},
 // IMPORTANT: Do not change this list without review from a DOM peer!
     {name: "PresentationDeviceInfoManager",
--- a/modules/libpref/init/all.js
+++ b/modules/libpref/init/all.js
@@ -4911,17 +4911,21 @@ pref("dom.push.http2.retryInterval", 500
 // Autodetection is currently only supported on Windows and GTK3
 #if defined(XP_MACOSX)
 pref("dom.w3c_touch_events.enabled", 0);
 #else
 pref("dom.w3c_touch_events.enabled", 2);
 #endif
 
 // W3C draft pointer events
+#if defined(XP_WIN) && defined(NIGHTLY_BUILD)
+pref("dom.w3c_pointer_events.enabled", true);
+#else
 pref("dom.w3c_pointer_events.enabled", false);
+#endif
 
 // W3C pointer events draft
 pref("dom.w3c_pointer_events.implicit_capture", false);
 
 // W3C draft ImageCapture API
 pref("dom.imagecapture.enabled", false);
 
 // W3C MediaDevices devicechange event