[Webkit-unassigned] [Bug 21974] New: KURL.setProtocol does not re-interpret the URL properly

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Oct 30 10:08:09 PDT 2008


https://bugs.webkit.org/show_bug.cgi?id=21974

           Summary: KURL.setProtocol does not re-interpret the URL properly
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: P3
         Component: Platform
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: brettw at chromium.org


KURL.setProtocol technically requires that the URL be completely re-parsed. For
example, setting the protocol from http to file would trigger different
handling. javascript and data URLs have different backslash handling.

This could mean that creating a URL in this way would produce a different
parsing than giving the resulting string to KURL's constructor. For example, 
changing "data:foo/bar" to "http:foo/bar".

This isn't a large issue in practice because setProtocol is not often (or maybe
ever?) used to change the type of URLs like this, but rather to build up URLs
from component parts. However, this function is potentially dangerous or
misleading.


-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list