Skip to content
This repository has been archived by the owner on Mar 12, 2024. It is now read-only.

Commit

Permalink
fix: workaround blob not being considered secure
Browse files Browse the repository at this point in the history
  • Loading branch information
lleyton committed Oct 28, 2023
1 parent 039ca68 commit 0155479
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/MainWindow.vala
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,8 @@ public class SkiffDesktop.MainWindow : He.ApplicationWindow {
}

construct {
var content_manager = webview.get_user_content_manager ();
content_manager.add_script (script);
// var content_manager = webview.get_user_content_manager ();
// content_manager.add_script (script);

var network_session = webview.get_network_session ();
var website_data_manager = network_session.get_website_data_manager ();
Expand All @@ -111,6 +111,10 @@ public class SkiffDesktop.MainWindow : He.ApplicationWindow {
settings.enable_back_forward_navigation_gestures = true;
settings.enable_developer_extras = true;

var context = webview.get_context ();
var security_manager = context.get_security_manager ();
security_manager.register_uri_scheme_as_secure ("blob");

webview.decide_policy.connect (on_decide_policy);
webview.create.connect (on_create);

Expand Down

0 comments on commit 0155479

Please sign in to comment.