summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGaming4JC <g4jc@hyperbola.info>2020-01-20 18:13:15 -0500
committerGaming4JC <g4jc@hyperbola.info>2020-01-26 15:50:47 -0500
commit7e9efb0f27d2ce3475deac31a8f8dd45213d09a9 (patch)
tree77eb3734d6a66fa2992456d364ff8b4a5c35704f
parent93313b0ce3aada87f76948e6c65d455ee4998acf (diff)
downloadUXP-7e9efb0f27d2ce3475deac31a8f8dd45213d09a9.tar
UXP-7e9efb0f27d2ce3475deac31a8f8dd45213d09a9.tar.gz
UXP-7e9efb0f27d2ce3475deac31a8f8dd45213d09a9.tar.lz
UXP-7e9efb0f27d2ce3475deac31a8f8dd45213d09a9.tar.xz
UXP-7e9efb0f27d2ce3475deac31a8f8dd45213d09a9.zip
Bug 1405335 - Remove custom element attached and detached callbacks validation checks
Tag UXP Issue #1344
-rw-r--r--dom/base/CustomElementRegistry.cpp4
-rw-r--r--dom/tests/mochitest/webcomponents/test_custom_element_register_invalid_callbacks.html2
2 files changed, 1 insertions, 5 deletions
diff --git a/dom/base/CustomElementRegistry.cpp b/dom/base/CustomElementRegistry.cpp
index 59e107b14..830f06fed 100644
--- a/dom/base/CustomElementRegistry.cpp
+++ b/dom/base/CustomElementRegistry.cpp
@@ -523,9 +523,7 @@ static const char* kLifeCycleCallbackNames[] = {
"adoptedCallback",
"attributeChangedCallback",
// The life cycle callbacks from v0 spec.
- "createdCallback",
- "attachedCallback",
- "detachedCallback"
+ "createdCallback"
};
static void
diff --git a/dom/tests/mochitest/webcomponents/test_custom_element_register_invalid_callbacks.html b/dom/tests/mochitest/webcomponents/test_custom_element_register_invalid_callbacks.html
index a349f4aa5..d1b1b1e04 100644
--- a/dom/tests/mochitest/webcomponents/test_custom_element_register_invalid_callbacks.html
+++ b/dom/tests/mochitest/webcomponents/test_custom_element_register_invalid_callbacks.html
@@ -20,8 +20,6 @@ const testWindow = iframe.contentDocument.defaultView;
// We should do the same checks for the callbacks from v0 spec.
[
'createdCallback',
- 'attachedCallback',
- 'detachedCallback',
'attributeChangedCallback',
].forEach(callback => {
var c = class {};