summaryrefslogtreecommitdiff
path: root/content/handlers/html
diff options
context:
space:
mode:
Diffstat (limited to 'content/handlers/html')
-rw-r--r--content/handlers/html/html_css.c10
-rw-r--r--content/handlers/html/html_object.c10
-rw-r--r--content/handlers/html/html_script.c30
3 files changed, 50 insertions, 0 deletions
diff --git a/content/handlers/html/html_css.c b/content/handlers/html/html_css.c
index 2a2fde6c6..f65c2559c 100644
--- a/content/handlers/html/html_css.c
+++ b/content/handlers/html/html_css.c
@@ -129,6 +129,16 @@ html_convert_css_callback(hlcache_handle *css,
/* Really don't want this to continue after the switch */
return NSERROR_OK;
+ case CONTENT_MSG_QUERY:
+ /** \todo QUERY - Decide what is right here */
+ /* For now, the only safe decision is to cancel the fetch */
+ event->data.query_msg->cb(false, event->data.query_msg->cb_pw);
+ return NSERROR_OK;
+
+ case CONTENT_MSG_QUERY_FINISHED:
+ /** \todo QUERY - Decide what is right here */
+ return NSERROR_OK;
+
default:
break;
}
diff --git a/content/handlers/html/html_object.c b/content/handlers/html/html_object.c
index 1dc8e645d..f49af6505 100644
--- a/content/handlers/html/html_object.c
+++ b/content/handlers/html/html_object.c
@@ -454,6 +454,16 @@ html_object_callback(hlcache_handle *object,
}
break;
+ case CONTENT_MSG_QUERY:
+ /** \todo QUERY - Decide what is right here */
+ /* For now, the only safe decision is to cancel the fetch */
+ event->data.query_msg->cb(false, event->data.query_msg->cb_pw);
+ return NSERROR_OK;
+
+ case CONTENT_MSG_QUERY_FINISHED:
+ /** \todo QUERY - Decide what is right here */
+ return NSERROR_OK;
+
default:
break;
}
diff --git a/content/handlers/html/html_script.c b/content/handlers/html/html_script.c
index 2a72d512e..5af4750ff 100644
--- a/content/handlers/html/html_script.c
+++ b/content/handlers/html/html_script.c
@@ -195,6 +195,16 @@ convert_script_async_cb(hlcache_handle *script,
break;
+ case CONTENT_MSG_QUERY:
+ /** \todo QUERY - Decide what is right here */
+ /* For now, the only safe decision is to cancel the fetch */
+ event->data.query_msg->cb(false, event->data.query_msg->cb_pw);
+ return NSERROR_OK;
+
+ case CONTENT_MSG_QUERY_FINISHED:
+ /** \todo QUERY - Decide what is right here */
+ return NSERROR_OK;
+
default:
break;
}
@@ -261,6 +271,16 @@ convert_script_defer_cb(hlcache_handle *script,
break;
+ case CONTENT_MSG_QUERY:
+ /** \todo QUERY - Decide what is right here */
+ /* For now, the only safe decision is to cancel the fetch */
+ event->data.query_msg->cb(false, event->data.query_msg->cb_pw);
+ return NSERROR_OK;
+
+ case CONTENT_MSG_QUERY_FINISHED:
+ /** \todo QUERY - Decide what is right here */
+ return NSERROR_OK;
+
default:
break;
}
@@ -353,6 +373,16 @@ convert_script_sync_cb(hlcache_handle *script,
break;
+ case CONTENT_MSG_QUERY:
+ /** \todo QUERY - Decide what is right here */
+ /* For now, the only safe decision is to cancel the fetch */
+ event->data.query_msg->cb(false, event->data.query_msg->cb_pw);
+ return NSERROR_OK;
+
+ case CONTENT_MSG_QUERY_FINISHED:
+ /** \todo QUERY - Decide what is right here */
+ return NSERROR_OK;
+
default:
break;
}