[Xfce4-commits] <midori:master> Move geolocation diagnostics to about:geolocation

Christian Dywan noreply at xfce.org
Wed Apr 11 21:10:01 CEST 2012


Updating branch refs/heads/master
         to 2d9f3bbfcf0ee9faaddb96cb668e56fe21b09c1e (commit)
       from 7400114eac358dfce0e79b63b99e4e6030970c76 (commit)

commit 2d9f3bbfcf0ee9faaddb96cb668e56fe21b09c1e
Author: Christian Dywan <christian at twotoasts.de>
Date:   Wed Apr 11 21:02:40 2012 +0200

    Move geolocation diagnostics to about:geolocation

 midori/midori-view.c |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diff --git a/midori/midori-view.c b/midori/midori-view.c
index 1da3089..bb22a2f 100644
--- a/midori/midori-view.c
+++ b/midori/midori-view.c
@@ -3889,6 +3889,7 @@ static const gchar* valid_about_uris[] = {
     "about:private",
     "error:nodocs",
     "http://.invalid",
+    "about:geolocation",
 };
 
 static void
@@ -4173,6 +4174,13 @@ midori_view_set_uri (MidoriView*  view,
                     _("The language and timezone are not revealed to websites."),
                     _("Flash and other Netscape plugins cannot be listed by websites."));
             }
+            else if (!strcmp (uri, "about:geolocation"))
+            {
+                GString* markup = g_string_new ("");
+                katze_assign (view->uri, g_strdup (uri));
+                list_geolocation (markup);
+                data = g_string_free (markup, FALSE);
+            }
             else if (!strcmp (uri, "about:") || !strcmp (uri, "about:version"))
             {
                 gchar* arguments = g_strjoinv (" ", sokoke_get_argv (NULL));
@@ -4187,7 +4195,6 @@ midori_view_set_uri (MidoriView*  view,
                 gchar* video_formats = list_video_formats (js_context);
                 GString* more = g_string_new ("");
                 list_netscape_plugins (more, js_context);
-                list_geolocation (more);
                 list_about_uris (more);
 
                 katze_assign (view->uri, g_strdup (uri));


More information about the Xfce4-commits mailing list