Page MenuHomePhabricator

VisualEditor: Reference is redirecting to the page from where it is copied in Firefox
Closed, ResolvedPublic

Description

Screenshot

Steps to reproduce:

1.Open a page with VE in FireFox which contains a reference and reference list
For example:
reference<ref>reference</ref>
<references />
2.Copy the reference and the reference list
3.Open another page with VE in FireFox
4.Paste the reference and the reference list
5.Save the page

Observed Result:
The wikitext resulting from after copy-paste is:

reference<span class="reference" id="cite_ref-1-0" rel="dc:references"><sup href="http://en.wikipedia.beta.wmflabs.org/wiki/30th_december?veaction=edit#cite_note-1">[1]</sup></span>
#<span class="" rel="mw:referencedBy">[http://en.wikipedia.beta.wmflabs.org/wiki/30th_december?veaction=edit#cite_ref-1-0 ↑]</span> reference

And it redirects to the source page (in this case: http://en.wikipedia.beta.wmflabs.org/wiki/30th_december?veaction=edit#cite_ref-1-0)

See the screenshot attached.

Test Environment: http://en.wikipedia.beta.wmflabs.org/
Browser: FF 25
OS: MAC OS X 10. 8. 5
Page:http://en.wikipedia.beta.wmflabs.org/wiki/Newrefff


Version: unspecified
Severity: normal

Attached:

Screen_Shot_2013-12-31_at_3.19.10_PM.png (324×1 px, 94 KB)

Details

Reference
bz59173

Event Timeline

bzimport raised the priority of this task from to High.Nov 22 2014, 2:40 AM
bzimport set Reference to bz59173.

Change 108680 had a related patch set uploaded by Esanders:
Protect RDFa attributes from obliteration

https://gerrit.wikimedia.org/r/108680

Change 108680 merged by jenkins-bot:
Protect RDFa attributes from obliteration

https://gerrit.wikimedia.org/r/108680

Still getting this issue on Betalabs:

The resulting wikitext after copying a reference and reference list from FireFox to FireFox is:

reference<span class="reference" id="cite_ref-1-0" rel="dc:references"><sup href="http://en.wikipedia.beta.wmflabs.org/wiki/23rd_january?veaction=edit#cite_note-1">[1]</sup></span>
#<span class="" rel="mw:referencedBy"><a href="http://en.wikipedia.beta.wmflabs.org/wiki/23rd_january#cite_ref-1-0">↑</a></span> reference

betalabs doesn't have this code deployed yet