Page MenuHomePhabricator

Copying a piped link from VE to VE results in javascript:void(0) in wikitext
Closed, ResolvedPublic1 Estimated Story Points

Description

I hit this in Firefox 51.0 on Debian Jessie, and simplified it down:

https://en.wikipedia.org/wiki/User:Mattflaschen/Sandbox/Washington has the wikitext:

[[Washington (state)|Washington]]
  1. Open https://en.wikipedia.org/wiki/User:Mattflaschen/Sandbox/Washington?veaction=edit and a separate blank page, both in VE edit mode.
  2. Copy the full text of User:Mattflaschen/Sandbox/Washington to the blank page.
  3. The target immediately shows red, because the linked page is now javascript:void(0). This is preserved in the wikitext in 'Review your changes' as well.

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript
Jdforrester-WMF triaged this task as Unbreak Now! priority.Feb 7 2017, 8:16 PM
Jdforrester-WMF set the point value for this task to 1.
Jdforrester-WMF moved this task from To Triage to TR0: Interrupt on the VisualEditor board.
Jdforrester-WMF subscribed.

Interesting.

In master, paste of the HTML into NWE works fine, but pasting into VE throws:

Uncaught TypeError: Cannot set property 'store' of undefined
    at openAnnotation (load.php?debug=false&lang=en&modules=ext.cite.visualEditor|ext.citoid.visualEditor|ext.graph.visual…:484)
    at Object.ve.dm.Converter.static.openAndCloseAnnotations (load.php?debug=false&lang=en&modules=ext.cite.visualEditor|ext.citoid.visualEditor|ext.graph.visual…:350)
    at VeCeParagraphNode.ve.ce.ContentBranchNode.getRenderedContents (load.php?debug=false&lang=en&modules=ext.cite.visualEditor|ext.citoid.visualEditor|ext.graph.visual…:486)
    at VeCeParagraphNode.ve.ce.ContentBranchNode.renderContents (load.php?debug=false&lang=en&modules=ext.cite.visualEditor|ext.citoid.visualEditor|ext.graph.visual…:488)
…

I don't think this is related to it being a piped link at all.

The link copies fine for me in Firefox. Could be a browser plugin issue, can you try with a clean FF profile?

In master, paste of the HTML into NWE works fine, but pasting into VE throws:

What did you do to trigger this, I'm not getting any exceptions?

Jdforrester-WMF assigned this task to Esanders.

Looks like this is now fixed (possibly by the other C/P task).