Gitweb links:

...log 
http://git.netsurf-browser.org/netsurf.git/shortlog/f3b7a0c44cbf006679faabf9e4d971b2e62cc37a
...commit 
http://git.netsurf-browser.org/netsurf.git/commit/f3b7a0c44cbf006679faabf9e4d971b2e62cc37a
...tree 
http://git.netsurf-browser.org/netsurf.git/tree/f3b7a0c44cbf006679faabf9e4d971b2e62cc37a

The branch, master has been updated
       via  f3b7a0c44cbf006679faabf9e4d971b2e62cc37a (commit)
      from  bc94555d9e5f51bc044a1a3413a932d69190f503 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commitdiff 
http://git.netsurf-browser.org/netsurf.git/commit/?id=f3b7a0c44cbf006679faabf9e4d971b2e62cc37a
commit f3b7a0c44cbf006679faabf9e4d971b2e62cc37a
Author: Michael Drake <[email protected]>
Commit: Michael Drake <[email protected]>

    HTML Script: Check for success on intern of mimetype.

diff --git a/content/handlers/html/html_script.c 
b/content/handlers/html/html_script.c
index 9dad531..4df5f33 100644
--- a/content/handlers/html/html_script.c
+++ b/content/handlers/html/html_script.c
@@ -540,7 +540,11 @@ exec_inline_script(html_content *c, dom_node *node, 
dom_string *mimetype)
        nscript->already_started = true;
 
        /* ensure script handler for content type */
-       dom_string_intern(mimetype, &lwcmimetype);
+       exc = dom_string_intern(mimetype, &lwcmimetype);
+       if (exc != DOM_NO_ERR) {
+               return DOM_HUBBUB_DOM;
+       }
+
        script_handler = 
select_script_handler(content_factory_type_from_mime_type(lwcmimetype));
        lwc_string_unref(lwcmimetype);
 


-----------------------------------------------------------------------

Summary of changes:
 content/handlers/html/html_script.c |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/content/handlers/html/html_script.c 
b/content/handlers/html/html_script.c
index 9dad531..4df5f33 100644
--- a/content/handlers/html/html_script.c
+++ b/content/handlers/html/html_script.c
@@ -540,7 +540,11 @@ exec_inline_script(html_content *c, dom_node *node, 
dom_string *mimetype)
        nscript->already_started = true;
 
        /* ensure script handler for content type */
-       dom_string_intern(mimetype, &lwcmimetype);
+       exc = dom_string_intern(mimetype, &lwcmimetype);
+       if (exc != DOM_NO_ERR) {
+               return DOM_HUBBUB_DOM;
+       }
+
        script_handler = 
select_script_handler(content_factory_type_from_mime_type(lwcmimetype));
        lwc_string_unref(lwcmimetype);
 


-- 
NetSurf Browser

_______________________________________________
netsurf-commits mailing list
[email protected]
http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/netsurf-commits-netsurf-browser.org

Reply via email to