https://bugzilla.wikimedia.org/show_bug.cgi?id=73581

            Bug ID: 73581
           Summary: Parsoid doesn't support image blacklist.
           Product: Parsoid
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: General
          Assignee: parsoid-t...@wikimedia.org
          Reporter: canan...@wikimedia.org
                CC: elitr...@gmail.com, jforres...@wikimedia.org,
                    ssas...@wikimedia.org
       Web browser: ---
   Mobile Platform: ---

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:
1. 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).

2. To suppress the <img src> attribute if the queried image is bad for the
current page context.  (The resource attributes can probably stay.)

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to