MantisBT - NetSurf
View Issue Details
0002775NetSurf[All Projects] Generalpublic2020-06-02 17:082022-10-15 23:02
ReporterHarriet Bazley 
Assigned To 
PlatformARMiniXOSRISC OSOS Version5.27
Product Version 
Target VersionFixed in Version 
Fixed in CI build #
Reported in CI build #5041
URL of problem page
Summary0002775: URLs get truncated/corrupted on drag
DescriptionI've noticed that when I try to insert URLs into a StrongED window by dragging the text from the URL icon, they often seem to come out truncated, with a random extra character inserted at the end. This seems to happen when the URL in question ends with a link to a local anchor on the page, but it may simply be that these tend to be the longer URLs.

I've also seen the same behaviour when dragging into a textarea in Netsurf itself, e.g. when sending PMs via a website or making bug reports. However, it's not reliably reproducible in either case.
Steps To ReproduceI've just opened the URL (by double-clicking on a text file in StrongED) and dragged the contents of the URL bar into this icon, with the results seen below:

I had previously had an identical result when performing the same drag into a StrongED window, and I see the same corruption/truncation in the resulting file when dragging from the URL bar to a Filer window.
Additional Information
Unfortunately this does *not* happen every time, as I've just demonstrated above by opening a second Netsurf window on the same URL and anchor, and dragging from that....

Here's another example, from a random Dreamwidth journal:
The displayed URL was (this specific 'p' corruption seems to be quite common when performing a URL-bar drag to link to subsections in Dreamwidth blogs; here's another one found by clicking on links from the post above: )
TagsNo tags attached.
Attached Files

Harriet Bazley   
2022-10-15 23:02   
Now that the URL bar dragging behaviour has been restored, I'm seeing the corruption/truncation of the dragged URLs again.

I'm definitely getting the impression that it seems to be specific to URLs that reference a local page anchor.

Issue History
2020-06-02 17:08Harriet BazleyNew Issue
2022-10-15 23:02Harriet BazleyNote Added: 0002407