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

            Bug ID: 68900
           Summary: VisualEditor: Put in hacks to scrub plugin garbage
                    (e.g. myEventWatcherDiv)
           Product: VisualEditor
           Version: unspecified
          Hardware: All
                OS: All
            Status: ASSIGNED
          Severity: normal
          Priority: Unprioritized
         Component: MediaWiki integration
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected]
       Web browser: ---
   Mobile Platform: ---

These seem to be the leading cause of edit corruption right now.

myEventWatcherDiv: https://ru.wikipedia.org/?diff=64516612
https://ru.wikipedia.org/?diff=64516412 https://pt.wikipedia.org/?diff=39659121
https://pt.wikipedia.org/?diff=39659108

<embed> tags: https://pt.wikipedia.org/?diff=39696565

<object> tags: https://fr.wikipedia.org/?diff=105796883
https://fr.wikipedia.org/?diff=105796959
https://fr.wikipedia.org/?diff=105797061

I'm thinking we should put in hacks to remove these kinds of tags. Maybe at the
point where we serialize the HTML and send it to Parsoid
(ve.init.mw.Target#getHTML). If these tags are added immediately upon document
creation (we'd need to get our hands on one of these bad plugins to test that)
we could also consider trying to work around this in ve.createDocumentFromHtml
instead. I suspect, though, that these tags are probably added asynchronously,
and probably only in cases where we fall back to the iframe trick because
DOMParser HTML support is not available.

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

Reply via email to