From 2718272f4f4c4db155931a8c0f4269424bfac243 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Mon, 1 Oct 2012 18:38:20 +0100 Subject: quick and dirty fix to deal with replaced object trying to get a script context --- render/html.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'render') diff --git a/render/html.c b/render/html.c index b6515106e..7be2dabe5 100644 --- a/render/html.c +++ b/render/html.c @@ -1228,6 +1228,10 @@ html_object_callback(hlcache_handle *object, /* Don't care about favicons that aren't on top level content */ break; + case CONTENT_MSG_GETCTX: + *(event->data.jscontext) = NULL; + break; + case CONTENT_MSG_SCROLL: if (box->scroll_x != NULL) scrollbar_set(box->scroll_x, event->data.scroll.x0, -- cgit v1.2.3