Closed Bug 1978553 Opened 1 year ago Closed 1 year ago

Perma /custom-elements/CustomElementRegistry.html | customElements.define must get callbacks of the constructor prototype - when Gecko 143 merges to beta on 2025-08-18

Categories

(Core :: DOM: Core & HTML, defect)

defect

Tracking

()

VERIFIED FIXED
143 Branch
Tracking Status
firefox-esr115 --- unaffected
firefox-esr128 --- unaffected
firefox-esr140 --- unaffected
firefox141 --- unaffected
firefox142 --- unaffected
firefox143 + verified

People

(Reporter: amarc, Assigned: smaug)

References

(Regression)

Details

(Keywords: regression)

Central-as-beta-simulation

How to run these simulations

Failure log

  • Failure snippet:
[task 2025-07-22T10:39:35.086+00:00] 10:39:35     INFO - TEST-START | /custom-elements/CustomElementRegistry.html
[task 2025-07-22T10:39:35.127+00:00] 10:39:35     INFO - Closing window d0b7ac9e-9799-40cd-9217-96d2fbe5e41b
[task 2025-07-22T10:39:37.489+00:00] 10:39:37     INFO - .....
[task 2025-07-22T10:39:37.489+00:00] 10:39:37     INFO - TEST-PASS | /custom-elements/CustomElementRegistry.html | customElements.define must throw a NotSupportedError when there is already a custom element with the same class 
[task 2025-07-22T10:39:37.489+00:00] 10:39:37     INFO - TEST-PASS | /custom-elements/CustomElementRegistry.html | customElements.define must throw a NotSupportedError when element definition is running flag is set 
[task 2025-07-22T10:39:37.489+00:00] 10:39:37     INFO - TEST-PASS | /custom-elements/CustomElementRegistry.html | customElements.define must check IsConstructor on the constructor before checking the element definition is running flag 
[task 2025-07-22T10:39:37.489+00:00] 10:39:37     INFO - TEST-PASS | /custom-elements/CustomElementRegistry.html | customElements.define must validate the custom element name before checking the element definition is running flag 
[task 2025-07-22T10:39:37.489+00:00] 10:39:37     INFO - TEST-PASS | /custom-elements/CustomElementRegistry.html | customElements.define unset the element definition is running flag before upgrading custom elements 
[task 2025-07-22T10:39:37.489+00:00] 10:39:37     INFO - TEST-PASS | /custom-elements/CustomElementRegistry.html | customElements.define must not throw when defining another custom element in a different global object during Get(constructor, "prototype") 
[task 2025-07-22T10:39:37.489+00:00] 10:39:37     INFO - TEST-PASS | /custom-elements/CustomElementRegistry.html | Custom Elements: CustomElementRegistry interface 
[task 2025-07-22T10:39:37.490+00:00] 10:39:37     INFO - TEST-PASS | /custom-elements/CustomElementRegistry.html | customElements.define must get "prototype", "disabledFeatures", and "formAssociated" property of the constructor 
[task 2025-07-22T10:39:37.490+00:00] 10:39:37     INFO - TEST-PASS | /custom-elements/CustomElementRegistry.html | customElements.define must rethrow an exception thrown while getting "prototype" property of the constructor 
[task 2025-07-22T10:39:37.490+00:00] 10:39:37     INFO - TEST-PASS | /custom-elements/CustomElementRegistry.html | customElements.define must throw when "prototype" property of the constructor is not an object 
[task 2025-07-22T10:39:37.490+00:00] 10:39:37     INFO - TEST-UNEXPECTED-FAIL | /custom-elements/CustomElementRegistry.html | customElements.define must get callbacks of the constructor prototype - assert_array_equals: lengths differ, expected array ["connectedCallback", "disconnectedCallback", "adoptedCallback", "attributeChangedCallback"] length 4, got ["connectedCallback", "disconnectedCallback", "connectedMoveCallback", "adoptedCallback", "attributeChangedCallback"] length 5
[task 2025-07-22T10:39:37.490+00:00] 10:39:37     INFO - @http://web-platform.test:8000/custom-elements/CustomElementRegistry.html:278:24
[task 2025-07-22T10:39:37.490+00:00] 10:39:37     INFO - Test.prototype.step@http://web-platform.test:8000/resources/testharness.js:2684:25
[task 2025-07-22T10:39:37.490+00:00] 10:39:37     INFO - test@http://web-platform.test:8000/resources/testharness.js:633:30
[task 2025-07-22T10:39:37.490+00:00] 10:39:37     INFO - @http://web-platform.test:8000/custom-elements/CustomElementRegistry.html:268:5
[task 2025-07-22T10:39:37.493+00:00] 10:39:37     INFO - 
[task 2025-07-22T10:39:37.493+00:00] 10:39:37     INFO - TEST-PASS | /custom-elements/CustomElementRegistry.html | customElements.define must rethrow an exception thrown while getting callbacks on the constructor prototype 
[task 2025-07-22T10:39:37.493+00:00] 10:39:37     INFO - TEST-UNEXPECTED-FAIL | /custom-elements/CustomElementRegistry.html | customElements.define must rethrow an exception thrown while converting a callback value to Function callback type - assert_array_equals: customElements.define must not get callbacks after one of the conversion throws lengths differ, expected array ["connectedCallback", "disconnectedCallback", "adoptedCallback"] length 3, got ["connectedCallback", "disconnectedCallback", "connectedMoveCallback", "adoptedCallback"] length 4
[task 2025-07-22T10:39:37.493+00:00] 10:39:37     INFO - @http://web-platform.test:8000/custom-elements/CustomElementRegistry.html:312:24
[task 2025-07-22T10:39:37.493+00:00] 10:39:37     INFO - Test.prototype.step@http://web-platform.test:8000/resources/testharness.js:2684:25
[task 2025-07-22T10:39:37.494+00:00] 10:39:37     INFO - test@http://web-platform.test:8000/resources/testharness.js:633:30
[task 2025-07-22T10:39:37.494+00:00] 10:39:37     INFO - @http://web-platform.test:8000/custom-elements/CustomElementRegistry.html:300:5
[task 2025-07-22T10:39:37.500+00:00] 10:39:37     INFO - 
[task 2025-07-22T10:39:37.500+00:00] 10:39:37     INFO - TEST-UNEXPECTED-FAIL | /custom-elements/CustomElementRegistry.html | customElements.define must get "observedAttributes" property on the constructor prototype when "attributeChangedCallback" is present - assert_array_equals: lengths differ, expected array [1, "connectedCallback", 2, "disconnectedCallback", 3, "adoptedCallback", 4, "attributeChangedCallback"] length 8, got [1, "connectedCallback", 2, "disconnectedCallback", 3, "connectedMoveCallback", 4, "adoptedCallback", 5, "attributeChangedCallback"] length 10
[task 2025-07-22T10:39:37.500+00:00] 10:39:37     INFO - @http://web-platform.test:8000/custom-elements/CustomElementRegistry.html:342:24
[task 2025-07-22T10:39:37.500+00:00] 10:39:37     INFO - Test.prototype.step@http://web-platform.test:8000/resources/testharness.js:2684:25
[task 2025-07-22T10:39:37.500+00:00] 10:39:37     INFO - test@http://web-platform.test:8000/resources/testharness.js:633:30
[task 2025-07-22T10:39:37.500+00:00] 10:39:37     INFO - @http://web-platform.test:8000/custom-elements/CustomElementRegistry.html:319:5
[task 2025-07-22T10:39:37.522+00:00] 10:39:37     INFO - 
[task 2025-07-22T10:39:37.522+00:00] 10:39:37     INFO - TEST-PASS | /custom-elements/CustomElementRegistry.html | customElements.define must rethrow an exception thrown while getting observedAttributes on the constructor prototype 
[task 2025-07-22T10:39:37.522+00:00] 10:39:37     INFO - TEST-PASS | /custom-elements/CustomElementRegistry.html | customElements.define must rethrow an exception thrown while converting the value of observedAttributes to sequence<DOMString> 
[task 2025-07-22T10:39:37.522+00:00] 10:39:37     INFO - TEST-PASS | /custom-elements/CustomElementRegistry.html | customElements.define must rethrow an exception thrown while iterating over observedAttributes to sequence<DOMString> 
[task 2025-07-22T10:39:37.523+00:00] 10:39:37     INFO - TEST-PASS | /custom-elements/CustomElementRegistry.html | customElements.define must rethrow an exception thrown while retrieving Symbol.iterator on observedAttributes 
[task 2025-07-22T10:39:37.523+00:00] 10:39:37     INFO - TEST-PASS | /custom-elements/CustomElementRegistry.html | customElements.define must not throw even if "observedAttributes" fails to convert if "attributeChangedCallback" is not defined 
[task 2025-07-22T10:39:37.523+00:00] 10:39:37     INFO - TEST-PASS | /custom-elements/CustomElementRegistry.html | customElements.define must rethrow an exception thrown while getting disabledFeatures on the constructor prototype 
[task 2025-07-22T10:39:37.523+00:00] 10:39:37     INFO - TEST-PASS | /custom-elements/CustomElementRegistry.html | customElements.define must rethrow an exception thrown while converting the value of disabledFeatures to sequence<DOMString> 
[task 2025-07-22T10:39:37.523+00:00] 10:39:37     INFO - TEST-PASS | /custom-elements/CustomElementRegistry.html | customElements.define must rethrow an exception thrown while iterating over disabledFeatures to sequence<DOMString> 
[task 2025-07-22T10:39:37.523+00:00] 10:39:37     INFO - TEST-PASS | /custom-elements/CustomElementRegistry.html | customElements.define must rethrow an exception thrown while retrieving Symbol.iterator on disabledFeatures 
[task 2025-07-22T10:39:37.523+00:00] 10:39:37     INFO - TEST-PASS | /custom-elements/CustomElementRegistry.html | customElements.define must rethrow an exception thrown while getting formAssociated on the constructor prototype 
[task 2025-07-22T10:39:37.523+00:00] 10:39:37     INFO - TEST-UNEXPECTED-FAIL | /custom-elements/CustomElementRegistry.html | customElements.define must get four additional callbacks on the prototype if formAssociated is converted to true - assert_array_equals: customElements.define must get 8 callbacks on the prototype lengths differ, expected array ["connectedCallback", "disconnectedCallback", "adoptedCallback", "attributeChangedCallback", "formAssociatedCallback", "formResetCallback", "formDisabledCallback", "formStateRestoreCallback"] length 8, got ["connectedCallback", "disconnectedCallback", "connectedMoveCallback", "adoptedCallback", "attributeChangedCallback", "formAssociatedCallback", "formResetCallback", "formDisabledCallback", "formStateRestoreCallback"] length 9
[task 2025-07-22T10:39:37.523+00:00] 10:39:37     INFO - @http://web-platform.test:8000/custom-elements/CustomElementRegistry.html:503:24
[task 2025-07-22T10:39:37.523+00:00] 10:39:37     INFO - Test.prototype.step@http://web-platform.test:8000/resources/testharness.js:2684:25
[task 2025-07-22T10:39:37.523+00:00] 10:39:37     INFO - test@http://web-platform.test:8000/resources/testharness.js:633:30
[task 2025-07-22T10:39:37.523+00:00] 10:39:37     INFO - @http://web-platform.test:8000/custom-elements/CustomElementRegistry.html:480:5
[task 2025-07-22T10:39:37.523+00:00] 10:39:37     INFO - 
[task 2025-07-22T10:39:37.523+00:00] 10:39:37     INFO - TEST-UNEXPECTED-FAIL | /custom-elements/CustomElementRegistry.html | customElements.define must rethrow an exception thrown while getting additional formAssociated callbacks on the constructor prototype - assert_array_equals: customElements.define must not get callbacks after one of the get throws lengths differ, expected array ["connectedCallback", "disconnectedCallback", "adoptedCallback", "attributeChangedCallback", "formAssociatedCallback", "formResetCallback", "formDisabledCallback"] length 7, got ["connectedCallback", "disconnectedCallback", "connectedMoveCallback", "adoptedCallback", "attributeChangedCallback", "formAssociatedCallback", "formResetCallback", "formDisabledCallback"] length 8
[task 2025-07-22T10:39:37.523+00:00] 10:39:37     INFO - @http://web-platform.test:8000/custom-elements/CustomElementRegistry.html:538:24
[task 2025-07-22T10:39:37.523+00:00] 10:39:37     INFO - Test.prototype.step@http://web-platform.test:8000/resources/testharness.js:2684:25
[task 2025-07-22T10:39:37.523+00:00] 10:39:37     INFO - test@http://web-platform.test:8000/resources/testharness.js:633:30
[task 2025-07-22T10:39:37.523+00:00] 10:39:37     INFO - @http://web-platform.test:8000/custom-elements/CustomElementRegistry.html:517:5
[task 2025-07-22T10:39:37.532+00:00] 10:39:37     INFO - ...............
[task 2025-07-22T10:39:37.532+00:00] 10:39:37     INFO - TEST-OK | /custom-elements/CustomElementRegistry.html | took 2395ms
[task 2025-07-22T10:39:37.533+00:00] 10:39:37     INFO - PID 12805 | 1753180777500	Marionette	INFO	Stopped listening on port 50629
[task 2025-07-22T10:39:38.481+00:00] 10:39:38     INFO - Browser exited with return code -15
[task 2025-07-22T10:39:38.483+00:00] 10:39:38     INFO - Closing logging queue
[task 2025-07-22T10:39:38.484+00:00] 10:39:38     INFO - queue closed
[task 2025-07-22T10:39:38.495+00:00] 10:39:38     INFO - INFO | runtests.py | TSan using symbolizer at /builds/worker/workspace/build/application/firefox/llvm-symbolizer
[task 2025-07-22T10:39:38.496+00:00] 10:39:38     INFO - Application command: /builds/worker/workspace/build/application/firefox/firefox --marionette --remote-allow-system-access about:blank -profile /tmp/tmp0jrkf8no
[task 2025-07-22T10:39:38.510+00:00] 10:39:38     INFO - PID 15953 | ATTENTION: default value of option mesa_glthread overridden by environment.
[task 2025-07-22T10:39:38.510+00:00] 10:39:38     INFO - PID 15953 | 1753180766941	Marionette	INFO	Marionette enabled
[task 2025-07-22T10:39:38.510+00:00] 10:39:38     INFO - PID 15953 | ATTENTION: default value of option mesa_glthread overridden by environment.
[task 2025-07-22T10:39:38.510+00:00] 10:39:38     INFO - PID 15953 | 1753180768512	Marionette	INFO	Listening on port 52665
[task 2025-07-22T10:39:38.511+00:00] 10:39:38     INFO - Starting runner
[task 2025-07-22T10:39:41.976+00:00] 10:39:41     INFO - PID 15953 | Crash Annotation GraphicsCriticalError: |[0][GFX1-]: Calling WaitFlushedEvent::Run: is delayed: 3727 (t=18.5921) [GFX1-]: Calling WaitFlushedEvent::Run: is delayed: 3727
[task 2025-07-22T10:39:46.785+00:00] 10:39:46     INFO - PID 15953 | console.error: services.settings:
[task 2025-07-22T10:39:46.794+00:00] 10:39:46     INFO - PID 15953 |   Message: EmptyDatabaseError: "main/nimbus-desktop-experiments" has not been synced yet
[task 2025-07-22T10:39:46.795+00:00] 10:39:46     INFO - PID 15953 |   Stack:
[task 2025-07-22T10:39:46.795+00:00] 10:39:46     INFO - PID 15953 |     EmptyDatabaseError@resource://services-settings/Database.sys.mjs:19:5
[task 2025-07-22T10:39:46.796+00:00] 10:39:46     INFO - PID 15953 | list@resource://services-settings/Database.sys.mjs:96:13
[task 2025-07-22T10:39:47.797+00:00] 10:39:47     INFO - PID 15953 | /builds/worker/workspace/build/application/firefox/llvm-symbolizer: error: '[anon:js-executable-memory]': No such file or directory
[task 2025-07-22T10:39:47.938+00:00] 10:39:47     INFO - PID 15953 | console.error: services.settings:
[task 2025-07-22T10:39:47.946+00:00] 10:39:47     INFO - PID 15953 |   Message: EmptyDatabaseError: "main/nimbus-secure-experiments" has not been synced yet
[task 2025-07-22T10:39:47.946+00:00] 10:39:47     INFO - PID 15953 |   Stack:
[task 2025-07-22T10:39:47.946+00:00] 10:39:47     INFO - PID 15953 |     EmptyDatabaseError@resource://services-settings/Database.sys.mjs:19:5
[task 2025-07-22T10:39:47.946+00:00] 10:39:47     INFO - PID 15953 | list@resource://services-settings/Database.sys.mjs:96:13
[task 2025-07-22T10:39:54.312+00:00] 10:39:54     INFO - TEST-START | /custom-elements/Document-createElement-customized-builtins.html

:smaug, since you are the author of the regressor, bug 1923880, could you take a look? Also, could you set the severity field?

For more information, please visit BugBot documentation.

Flags: needinfo?(smaug)
Depends on: 1978798
Assignee: nobody → smaug
Status: NEW → RESOLVED
Closed: 1 year ago
Flags: needinfo?(smaug)
Resolution: --- → FIXED
Target Milestone: --- → 143 Branch

Verified fixed in today’s beta simulation push.

Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.