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

32 Commits

Author SHA1 Message Date
David Rosca
c6aefbbed3
Scripts: Element.tagName can be lowercase
Closes #2616
2018-02-22 16:21:23 +01:00
David Rosca
f7e64e2353
Scripts: Install webchannel bridge in main world also on extension scheme 2018-02-07 11:24:06 +01:00
David Rosca
4f0c30c5c7 Add support for window.print()
Closes #2509
2018-01-13 16:42:03 +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
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
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
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
d00e769749 Initial rename to Falkon 2017-08-25 17:32:32 +02:00
David Rosca
74c65c2272 Password observer: Also use 'login' input name as username 2017-05-29 16:15:09 +02:00
David Rosca
57172459d8 Fix comparing tagName in form observer
Listen also to subtree mutations

Closes #2321
2017-05-29 16:08:41 +02:00
David Rosca
95603f652d Fix some warnings in js scripts 2016-12-27 16:51:19 +01:00
David Rosca
0ca133bfaf Always use QPointF for positions on webpage
Also take zoom into account when setting scroll position
2016-12-27 11:58:29 +01:00
David Rosca
f9c7ed9759 Drop qwebchannel.js copy and use it from qrc instead 2016-12-01 23:04:00 +01:00
David Rosca
f785d81c41 Fix creating QWebChannel on first QWebEnginePage load
The "qt" object may be undefined at the time QWebEngineScript
that creates web channel is being run. Try to create the web channel
until it finally succeeds in 100ms intervals.

Fixes the "Uncaught ReferenceError: qt is not defined" error message.
2016-11-04 10:59:28 +01:00
David Rosca
3d5f45bfc5 Don't use custom script for toggle play/pause and mute 2016-02-28 18:25:30 +01:00
David Rosca
a37fadd8dc Don't use C++11 for with Qt containers 2016-02-27 22:13:33 +01:00
David Rosca
b6b7edd187 Use shorter code for QString().arg(int) 2015-10-09 20:42:25 +02:00
David Rosca
97ba8c6af3 Bring back PIM plugin 2015-10-02 14:13:21 +02:00
David Rosca
b24303c00b WebView: Bring back media context menu 2015-09-30 15:26:52 +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
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
ced9c8553c SearchEngines: Bring back support to add engine from page 2015-09-25 17:41:46 +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
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
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
David Rosca
20c7b3f57b PageThumbnailer: Delay creating thumbnail by 1 sec after loaded 2015-08-30 10:33:10 +02:00
David Rosca
ef71be2a0e Scripts: Only emit created Event when external is not null 2015-08-29 18:22:45 +02:00
David Rosca
fc204b3b46 SpeedDial: Fix to work with QWebChannel
Page thumbnails are not yet implemented, otherwise it more or less
works.
2015-08-28 19:25:45 +02:00
David Rosca
431610215d AdBlock: Bring back domain specific element hiding rules 2015-05-27 19:17:29 +02:00