Properly omit user script / styles on special pages
This commit is contained in:
parent
b574501978
commit
602d0e1366
1 changed files with 1 additions and 1 deletions
|
@ -1460,7 +1460,7 @@ addons_context_ready_cb (WebKitWebView* web_view,
|
||||||
|
|
||||||
uri = katze_object_get_string (web_view, "uri");
|
uri = katze_object_get_string (web_view, "uri");
|
||||||
/* Don't run scripts or styles on blank or special pages */
|
/* Don't run scripts or styles on blank or special pages */
|
||||||
if (!(uri && *uri && strncmp (uri, "about:", 6)))
|
if (!(uri && *uri) || !strncmp (uri, "about:", 6))
|
||||||
{
|
{
|
||||||
g_free (uri);
|
g_free (uri);
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue