Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Unverified Commit c11c063b authored by Carmelo Messina's avatar Carmelo Messina
Browse files

Experimental user scripts support: adjusts the initial sending phase of the...

Experimental user scripts support: adjusts the initial sending phase of the script list to the rendering process (#2550)
parent c17ff9e5
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -4465,7 +4465,7 @@ new file mode 100755
+     observer.OnUserScriptLoaderDestroyed(this);
+}
+
+void UserScriptLoader::OnRenderProcessHostCreated(
+void UserScriptLoader::OnRenderProcessLaunched(
+    content::RenderProcessHost* process_host) {
+  if (initial_load_complete()) {
+    SendUpdate(process_host, shared_memory_);
@@ -4950,7 +4950,7 @@ new file mode 100755
+  UserScriptsPrefs* prefs() const { return prefs_; }
+
+ private:
+  void OnRenderProcessHostCreated(
+  void OnRenderProcessLaunched(
+      content::RenderProcessHost* process_host) override;
+
+  // Attempts to initiate a load.