1
mirror of https://invent.kde.org/network/falkon.git synced 2024-09-22 18:22:10 +02:00
Commit Graph

1887 Commits

Author SHA1 Message Date
David Rosca
1f32a018f5 TabStackedWidget: Cleanup pinUnPinTab code 2015-10-14 22:50:57 +02:00
David Rosca
398232246e TabStackedWidget: Only send show event to one widget after removing tab
When removing current tab, the widget was removed from stackwidget,
which would send the show event to next widget in stack and then
send show event to another widget when changing the current index from
ComboTabBar.
2015-10-14 22:48:17 +02:00
David Rosca
5024ada696 Fix showing speed dials in bookmarks icon 2015-10-14 19:52:08 +02:00
David Rosca
ccabc336c0 Fix crash when application style is externally changed
Closes #1707
2015-10-14 17:06:03 +02:00
David Rosca
0fade63d86 WebPage: Add page to display when render process crashes 2015-10-14 16:19:54 +02:00
David Rosca
e9cbb32e26 Remove unused certs.qrc 2015-10-14 15:05:15 +02:00
David Rosca
a4a6d3eb7a Removed unused qupzilla.ico 2015-10-14 15:03:10 +02:00
David Rosca
387aee12c2 SiteInfo: Only show on non-internal pages 2015-10-14 12:50:30 +02:00
David Rosca
af93ecf81e AdBlock: Show error page when the whole page was blocked 2015-10-14 12:41:42 +02:00
David Rosca
74350785b0 Update copyright in qupzilla:about 2015-10-14 12:16:39 +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
e127000cb7 ComboTabBar: Remove blured background support 2015-10-11 10:52:04 +02:00
David Rosca
53e4512d31 ComboTabBar: Fix showing tooltip when animating scrolling 2015-10-11 10:51:16 +02:00
David Rosca
c0a7ef8d9e WebInspector: Add pointing hand cursor to close button 2015-10-11 10:29:09 +02:00
David Rosca
7e238f69b0 WebInspector: Fix close button with QtWebEngine 5.6 2015-10-10 00:12:14 +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
b6b7edd187 Use shorter code for QString().arg(int) 2015-10-09 20:42:25 +02:00
David Rosca
1d37a6867c PageThumbnailer: Rewrite to load thumbnails with QML WebEngineView
This way it is possible to get thumbnail even without showing the
webview.
2015-10-09 19:31:08 +02:00
David Rosca
50d5eeef0c Remove bundled certificates 2015-10-09 19:20:04 +02:00
David Rosca
f1ab8ac5e9 Remove option to configure Click2Flash
Click2Flash is no longer available
2015-10-09 16:11:40 +02:00
David Rosca
b39809bfae Remove option to show tab previews 2015-10-09 16:03:38 +02:00
David Rosca
df487f0726 WebHitTestResult: Resolve image url 2015-10-09 15:57:35 +02:00
David Rosca
258d78a247 AdBlockRule: Fix handling domain and third-party restrictions
Domain and third-party restrictions should be applied on page url,
not url of request.

This requires https://codereview.qt-project.org/#/c/127159/
2015-10-09 13:16:24 +02:00
David Rosca
b891d92736 Fix QzTools::ensureUniqueName again
This time it should be correct fix + added tests
2015-10-09 12:26:13 +02:00
David Rosca
03399c7b2c Use acceptNavigationRequest to handle abp: urls
QtWebEngine now sends external urls through acceptNavigationRequest
so it is no longer needed to install scheme handler.
2015-10-08 22:39:27 +02:00
David Rosca
de0dd7fb2d Fix build with latest QtWebEngine 5.6 2015-10-08 22:17:21 +02:00
David Rosca
c3e0f39c9b ProfileManager: Drop support for old profiles 2015-10-08 11:52:40 +02:00
David Rosca
54f31237a5 Fix build 2015-10-08 11:49:22 +02:00
David Rosca
d2a84319e7 Fix pointer flicker when enabling mouse lock 2015-10-06 11:15:17 +02:00
David Rosca
b4972955ce HTML5Permissions: Fix granting MouseLock permissions 2015-10-06 11:03:24 +02:00
David Rosca
83db3c1988 WebPage: Always grant MouseLock permission in fullscreen 2015-10-06 10:58:17 +02:00
David Rosca
6b02cd4cab AdBlockRule: Correctly disable third-party option 2015-10-06 10:13:41 +02:00
David Rosca
4efbc54cac UserAgentDialog: Hide per-site options 2015-10-06 10:10:27 +02:00
David Rosca
dd71761854 Remove no longer used classes 2015-10-06 09:52:44 +02:00
David Rosca
6d026969f7 Remove QFtp 2015-10-06 09:49:42 +02:00
David Rosca
db058ff194 Remove use of QNetworkRequest in LoadRequest 2015-10-06 09:46:23 +02:00
David Rosca
1a87d443c0 WebTab: Fix pinning tabs that are not yet restored 2015-10-05 23:39:59 +02:00
David Rosca
9fd7c271e4 ToolButton: Fix showing both context menu and button menu on right click 2015-10-05 22:41:20 +02:00
David Rosca
3ec6da6103 Bring back support for sending DNT header to servers 2015-10-05 22:32:55 +02:00
David Rosca
39c920f3ce Preferences: Remove Send Referer option 2015-10-05 22:24:21 +02:00
David Rosca
8778ddc2dd Bring back support for setting AcceptLanguage header 2015-10-05 22:21:14 +02:00
David Rosca
3d8b09653f WebView: Clear icon when icon url changes 2015-10-05 22:08:31 +02:00
David Rosca
4d05c1105a Bring back support for managing cookies 2015-10-05 22:03:53 +02:00
David Rosca
226b29b0c6 Set empty page icon to qupzilla:speeddial 2015-10-05 20:50:20 +02:00
David Rosca
88c5b271e2 AdBlockRule: Add support for script, stylesheet and object-subrequest 2015-10-05 20:43:05 +02:00
David Rosca
3050913d21 WebHitTestResult: Fix isContentSelected
Was returning always true on right click
2015-10-05 20:29:38 +02:00
David Rosca
150252aea9 Don't store blocked entries in WebPage
It is not possible in this way with QtWebEngine
2015-10-05 20:23:10 +02:00
David Rosca
e91d6482d1 Bring back AdBlock blocking network requests 2015-10-05 20:16:51 +02:00
David Rosca
40eb1281f8 Add UrlInterceptor interface 2015-10-05 19:52:41 +02:00
David Rosca
a6c9ca7b4c Workaround error handling in scheme handlers 2015-10-05 19:16:12 +02:00
David Rosca
5829318774 AdBlock: Bring back support for adding new subscription with abp: links 2015-10-05 18:54:58 +02:00
David Rosca
79dd0d5899 Removed ftp scheme handler
ftp is internal scheme, so it is not possible to use custom scheme
handler with QtWebEngine
2015-10-05 18:12:10 +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
637f38684d Settings: Bring back support for plugins (eg. Flash) 2015-10-05 17:29:09 +02:00
David Rosca
9cb66878ff Port to Qt 5.6 2015-10-05 17:20:53 +02:00
David Rosca
94d89e4fa6 DownloadManager: Use shorter timeout for updating window title 2015-10-04 21:12:53 +02:00
David Rosca
510f521074 Downloads: Bring back option to choose path / open downloads 2015-10-04 21:00:38 +02:00
David Rosca
35f002efb4 DownloadManager: Fix clearing download items 2015-10-04 20:23:54 +02:00
David Rosca
c24b0e92fd Remove TODO comment 2015-10-04 20:02:16 +02:00
David Rosca
a1d9740caf Allow to start more instances of the same profile with --no-remote 2015-10-04 19:54:59 +02:00
David Rosca
e161e45c41 WebPage: Add Q_UNREACHABLE to createWindow(WebBrowserWindow) 2015-10-04 19:51:39 +02:00
David Rosca
6857270057 WebInspector: Fix searching with Ctrl+F in inspector
Don't eat key events so inspector's search function can be used.
2015-10-04 19:44:25 +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
e60daf072b WebPage: Remove disabled form resubmitted warning
Looks like it won't come back in QtWebEngine and it wasn't
really that much useful feature.
2015-10-04 19:22:52 +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
75cb70d049 Don't cache icons for qupzilla: scheme
Also remove icon from SpeedDial page
2015-10-02 17:10:27 +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
97ba8c6af3 Bring back PIM plugin 2015-10-02 14:13:21 +02:00
David Rosca
75fe50ca48 Bring back MouseGestures plugin 2015-10-02 11:14:10 +02:00
David Rosca
939ebeb2c9 Guard against null QProxyStyle::baseStyle()
See #1686 #1707
2015-10-01 20:25:22 +02:00
David Rosca
ffcf137967 QzTools: Fix ensureUniqueFileName when file has no suffix
Closes #1706
2015-10-01 20:05:36 +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
9f36401be9 Use QWebEngineSettings::defaultSettings instead of globalSettings 2015-10-01 18:02:36 +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
c68789c217 WebView: Remove unused openNewTab function 2015-10-01 17:37:56 +02:00
David Rosca
5e0ca7fed8 Preferences: Bring back external download manager option 2015-09-30 18:43:58 +02:00
David Rosca
695475b2e4 SiteInfo: Bring back option to save image 2015-09-30 16:20:31 +02:00
David Rosca
bd215a69ed SiteInfo: Bring back showing previews of images 2015-09-30 15:55:00 +02:00
David Rosca
abe13dd22d Cleanups 2015-09-30 15:28:44 +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
878c0f93c1 WebHitTestResult: Fix isContentEditable for readonly inputs 2015-09-30 13:38:57 +02:00
David Rosca
1115d02b37 WebView: Hide not working actions in context menu 2015-09-30 13:33:27 +02:00
David Rosca
942299e649 Remove Page Screen action from menus
Page screen functionality will hardly ever come back with QtWebEngine.
2015-09-30 13:28:18 +02:00
David Rosca
bfad9eb0aa WebView: Bring back support for unbeforeunload when closing tab 2015-09-30 13:01:14 +02:00
David Rosca
c042d86467 WebPage: Add timeout to execJavaScript 2015-09-30 12:59:53 +02:00
David Rosca
36929a45bf Another cleanups
Removed printPage() functions + removed SslManager
2015-09-29 23:41:08 +02:00
David Rosca
730577c0e4 BrowserWindow: showWebInspector -> toggleWebInspector
Using the Web Inspector action while inspector is already visible
will close it.
2015-09-29 23:35:16 +02:00
David Rosca
ecfae5512a WebInspector: Fix closing inspector session when opened from popup window 2015-09-29 23:22:33 +02:00
David Rosca
9072cc65c6 WebView: Bring back context menu 2015-09-29 23:15:46 +02:00
David Rosca
4cb9beecc4 WebView: Opening links in tabs now honor user new tab settings 2015-09-29 22:00:09 +02:00
David Rosca
241d7d8e03 WebPage: Add basic support for WebHitTestResult 2015-09-29 21:53:56 +02:00
David Rosca
d4e09d8840 Hack to make input events work 2015-09-29 21:53:19 +02:00
David Rosca
f448bba885 Fix previous commit 2015-09-29 16:37:22 +02:00
David Rosca
6e6f934535 Fix emitting changed() in TabWidget
TabbedWebView::changed() is no longer used, connect to urlChanged directly
2015-09-29 16:31:23 +02:00
David Rosca
ab75170f85 Move authentication + cert error functionality to NetworkManager
Certificate exceptions only works per-session.
2015-09-29 16:19:11 +02:00
David Rosca
b0da5ba755 Bring back NetworkManager class 2015-09-29 11:45:39 +02:00
David Rosca
f3fda02820 WebPage: Remove unusued QSslCert functionality
Also bring back indication of secured pages.
2015-09-29 11:37:17 +02:00
David Rosca
b2c4064f1b Fix build with NONBLOCK_JS_DIALOGS 2015-09-29 11:30:42 +02:00
David Rosca
2582ee3562 Update expectations for popupwindows test 2015-09-29 11:21:17 +02:00
David Rosca
fcaa2b4559 EncodingMenu: Fix showing duplicate codecs in other menu
Also use alphanumeric sorting with QCollator
2015-09-29 11:14:20 +02:00
David Rosca
16b28a3a90 Preferences: Remove not working options
Also fix disabling local cache
2015-09-29 10:55:24 +02:00
David Rosca
5ba8f4dbb6 ProfileManager: Make appropriate functions static 2015-09-28 20:44:15 +02:00
David Rosca
24de161ad1 DataPaths: Use XDG paths + add Cache path
Also drop support for old deprecated config paths.

Closes #1411
2015-09-28 20:41:01 +02:00
David Rosca
7adc31337b Make afterLaunch settings enum 2015-09-28 14:51:38 +02:00
David Rosca
f28da4407f Remove pinnedtabs.dat on startup, not when saving session 2015-09-28 14:34:21 +02:00
David Rosca
6d37ab5ce4 Save pinned tabs per window if restoring session on start
No more pinned tabs restoring on wrong window. Also it is now possible
to have different pinned tabs on each window.
2015-09-27 18:54:19 +02:00
David Rosca
94bac52e1f Changed CookieManager, SiteInfo and Preferences to QWidget
For some reason, QzTools::setWmClass on SiteInfo resulted
in all webviews turning black.
2015-09-25 22:31:04 +02:00
David Rosca
748e6ce020 Ported all X11 specific code to xcb
It now also runtime checks for X11 platform, so it should
work on Wayland without recompilation;
2015-09-25 22:08:09 +02:00
David Rosca
daee137862 Cleanups in WebView 2015-09-25 20:44:18 +02:00
David Rosca
f0408e9c13 Bring back SiteInfo
Security and Databases tabs are removed. Image previews only
works for local images.
2015-09-25 18:31:05 +02:00
David Rosca
a115d91564 Remove Caret Browsing option
No longer available with QtWebEngine
2015-09-25 17:45:47 +02:00
David Rosca
ced9c8553c SearchEngines: Bring back support to add engine from page 2015-09-25 17:41:46 +02:00
David Rosca
67b5a5337b Another cleanups
Includes enabling again SpeedDial integration in Bookmarks
star icon in locationbar.
2015-09-25 17:02:14 +02:00
David Rosca
f4fb888529 QzTools: Add pixmapToDataUrl() 2015-09-25 16:04:12 +02:00
David Rosca
de46aad181 Bring back support for excluding tabs when restoring after crash 2015-09-25 15:53:14 +02:00
David Rosca
a9d0e79eeb RecoveryJsObject: Use safer method to get BrowserWindow from WebPage 2015-09-24 23:08:55 +02:00
David Rosca
fc85caff57 Add QWebPage::view() that returns WebView * 2015-09-24 23:00:27 +02:00
David Rosca
02f5e032fc Bring back qupzilla:restore page
For now, it doesn't support selecting which windows/tabs not to
restore. It is only possible to start new session or restore previous.
2015-09-24 22:46:35 +02:00
David Rosca
8a6d083114 SearchToolBar: Don't make shortcuts translatable 2015-09-24 19:43:31 +02:00
David Rosca
cde3ed179b Always show restore page when starting after crash 2015-09-24 19:37:40 +02:00
David Rosca
37cd709b7f Fix typo 2015-09-24 19:37:15 +02:00
David Rosca
5467f9643e SpeedDial: Fix updating options values in settings 2015-09-24 18:32:10 +02:00
David Rosca
ca6c20497f SpeedDial: Fix center speed dials option 2015-09-24 17:58:25 +02:00
Philipp Wiesemann
3849fed838 Fix not closing files from /proc/ on read errors
The cmdline files opened from /proc/ were not closed if reading the data
from them failed (e.g. because the file was empty). This leaked the file
descriptor which could lead to failures trying to open more files later.
2015-09-11 22:00:51 +02:00
David Rosca
8521b782bd CommandLineOptions: Port to QCommandLineParser
This comes with removing all 2-chars short options,
only long options are now available.
That means there are no longer both "-nw, --new-window" options,
only "--new-window".
2015-09-09 23:37:43 +02:00
David Rosca
7e1a0d7720 Another cleanups 2015-09-08 11:24:16 +02:00
David Rosca
496c46d067 Fix saving & restoring tabs with urls hidden in locationbar
That is eg. qupzilla:speeddial
2015-09-06 10:32:47 +02:00
David Rosca
7c4d44aa54 SpeedDial: Fix saving settings without changing dials
Closes #1689
Closes #1680
2015-09-05 21:12:54 +02:00
David Rosca
328ab40304 SpeedDial: Fix setting background image 2015-09-05 21:08:44 +02:00
David Rosca
50b9dd9023 Bookmarks: Fix bookmarksSelected signal
Regression from recent commits
2015-08-31 22:26:13 +02:00
David Rosca
5b161b74be SearchToolbar: Add Ctrl+G and Ctrl+Shift+G shortcuts
Closes #1688
2015-08-31 22:21:20 +02:00
David Rosca
ff28f1f211 Another cleanup
- bring back support for Speed Dial Ctrl shortcuts
 - bring back support for one key shortcuts
2015-08-31 22:14:45 +02:00
David Rosca
86a4f3d724 Remove support for transparent background 2015-08-31 21:40:08 +02:00
David Rosca
9d3769c8e6 AutoFill: Save credentials from dynamically created forms
Closes #999
2015-08-31 20:49:49 +02:00
David Rosca
2e6b9b7fce Scripts: Use document.createEvent instead of new Event 2015-08-31 19:58:42 +02:00
David Rosca
32a0db31b3 AutoFill: Initial port to QtWebEngine
There are still issues with completing forms in frames
2015-08-31 18:56:52 +02:00
David Rosca
a04efdc0be window.external: Only export speedDial on qupzilla:speeddial 2015-08-31 13:17:14 +02:00
David Rosca
19f1ed6bfb Scripts: Register window.external to all frames
It seems that only one QWebChannel connection per page
is supported, so we need to forward window.external to
all subframes.
2015-08-31 12:44:08 +02:00
David Rosca
758fd6c687 Fix all build warnings 2015-08-30 17:42:58 +02:00
David Rosca
1683d5aaaf Fix crash when creating window from PopupWindow 2015-08-30 16:53:51 +02:00
David Rosca
b53bf49f75 Old code cleanup 2015-08-30 15:52:15 +02:00
David Rosca
e83734069b Bring back support for sending POST data
This fixes searching with engines that use POST method
2015-08-30 15:36:34 +02:00