Ignore request if the source is a redirect and of the main frame
Fixes: https://bugs.launchpad.net/midori/+bug/979767
This commit is contained in:
parent
da5f257314
commit
3f795a62cb
1 changed files with 9 additions and 0 deletions
|
@ -833,6 +833,15 @@ adblock_resource_request_starting_cb (WebKitWebView* web_view,
|
|||
if (!(msg && !g_strcmp0 (msg->method, "GET")))
|
||||
return;
|
||||
|
||||
if (response != NULL) /* request is caused by redirect */
|
||||
{
|
||||
if (web_frame == webkit_web_view_get_main_frame (web_view))
|
||||
{
|
||||
g_hash_table_replace (navigationwhitelist, web_view, g_strdup (req_uri));
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef G_ENABLE_DEBUG
|
||||
if (debug == 2)
|
||||
g_test_timer_start ();
|
||||
|
|
Loading…
Reference in a new issue