Kalle Olavi Niemitalo
7894e30ace
Bug 870: Don't panic if an SMJS property ID is unrecognized.
...
If ECMAScript code does obj[42], then the getProperty or setProperty
function of the JSClass of obj gets 42 as the property ID and must not
treat that as an internal error.
2006-12-03 12:07:07 +02:00
Kalle Olavi Niemitalo
aa410301f1
Bug 846: {get,set}Property check JS_InstanceOf without asserting.
...
The getProperty and setProperty functions of a JSClass must not assume
that the obj parameter points to an instance of that class. It might
instead point to another object that merely has an instance of the
class in its prototype chain. Thus, do not assert that JS_InstanceOf
returns true there. Instead, run the check even with CONFIG_FASTMEM,
and just return JS_FALSE if it fails.
2006-12-03 11:17:48 +02:00
Kalle Olavi Niemitalo
7e52d23d2f
Bug 846: Document the expected parents of form_elements_class instances.
...
This should have been in commit 36f5f73a60502ed94c8a94051c4a2202c24b97e1.
The corresponding commit e76e0471960a39ede1e29bc6695db3d77a246d28 in the
REL_0_10 branch does include it.
2006-11-26 17:35:33 +02:00
Kalle Olavi Niemitalo
47dce0922b
Bug 846: Add plenty of JS_InstanceOf assertions and checks.
2006-11-25 16:09:38 +02:00
Kalle Olavi Niemitalo
bbf0d478e9
Bug 846: Separate JS_GetParent & JS_GetPrivate calls from initializations.
...
This will allow the types of objects to be checked before those calls.
2006-11-25 15:55:25 +02:00
Kalle Olavi Niemitalo
98a120b3d5
Bug 846: Rename some local variables.
...
Rename parent to parent_win if it points to an instance of window_class.
2006-11-25 14:57:44 +02:00
Kalle Olavi Niemitalo
356678dd80
Bug 846: Document the JSClass assumed in each JS_{Set,Get}Private call.
2006-11-25 14:52:58 +02:00
Kalle Olavi Niemitalo
36f5f73a60
Bug 846: Document the expected parents of SMJS class instances.
2006-11-25 14:42:20 +02:00
Kalle Olavi Niemitalo
670ad939c3
Bug 846: Comments on the relations between JSClasses and functions.
2006-11-25 13:36:28 +02:00
Kalle Olavi Niemitalo
d6ea143f36
Bug 846: Document the private data in each SMJS class.
2006-11-25 13:19:35 +02:00
Petr Baudis
eab3cb762f
ECMAScript: Fix a leak in case of setTimeout(..., 0)
...
identified by Jonas seconds after I pushed the original fix out. *blush*
2006-11-23 01:24:56 +01:00
Petr Baudis
e66b6737db
ECMAScript: Fix crash on setTimeout(..., 0)
2006-11-21 08:01:36 +01:00
Miciah Dashiel Butler Masters
6a53f92179
SMJS (doc): Don't signal an error when assigning to window.status
2006-10-26 20:30:26 +00:00
Witold Filipczyk
f4e66f1fc6
ECMAScript: added writeonly property window.status
2006-10-24 20:41:25 +02:00
Witold Filipczyk
c76ce39a87
SpiderMonkey: added setTimeout.
2006-10-24 15:52:44 +02:00
Kalle Olavi Niemitalo
8850d85998
ECMAScript: If accessKey is a surrogate, throw an error when reading it.
...
Surrogates are now treated the same way as out-of-range characters
like U+110000; if a link has such an access key, then the ECMAScript
accessKey property cannot be read. It seems currently impossible to
set such an access key though, because accesskey_string_to_unicode()
doesn't support multibyte characters yet.
2006-08-27 11:45:11 +03:00
Kalle Olavi Niemitalo
38fe5b72f7
Define and use macros for handling UTF-16 surrogates.
2006-08-24 23:30:41 +03:00
Kalle Olavi Niemitalo
2d898272c1
ECMAScript: Preserve all of Unicode when setting the accessKey property.
...
Well, almost all. U+0000 cannot be used because ELinks thinks that
means the link has no access key.
2006-08-20 17:40:27 +03:00
Kalle Olavi Niemitalo
00a5b88371
ECMAScript: Preserve all of Unicode when reading the accessKey property.
...
Setting the property does not yet support Unicode.
2006-08-20 13:37:03 +03:00
Witold Filipczyk
9f69170c2a
fixup_select_state was unnecessary
2006-05-02 12:56:05 +02:00
Witold Filipczyk
cdd86d3c20
Ecmascript: write to the variable selectedIndex. Not tested
2006-05-02 11:28:41 +02:00
Witold Filipczyk
d9d6bc23ae
Ecmascript: introduced selectedIndex
2006-05-02 09:36:23 +02:00
Witold Filipczyk
c540a9ed63
Ecmascript: more id checks
2006-05-01 19:55:43 +02:00
Witold Filipczyk
8761bf04a9
Ecmascript: check also id, not only name of form controls. This is required
...
by scripts at http://www.ecs.com.tw/
2006-05-01 19:37:54 +02:00
Witold Filipczyk
c571aea567
Ecmascript: 8 last urls opened by window.open() remembered in a safer way.
2006-04-02 17:00:55 +02:00
Witold Filipczyk
dc075685ae
ECMAScript: better handling of set action
2006-03-21 18:45:40 +01:00
witekfl
30a60caa12
SpiderMonkey: do not remember context. Maybe this time it won't hung.
2006-03-01 18:17:16 +01:00
Miciah Dashiel Butler Masters
a464157d4d
SEE & SMJS: document.write(ln): use all arguments
...
Additionally add a test to test/ecmascript/document_write.html.
Thanks to Kirk Reiser for observing that ELinks only printed the first.
2006-02-12 04:33:42 +00:00
witekfl
10589b04eb
Base href was lost while setting form->action by ECMAScript. This is
...
attempt to fix it
2006-02-09 22:50:30 +01:00
witekfl
d267fcc747
SpiderMonkey: Handling both 'document.location.href ='
...
and 'document.location ='
2006-02-01 09:31:26 +01:00
witekfl
3c0c912198
SpiderMonkey: target was not set
2006-01-31 13:03:17 +01:00
Miciah Dashiel Butler Masters
db9768963f
Merge with git+ssh://pasky.or.cz/srv/git/elinks.git
...
git+ssh://pasky.or.cz/srv/git/elinks.git
2006-01-30 15:42:03 +00:00
b4d9b7f5a6
Make SpiderMonkey consistent with SEE. Do not cache ecmascript_objs
2006-01-30 11:15:04 +01:00
44710bb1e9
The same trick as in SEE: Remember last 8 locations and do not open
...
them again
2006-01-30 10:47:24 +01:00
Miciah Dashiel Butler Masters
be07858b2b
Refactor the document.write routines
...
Factor js_document_write_do out of js_document_write and
js_document_writeln and document_write_do out of document_write and
document_write_ln.
2006-01-28 20:39:07 +00:00
9cc9db4e24
Handling onsubmit
2006-01-28 11:17:22 +01:00
8bf45d0ece
Spidermonkey's document.write and document.writeln defined. They work,
...
but rendering doesn't work
2006-01-27 13:29:38 +01:00
Miciah Dashiel Butler Masters
958b0d308d
Re-introduce the stracpy in the correct place
...
See commit 836744ea84154476641d18875be1c019ccc7b119 and commit
bf3faa5c2b530204190f0cf3119b702ebb807d2e.
2006-01-18 20:26:01 +00:00
Miciah Dashiel Butler Masters
466bb18be0
Move delayed_open to src/terminal/tab.c
...
The two copies of delayed_open in src/ecmascript/spidermonkey/window.c
and in src/ecmascript/see/window.c are identical, so move them
to src/terminal/tab.c and eliminate the duplication.
2006-01-16 19:28:03 +00:00
Miciah Dashiel Butler Masters
1f68492d57
Move delayed_goto_uri_frame to src/session/task.c
...
Until the last change in src/ecmascript/see/window.c, the two copies
of delayed_goto_uri_frame in src/ecmascript/spidermonkey/window.c and
in src/ecmascript/see/window.c were identical. That change applies to
both versions, so move the newer one to src/session/task.c and eliminate
the duplication. Also move struct delayed_open to src/session/session.h.
2006-01-16 19:18:33 +00:00
Jonas Fonseca
2748d043f9
Autogenerate .vimrc files and put the master in config/vimrc
...
This changes the init target to be idempotent: most importantly it will now
never overwrite a Makefile if it exists. Additionally 'make init' will
generate the .vimrc files. Yay, no more stupid 'added fairies' commits! ;)
2006-01-15 18:38:58 +01:00
Laurent MONIN
3f9bb0d7f9
CONFIG_BEOS -> CONFIG_OS_BEOS
2006-01-11 20:12:59 +01:00
Laurent MONIN
202965d338
CONFIG_WIN32 -> CONFIG_OS_WIN32
2006-01-11 20:10:27 +01:00
Laurent MONIN
86f5f2cf48
CONFIG_UNIX -> CONFIG_OS_UNIX
2006-01-11 20:10:27 +01:00
Laurent MONIN
9eafa94fd9
CONFIG_RISCOS -> CONFIG_OS_RISCOS
2006-01-11 20:10:26 +01:00
Laurent MONIN
b6ccfc0e07
CONFIG_OS2 -> CONFIG_OS_OS2
2006-01-11 20:10:26 +01:00
Miciah Dashiel Butler Masters
62de7cc750
In delayed_goto, do not load the page if the doc_view has changed since
...
the delayed_goto was registered. This fixes bug 611, the infinite loop
on Gmane.
2005-12-26 14:12:45 +00:00
Miciah Dashiel Butler Masters
8fb4fc437a
Redraw the title when the document changes it with ECMAScript.
2005-10-30 04:33:40 +00:00
Laurent MONIN
df065ead80
Remove now useless $Id: lines.
2005-10-21 09:14:07 +02:00
Jonas Fonseca
c88afeb1c2
path_to_top -> top_builddir
2005-10-20 04:00:35 +02:00