From faba66545756a7c97c5a034f2bae63cc8ee82184 Mon Sep 17 00:00:00 2001 From: Daniel Carl Date: Sun, 7 May 2017 00:39:00 +0200 Subject: [PATCH] Inject hinting script only in top frame #349. We can not address sub frame scripts at the time and the hinting script is able to process also frames, when this is allowed according to the same origin policy. So there is no need to inject the script into multiple frames. --- src/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.c b/src/main.c index cace512..89988bf 100644 --- a/src/main.c +++ b/src/main.c @@ -1682,7 +1682,7 @@ static WebKitWebView *webview_new(Client *c, WebKitWebView *webview) /* Inject the global hints script. */ script = webkit_user_script_new(HINTS, - WEBKIT_USER_CONTENT_INJECT_ALL_FRAMES, + WEBKIT_USER_CONTENT_INJECT_TOP_FRAME, WEBKIT_USER_SCRIPT_INJECT_AT_DOCUMENT_END, NULL, NULL); webkit_user_content_manager_add_script(ucm, script); webkit_user_script_unref(script); -- 2.20.1