Bug 1483656 - Part III, Enable UA Widget on Fennec and Reftest by moving UAWidgetsChild.jsm to toolkit r=jaws
authorTimothy Guan-tin Chien <timdream@gmail.com>
Wed, 03 Oct 2018 15:49:33 +0000
changeset 495173 1111ed41e9d1152b3bad74d8b06d02f82e42cc50
parent 495172 ce8a60ec0ee9fc3775cd2a2a56bd9a066a2e1bcc
child 495174 8427d9f7e96a4af62562b697055f294b1e0ab2cb
push id9984
push userffxbld-merge
push dateMon, 15 Oct 2018 21:07:35 +0000
treeherdermozilla-beta@183d27ea8570 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjaws
bugs1483656
milestone64.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 1483656 - Part III, Enable UA Widget on Fennec and Reftest by moving UAWidgetsChild.jsm to toolkit r=jaws This moves UAWidgetsChild.jsm from browser to toolkit so that Fennec and Reftest could pick it up. Differential Revision: https://phabricator.services.mozilla.com/D5085
browser/actors/UAWidgetsChild.jsm
browser/actors/moz.build
browser/components/nsBrowserGlue.js
modules/libpref/init/all.js
toolkit/actors/UAWidgetsChild.jsm
toolkit/actors/moz.build
toolkit/modules/ActorManagerParent.jsm
--- a/browser/actors/moz.build
+++ b/browser/actors/moz.build
@@ -38,12 +38,11 @@ FINAL_TARGET_FILES.actors += [
     'LightWeightThemeInstallChild.jsm',
     'LinkHandlerChild.jsm',
     'NetErrorChild.jsm',
     'OfflineAppsChild.jsm',
     'PageInfoChild.jsm',
     'PageMetadataChild.jsm',
     'PageStyleChild.jsm',
     'PluginChild.jsm',
-    'UAWidgetsChild.jsm',
     'URIFixupChild.jsm',
     'WebRTCChild.jsm',
 ]
--- a/browser/components/nsBrowserGlue.js
+++ b/browser/components/nsBrowserGlue.js
@@ -255,28 +255,16 @@ let ACTORS = {
       module: "resource://normandy-content/ShieldFrameChild.jsm",
       events: {
         "ShieldPageEvent": {wantUntrusted: true},
       },
       matches: ["about:studies"],
     },
   },
 
-  UAWidgets: {
-    child: {
-      module: "resource:///actors/UAWidgetsChild.jsm",
-      group: "browsers",
-      events: {
-        "UAWidgetBindToTree": {},
-        "UAWidgetAttributeChanged": {},
-        "UAWidgetUnbindFromTree": {},
-      },
-    },
-  },
-
   UITour: {
     child: {
       module: "resource:///modules/UITourChild.jsm",
       events: {
         "mozUITour": {wantUntrusted: true},
       },
       permissions: ["uitour"],
     },
--- a/modules/libpref/init/all.js
+++ b/modules/libpref/init/all.js
@@ -1390,17 +1390,17 @@ pref("privacy.trackingprotection.lower_n
 pref("privacy.trackingprotection.lower_network_priority", false);
 #endif
 
 pref("dom.event.contextmenu.enabled",       true);
 pref("dom.event.clipboardevents.enabled",   true);
 pref("dom.event.highrestimestamp.enabled",  true);
 pref("dom.event.coalesce_mouse_move",       true);
 
-#if defined(NIGHTLY_BUILD) && !defined(ANDROID)
+#if defined(NIGHTLY_BUILD)
 pref("dom.ua_widget.enabled", true);
 #else
 pref("dom.ua_widget.enabled", false);
 #endif
 
 pref("dom.webcomponents.shadowdom.enabled", true);
 pref("dom.webcomponents.customelements.enabled", true);
 
rename from browser/actors/UAWidgetsChild.jsm
rename to toolkit/actors/UAWidgetsChild.jsm
--- a/toolkit/actors/moz.build
+++ b/toolkit/actors/moz.build
@@ -20,13 +20,14 @@ FINAL_TARGET_FILES.actors += [
     'FindBarChild.jsm',
     'FinderChild.jsm',
     'PopupBlockingChild.jsm',
     'PrintingChild.jsm',
     'PurgeSessionHistoryChild.jsm',
     'SelectChild.jsm',
     'SelectionSourceChild.jsm',
     'ThumbnailsChild.jsm',
+    'UAWidgetsChild.jsm',
     'UnselectedTabHoverChild.jsm',
     'WebChannelChild.jsm',
     'WebNavigationChild.jsm',
     'ZoomChild.jsm',
 ]
--- a/toolkit/modules/ActorManagerParent.jsm
+++ b/toolkit/modules/ActorManagerParent.jsm
@@ -257,16 +257,27 @@ let ACTORS = {
       messages: [
         "Browser:Thumbnail:Request",
         "Browser:Thumbnail:CheckState",
         "Browser:Thumbnail:GetOriginalURL",
       ],
     },
   },
 
+  UAWidgets: {
+    child: {
+      module: "resource://gre/actors/UAWidgetsChild.jsm",
+      events: {
+        "UAWidgetBindToTree": {},
+        "UAWidgetAttributeChanged": {},
+        "UAWidgetUnbindFromTree": {},
+      },
+    },
+  },
+
   UnselectedTabHover: {
     child: {
       module: "resource://gre/actors/UnselectedTabHoverChild.jsm",
       events: {
         "UnselectedTabHover:Enable": {},
         "UnselectedTabHover:Disable": {},
       },
       messages: [