From: Daniel Carl Date: Sat, 6 May 2017 22:39:00 +0000 (+0200) Subject: Inject hinting script only in top frame #349. X-Git-Url: https://git.owens.tech///git?a=commitdiff_plain;h=faba66545756a7c97c5a034f2bae63cc8ee82184;p=vimb.git 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. --- 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);