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

       Web browser: ---
            Bug ID: 54903
           Summary: VisualEditor: JavaScript crashes if an invalid keyword
                    is used on an image
           Product: VisualEditor
           Version: unspecified
          Hardware: All
               URL: https://en.wikipedia.org/wiki/User:Amire80/ve-invalid-
                    image-keyword?veaction=edit
                OS: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: Data Model
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected]
    Classification: Unclassified
   Mobile Platform: ---

To reproduce, go to the URL ([[User:Amire80/ve-invalid-image-keyword]]). Notice
that the save button doesn't appear in the toolbar. The JS console shows the
following error:

[15:59:08.469] Error: Offset could not be translated to a DOM element and
offset: 3

The reason for this is the invalid keyword "no_such_keyword" that I used on the
image.

A better behavior would be to show the user some kind of a warning about the
wrong keyword, rather than throwing a JS error and crashing.

This bug was discovered by User:Nurick in the Hebrew Wikipedia.

-- 
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