From 651e0b59881047f1d05c6920c5b9a86b73f16db4 Mon Sep 17 00:00:00 2001 From: Peter Van der Beken Date: Mon, 3 Dec 2012 15:26:44 +0100 Subject: [PATCH] Fix for bug 817420 (new bindings api for element broke cloud9/apf) - don't register Element prototype yet, we need to convert plain elements to the new DOM binding first. r=bz. --- dom/bindings/Bindings.conf | 1 + .../tests/approved/test_interfaces.html.json | 8 +-- dom/tests/mochitest/bugs/Makefile.in | 1 + .../mochitest/bugs/test_protochains.html | 60 +++++++++++++++++++ 4 files changed, 65 insertions(+), 5 deletions(-) create mode 100644 dom/tests/mochitest/bugs/test_protochains.html diff --git a/dom/bindings/Bindings.conf b/dom/bindings/Bindings.conf index 9da956c3f7e..0ea4f21e186 100644 --- a/dom/bindings/Bindings.conf +++ b/dom/bindings/Bindings.conf @@ -200,6 +200,7 @@ DOMInterfaces = { # needed. 'prefable': True, 'hasXPConnectImpls': True, + 'register': False, 'hasInstanceInterface': 'nsIDOMElement', 'resultNotAddRefed': [ 'classList', 'attributes', 'children', 'firstElementChild', diff --git a/dom/imptests/failures/webapps/DOMCore/tests/approved/test_interfaces.html.json b/dom/imptests/failures/webapps/DOMCore/tests/approved/test_interfaces.html.json index 671423bbf53..1a185b1a43d 100644 --- a/dom/imptests/failures/webapps/DOMCore/tests/approved/test_interfaces.html.json +++ b/dom/imptests/failures/webapps/DOMCore/tests/approved/test_interfaces.html.json @@ -155,13 +155,11 @@ "EventTarget interface: calling addEventListener(DOMString,EventListener,boolean) on document.doctype with too few arguments must throw TypeError": true, "EventTarget interface: calling removeEventListener(DOMString,EventListener,boolean) on document.doctype with too few arguments must throw TypeError": true, "EventTarget interface: calling dispatchEvent(Event) on document.doctype with too few arguments must throw TypeError": true, - "Element interface: attribute namespaceURI": true, - "Element interface: attribute prefix": true, - "Element interface: attribute localName": true, + "Element interface: existence and properties of interface object": true, + "Element interface: existence and properties of interface prototype object": true, + "Element interface: existence and properties of interface prototype object's \"constructor\" property": true, "Element interface: attribute className": true, - "Element interface: attribute attributes": true, "Element interface: operation remove()": true, - "Element must be primary interface of element": true, "Stringification of element": "debug", "Element interface: element must inherit property \"className\" with the proper type (5)": true, "Element interface: element must inherit property \"remove\" with the proper type (25)": true, diff --git a/dom/tests/mochitest/bugs/Makefile.in b/dom/tests/mochitest/bugs/Makefile.in index 7096f49789e..d28c11e0789 100644 --- a/dom/tests/mochitest/bugs/Makefile.in +++ b/dom/tests/mochitest/bugs/Makefile.in @@ -136,6 +136,7 @@ MOCHITEST_FILES = \ file_bug809290_c.html \ file_empty.html \ test_sizetocontent_clamp.html \ + test_protochains.html \ $(NULL) ifneq (Linux,$(OS_ARCH)) diff --git a/dom/tests/mochitest/bugs/test_protochains.html b/dom/tests/mochitest/bugs/test_protochains.html new file mode 100644 index 00000000000..2df98b8577b --- /dev/null +++ b/dom/tests/mochitest/bugs/test_protochains.html @@ -0,0 +1,60 @@ + + + + + + Test for Bug 817420 + + + + +Mozilla Bug 817420 +

+ +
+
+
+ +