Bug 1667179 - Initialize OneCRL when GeckoView starts. r=snorp,jcj
authorAgi Sferro <agi@sferro.dev>
Tue, 13 Oct 2020 16:57:32 +0000
changeset 552879 1aa2dc4b280e4ac1d5d5742e1923d5d39c04c102
parent 552878 943130e5f28ed6ee3e6b8bbf0f9c9f60fb5a7053
child 552880 7229926a45c2e43136c7f8f597a92776658edbd5
push id128561
push userasferro@mozilla.com
push dateTue, 13 Oct 2020 21:58:36 +0000
treeherderautoland@1aa2dc4b280e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssnorp, jcj
bugs1667179
milestone83.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 1667179 - Initialize OneCRL when GeckoView starts. r=snorp,jcj Differential Revision: https://phabricator.services.mozilla.com/D93250
mobile/android/chrome/geckoview/geckoview.js
--- a/mobile/android/chrome/geckoview/geckoview.js
+++ b/mobile/android/chrome/geckoview/geckoview.js
@@ -14,16 +14,18 @@ var { Services } = ChromeUtils.import("r
 
 XPCOMUtils.defineLazyModuleGetters(this, {
   E10SUtils: "resource://gre/modules/E10SUtils.jsm",
   EventDispatcher: "resource://gre/modules/Messaging.jsm",
   GeckoViewActorManager: "resource://gre/modules/GeckoViewActorManager.jsm",
   GeckoViewSettings: "resource://gre/modules/GeckoViewSettings.jsm",
   GeckoViewUtils: "resource://gre/modules/GeckoViewUtils.jsm",
   HistogramStopwatch: "resource://gre/modules/GeckoViewTelemetry.jsm",
+  RemoteSecuritySettings:
+    "resource://gre/modules/psm/RemoteSecuritySettings.jsm",
 });
 
 XPCOMUtils.defineLazyGetter(this, "WindowEventDispatcher", () =>
   EventDispatcher.for(window)
 );
 
 // This file assumes `warn` and `debug` are imported into scope
 // by the child scripts.
@@ -722,16 +724,20 @@ function startup() {
     );
 
     // Let the extension code know it can start loading things that were delayed
     // while GeckoView started up.
     InitLater(() => {
       Services.obs.notifyObservers(window, "extensions-late-startup");
     });
 
+    InitLater(() => {
+      RemoteSecuritySettings.init();
+    });
+
     // This should always go last, since the idle tasks (except for the ones with
     // timeouts) should execute in order. Note that this observer notification is
     // not guaranteed to fire, since the window could close before we get here.
 
     // This notification in particular signals the ScriptPreloader that we have
     // finished startup, so it can now stop recording script usage and start
     // updating the startup cache for faster script loading.
     InitLater(() =>