1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-11-04 08:17:17 -05:00
Commit Graph

959 Commits

Author SHA1 Message Date
Miciah Dashiel Butler Masters
cd7ad685f7 refresh_view: drop unnecessary call to redraw_from_window
print_screen_status calls redraw_from_window, so there is no need to
call both.
2006-11-27 17:50:58 +01:00
Jonas Fonseca
9090b68bd6 FSP: Check and exit the file 'writer' process if writes to stdout fails
This ensures that the 'writer' process will remove itself when the
main ELinks process for some reason decides to shutdown the connection.
Before the 'writer' process would complete it's task taking up unnecessary
system resources.

This is mostly an issue when fetching big files. Therefore only file
fetching is fixed. FIXME added about also checking return codes for write
associated with directory listing.

Reported-by: zas
2006-11-27 17:46:51 +01:00
Laurent MONIN
135a79a3c3 Include <sys/types.h> and fix compilation on an old PPC/Debian system
It should be included via elinks.h but apparently some other system header
can prevent this somehow on some systems.

Reported-by: Phillip Pi <ant@zimage.com>
2006-11-27 17:38:00 +01:00
Jonas Fonseca
2c40cb003c Ignore test files 2006-11-27 17:36:29 +01:00
witekfl
b05a2e0998 Info about Python scripting 2006-11-27 17:19:10 +01:00
witekfl
8bedf25bf8 goto_url_hook takes 2 params not 1. Some dumbprefixes defined in hooks.py 2006-11-27 17:13:02 +01:00
witekfl
e1ae6a0cdf Added slash to base href when directory didn't end with '/' 2006-11-27 17:08:18 +01:00
witekfl
d580483c6b Compilation fix 2006-11-27 17:07:13 +01:00
witekfl
79275b060e Compilation fix when --without-openssl was used 2006-11-27 17:05:06 +01:00
Miciah Dashiel Butler Masters
8dabb246ae Use enum connection_state
Use enum connection_state instead of int in load_uri,
proxy_uri, get_proxy_worker, and get_proxy_uri. See commit
d18809522e. I hope that satisfies TCC.
2006-11-27 17:04:43 +01:00
witekfl
522ee24ab8 Compilation fixes 2006-11-27 17:03:34 +01:00
Jonas Fonseca
af7ce38639 BOOKMARKS: Fix XBEL calling add_bookmark() with NULL title
It didn't check that both title and title->text was non NULL. In either
case it now passes "No title" string to add_bookmark().

Reported by Neuromancer.

Tested with both:

	<bookmark href="empty://title"><title></title><bookmark>
	<bookmark href="no://title"></bookmark>
2006-11-27 16:56:12 +01:00
Kalle Olavi Niemitalo
67d6474684 Bug 846: Document the expected parents of form_elements_class instances.
This should have been in commit 92290b73a9.
The corresponding commit e76e047196 in the
REL_0_10 branch does include it.
2006-11-26 19:06:28 +02:00
Kalle Olavi Niemitalo
f2854e19ba SMJS: keymap_get_property: fix build error
Fix an error in the order of variable initialisation that was introduced
in commit 9a829b3277.

(Copied from a2c48b4d91fe6c6998836deca73eb93d324630df in ELinks 0.12.GIT.)
2006-11-26 15:57:52 +02:00
Miciah Dashiel Butler Masters
a44e72161f SMJS: keymap_set_property: fix build error
Fix an error in the order of variable initialisation that was introduced
in commit 9a829b3277.

(Copied from eaed0315993b07a20211b151a53ba7bd4553dff0 in ELinks 0.12.GIT.)
2006-11-26 15:54:35 +02:00
Kalle Olavi Niemitalo
0744d96213 Bug 846: Add plenty of JS_InstanceOf assertions and checks.
(Adapted from 47dce0922b in ELinks 0.12.GIT.)
2006-11-25 21:24:25 +02:00
Kalle Olavi Niemitalo
9a829b3277 Bug 846: Separate JS_GetParent & JS_GetPrivate calls from initializations.
This will allow the types of objects to be checked before those calls.

(Adapted from bbf0d478e9 in ELinks 0.12.GIT.)
2006-11-25 21:14:56 +02:00
Kalle Olavi Niemitalo
4c58b4c56c Bug 846: Rename some local variables.
Rename parent to parent_win if it points to an instance of window_class.

(Adapted from 98a120b3d5 in ELinks 0.12.GIT.)
2006-11-25 21:01:53 +02:00
Kalle Olavi Niemitalo
59df2a3d11 Bug 846: Document the JSClass assumed in each JS_{Set,Get}Private call.
(Adapted from 356678dd80 in ELinks 0.12.GIT.)
2006-11-25 20:56:09 +02:00
Kalle Olavi Niemitalo
92290b73a9 Bug 846: Document the expected parents of SMJS class instances.
(Copied from 36f5f73a60 in ELinks 0.12.GIT.)
2006-11-25 20:50:34 +02:00
Kalle Olavi Niemitalo
fcebd6d111 Bug 846: Comments on the relations between JSClasses and functions.
(Adapted from 670ad939c3 in ELinks 0.12.GIT.)
2006-11-25 20:48:29 +02:00
Kalle Olavi Niemitalo
ffa24fd3e0 Bug 846: Document the private data in each SMJS class.
(Adapted from d6ea143f36 in ELinks 0.12.GIT.
 ELinks 0.11.2.GIT doesn't have src/scripting/smjs/action_object.c and
 src/scripting/smjs/globhist.c.)
2006-11-25 20:35:48 +02:00
Jonas Fonseca
1f3b2f366b elinks-0.11.2.GIT 2006-11-19 14:41:44 +01:00
Jonas Fonseca
b2c77a07b0 elinks-0.11.2 2006-11-19 14:40:42 +01:00
Kalle Olavi Niemitalo
6f14725204 Bug 841, CVE-2006-5925: Prevent enabling the SMB protocol.
src/protocol/smb/smb.c: Added #error directives so that this
vulnerable code cannot be accidentally compiled in.

features.conf: Disable CONFIG_SMB by default and explain why.

configure.in: If the user set CONFIG_SMB in features.conf or
--enable-smb in the command line, disable them and warn the user.

(This commit combines f915c31127 and
388de7bd65 from ELinks 0.12.GIT.)
2006-11-18 22:37:51 +02:00
Witold Filipczyk
8789b7c330 Ecmascript: activate link only when onClick returns true
[ Merge stuff from commit c3f17eadeb, namely
  the remaining part which changes enter() to only call activate_link when
  needed. --jonas ]
2006-08-22 23:49:40 +02:00
Jonas Fonseca
fcf8d31eba Fix compilation on Minix3
- Include arpa/inet.h to get hton* ntoh* functions.
 - Use socklen_t instead of int.
 - Try to define PF_INET to AF_INET if it doesn't exist.

Reported-by: Andy Tanenbaum <ast@cs.vu.nl>
2006-08-22 22:10:51 +02:00
Jonas Fonseca
205f346d49 Use internal OFF_T_FORMAT instead of PRId64
... since the latter is for printing int64_T and we don't check for that and
we use PRId64 only for printing values having the off_t types.

Besides off_t has it's own ELinks specific defaults so it should be safer
to use an internal format string. If off_t is 8 bytes use "lld" else use
"ld".

Reported-by: Andy Tanenbaum <ast@cs.vu.nl>
2006-08-05 00:39:14 +02:00
Jonas Fonseca
f5d26a34cb elinks-0.11.1.GIT 2006-01-29 14:03:48 +01:00
Jonas Fonseca
8abfea7054 elinks-0.11.1 2006-01-29 14:00:40 +01:00
Jonas Fonseca
73622b69ba Update po files 2006-01-29 13:01:18 +01:00
Jonas Fonseca
1afc6b8065 Add Eric Wald to authors 2006-01-29 12:58:30 +01:00
Jonas Fonseca
5e60934627 Sync the doc/ changes from elinks-0.12
This includes a lot of improvements to the manpages. The API doc changes
are not merged.
2006-01-29 12:52:19 +01:00
Jonas Fonseca
038f3a4502 Apply the many changes to Makefile.lib in one go
This fixes make test dependencies and a lot more things.
2006-01-29 12:41:14 +01:00
Jonas Fonseca
081ab78a88 Revert 06eb3fa02abf12c6d2352af4288a6ad465a0e8c1 (in the historic repo)
This was reverted by zas in commit 2a71adda10
in current HEAD (elinks-0.12).

The original commit message reads: Anchors with '#' didn't "work" for
libstdc++ local documentation due to encoded filenames. This change fixes
it and hopefully has no impact for other parts of ELinks.
2006-01-29 12:28:43 +01:00
Jonas Fonseca
ba68992ef2 Normalize all links added by the plain renderer
Fixes problems with host or protocol parts not being lowercased. This
triggers an assertion failure when trying to download such links. Reported
by lindi-.
2006-01-29 12:06:30 +01:00
Miciah Dashiel Butler Masters
1c73b1aa69 SMJS: mangle_deb_bugnumbers: add <pre>; set rendered view
Use the newly available view_state object to change to rendered view
and wrap everything in <pre> ... </pre> if the document MIME type is
text/plain.
2006-01-29 12:02:23 +01:00
Miciah Dashiel Butler Masters
b9d5bcee1c SMJS: Give user scripts access to the view_state
Introduce the view_state object to ECMAScript with properties .uri and
.plain and pass the current view_state to preformat hooks.
2006-01-29 12:02:08 +01:00
Jonas Fonseca
b69e0d4eb2 Fix out of bound access to the scanned string 2006-01-29 11:54:35 +01:00
Jonas Fonseca
e5ba160c77 Detect whether asciidoc supports --unsafe; set ASCIIDOC_FLAGS accordingly 2006-01-29 11:44:40 +01:00
66500fa4ab Set text/plain for errors 2006-01-29 11:43:25 +01:00
bd4be81013 Content-Type handling 2006-01-29 11:42:43 +01:00
b530860e5a Use slashes after directories. Blocks are not used where there is only
one instruction
2006-01-29 11:41:33 +01:00
Jonas Fonseca
fac4c2631f Handle <base href=""> for HTML source rendering
Requested by witekfl.
2006-01-29 11:41:13 +01:00
Jonas Fonseca
b7ffca5485 Rename enum html_element_type to html_element_mortality_type
This name is reserved for DOM.
2006-01-29 11:32:14 +01:00
Miciah Dashiel Butler Masters
53fb55d8b3 Use <meta> refresh instead of elinks.location method.
Instead of assigning the URI for the video to elinks.location, instead
create a <meta> tag to automatically load the video. This way, the video
will still be automatically loaded when the document is loaded from cache.
2006-01-29 11:31:21 +01:00
Miciah Dashiel Butler Masters
e9d12e9128 Reflow some logic in google_video.js. 2006-01-29 11:31:07 +01:00
Miciah Dashiel Butler Masters
bb866498a1 Add a rewrite rule for video.google.com to automatically play videos
From the file:

   Play videos at video.google.com with minimal niggling. Just follow
   the link from the front page or the search page, and the video will
   automatically be loaded.
2006-01-29 11:30:53 +01:00
Jonas Fonseca
46ba880e47 List native FSP protocol support 2006-01-29 11:30:30 +01:00
Jonas Fonseca
1d516527ca Fix the mailcap test program's dependency on gettext 2006-01-29 11:28:38 +01:00