Feature summary (what you would like to be able to do and where):
Namespaces in uploaded SVGs are currently checked against a hard-coded list. It would be simpler and easier if there was a Mediawiki: allowlist .
Use case(s) (list the steps that you performed to discover that problem, and describe the actual underlying problem which you want to solve. Do not describe only a solution):
In T383949 I requested the addition of a namespace (used by a tool I'm developing) to the hard-coded allowlist. It would have been easier just to ask Commons admins to add the namespace.
The function checkSvgScriptCallback suggests this in its comments:
/** * @todo Replace this with a allow list filter!
Benefits (why should this be implemented?):
It saves updating the code every time someone wants to add a new namespace. This increases the autonomy of extension authors.
Draft patch to follow.