From 28967561e9ac277fb37e0ec209d5050cc90f8e38 Mon Sep 17 00:00:00 2001 From: Manuel Kaufmann Date: Thu, 01 Nov 2012 16:18:32 +0000 Subject: Title of media files SL #3934 When a plugin handles the request, for example to play an .ogg file, WebKit sets the title as 'None' and '__load_status_changed_cb' is not called when status is 'WebKit.LoadStatus.FINISHED', so the title is not set as 'Untitled'. This patch checks if the title is 'None' (because of the case mentioned above) and sets it as the 'os.path.basename' of the 'WebKit.WebView.props.uri' (the name of the filename). Signed-off-by: Manuel Kaufmann Acked-by: Manuel QuiƱones --- (limited to 'webtoolbar.py') -- cgit v0.9.1