mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
logging placeholders for bugs I am working on
This commit is contained in:
parent
3e8ce96c08
commit
17d705d333
1
src/cache/cache.c
vendored
1
src/cache/cache.c
vendored
@ -103,6 +103,7 @@ get_cache_entry_loading_count(void)
|
||||
struct cache_entry *
|
||||
find_in_cache(struct uri *uri)
|
||||
{
|
||||
//LOG_JS("%s", uri->data);
|
||||
struct cache_entry *cached;
|
||||
int proxy = (uri->protocol == PROTOCOL_PROXY);
|
||||
|
||||
|
@ -2392,7 +2392,7 @@ html_special(struct html_context *html_context, html_special_type_T c, ...)
|
||||
#ifdef CONFIG_ECMASCRIPT
|
||||
if (document) {
|
||||
struct uri *uri = va_arg(l, struct uri *);
|
||||
|
||||
/* LOG_JS("%s", uri->data); */
|
||||
add_to_uri_list(&document->ecmascript_imports, uri);
|
||||
}
|
||||
#endif
|
||||
|
@ -197,6 +197,8 @@ render_document(struct view_state *vs, struct document_view *doc_view,
|
||||
vs->doc_view = doc_view;
|
||||
|
||||
cached = find_in_cache(vs->uri);
|
||||
|
||||
//LOG_JS("%s", vs->uri->data);
|
||||
if (!cached) {
|
||||
INTERNAL("document %s to format not found", struri(vs->uri));
|
||||
return;
|
||||
|
@ -383,6 +383,7 @@ check_events_for_element(struct ecmascript_interpreter *ecmascript, dom_node *el
|
||||
void
|
||||
ecmascript_reset_state(struct view_state *vs)
|
||||
{
|
||||
LOG_JS("");
|
||||
struct form_view *fv;
|
||||
int i;
|
||||
|
||||
|
@ -305,9 +305,7 @@ run_jobs(void *data)
|
||||
void
|
||||
check_for_rerender(struct ecmascript_interpreter *interpreter, const char* text)
|
||||
{
|
||||
#ifdef ECMASCRIPT_DEBUG
|
||||
fprintf(stderr, "%s:%s %s %d\n", __FILE__, __FUNCTION__, text, interpreter->changed);
|
||||
#endif
|
||||
LOG_JS("%s %d", text, interpreter->changed);
|
||||
run_jobs(interpreter);
|
||||
|
||||
if (interpreter->changed) {
|
||||
|
@ -2051,6 +2051,7 @@ js_element_set_property_textContent(JSContext *ctx, JSValueConst this_val, JSVal
|
||||
dom_node_unref(el);
|
||||
return JS_EXCEPTION;
|
||||
}
|
||||
LOG_JS("%s",str);
|
||||
dom_string *content = NULL;
|
||||
dom_exception exc = dom_string_create((const uint8_t *)str, len, &content);
|
||||
JS_FreeCString(ctx, str);
|
||||
|
@ -862,6 +862,7 @@ request_additional_file(struct session *ses, const char *name, struct uri *uri,
|
||||
ftl->pri = pri;
|
||||
ftl->ses = ses;
|
||||
|
||||
/* LOG_JS("%s", ftl->uri->data); */
|
||||
add_to_list(ses->more_files, ftl);
|
||||
|
||||
return ftl;
|
||||
@ -892,7 +893,7 @@ process_file_requests(struct session *ses)
|
||||
continue;
|
||||
|
||||
ftl->req_sent = 1;
|
||||
|
||||
LOG_JS("%s", ftl->uri->data);
|
||||
load_additional_file(ftl, CACHE_MODE_NORMAL);
|
||||
more = 1;
|
||||
}
|
||||
|
@ -656,7 +656,7 @@ follow_url(struct session *ses, struct uri *uri, char *target,
|
||||
|
||||
uristring = uri && !uri->post ? get_uri_string(uri, URI_BASE_FRAGMENT)
|
||||
: NULL;
|
||||
|
||||
LOG_JS("%s", uristring);
|
||||
/* Do nothing if we do not have a URI or if it is a POST request
|
||||
* because scripts can corrupt POST requests leading to bad
|
||||
* things happening later on. */
|
||||
|
@ -70,6 +70,7 @@ check_document_fragment(struct session *ses, struct document_view *doc_view)
|
||||
|
||||
/* Omit the leading '#' when calling find_tag. */
|
||||
vy = find_tag(document, fragment.source + 1, fragment.length - 1);
|
||||
LOG_JS("%s %d", fragment.source,vy);
|
||||
if (vy == -1) {
|
||||
struct cache_entry *cached = document->cached;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user