I don't know why, but have always removed the fragment identifiers from the URL when creating the SoupURI that is passed to libsoup. Maybe it was a bug in a very old version of libsoup, but it doesn't look necessary anymore and it's causing several layout tests failures.
Created attachment 301918 [details] Patch
Created attachment 301919 [details] Patch
Committed r212548: <http://trac.webkit.org/changeset/212548>
Out of curiosity I tracked down this behavior to: https://trac.webkit.org/changeset/41058 Here's the original comment: // GIO doesn't know how to handle refs and queries, so remove them // TODO: use KURL.fileSystemPath after KURLGtk and FileSystemGtk are // using GIO internally, and providing URIs instead of file paths
The origin of the behavior is here: https://trac.webkit.org/changeset/33594
(In reply to comment #4) > Out of curiosity I tracked down this behavior to: > https://trac.webkit.org/changeset/41058 > > Here's the original comment: > // GIO doesn't know how to handle refs and queries, so remove them > // TODO: use KURL.fileSystemPath after KURLGtk and FileSystemGtk are > // using GIO internally, and providing URIs instead of file paths But I think this was only done for local files. This code was removed actually. For URLS we have always done it.
So this is why anchor links have always been buggy for us...? WTF. :(