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

214 Commits

Author SHA1 Message Date
David Rosca
4f0c30c5c7 Add support for window.print()
Closes #2509
2018-01-13 16:42:03 +01:00
David Rosca
e73bf22aa9 WebView: Call acceptNavigationRequest before loading urls
Closes #2544
2018-01-13 10:15:30 +01:00
David Rosca
a8dcf176cf Fix merge issues 2018-01-11 20:51:34 +01:00
David Rosca
e0e62c6e81 SearchEngines: Add back support for window.external.AddSearchProvider 2018-01-11 19:57:10 +01:00
David Rosca
6ecc9f616f ExternalJsObject: Don't export search engine functions
Our window.external is no longer available to web pages so it has no effect.
2018-01-11 19:56:31 +01:00
David Rosca
059889ecfe BrowserWindow: Don't show "Empty Page" in window title 2018-01-11 19:55:44 +01:00
David Rosca
7dfce692d7 WebPage: Don't force enable JavaScript on file: scheme 2018-01-11 19:55:07 +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
f16580dc05 AdBlockPlugin: Change into real internal plugin 2018-01-11 19:51:47 +01:00
David Rosca
675bc0514f WebPage: Force enable JavaScript for all non http/https urls 2018-01-11 19:50:18 +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
f87c6897a0 WebPage: Always build nonblock js dialogs support
Can be enabled with QUPZILLA_ENABLE_JS_NONBLOCK_DIALOGS environment variable.
2018-01-11 19:41:49 +01:00
David Rosca
642d835d55 WebPage: Disable writing JavaScript warnings on stderr
Can be enabled with QUPZILLA_ENABLE_JS_OUTPUT environment variable.
2018-01-11 19:40:43 +01:00
David Rosca
a45dbdc883 AdBlock: Track blocked requests on page
AdBlock icon now indicates number of blocked requests in badge text.
2018-01-11 19:38:14 +01:00
David Rosca
ff1171abf0 AdBlock: Make it as self-contained as possible
It could be easy now to turn it into real loadable plugin.
2018-01-11 19:36:32 +01:00
David Rosca
d1becc23e9 And fix build on all platforms ... 2018-01-11 19:20:30 +01:00
David Rosca
e512cc7433 Fix build on Windows - export ExternalJsObject 2018-01-11 19:20:25 +01:00
David Rosca
6a5b7d30e3 ExternalJsObject: Add support for registering extra objects
Extra objects will be available as window.external.extra.objectName
2018-01-11 19:11:02 +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
8749c05854 WebView: Search using default engine instead of active in actions
BUG: 386377
2018-01-01 18:09:39 +01:00
David Rosca
397e2f714e Set default button for all CheckBoxDialogs
Default button is now focused instead of checkbox.
2017-12-30 18:05:47 +01:00
David Rosca
01b66a0f48 WebInspector: Set focus back to webview when inspector closes 2017-12-30 18:04:59 +01:00
David Rosca
a5e35bac75 WebInspector: Fix showing close button with Qt 5.10
It's not tested with Qt 5.9 but it should work there too.
2017-12-30 18:04:51 +01:00
David Rosca
7cd86e144b WebInspector: Don't show inspector actions when JavaScript is disabled
WebInspector doesn't work without JavaScript.
2017-12-30 18:03:58 +01:00
David Rosca
cca6b0189f Don't use QPrinter when printing to PDF
QWebEnginePage::printToPdf produces scalable PDF with clickable
links while QWebEnginePage::print will create PDF containing low quality
image of page.

Closes #2477
2017-11-01 17:37:45 +01:00
David Rosca
40d42f1230 LoadRequest: Replace isEmpty with isValid
Also test for QUrl being valid, not just not empty
2017-10-09 12:06:25 +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
6f08f94e0f Workaround wrong focus when opening new tab from createWindow() 2017-07-19 13:57:37 +02:00
David Rosca
f0b8ac2daa Use QWebEngineHttpRequest with Qt 5.9 2017-06-06 17:40:47 +02:00
David Rosca
16f9b2fde9 Rework the zoom bug workaround
Qt 5.9 is affected too

Closes #2289
2017-05-29 17:11:48 +02:00
David Rosca
3ec6ffa5c9 WebPage: Remove no longer used m_adjustingScheduled 2017-05-29 17:05:28 +02:00
David Rosca
bd9a33d6f9 Fix crash when opening target __blank links
Regression from 92b49be0c2

Closes #2335
2017-05-19 09:02:38 +02:00
Anthony Fieroni
92b49be0c2 Don't leak web page
Signed-off-by: Anthony Fieroni <bvbfan@abv.bg>
2017-05-12 20:50:24 +02:00
Anthony Fieroni
db33b8d860 Workaround Qt5.8 zoom factor bug
Signed-off-by: Anthony Fieroni <bvbfan@abv.bg>
2017-05-12 20:50:24 +02:00
David Rosca
eb0cf5065d WebView: Exit fullscreen on hide
Closes #2294
2017-04-09 10:33:57 +02:00
David Rosca
8e16efc1bf Fix crash when restoring history of internal pages with QtWebEngine 5.8
Closes #2302
2017-04-08 16:44:41 +02:00
srazi
2654081912 Fix 2178 (#2292)
* CheckBoxDialog: Rewritten to inherit from QMessageBox

-  QMessageBox supports showing checkbox for Qt >= 5.2

* Add option to disable warning message when closing tabs from tabbar context menu.

- Closes #2178
2017-04-05 10:27:03 +02:00
David Rosca
44cd68e3d9 Merge branch 'v2.1' 2017-03-18 16:11:34 +01:00
David Rosca
b61b4aca67 WebView: Don't change m_progress when loading finished
QtWebEngine may emit loadProgress signal even after loadFinished
was already emitted.

Closes #2222
2017-03-18 16:00:57 +01:00
David Rosca
f20d421113 Merge branch 'v2.1' 2017-03-15 13:29:24 +01:00
David Rosca
486b8f4c7d Workaround QWebEnginePage not scrolling to anchors when opened in background tab
Closes #2242
2017-03-15 13:11:27 +01:00
David Rosca
bfef9e2c03 Merge branch 'v2.1' 2017-03-15 10:53:44 +01:00
David Rosca
9211a8eceb Disable native scrollbars by default
See #2246
2017-03-15 10:49:27 +01:00
José Rios
85832642db Fixed new tab not opening on mouse mid button click (#2244)
Whenever the user pressed the middle button the mouse press handler
in WebPage issued an 'execJavaScript' which has its own event loop
causing the mouse release handler to be called before the field
'm_clickedUrl' get the url in the first handler. Since this field
is used to guard the logic in the second handler the new tab wasn't
opening.

Closes #2238
2017-03-13 09:05:36 +01:00
José Rios
e49ea20f33 Fixed new tab not opening on mouse mid button click (#2244)
Whenever the user pressed the middle button the mouse press handler
in WebPage issued an 'execJavaScript' which has its own event loop
causing the mouse release handler to be called before the field
'm_clickedUrl' get the url in the first handler. Since this field
is used to guard the logic in the second handler the new tab wasn't
opening.

Closes #2238
2017-03-12 17:57:19 +01:00
David Rosca
e832a3418c Merge branch 'v2.1' 2017-02-21 10:29:15 +01:00
David Rosca
71f0737511 WebScrollBarManager: Use scrollbars as lambda context
Instead of manually disconnecting the lambdas, use scrollbar
as context.
2017-02-21 10:28:24 +01:00
David Rosca
071c4fbe52 Merge branch 'v2.1' 2017-02-13 21:35:56 +01:00