Page MenuHomePhabricator

2017 Wikitext editor stop saving changes when pasting in content with formatting on Firefox
Closed, ResolvedPublicBUG REPORT

Description

I find this really weird. Recently, I switched from Chrome to Firefox, aside from not being able to use syntax highlighting or risk completely butchering my editing session, when I copy and paste a page title (or any formatted content on Wikipedia), instead of giving me the prompt like Chrome where it asks me if I want to "Convert to Wikitext" or "Use plain text" It pasts in the Title, with its formatting and underline, then prevents me from making any edits or removing the formatted title. See attached screenshot. My browser details are here.

firefox_VMISWZ9ERu.png (798×969 px, 55 KB)

Steps to Reproduce:

  1. Open the 2017 Wikitext editor on Firefox
  2. Copy a title or other formatted content
  3. Paste it in to the editor
  4. See results

Actual Results:

  • The title cannot be removed when highlighted or using the backspace
  • The whole editor breaks weirdly and glitches, and anything you type after you have pasted in the formatted content fails to save and does not publish when saving your changes.

Expected Results:

  1. Asks if the user wants to paste as plain text or wikitext, similar to the behaviour in other browsers
  2. Allows the user to remove the formatted content and continue editing

Event Timeline

Isochrone renamed this task from 2017 Wikitext editor completely breaks when pasting in content with formatting on Firefox to 2017 Wikitext editor stop saving changes when pasting in content with formatting on Firefox.Jan 26 2021, 11:35 AM
Isochrone updated the task description. (Show Details)
Esanders subscribed.

@Berrely I can't reproduce this with Firefox.

Can you give more detailed instructions of exactly what you selected and copied, or better still a recording of this bug happening.

If you get it to break again, can you press F12 and see if there are any red errors in the console?

Thanks,

@Esanders The behaviour appears to have got better, but it is still glitchy. There is no windows to confirm whether you want plain text or normal text. On certain pages it is worse than others.

Uncaught TypeError: editform is null
    <anonymous> https://en.wikipedia.org/w/index.php?title=User:Wugapodes/Capricorn.js&action=raw&ctype=text/javascript:791
    jQuery 4
        fire
        fireWith
        tuple[0]
        using
    enqueue https://en.wikipedia.org/w/load.php?lang=en-gb&modules=startup&only=scripts&raw=1&skin=vector:11
    using jQuery
    <anonymous> https://en.wikipedia.org/w/index.php?title=User:Wugapodes/Capricorn.js&action=raw&ctype=text/javascript:14
    jQuery 4
        fire
        fireWith
        done
        callback
index.php:791:6
    <anonymous> https://en.wikipedia.org/w/index.php?title=User:Wugapodes/Capricorn.js&action=raw&ctype=text/javascript:791
    jQuery 4
        fire
        fireWith
        tuple[0]
        using
    enqueue https://en.wikipedia.org/w/load.php?lang=en-gb&modules=startup&only=scripts&raw=1&skin=vector:11
    using jQuery
    <anonymous> https://en.wikipedia.org/w/index.php?title=User:Wugapodes/Capricorn.js&action=raw&ctype=text/javascript:14
    jQuery 4
        fire
        fireWith
        done
        callback

These appear to be my userscripts.

If you have an error in a user script that is causing all other JS to cease running, I suggest you try disabling that user script to see if that fixes the problem.