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

Unverified Commit 7f81aecd authored by Carmelo Messina's avatar Carmelo Messina
Browse files

JIT site settings: fixed crash when displaying pdf

parent 7d7f9fbf
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -330,7 +330,7 @@ diff --git a/content/browser/site_info.cc b/content/browser/site_info.cc
     is_jitless =
         is_jitless || GetContentClient()->browser()->IsJitDisabledForSite(
                           browser_context, lock_url);
+    if (url_info.top_origin.has_value()) {
+    if (!url_info.is_pdf && url_info.top_origin.has_value()) {
+      GURL top_origin = url_info.top_origin->GetURL();
+      if (!GetContentClient()->browser()->IsJitDisabledForSite(
+              browser_context, top_origin)) {