Screencast showing the bug
If I use the mouse to paste a string which exceeds the edit summary limit, it is not truncated until I click in the summary again, or press some key.
Version: 1.23.0
Severity: normal
Attached:
Screencast showing the bug
If I use the mouse to paste a string which exceeds the edit summary limit, it is not truncated until I click in the summary again, or press some key.
Version: 1.23.0
Severity: normal
Attached:
Subject | Repo | Branch | Lines +/- | |
---|---|---|---|---|
jquery.lengthLimit: Fix 'cut'/'paste' event handling | mediawiki/core | master | +11 -1 |
What browser are you using? The byteLimit plugin is listening for cut/paste events which modern browsers should (do?) fire when pasting content in the manner described.
In addition to keyboard events (of course), it also listens to click events, focus/blur events and the generic change event.
@He7d3r is this still a problem ? Cause this thing listens to almost every event in the book...
Yep. I was able to reproduce the same behavior shown in the screencast above (using Firefox 43 and Google Chrome 47) at https://test.wikipedia.org/wiki/TEST/T64319
Change 426966 had a related patch set uploaded (by Bartosz Dziewoński; owner: Bartosz Dziewoński):
[mediawiki/core@master] jquery.lengthLimit: Improve event handling
Change 426966 merged by jenkins-bot:
[mediawiki/core@master] jquery.lengthLimit: Fix 'cut'/'paste' event handling