delay init
This commit is contained in:
parent
734680e5ac
commit
3c990a8508
|
@ -944,10 +944,16 @@ static gboolean reqcb (WebKitWebPage *web_page,
|
|||
if ((flags & EPHY_URI_TEST_ADBLOCK) || (flags & EPHY_URI_TEST_HTTPS_EVERYWHERE)) {
|
||||
char *result;
|
||||
if (initt)
|
||||
{
|
||||
SoupMessageHeaders *head = webkit_uri_request_get_http_headers(request);
|
||||
if (head)
|
||||
{
|
||||
g_thread_join(initt);
|
||||
initt = NULL;
|
||||
}
|
||||
else //no head is local data. so haven't to block
|
||||
return false;
|
||||
}
|
||||
result = ephy_uri_tester_rewrite_uri (uri_tester,
|
||||
modified_uri ? modified_uri : request_uri,
|
||||
page_uri, flags);
|
||||
|
|
Loading…
Reference in New Issue
Block a user