[Webkit-unassigned] [Bug 167093] [URL Parser] ASSERTION FAILED: url == m_string in WebCore::URL::URL

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Jun 20 03:19:41 PDT 2018


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

Frédéric Wang (:fredw) <fred.wang at free.fr> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |fred.wang at free.fr

--- Comment #7 from Frédéric Wang (:fredw) <fred.wang at free.fr> ---
(In reply to Alex Christensen from comment #6)
> There is somewhere where there is a URL constructor that uses
> ParsedURLString that should not because the String it is given is not a
> pre-canonicalized URL.

So from the back trace provided in comment 0, it seems this likely happens here: 

template<class Decoder>
ALWAYS_INLINE bool ResourceRequestBase::decodeBase(Decoder& decoder)
{
...
    String firstPartyForCookies;
    if (!decoder.decode(firstPartyForCookies))
        return false;
    m_firstPartyForCookies = URL(ParsedURLString, firstPartyForCookies);

I guess a workaround would be to put the url in canonical form:

URLParser parser(firstPartyForCookies);
m_firstPartyForCookies = parser.result();

But is it the proper place to do such a conversion?

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20180620/ec9915fc/attachment.html>


More information about the webkit-unassigned mailing list