Page MenuHomePhabricator

VisualEditor: Cut+paste of {{convert}} and {{cite web}} unleashes invasion of snowman clone army in endless loop
Closed, ResolvedPublic

Description

Steps to reproduce:

  • Mark the sentence "It was 113 feet 7 inches (34.62 m) tall and weighed over 9,000,000 pounds (4,080,000 kg).[1]" and cut it (Strg+X).
  • Paste it in again (Strg+V).
  • Click before "It" to place the cursor at the beginning of the sentence.

Result: The editor starts adding copies of the sentence in an endless loop, with the templates (see below) replaced by snowmen:

"It was ☃☃ tall and weighed over ☃☃.☃☃It was ☃☃ tall and weighed over ☃☃.☃☃It was ☃☃ tall and weighed over ☃☃.☃☃It was ☃☃ tall and weighed over ☃☃.☃☃It was ☃☃ tall and weighed over ☃☃.☃☃It was ..."

(Actually, if one scrolls or clicks somewhere in the page, the loop may stop, but I've observed it going on for more than a minute, generating 378 copies of the sentence.)

Here is the wikitext source of the sentence:

"It was {{convert|113|ft|7|in|m}} tall and weighed over {{convert|9000000|lb|kg|-4}}.<ref>{{cite web|url=http://www.sundayriveron-line.com/AngusSnowman_1.htm|title=Angus, King of the Mountain &mdash; World's Largest Snowman|date=February 19, 1999|publisher=Sunday River On-Line|archiveurl=http://web.archive.org/web/20071012082219/http://www.sundayriveron-line.com/AngusSnowman_1.htm|archivedate=2007-10-12}}</ref>"


Version: unspecified
Severity: major

Details

Reference
bz72512

Event Timeline

PS: Observed in Chromium 37 (no extensions) under Ubuntu both while logged in and while logged out. Under Firefox I can't even get the cutting (step 2) to work, which appears to be a separate bug.

Yeah, sorry for this; fixed and back-ported on Monday. :-(

  • Bug 72491 has been marked as a duplicate of this bug. ***

Checked in betalabs and test2 - seems to be fixed.