The mediawiki software prevents the display of inline images when the image source appears in the list in [[MediaWiki:Bad_image_list]]. See GlobalFunctions.php::wfIsBadImage in mediawiki/core. There are existing parser tests for this, which use:
!!article
MediaWiki:bad image list
!!text
- [[File:Bad.jpg]] except [[Nasty page]]
!!endarticle
to set up the bad image list.
Parsoid doesn't support this, and the core imageinfo API does not include whether the image is Bad or not. So if there is a bad image which is suppressed on the page in article view, it will suddenly appear when visual editor is started.
We probably need:
- To patch mediawiki/core to add the result of wfIsBadImage to imageinfo (actually, if the image is bad, we need to return the set of exception page title, so we can't use wfIsBadImage directly).
- To suppress the <img src> attribute if the queried image is bad for the current page context. (The resource attributes can probably stay.)
Version: unspecified
Severity: normal