1
mirror of https://invent.kde.org/network/falkon.git synced 2024-11-11 17:42:10 +01:00
Commit Graph

69 Commits

Author SHA1 Message Date
David Rosca
7c4345775c WebView: Add Ctrl+M shortcut to toggle mute 2016-10-25 19:18:14 +02:00
David Rosca
b9a7c773f1 WebView: Fix handling of key events
Unhandled key events are sent to parent of QWebEngineView.
Hack with event filter on RenderWidgetHostViewQtDelegateWidget no longer
works for key events, so we need to install event filter on view
parent and handle key events there.
Downside is, that we can now only handle events that are not handled by
page itself.
2016-10-25 19:16:10 +02:00
David Rosca
1eec6ac87a Use ViewSource page action with Qt 5.8 2016-10-24 21:24:33 +02:00
David Rosca
38bf9d2b4a Use QWebEngineView::icon() instead of custom icon downloading 2016-10-24 21:19:27 +02:00
David Rosca
cf3fa88942 Require Qt 5.7 2016-10-24 20:11:50 +02:00
David Rosca
ce9d3983a0 Bring back Save Page action
Only with Qt >= 5.7

Closes #2083
2016-09-18 12:09:38 +02:00
Vlad
81aab60023 Add copy image option in context menu (#2058) 2016-08-16 12:57:11 +02:00
David Rosca
c004d52db1 Run js code in ApplicationWorld with QtWebEngine 5.7 2016-05-10 10:47:35 +02:00
David Rosca
838ec366de Fix parenting WebPage when created from WebPage::createWindow
Closes #1949
2016-04-17 09:08:03 +02:00
David Rosca
90e72aa88f Small cleanup in WebView 2016-04-06 17:24:15 +02:00
David Rosca
d8682ff51d WebHitTestResult: Map position to page viewport coords
Closes #1927
2016-04-06 17:22:44 +02:00
David Rosca
71b6d922be WebView: Handle create WebBrowserWindow
Instead of custom handling of shift + mouse click, use
QWebEngineView::createWindow. It should fix the issue with
JavaScript catching the mouse click performing some action
and QupZilla trying to open new window.

Closes #1898
2016-03-30 09:10:57 +02:00
David Rosca
3d5f45bfc5 Don't use custom script for toggle play/pause and mute 2016-02-28 18:25:30 +01:00
Kevin Kofler
a570beb667 Do not call loadRequest on an invalid URL
I expected that error to be handled gracefully. It's actually not, it
crashes the whole browser, and saves a state that will make it crash
again on startup. So just ignore invalid URLs if searchFromAddressBar is
set to false.
2016-01-14 05:03:13 +01:00
Kevin Kofler
fcae1fd3f5 Make automatic searching from the address bar optional
Some users (like me) really don't like it when their typos get sent to a
search engine without asking.
2016-01-14 03:29:47 +01:00
David Rosca
caefbcfa02 Another fix for older GCC
Closes #1790
2015-12-08 11:55:00 +01:00
David Rosca
626bf8f4bb Fix searching for strings with special whitespaces from locationbar
This fixes eg. search terms with double byte space.

Closes #1622
2015-11-06 23:54:46 +01:00
David Rosca
27f0f9afac WebView: Don't try to load invalid one-word urls
And also save the host lookup in case of invalid url.
2015-11-06 23:46:22 +01:00
David Rosca
638c22486c WebView: Use correct check if the host lookup succeeds 2015-11-06 13:17:07 +01:00
David Rosca
bcf50f9343 WebView: Better HANDLE_EVENT macro 2015-11-06 12:47:27 +01:00
David Rosca
a6a6b33b09 WebView: Another take on forwarding events
Closes #1747
2015-11-06 00:06:03 +01:00
David Rosca
58d895e272 WebView: Always update site icon, even when icon is null 2015-10-23 12:26:27 +02:00
David Rosca
e052bda768 Remove remaining hunspell code 2015-10-23 12:26:27 +02:00
David Rosca
8d312ad132 WebView: Accept drops with urls and open them
First dropped url is opened with current webview, the others are
opened in new tabs
2015-10-23 12:26:27 +02:00
David Rosca
387aee12c2 SiteInfo: Only show on non-internal pages 2015-10-14 12:50:30 +02:00
David Rosca
36031c46e6 WebView: Store input widget as QWidget and not QObject 2015-10-14 12:12:25 +02:00
David Rosca
1a068e8c7d Use QWebEnginePage::RequestClose action to close tabs
It is no longer to use hacky onbeforeunload javascript handling when
closing tabs.
2015-10-12 12:07:01 +02:00
David Rosca
56e5237697 WebView: Don't save blank page / speed dial into view history 2015-10-09 21:33:07 +02:00
David Rosca
54f31237a5 Fix build 2015-10-08 11:49:22 +02:00
David Rosca
db058ff194 Remove use of QNetworkRequest in LoadRequest 2015-10-06 09:46:23 +02:00
David Rosca
3d8b09653f WebView: Clear icon when icon url changes 2015-10-05 22:08:31 +02:00
David Rosca
949faa5856 Add support for HTML FullScreen
Esc is used to leave fullscreen
2015-10-05 18:08:14 +02:00
David Rosca
9cb66878ff Port to Qt 5.6 2015-10-05 17:20:53 +02:00
David Rosca
102ee62d3d WebView: Enable download link/image/media actions with Qt 5.6 2015-10-04 19:35:02 +02:00
David Rosca
7a512918f8 WebView: Prevent handling input events twice
This fixes site info being opened twice when pressing Ctrl+I while
having focus in webview.

This makes the input events handling code very fragile, so let's hope
this won't break anything .. and QtWebEngine won't change the behavior
in following releases.
2015-10-04 19:04:25 +02:00
David Rosca
6ac34f74c1 WebView: Fix loading favicons that are on different hosts than site 2015-10-02 17:05:42 +02:00
David Rosca
7f101700ca WebView: Check for m_clickedUrl.isEmpty() in mouseReleaseEvent 2015-10-02 15:50:29 +02:00
David Rosca
4d5808d915 Bring back AutoScroll plugin
This time implemented in C++ and not with userscript. There
is also no support for scrolling inside frames.
2015-10-02 15:36:07 +02:00
David Rosca
75fe50ca48 Bring back MouseGestures plugin 2015-10-02 11:14:10 +02:00
David Rosca
800cc14dcd Bring back support for searching one-word terms from locationbar 2015-10-01 19:25:55 +02:00
David Rosca
5f6cfdc62a Remove WebView::guessUrlFromString and use QUrl::fromUserInput instead
This also fixes setting homepage and new tab urls in preferences.

Closes #1710
2015-10-01 18:37:45 +02:00
David Rosca
8e39135920 WebView: Clear m_clickedUrl and m_clickedPos in mousePressEvent 2015-10-01 18:16:48 +02:00
David Rosca
aab8f1ea75 WebView: Shift + Left click now opens link in new window
Also handle left clicking on links in mouse release and not click
2015-10-01 17:48:32 +02:00
David Rosca
5e0ca7fed8 Preferences: Bring back external download manager option 2015-09-30 18:43:58 +02:00
David Rosca
b24303c00b WebView: Bring back media context menu 2015-09-30 15:26:52 +02:00
David Rosca
d10c47a825 WebView: Don't cache form data when adding create search engine action 2015-09-30 15:05:28 +02:00
David Rosca
6a2579a22c Cleanups
Remove PAC proxy option as it is hardly to ever be supported
in QtWebEngine.
2015-09-30 15:02:10 +02:00
David Rosca
7050ffc9e6 SearchEngines: Bring back creating search engines from forms on page 2015-09-30 14:57:41 +02:00
David Rosca
1115d02b37 WebView: Hide not working actions in context menu 2015-09-30 13:33:27 +02:00
David Rosca
bfad9eb0aa WebView: Bring back support for unbeforeunload when closing tab 2015-09-30 13:01:14 +02:00