Skip to content

The SVG fragment identifier is not respected if it is a part of an HTTP URL #818

@annulen

Description

@annulen

This bug has a high impact on remote inspector UI

Upstream fix: https://bugs.webkit.org/show_bug.cgi?id=163811

I've tried backporting but it's impractical, however following patch seems to fix

diff --git a/Source/WebCore/loader/cache/CachedResource.cpp b/Source/WebCore/loader/cache/CachedResource.cpp
index aeaa9a65535..8b6d34c3908 100644
--- a/Source/WebCore/loader/cache/CachedResource.cpp
+++ b/Source/WebCore/loader/cache/CachedResource.cpp
@@ -146,6 +146,8 @@ CachedResource::CachedResource(const ResourceRequest& request, Type type, Sessio
 
     if (!m_resourceRequest.url().hasFragmentIdentifier())
         return;
+    if (m_type == ImageResource)
+        return;
     URL urlForCache = MemoryCache::removeFragmentIdentifierIfNeeded(m_resourceRequest.url());
     if (urlForCache.hasFragmentIdentifier())
         return;

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions