1
mirror of https://invent.kde.org/network/falkon.git synced 2024-11-14 02:52:12 +01:00
Commit Graph

616 Commits

Author SHA1 Message Date
David Rosca
b5b77e7932
GM_Script: Add iconUrl property 2018-01-31 20:43:57 +01:00
David Rosca
1fe7f0c232
Correctly handle possibility that page changes in WebView 2018-01-28 22:41:08 +01:00
Jimi Huotari
addbb21c77
Fix build against Qt 5.11 2018-01-26 12:59:03 +01:00
David Rosca
32e7ec1826 TabManager: Port icon to AbstractButtonInterface
It is now available from both NavigationBar and StatusBar
2018-01-24 20:37:21 +01:00
David Rosca
cc55c0ad02 FlashCookieManager: Port icon to AbstractButtonInterface
It is now available from both NavigationBar and StatusBar
2018-01-24 20:37:15 +01:00
David Rosca
7265c30aa8 Add Downloads, AdBlock and GreaseMonkey buttons to statusbar 2018-01-24 20:37:10 +01:00
David Rosca
444884bee9 Rename StatusBarMessage -> StatusBar 2018-01-24 20:36:34 +01:00
Razi Alavizadeh
77cb017e1d TabManager: Remove redundant condition 2018-01-24 20:34:40 +01:00
David Rosca
41775c3a20 Replace some QupZilla leftovers with Falkon 2018-01-24 17:15:26 +01:00
David Rosca
f315b0e3dc Remove old translations 2018-01-24 17:10:36 +01:00
4292ecd465 TabManager: Add Unload checked tabs action (#2566) 2018-01-24 15:15:09 +01:00
David Rosca
4e39cad310 SBI_JavaScriptIcon: Fix temporarily enabling/disabling JavaScript
Closes #2560
2018-01-24 15:14:50 +01:00
David Rosca
6f20d5e511 Move build config options to config.h
Also remove NO_SYSTEM_DATAPATH and DISABLE_UPDATES_CHECK
2018-01-24 14:26:13 +01:00
David Rosca
087c98343e Remove compatibility code with Qt older than 5.9 2018-01-14 09:30:15 +01:00
David Rosca
a8dcf176cf Fix merge issues 2018-01-11 20:51:34 +01:00
David Rosca
4bf85ee3cb WebPage: Register QWebChannel on isolated ApplicationWorld
This way scripts on pages don't have access to it.
Exception is qupzilla: scheme as internal pages requires the bridge.

GreaseMonkey userscripts now runs on ApplicationWorld too. This fixes
userscript that depend on script world being isolated from main page world.
Tested with 4ChanX + OneeChan.
2018-01-11 19:55:01 +01:00
David Rosca
287631d37b WebPage: Remove setJavaScriptEnabled method 2018-01-11 19:50:13 +01:00
David Rosca
6806fa5405 AbstractButtonInterface: Use WebView property instead of WebPage
WebView of a tab will not change while WebPage may.

This also fixes crash when WebPage of WebView is changed. It can happen
eg. when opening new tab from page with target=_blank.

Closes #2537
2018-01-11 19:42:38 +01:00
David Rosca
23279f6e10 GreaseMonkey: Move icon from statusbar to navigationbar as tool button 2018-01-11 19:29:35 +01:00
David Rosca
fa4fba5f49 BrowserWindow: Add tabCount() method 2018-01-11 19:23:43 +01:00
David Rosca
5cc41d219e Always open new window when restoring session after crash
Also remove special handling for qupzilla:restore tabs.
2018-01-11 19:23:36 +01:00
David Rosca
ebed38e1c4 GreaseMonkey: Don't export wrappedJSObject
It seems to confuse some userscripts thinking that this is Firefox.

This, along with recent values changes should fix compatibility issues
with large portion of userscripts.
Tested with 4chanX as one of the very complex userscript.
2018-01-11 19:18:57 +01:00
David Rosca
30bad61eea GreaseMonkey: Rewrite values bridge to pass values as QString
Passing QVariant/QJsonValue is broken in QWebChannel (QtWebEngine?)
2018-01-11 19:18:31 +01:00
David Rosca
b8f9c7e15d KWalletPasswords: Pass window id to Wallet::openWallet
Closes #2441
2018-01-11 19:15:30 +01:00
David Rosca
8a6547b39c Use window._qupzilla_external property to check if web channel is connected
Instead of checking for window.external as that is now defined with
at least QtWebEngine 5.10.
2018-01-11 19:15:02 +01:00
David Rosca
7ce93354c8 GreaseMonkey: Add support for GreaseMonkey 4.0 API
Properly implement values functions in 4.0 API version.

Closes #2355
2018-01-11 19:12:53 +01:00
David Rosca
ee62ad0215 Use correct web settings in private browsing mode
Closes #2427
2018-01-02 22:59:17 +01:00
David Rosca
f5ad4424aa TabWidget: Add insertView method for WebTab 2018-01-01 16:58:02 +01:00
David Rosca
d739692523 AutoScroll: Don't force detected scroll direction
As the detection of available scroll direction is not perfect,
don't enforce it.

Closes #2503
2017-12-03 19:11:09 +01:00
David Rosca
9c3f38fa11 Fix installing and loading plugins 2017-10-27 14:14:40 +02:00
Razi Alavizadeh
4c827bee74 TabManager: Bump version to 0.8 2017-10-03 17:02:31 +03:30
Razi Alavizadeh
48c409fa76 TabManager: Support moving tabs between windows by drag & drop. 2017-10-03 17:02:30 +03:30
Razi Alavizadeh
bad3a76a2e TabManager: Don't repeat detaching tab code. 2017-10-03 17:02:30 +03:30
Razi Alavizadeh
33846b9523 TabManager: Use italic font and "disabled" style for non-loaded saved tab item. 2017-10-03 17:02:29 +03:30
Razi Alavizadeh
b9a9c24060 TabManager: Cleanup and fix. 2017-10-03 17:02:28 +03:30
Razi Alavizadeh
9cb5f106ef TabManager: item based update. 2017-10-03 17:02:27 +03:30
Razi Alavizadeh
06094cfc1c TabManager: Scroll to the current tab item. 2017-10-03 17:02:27 +03:30
Razi Alavizadeh
f17eb82cf9 TabManager: Add tab context-menu to treewidget context-menu. 2017-10-03 17:02:26 +03:30
David Rosca
2732aadda6 Fix building GnomeKeyring and KWallet password backend plugins
Also remove KDE/GNOME integration options and instead always build the plugins
when necessary dependencies are found.
2017-09-26 15:19:55 +02:00
Jacob Tey
11d73bd26a Fix icon name in SBI images icon + add object name to AdBlockIcon 2017-09-25 19:35:44 +02:00
David Rosca
df25f49cfb Remove more unused files 2017-09-25 14:18:33 +02:00
David Rosca
3b09f115e7 Remove QMake build files 2017-09-25 13:08:06 +02:00
David Rosca
c77ec4005e Don't include plugins translations as resource
Fixes CMake build, but plugin translations are not working now.
2017-09-25 13:04:54 +02:00
David Faure
76457af130 CMake buildsystem for the autotest 2017-09-10 15:17:07 +02:00
David Faure
6e7a14a9c2 CMake buildsystem for plugins 2017-09-10 15:01:58 +02:00
David Rosca
efff69b7b2 Continue with Falkon renaming 2017-08-25 17:55:52 +02:00
David Rosca
d00e769749 Initial rename to Falkon 2017-08-25 17:32:32 +02:00
David Rosca
d7ff9546d6 Fix build 2017-08-11 15:46:19 +02:00
David Rosca
def0c8e4f4 Update empty.ts 2017-08-11 15:35:46 +02:00
David Faure
2382f2c955 Fix compilation with KDE in custom prefix
The .pri file for KWallet brings in the correct include path for
that framework, while KF5/KWallet/KWallet only works with a /usr/include
base dir.
2017-07-26 20:12:52 +02:00
David Rosca
f82cab9f19 Pull translations from Transifex 2017-07-24 12:05:22 +02:00
David Rosca
0c4f20ff2d GreaseMonkey: Use better metadata parser
Use QTextStream instead of parsing with regexps
2017-05-01 11:05:08 +02:00
David Rosca
355fc7e4a7 GreaseMonkey: Bump plugin version 2017-04-19 15:54:23 +02:00
David Rosca
a2e02a8922 GreaseMonkey: Use QtWebEngine's handling of include/exclude/match rules 2017-04-19 15:53:27 +02:00
David Rosca
166fe13747 GreaseMonkey: Make sure to download all require scripts when userscript changes 2017-04-19 15:41:21 +02:00
David Rosca
13402b2983 GreaseMonkey: Save require scripts with original filename 2017-04-19 13:31:35 +02:00
David Rosca
84477aa2dc GreaseMonkey: Don't store absolute path to require scripts 2017-04-19 13:25:46 +02:00
srazi
f57d6d0682 TabManager: Fix add tab button when grouping type is not window 2017-04-10 00:30:04 +04:30
srazi
8a85fb3c0f TabManager: Bump version to 0.7.0 2017-04-07 13:31:20 +04:30
srazi
47e2c8c1f0 TabManager: show add tab button on window item under mouse. 2017-04-07 13:24:39 +04:30
srazi
457d32ae82 TabManager: Update close button icon 2017-04-07 13:24:38 +04:30
srazi
e40be295ab TabManager: Fix showing close button on show 2017-04-07 13:24:37 +04:30
srazi
ae29ef0030 TabManager: Rename TabFilterDelegate to TabManagerDelegate 2017-04-07 13:24:36 +04:30
srazi
3a7e843677 TabManager: show close button on tab item under mouse. 2017-04-07 13:24:36 +04:30
srazi
56c737d836 TabManager: Use single click to switch between tabs 2017-04-07 13:24:35 +04:30
David Rosca
f20d421113 Merge branch 'v2.1' 2017-03-15 13:29:24 +01:00
David Rosca
900e5d593c Pull translations from Transifex 2017-03-15 13:27:29 +01:00
David Rosca
3434052690 Merge branch 'v2.1' 2017-03-15 11:00:14 +01:00
David Rosca
8940609a00 StatusBarIcons: Set object names for icons
Closes #2251
2017-03-15 10:59:51 +01:00
srazi
3c8907284d macOS: Fix unused-private-field warning 2017-03-13 00:23:01 +03:30
David Rosca
5ff5fb5b10 Updated translations
Closes #2202
2017-02-13 23:06:04 +01:00
David Rosca
9011224c1a GreaseMonkey: Fix disabling scripts with Qt 5.8
Qt 5.8 parses the metadata block, so everything gets overwritten
when QWebEngineScript::setSource is called.

Closes #2206
2017-02-13 22:27:59 +01:00
David Rosca
85f8cf881e Fix drawing text with correct color in item delegates on Windows 2017-02-07 15:47:41 +01:00
David Rosca
db5a260193 Update translations from Transifex 2017-02-04 10:11:33 +01:00
David Rosca
5240d70c51 Fix TabManager.pro 2017-01-27 14:40:07 +01:00
David Rosca
7d6a2efab2 Update translations 2017-01-27 14:38:03 +01:00
David Rosca
bff02d75b8 AutoScroll: Bump plugin version 2017-01-27 11:12:48 +01:00
David Rosca
a9f9056d84 AutoScroll: Only scroll in the indicated direction
It's possible that the horizontal/vertical scrollbar is hidden, but
the page can still be scrolled in that direction.
2017-01-27 11:11:26 +01:00
David Rosca
0ad0a587eb AutoScroll: Draw scroll indicator inside white circle
Also slightly modify scroll indicator pixmaps and center them.
2017-01-27 11:05:25 +01:00
David Rosca
0dd682d317 MouseGestures: Restore force context on mouse release value on plugin unload 2017-01-22 09:45:24 +01:00
David Rosca
7998b113d8 Fix build warnings 2017-01-21 21:18:01 +01:00
David Rosca
44913c3284 GreaseMonkey: Use acceptNavigationRequest for handling userscript downloads 2017-01-21 21:05:33 +01:00
David Rosca
8bc39e9b1c GreaseMonkey: HighDPI fixes 2017-01-21 20:54:11 +01:00
David Rosca
ef7eb6957e FlashCookieManager: HighDPI fixes 2017-01-21 20:35:09 +01:00
David Rosca
33989263c0 AutoScroll: Add HighDPI pixmaps 2017-01-21 20:23:42 +01:00
David Rosca
b7c5b6758d Pull translations from Transifex 2016-12-28 19:35:23 +01:00
David Rosca
23af6c3af7 Fix drawing correct text color in custom item views 2016-12-26 19:41:06 +01:00
David Rosca
1881a800bf AutoScroll: Disable on frames
It doesn't support scrolling outside main frame, so just disable
it on frames so middle clicking links is possible.
2016-12-26 13:13:40 +01:00
David Rosca
5d2ffc30d1 FlashCookieManager: Operate on PepperFlash cookies 2016-12-24 00:25:28 +01:00
David Rosca
9626eac48e Update translations 2016-12-21 21:53:39 +01:00
David Rosca
96634f7f85 Update translations 2016-10-24 22:14:22 +02:00
David Rosca
9e1c6312cb Fix connecting to WebView::iconChanged 2016-10-24 21:43:31 +02:00
David Rosca
f7835b7ba8 Merge branch 'v2.0' 2016-10-24 20:04:27 +02:00
David Rosca
5d60037e71 Update translations 2016-10-24 17:25:44 +02:00
David Rosca
7fff4b627b MouseGestures: Use same code to create new tab as BrowserWindow
Closes #2089
2016-10-19 09:43:56 +02:00
David Rosca
704933f34c Pull translations from transifex 2016-09-21 16:15:02 +02:00
srazi
d4facf2806 TabManager: Add quick filter/switch support.
- Also key navigation support was added.

- Closes #2063
2016-08-29 12:48:31 +04:30
David Rosca
0b99d45d10 Pull translations from transifex 2016-08-23 09:10:32 +02:00
Marti Martz
18ab4f2a7b GM WIN: Add CR to detection (#2027)
* WIN: Add CR to detection

Saving in Notepad++ with Windows line ending prevents script injection

Post fix for #1964 and some vague references at ce67c7a455

* Add some more line ending checks

* Windows ends in CR and OS Ⅸ compatible uses CR+LF ... OS Ⅹ/*nix uses LF
* Fix pre-existing bug with `\n' with string split for Windows ... tested only on Linux *(Qt 5.6.1)* with Unit Tests so far

Applies to #2027 and post followup for #1964

* Use default Left-associative for pipe (logical or)

* Specific first then general after e.g. flip them ... helps avoid a false injection match with a control character at the beginning with older editors *(may include OS2)*

Applies to #2027 and post followup for #1964
2016-08-15 14:24:00 +02:00
Marti Martz
9f298c352b GM WIN: Add CR to detection (#2027)
* WIN: Add CR to detection

Saving in Notepad++ with Windows line ending prevents script injection

Post fix for #1964 and some vague references at ce67c7a455

* Add some more line ending checks

* Windows ends in CR and OS Ⅸ compatible uses CR+LF ... OS Ⅹ/*nix uses LF
* Fix pre-existing bug with `\n' with string split for Windows ... tested only on Linux *(Qt 5.6.1)* with Unit Tests so far

Applies to #2027 and post followup for #1964

* Use default Left-associative for pipe (logical or)

* Specific first then general after e.g. flip them ... helps avoid a false injection match with a control character at the beginning with older editors *(may include OS2)*

Applies to #2027 and post followup for #1964
2016-07-17 09:31:25 +02:00