From ef2d5465aee86115cca6343cbaeacca4ed699b12 Mon Sep 17 00:00:00 2001 From: Yoann Laissus Date: Wed, 15 Sep 2010 23:41:49 +0200 Subject: - Bookmarklet support - text/uri-list drops in the BK toolbar - Don't allow other drag than bookmarks in the BK panel (for the moment) - A little cleanup BUG: 250623 --- src/filterurljob.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/filterurljob.cpp') diff --git a/src/filterurljob.cpp b/src/filterurljob.cpp index b27df74c..c5ffa607 100644 --- a/src/filterurljob.cpp +++ b/src/filterurljob.cpp @@ -60,6 +60,12 @@ void FilterUrlJob::run() { // this should let rekonq filtering URI info and supporting // the beautiful KDE web browsing shortcuts + + if (_urlString.startsWith("javascript:")) + { + _url = KUrl(_urlString); + return; + } KUriFilterData data(_urlString); data.setCheckForExecutables(false); // if true, queries like "rekonq" or "dolphin" are considered as executables -- cgit v1.2.1 From c985ba7e684cf99b4d16f1c2ed1cb4ca126fa5ac Mon Sep 17 00:00:00 2001 From: Yoann Laissus Date: Wed, 15 Sep 2010 23:48:08 +0200 Subject: Add a comment --- src/filterurljob.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/filterurljob.cpp') diff --git a/src/filterurljob.cpp b/src/filterurljob.cpp index c5ffa607..c0632752 100644 --- a/src/filterurljob.cpp +++ b/src/filterurljob.cpp @@ -58,14 +58,15 @@ KUrl FilterUrlJob::url() void FilterUrlJob::run() { - // this should let rekonq filtering URI info and supporting - // the beautiful KDE web browsing shortcuts - + // Bookmarklets handling if (_urlString.startsWith("javascript:")) { _url = KUrl(_urlString); return; } + + // this should let rekonq filtering URI info and supporting + // the beautiful KDE web browsing shortcuts KUriFilterData data(_urlString); data.setCheckForExecutables(false); // if true, queries like "rekonq" or "dolphin" are considered as executables -- cgit v1.2.1