From 342fe780c6c28e0f9ae942a82cc27b1073a59337 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Sat, 10 Apr 2010 12:36:21 +0000 Subject: [PATCH] Catch calls to html_clone, which is guaranteed to result in breakage, so it's safer to just die, rather than limp on. svn path=/trunk/netsurf/; revision=10341 --- render/html.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/render/html.c b/render/html.c index 880a92a3a..a71689793 100644 --- a/render/html.c +++ b/render/html.c @@ -1858,6 +1858,12 @@ void html_destroy_iframe(struct content_html_iframe *iframe) { bool html_clone(const struct content *old, struct content *new_content) { /** \todo Clone HTML specifics */ + + /* In the meantime, we should never be called, as HTML contents + * cannot be shared and we're not intending to fix printing's + * cloning of documents. */ + assert(0 && "html_clone should never be called"); + return true; }