diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2010-04-10 12:36:21 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2010-04-10 12:36:21 +0000 |
commit | 342fe780c6c28e0f9ae942a82cc27b1073a59337 (patch) | |
tree | 3b80db6c61b17f9ea5fbd4173f7e3981a5d1a8c2 /render/html.c | |
parent | 24c853281d127cdb556c2f49b41330f9e342faab (diff) | |
download | netsurf-342fe780c6c28e0f9ae942a82cc27b1073a59337.tar.gz netsurf-342fe780c6c28e0f9ae942a82cc27b1073a59337.tar.bz2 |
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
Diffstat (limited to 'render/html.c')
-rw-r--r-- | render/html.c | 6 |
1 files changed, 6 insertions, 0 deletions
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; } |