Witold Filipczyk
e7386bcd3c
Minor optimisation.
2007-09-21 20:28:09 +02:00
Witold Filipczyk
c06122a029
Revert "Moved timeouts from document to the ecmascript_interpreter."
...
This reverts commit fa0fd41c94718a6cd4f7dcb2d3b14e5844679272.
2007-09-21 20:18:38 +02:00
Laurent MONIN
25536d1e2f
Fix compilation with --disable-css.
...
Compilation failed due to missing DEBUG_CSS test.
This was introduced in commit 98260f7970bcd940f2d2146ac7b5a980a7586082
2007-09-21 18:29:39 +02:00
Witold Filipczyk
fa0fd41c94
Moved timeouts from document to the ecmascript_interpreter.
...
This simplifies the code.
2007-09-21 01:06:20 +02:00
Witold Filipczyk
05fe38b7b2
Revert "format_html_part(): save and restore renderer_context.last_tag_for_newline too."
...
This reverts commit f9f149f6cc18bd65644ebc2fdb05f716aa161d0b.
2007-09-19 18:42:45 +02:00
Laurent MONIN
a19239ad9a
Fix compilation using --enable-html-highlight.
...
It was broken by commit 09cf904814f47cf178e4539acf9d422c9b33cf0f.
Reported by witekfl.
2007-09-17 18:33:47 +02:00
Laurent MONIN
0dd99429c1
Revert "Use the new OBJS-unless$(CONFIG_FOO) instead of $(call not,...)"
...
This reverts commit e07354f5d5771e1e1dc9087a04685c8484ea8c98.
2007-09-14 21:09:25 +02:00
Kalle Olavi Niemitalo
8fa52b1df6
Define BITTORRENT_NULL_ID in common.c; declare extern in common.h.
...
This change avoids linker warnings when building with Debian tcc
0.9.23-4 + patch from Debian bug 418360:
[LD] src/protocol/bittorrent/lib.o
bittorrent.o: 'BITTORRENT_NULL_ID' defined twice
common.o: 'BITTORRENT_NULL_ID' defined twice
connection.o: 'BITTORRENT_NULL_ID' defined twice
dialogs.o: 'BITTORRENT_NULL_ID' defined twice
peerconnect.o: 'BITTORRENT_NULL_ID' defined twice
peerwire.o: 'BITTORRENT_NULL_ID' defined twice
piececache.o: 'BITTORRENT_NULL_ID' defined twice
tracker.o: 'BITTORRENT_NULL_ID' defined twice
2007-09-14 21:09:18 +02:00
Miciah Dashiel Butler Masters
890e16b5d0
Move is_in_domain from cookies/cookies.c to protocol/uri.c and export
2007-09-14 21:09:06 +02:00
Jonas Fonseca
118728dd27
Use the new OBJS-unless$(CONFIG_FOO) instead of $(call not,...)
2007-09-14 21:08:56 +02:00
Miciah Dashiel Butler Masters
b1ccdc9788
Introduce start_document_refreshes()
...
start_document_refreshes() performs the NULL-pointer checks that
previously all callers to start_document_refresh() must perform
and then calls start_document_refresh().
2007-09-14 21:08:29 +02:00
Jonas Fonseca
0da7f5a670
Move find_tag to document/document
2007-09-14 21:08:15 +02:00
Jonas Fonseca
4e9982332e
Compile fix for commit e876df70d849b2ea22f3ed5f14933dc5e13d5102
2007-09-14 21:05:49 +02:00
Petr Baudis
2c6afbe5e8
document/html: Make HTML parser state transparent
...
Before, *_html_parser_state() operated with struct html_element *. Now, it is
transparent for the renderer (just void *), so that DOM won't have to provide
this struct but will be able to use something internal.
Backported from master.
2007-09-14 21:05:34 +02:00
Petr Baudis
f8b9992674
document/html: Move enum html_special_type from parser.h to renderer.h
...
...since it is renderer interface.
2007-09-14 21:05:13 +02:00
Laurent MONIN
ab6e3388d9
Backport Pasky's changes concerning text_style-related stuff.
...
It partially includes changes made in following commits:
document/html: struct text_attrib_style -> struct text_style
commit e1339412068f97be1aa5f91871ba7ebeedbdb5f
document: struct format_attr -> struct text_style_format
commit 070d335796c3e71c5feff8813e681ef4534ee016
document: Unify text style -> screen attribute handling
commit b66d2bec674f59016ca0708c20249421914b1d2b
document: Move text_style-related stuff to dedicated format.*
commit db9431465fd77658cfe804947ab336158c1974bd
2007-09-14 21:04:59 +02:00
Laurent MONIN
832418afb2
Add a simple testcase for missing ; in meta refresh content attribute.
2007-09-14 21:04:40 +02:00
Laurent MONIN
1521c85bdf
Update french translation.
2007-09-14 21:03:56 +02:00
Laurent MONIN
241b7a803c
format_html_part(): group int variables declarations
2007-09-14 21:02:35 +02:00
Laurent MONIN
f9f149f6cc
format_html_part(): save and restore renderer_context.last_tag_for_newline too.
2007-09-14 21:02:17 +02:00
Laurent MONIN
e01e67d546
Use explicit names for variables in format_html_part().
...
llm -> saved_last_link_to_move
ltm -> saved_last_tag_to_move
ef -> saved_empty_format
lm -> saved_margin
2007-09-14 21:01:53 +02:00
Laurent MONIN
ed21e3275c
Drop useless goto/label.
2007-09-14 21:01:28 +02:00
Laurent MONIN
942fde534d
Fix get_opt_bool() call and finish backport of process_head() split.
2007-09-13 20:50:51 +02:00
Miciah Dashiel Butler Masters
fe8f24b877
Reflow check_head_for_cache_control
2007-09-13 20:50:46 +02:00
Miciah Dashiel Butler Masters
0137eb6638
Factor check_head_for_cache_control out of process_head
2007-09-13 20:50:40 +02:00
Miciah Dashiel Butler Masters
be043561d1
Factor check_head_for_refresh out of process_head
2007-09-13 20:50:34 +02:00
Miciah Dashiel Butler Masters
d74dfe97b5
Fix process_head to check for cache-control information even if no refresh
...
Previously, process_head immediately returned if there was no refresh, never giving the cache-control check further down a chance to run.
Also add new tests:
nocache.html
refresh+nocache.html
2007-09-13 20:50:28 +02:00
Laurent MONIN
c01c475ede
Extend Use of LWS() macro to parse_old_meta_refresh().
2007-09-11 19:06:54 +02:00
Laurent MONIN
7f909680c4
Make meta refresh content attribute parsing more tolerant.
...
Simply search for 'url' marker ignoring anything
before it.
ELinks is now able to follow incorrectly written
meta refresh content attribute with missing ; before
url= parameter.
As an example, try http://akkada.tivi.net.pl/
2007-09-11 19:06:46 +02:00
Jonas Fonseca
ee56c6db16
NNTP: Improve listing of articles for groups
...
It now uses ordered list with the message number as the list item
number. Only the message subject and from field are shown.
2007-09-11 19:06:41 +02:00
Jonas Fonseca
aff2e738c3
NNTP: Add support for handling RFC2047 encoded words
...
Code adapted from git's builtin-mailinfo.c file.
2007-09-11 19:06:34 +02:00
Laurent MONIN
0649d80882
French translation was updated.
2007-09-11 19:06:28 +02:00
Jonas Fonseca
ee159e2bf9
Bug 744: Make removal of double slashes more protocol specific
...
Add a boolean protocol flag which says whether "//" in the path
part of an URI can be safely substituted with "/". Be conservative
and enable it only for file://, ftp:// and nntp[s]://. Other
can be turned on later, if needed.
Generalizes the fix from 58b3b1e75239fac7f48d54609b4033c228d6a5da.
2007-09-11 19:06:20 +02:00
Jonas Fonseca
fad6cd9ba2
NNTP: Fix group listing links having bad URL syntax due to double slashes
2007-09-11 19:06:14 +02:00
Jonas Fonseca
b686ac11d2
NNTP: HTML escape header field values
2007-09-11 19:06:09 +02:00
Kalle Olavi Niemitalo
9831a2c805
Add tests for cwd-relative file URIs.
...
Test 6 currently fails.
2007-09-11 18:36:13 +02:00
Jonas Fonseca
707ddc3142
Reinstate "canonicalization" of path names for file URIs
...
This reverts commit 4f0aaa166e245aba08c574c0b4b8ae32bbc535dc
and insert check for the "//" -> "/" change only to occur for
file:// URIs. This fixes the recent reports on broken handling
of relative file URIs starting with "..".
2007-09-11 18:36:07 +02:00
Witold Filipczyk
2def774e6c
Revert "Fixed the issue with ../ reported by me 29 Aug 2007 on elinks-dev."
...
This reverts commit 39677b88b53fdd7eeba90c0c9584cbcf1aaaab87.
2007-09-11 18:35:49 +02:00
Witold Filipczyk
39677b88b5
Fixed the issue with ../ reported by me 29 Aug 2007 on elinks-dev.
2007-09-09 14:29:38 +02:00
Witold Filipczyk
d9094c1866
The compilation fix in the debug mode.
2007-09-09 13:28:47 +02:00
Witold Filipczyk
b1162b743e
mailcap, make test: Compilation fix.
2007-09-09 13:17:45 +02:00
Kalle Olavi Niemitalo
c57cd5c343
More missing va_ends.
...
Somehow, these slipped from commit
af14d00d17c0be75ec3fd8fac1011064ac40b54b yesterday.
2007-09-04 15:03:17 +02:00
Kalle Olavi Niemitalo
58dc3da469
Refer to bug 96 in a comment.
2007-09-04 08:37:53 +02:00
Kalle Olavi Niemitalo
bf9936a78f
Document Unicode characters for ACS_S[1379].
2007-09-04 08:37:15 +02:00
Kalle Olavi Niemitalo
ceeb0afd96
Add missing va_ends.
...
I'm not sure they're needed anywhere nowadays, but still.
2007-09-04 08:36:52 +02:00
Kalle Olavi Niemitalo
e6a3008117
More doc comments about coordinates.
2007-09-04 08:35:34 +02:00
Witold Filipczyk
ff7dfd74bc
bug 638: Proper handling of mailcap.
...
Mailcap handlers work both for (master/slave and XWindow/console)
terminals. This is done by setting and unsetting the DISPLAY
environment variable.
2007-09-02 17:34:54 +02:00
Witold Filipczyk
f3d9f647f0
Revert "Semaphores: The code taken from "UNIX Network Programming""
...
This reverts commit 9729ab5a58897fa8171c91156d3cea8633c053e1.
2007-09-02 17:00:34 +02:00
Witold Filipczyk
9680714765
Revert "ipc: Added two semaphores and a shared memory block."
...
This reverts commit 199232b5015d22ad3e65420c328d934dfca09fa4.
2007-09-02 17:00:15 +02:00
Witold Filipczyk
0ee52be73f
Revert "mime: Pass @term to the get_mime_handler."
...
This reverts commit 6913f1b4f724edba7e63a8fafa30bc5809cf493c.
2007-09-02 16:59:05 +02:00