Open Bug 1522235 Opened 7 years ago Updated 3 years ago

Disallow XUL element in HTML for real or fix it in the debug build

Categories

(Core :: XUL, enhancement, P3)

enhancement

Tracking

()

People

(Reporter: timdream, Unassigned)

Details

XUL element in HTML has been deprecated in bug 1027299, and is already broken in debug build since bug 1008455 (non-whitelisted usage will hit an assertion)

The check has since changed and moved in bug 1444193 and bug 1446831. The current whitelisted elements are here:

https://searchfox.org/mozilla-central/rev/39265dd58298c40bed029617ad408bf806cce761/dom/xul/nsXULElement.cpp#659-666

I will remove videocontrols and datetimebox in bug 1507895.

The usage of <xul:label> element was actually removed in bug 1495153. However when I tried to remove that from the list, dom/xul/test/test_import_xul_to_content.xul failed, which is the test check-in in bug 1027299. This test didn't fail solely because label is still on the list.

I guess we should use this bug to decide and implement disallowing XBL element in HTML for real and/or make the behavior of the debug and opt build consistent.

There is another debug assertion: bug 1426492 limits the allowed XBL bindings in the content process.

Priority: -- → P3
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.