diff options
author | Thierry Vignaud <tv@mandriva.org> | 2009-08-31 08:44:19 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2009-08-31 08:44:19 +0000 |
commit | 443eb3e345ff863dc775300ae54315c43e4b307d (patch) | |
tree | 7e142b40bec5d8b65f9687828d3ea589be725e41 | |
parent | 4e415e84980b52a4d3427953bc2cb60192342037 (diff) | |
download | control-center-443eb3e345ff863dc775300ae54315c43e4b307d.tar control-center-443eb3e345ff863dc775300ae54315c43e4b307d.tar.gz control-center-443eb3e345ff863dc775300ae54315c43e4b307d.tar.bz2 control-center-443eb3e345ff863dc775300ae54315c43e4b307d.tar.xz control-center-443eb3e345ff863dc775300ae54315c43e4b307d.zip |
('navigation-requested' handler) workaround latest webkit breaking mcc
(bis repetita) by calling 'navigation-requested' signal with "/"
(fixed by teuf)
-rw-r--r-- | NEWS | 2 | ||||
-rwxr-xr-x | control-center | 5 |
2 files changed, 7 insertions, 0 deletions
@@ -1,3 +1,5 @@ +- workaround latest webkit breaking mcc (bis repetita) (teuf) + Version 12.13 - 29 July 2009, Thierry Vignaud - control-center: diff --git a/control-center b/control-center index 18ce4532..a2655d7a 100755 --- a/control-center +++ b/control-center @@ -974,6 +974,11 @@ $view->signal_connect('navigation-requested' => my $url = Glib::filename_from_uri($request->get_uri); $url =~ s!^/*!!; # not a path + # workaround wekbit calling navigation-requested with "/": + if (!$url) { + return 'accept'; + } + # do not crash on eg: "reload": if (!$tool_callbacks{$url}) { warn "Warning: invalid tool name: $url\n"; |