Quentin Rameau
48517e586c
Fix (2) some typo for kiosk mode in the man-page
...
Looks like I didn't pay enough attention the first time,
that's what you get for pushing without review!
Thanks to Hiltjo for spotting this!
2025-04-19 12:02:45 +02:00
Quentin Rameau
ca380ccb93
Add configuration option for PDF-JS-viewer
2025-04-18 13:56:14 +02:00
Quentin Rameau
c3b3b95f4a
Fix some typo for kiosk mode in the man-page
...
Thanks to Tim Dickson <dickson.tim@googlemail.com > for spotting it!
2025-01-05 12:02:38 +01:00
Quentin Rameau
7f1156f9b0
Build against Webkit 4.1
...
Seems that this is needed for libsoup3.
2025-01-05 12:02:38 +01:00
Quentin Rameau
b3ba9f5991
Request HTTPS by default instead of HTTP
...
This might be more reasonable privacy-wise in 2025.
2025-01-05 12:02:38 +01:00
Quentin Rameau
9ef79bf710
webext: Process full messages
...
Piped messages would not always be fully sent in a single read.
Do a bit of message reassembly.
2024-03-24 15:27:20 +01:00
Quentin Rameau
d5f45bffe0
webext: Free JavaScript objects
...
Webkit documentation says JavaScript objects refcount is always
increased, and has to be released always.
2024-03-24 15:27:20 +01:00
Quentin Rameau
b48be75179
Fix message sizes for web extension communication
2024-03-17 09:13:56 +01:00
Quentin Rameau
2ea91766bb
webext: Remove unused functions
...
Communication from web extension to surf isn't used,
this code can always be brought back if needed.
2024-03-17 08:22:18 +01:00
Quentin Rameau
7513a622e3
Update get frame name function
...
webkit_navigation_policy_decision_get_frame_name has been deprecated
since 2.40.
2024-03-17 08:22:18 +01:00
Quentin Rameau
4bab57968d
Remove setting processing model
...
The processing model we want is actually the only one supported
since 2.40.
2024-03-17 08:22:18 +01:00
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
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
238d2273b5
Improve SETPROP xprop parsing
...
This handles correctly quotes, backslashes, etc.
2021-07-19 22:27:32 +02:00
Quentin Rameau
761ea9e4c6
Fix togglestats array
2021-05-21 00:16:17 +02:00
Quentin Rameau
bcd7d74e61
Update LICENSE file
2021-05-10 00:44:36 +02:00
Quentin Rameau
327cca048b
Fix distfile generation
2021-05-10 00:37:46 +02:00
Quentin Rameau
d75c3ded0b
Bump version to 2.1
2021-05-08 16:53:53 +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
7dcce9e1b9
Makefile: use explicit targets
...
Some make implementation have trouble with following inference rules
indirection
2020-11-07 18:43:11 +01:00
Quentin Rameau
262c3ee24a
webext: Fix missing flags for gio
2020-11-07 15:32:46 +01: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
21fcbc004e
Makefile: rework how webextensions are handled
2019-02-10 19:50:25 +01:00
Quentin Rameau
890b2fc396
Makefile: include common to webext
2019-02-06 10:53:05 +01:00
Quentin Rameau
b9cd3bb0bc
Makefile: fix a typo for the webext CFLAGS
...
Thanks to Justin Keogh <suckless@v6y.net > for spotting this
2019-02-06 10:22:15 +01:00
Quentin Rameau
02541c3146
Send message size inside messages through pipes
2018-10-15 13:15:54 +02:00
Quentin Rameau
16beb6f8ac
Makefile: fix dependencies
2018-10-09 12:41:00 +02:00
Quentin Rameau
4e7371317c
Fix, again, webext directory in Makefile
2018-10-08 14:25:37 +02:00
Quentin Rameau
47e39851ca
Fix webext directory in Makefile
2018-10-08 14:12:51 +02:00
Quentin Rameau
3321c42d36
Remove libtool depencency, reorganise Makefile
...
We don't need libtool anymore, just build the library directly.
This lets us simplify the Makefile too.
2018-10-08 13:51:51 +02:00
Quentin Rameau
e7c629b258
Unobfuscate Makefile
2018-10-08 13:51:51 +02:00
Quentin Rameau
660413256f
ext: get the right DOM on msg
...
When navigating history, the document-loaded signal isn't triggered and
we can't directly get back the previous webview, so we have no other
choice than to look it up everytime a new message is received.
2018-10-08 11:38:03 +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
1bd6d20102
ext: first commit for surf lib
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
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
Quentin Rameau
723ff26c36
Disable media autoplay by default
2017-06-03 10:23:40 +02: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
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
47b145f2ec
Add prompts for SETPROP
...
Imported from __20h__ repo, thanks to him and Ben Woolley.
2017-05-08 11:34:00 +02:00
Quentin Rameau
b8b0c05035
Embed dmenu into the surf window by default
2017-05-08 11:33:59 +02:00
Quentin Rameau
dca4264863
Simplify DOWNLOAD macro
...
No need to spawn an extra sh.
Use short flags for curl and quote operands.
Replace sleep with read, let the user close the download window instead
of waiting for an arbitrary time.
Rename d to reflect what it's used for.
Reorder sh positional arguments.
Set $0 to a command name and shift other positional parameters to
clarify the "sh -c" command.
2017-05-08 11:33:55 +02:00
Quentin Rameau
654d527f87
Simplify SETPROP macro
...
Get rid of xargs by using a subshell instead.
Use two replacement commands in sed because back-references in BRE are
too differently implemented in different libc.
Rename p, q, to reflect what they're used for.
Reorder sh positional arguments.
Set $0 to a command name and shift other positional parameters to
clarify the "sh -c" command.
2017-05-08 11:30:20 +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
Quentin Rameau
5936806949
Cleanup and fix formatage issues in surf.1
2017-05-01 01:09:52 +02:00
Quentin Rameau
0df9f79d95
Fix forgotten options in surf.1
2017-05-01 01:08:27 +02:00
Quentin Rameau
cc887cf2ab
Add forgotten tT indicator description in surf.1
2017-04-29 17:59:09 +02:00
Quentin Rameau
0326e42bb3
Add forgotten fF indicator description in surf.1
2017-04-29 17:59:08 +02:00
Quentin Rameau
d66904675d
Add a flag for custom certificates
...
I don't think a keybinding would be useful here because we can't
remove a custom certificate which is alread set anyway.
I'll add it if somebody convince me of it's usefulness.
2017-04-29 17:59:08 +02:00
Quentin Rameau
7823ab6fc0
Move xid printing option from -x to -w
2017-04-29 17:59:08 +02:00
Quentin Rameau
9eda6f5dd5
Add a keybinding to show current TLS certificate
2017-04-29 17:59:07 +02:00
Quentin Rameau
1dc3cd513a
Display an error message and certificate on tls error
2017-04-29 16:34:48 +02:00
Quentin Rameau
c870098b82
Arrange Makefile
...
Let the user specify his own C and LD FLAGS.
Remove unuseful and non portable CFLAGS like pendantic and Wall.
2017-04-29 16:34:47 +02:00
Quentin Rameau
db7922f173
Free temporary certificate in setcert
2017-04-29 14:34:02 +02:00
Quentin Rameau
0d1e670ac3
Do not build SiteSpecific file when regex is invalid
2017-04-28 13:09:39 +02:00
Quentin Rameau
3c2c0a6525
Add support for using custom certificates per url
2017-04-28 12:58:36 +02:00
Quentin Rameau
eb32dd6eca
Avoid using global name stylefile in setstyle()
2017-04-27 15:41:16 +02:00
Quentin Rameau
d0e3c69e59
Change site styles structure for a more generic one
2017-04-27 15:02:40 +02:00
Quentin Rameau
5c52733984
Fix 27cec48 Add a flag/keybinding for strict TLS
...
Forgot to add changes in main(), usage() and newwindow() too.
2017-04-23 18:31:32 +02:00
Quentin Rameau
2940d2bd07
Fix a981959 Move -t stylefile flag to -C stylefile
...
Forgot to modify usage() and newwindow() too.
2017-04-23 18:28:06 +02:00
Quentin Rameau
4b752834d8
Fix possible oob access of cmd in newwindow()
...
Thanks to tarug0 for spotting this!
2017-04-23 18:27:43 +02:00
Quentin Rameau
ac837f43b9
Bump year in program
2017-04-20 00:10:46 +02:00
Quentin Rameau
27cec48408
Add a flag and toggle keybinding for strict TLS
2017-04-20 00:10:45 +02:00
Quentin Rameau
a981959124
Move -t stylefile flag to -C stylefile
2017-04-20 00:09:01 +02:00
Quentin Rameau
ee854bb095
Rename SSL instances to TLS
2017-04-19 17:45:20 +02:00
Quentin Rameau
0247e91b00
Set strict ssl by default and handle insecure content
...
Non-https content in https pages is now handled separately from https
connection establishment.
2017-04-19 17:41:23 +02:00
Quentin Rameau
2355c20e92
Add a configure option for default window size
2017-04-19 19:10:21 +02:00
Quentin Rameau
b814567e2b
Bump version to 2.0
...
We're using the new scheme: 2.x is for webkit2
2017-03-28 18:17:45 +02:00
Quentin Rameau
0cb1597801
Add contributors to the LICENSE
2017-03-28 18:17:03 +02:00