Commit Graph

446 Commits

Author SHA1 Message Date
Quentin Rameau 5e591b89a1 Update deprecated JavaScript eval function
Function webkit_web_view_run_javascript has been deprecated since 2.40.
2024-03-17 08:22:18 +01:00
Quentin Rameau 85bfff1083 Move TLS parameters handling to datamanager
Using web context is deprecated since 2.32.
2024-03-17 08:22:18 +01:00
Quentin Rameau 3f4292b7cc Remove Java support toggle
This has been deprecated since 2.38.
2024-03-17 08:22:18 +01:00
Quentin Rameau 175710126c Remove frame flattening toggle
This has been deprecated since 2.38.
2024-03-17 08:22:18 +01:00
Quentin Rameau f1d47112d6 Add webkit URI scheme 2024-03-17 08:22:17 +01:00
Quentin Rameau 30f5464eb1 Fix usage message: -Pp don't exist anymore
Thanks to Eric Pruitt <eric.pruitt@gmail.com> for reporting!
2023-11-18 12:48:19 +01:00
Petr Vaněk e9b7ec6722 webext: add missing gio/gunixfdlist.h includes
This resolves two set of warnings pointed by compiler
-Wimplicit-function-declaration and -Wint-conversion, where the later
one can result with segfault caused by invalid cast from int to pointer.

Fixes: 665a709b52 ("webext: Exchange fd over webkit messages")
2022-10-22 13:07:19 +02:00
Quentin Rameau 665a709b52 webext: Exchange fd over webkit messages
This is more complex, but webkit2gtk prevents passing file descriptors
to processes in 2.38.0.
2022-10-16 17:39:05 +02:00
Quentin Rameau 609ea1c8e6 Do not reload page when toggling dark mode
This change had actually been applied in previous commit d3ee652
by mistake.
2022-05-04 03:31:58 +02:00
Quentin Rameau 38cb1632bf Fix dark mode parameter application 2022-04-10 18:50:02 +02:00
Quentin Rameau d3ee652860 Only get webkit context and settings once 2022-04-10 18:49:35 +02:00
Quentin Rameau 1f5b8f3bd1 Add dark mode toggle
This sets dark gtk theme variant,
which should make webkit2gtk use dark css variant
from websites that provide it.
2022-04-10 16:35:24 +02:00
Quentin Rameau 11dca18a2d Improve non-ASCII character search handling
Before, the XA_STRING would only let use ASCII characters properly.
Now UTF-8 characters should be handled correctly.
2021-07-19 22:27:50 +02:00
Quentin Rameau 761ea9e4c6 Fix togglestats array 2021-05-21 00:16:17 +02:00
Quentin Rameau 4540b4a97c Remove accelerated canvas parameter
This has been deprecated since release 2.32.
2021-04-30 08:48:19 +02:00
Quentin Rameau fce76429b8 Remove external plugin handling
This has been deprecated since release 2.32.
2021-04-30 08:47:20 +02:00
Quentin Rameau 55c65b21f6 Simplify communication with webext 2020-11-01 16:59:12 +01:00
Quentin Rameau 5f81d4a99f Set title on committed load 2020-11-01 16:59:12 +01:00
Quentin Rameau e92fd1aa5f Communicate through a Unix socket instead of a pipe pair 2020-11-01 16:59:12 +01:00
Quentin Rameau f61cfc720c Add support for ephemeral (zero disk access) 2020-11-01 16:59:12 +01:00
Quentin Rameau 6850365d7c Add support for configuring plugins directories 2020-11-01 16:59:12 +01:00
Quentin Rameau 8d5e2b3a40 Remove common 2020-11-01 16:59:11 +01:00
Quentin Rameau 02541c3146 Send message size inside messages through pipes 2018-10-15 13:15:54 +02:00
Quentin Rameau 1901359efa Add a file for shared functions
New common.[hc] files where shared functions between surf and
webkitextension will be put. First addition is die().
2018-10-08 11:38:03 +02:00
Quentin Rameau 7ea0c2f7f8 Communicate with webextension via a pipe 2018-10-08 11:38:03 +02:00
Quentin Rameau 0bd553a078 Request cookiemanager only once at creation 2018-10-08 11:38:03 +02:00
Quentin Rameau c60523a702 Exit more gracefully on web process crash. 2018-10-08 11:38:03 +02:00
nzl befe481a9b Allow tilde expansion in loaduri
also fixed a bug that ~foo/ was expanded to /home/fo/o/
2018-10-08 11:38:03 +02:00
Quentin Rameau 6f6b343721 Force printing the winid when requested
Do not wait for the libc to decide flushing buffers, force it ourselves.

Thanks to koniu for reporting the issue.
2018-06-09 21:55:20 +02:00
nzl d2e4989c3c Script text shouldn't go through formatted conversion 2018-02-23 13:39:35 +01:00
Eon S. Jeon 7817d0ec83 Add support for WebGL
Allows enabling and disabling WebGL support built into WebKit.
The feature is turned off by default.
2018-02-23 13:39:35 +01:00
Quentin Rameau a0c3c80ee6 Store modified parameters list 2017-05-30 10:33:36 +02:00
Quentin Rameau a8bf206827 Use priority values instead of “forced” parameters
This makes parameter handling a bit easier and lets the user override
parameters as he sees fit.
2017-05-22 12:38:49 +02:00
Quentin Rameau a0ef4ba41d Get rid of config parameter MACROs
There's no need to obfuscate so much what is done, the user can deal
with a few extra knobs to set instead.
2017-05-22 12:38:49 +02:00
Quentin Rameau d3e974f4ea Get rid of integer member b in Arg
There's no need to keep another integer member there, use directly the i
integer one.
2017-05-22 12:38:49 +02:00
Quentin Rameau 70c1b548ab Only apply parameters when needed
Specify which parameter should be applied on which load state.
2017-05-22 12:38:49 +02:00
Quentin Rameau 2223417c91 Fix handling of uri-specific parameters
We need to (re)apply uri-specific parameters for each new uri even if
the parameter has already been set to get the correct value.

Thanks to Julien STEINHAUSER <julien.steinhauser@orange.fr> for the
report!
2017-05-22 12:38:49 +02:00
Quentin Rameau a1328457cf Unset previous user styles before applying another one 2017-05-22 12:38:49 +02:00
Constantine Bytensky 25652669ef Add config option for cross requests from file URLs
I use it to open local .xml files with .xsl style-sheets.
2017-05-22 12:38:49 +02:00
Quentin Rameau bcd05ae321 Add config option for microphone and webcam access 2017-05-21 17:13:02 +02:00
Quentin Rameau f5be376ccc Fix synchronization issue with atoms
Be sure to sync after setting an atom.
Sync too before reading one.
2017-05-12 00:30:51 +02:00
Quentin Rameau 5e2216c414 There's no need to call geturi() again in loadchanged
Also call the variable “uri” instead of “title” which was ambiguous
regarding what it is.
2017-05-12 00:30:45 +02:00
Quentin Rameau 4a1876eb80 Add config option for smooth scrolling activation 2017-05-11 15:33:42 +02:00
Quentin Rameau 93a3e4cda0 Add config option for Java activation 2017-05-11 15:27:27 +02:00
Quentin Rameau 298e688933 Add config option for setting default charset.
This will be used for pages with no specified charset.
2017-05-11 15:23:22 +02:00
Quentin Rameau 745a319baf Improve parameters handling
There's no need to reload all parameters each time a new url is loaded,
instead set only custom parameters and restore those to defaults when
needed.
2017-05-11 09:22:43 +02:00
Quentin Rameau d984d12de7 Simplify usage()
There's no real need for using the real executable call name, especially
with basename requiring special care.
2017-05-04 10:29:02 +02:00
Quentin Rameau 2901145301 Simplify version message 2017-05-04 10:27:07 +02:00
Ivan Tham e23d5c1c45 Use Ctrl-t for showcert instead of Ctrl-x 2017-05-02 17:20:11 +02:00
Quentin Rameau 0df9f79d95 Fix forgotten options in surf.1 2017-05-01 01:08:27 +02:00