mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-20 07:17:32 +09:00
Bug 1415761 - Catch the exception and rethrow it after invoking custom elements reactions;
The spec was unclear on how CEReactions interact with thrown exceptions; see https://github.com/whatwg/html/issues/3217. The spec is now being clarified in https://github.com/whatwg/html/pull/3235. Tag UXP Issue #1344
This commit is contained in:
parent
3639f0e2bd
commit
5db13d0f4b
6 changed files with 50 additions and 8 deletions
|
|
@ -16,14 +16,14 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=1094930
|
|||
<script type="application/javascript">
|
||||
SimpleTest.waitForExplicitFinish();
|
||||
var proto = {
|
||||
createdCallback: function() {
|
||||
ok(true, "createdCallback was called");
|
||||
connectedCallback: function() {
|
||||
ok(true, "connectedCallback was called");
|
||||
SimpleTest.finish()
|
||||
}
|
||||
};
|
||||
|
||||
var f = document.registerElement.call(frames[0].document, "x-foo", { prototype: proto });
|
||||
var inst = new f();
|
||||
frames[0].document.firstChild.appendChild(new f());
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue