[Xfce4-commits] <midori:master> Properly omit user script / styles on special pages

Christian Dywan noreply at xfce.org
Wed Sep 14 02:46:08 CEST 2011


Updating branch refs/heads/master
         to 602d0e13667de8828abbc075d7e1365ac7985356 (commit)
       from b574501978885c70f3cad3971b6b70fa16141d45 (commit)

commit 602d0e13667de8828abbc075d7e1365ac7985356
Author: Paweł Forysiuk <tuxator at o2.pl>
Date:   Tue Sep 6 22:44:13 2011 +0200

    Properly omit user script / styles on special pages

 extensions/addons.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/extensions/addons.c b/extensions/addons.c
index b7733c6..2916ea8 100644
--- a/extensions/addons.c
+++ b/extensions/addons.c
@@ -1460,7 +1460,7 @@ addons_context_ready_cb (WebKitWebView*   web_view,
 
     uri = katze_object_get_string (web_view, "uri");
     /* 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);
         return;


More information about the Xfce4-commits mailing list