Copying from one cell and pasting to another, performed several times, gets slower and slower until it eventually leads to the "Unresponsive script" warning.
You can test in my sandbox if you want.
I'm getting this in both FF and Chrome.
Description
Description
Details
Details
Subject | Repo | Branch | Lines +/- | |
---|---|---|---|---|
Table import: Only import the internal list on external paste | VisualEditor/VisualEditor | master | +26 -13 |
Event Timeline
Comment Actions
Hmm, I think maybe the internalList isn't merging properly and is therefore doubling in size each time.
Comment Actions
That is the problem. I think it is because newFromDocumentInsertion doesn't consolidate duplicate internal items. This is why we don't copy over the internal list to surface widgets, hence existing references are not available in image captions. Paging @Catrope.
Comment Actions
Change 277318 had a related patch set uploaded (by Esanders):
Table import: Only import the internal list on external paste
Comment Actions
Change 277318 merged by jenkins-bot:
Table import: Only import the internal list on external paste