Skip to content

[Qt5] QMimeDatabase: handle buggy type definitions with circular inheritance

Kacper Koniuszy requested to merge (removed):kde/5.15 into kde/5.15

Cherry-picked commit from Qt 6.

This fixes an infinite loop reported by a user who had both the definition of text/javascript from shared-mime-info 2.3 and the definition of text/javascript from shared-mime-info 2.4 installed at the same time. In 2.3, text/javascript is a subtype of application/ecmascript, but in 2.4 application/ecmascript is a subtype of text/javascript. Having both at the same time resulted in circular inheritance.

Merge request reports