Open Bug 1560361 Opened 6 years ago Updated 3 years ago

Inspector adds the "custom" badge for elements in a non-matching namespace

Categories

(DevTools :: Inspector, defect, P2)

defect

Tracking

(Not tracked)

People

(Reporter: aswan, Unassigned)

Details

Since bug 1480465 we have been able to use customElements with XUL. When an element is defined, the registry checks the prototype chain of the CE class and it marks the definition as only applying to the html namespace if the chain includes HTMLElement or as only applying to the xul namespace if the chain includes XULElement.

It appears that the devtools inspector just matches the element name and isn't aware of the namespace subtlety. In particular, xul buttons have a custom element definition, but that element is only attached to xul buttons. In a chrome-privileged (x)html document, the toolbox inspector incorrectly shows html buttons as being custom elements.

Bugbug thinks this bug is a task, but please change it back in case of error.

Type: defect → task

Not sure where bugbug got that idea...

Type: task → defect

The priority flag is not set for this bug.
:gl, could you have a look please?

For more information, please visit auto_nag documentation.

Flags: needinfo?(gl)
Flags: needinfo?(gl)
Priority: -- → P2
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.