Only no adblock if main frame in provisional state
This commit is contained in:
parent
2d3aab8d8a
commit
90e11d3713
1 changed files with 2 additions and 1 deletions
|
@ -753,7 +753,8 @@ adblock_resource_request_starting_cb (WebKitWebView* web_view,
|
|||
const char *page_uri;
|
||||
|
||||
/* Never filter the main page itself */
|
||||
if (web_frame == webkit_web_view_get_main_frame (web_view))
|
||||
if (web_frame == webkit_web_view_get_main_frame (web_view)
|
||||
&& webkit_web_frame_get_load_status (web_frame) == WEBKIT_LOAD_PROVISIONAL)
|
||||
return;
|
||||
|
||||
req_uri = webkit_network_request_get_uri (request);
|
||||
|
|
Loading…
Reference in a new issue