[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 04:19:38 PDT 2018


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

Ms2ger <Ms2ger at igalia.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |Ms2ger at igalia.com

--- Comment #8 from Ms2ger <Ms2ger at igalia.com> ---
(In reply to Frédéric Wang (:fredw) from comment #7)
> (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?

I guess the question is who's encoding this string in the first place, and does *it* think it has a properly canonicalized URL?

-- 
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/ff066e39/attachment.html>


More information about the webkit-unassigned mailing list