[Webkit-unassigned] [Bug 267841] Changing 'namespace' in UA Stylesheet leads to failures

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Jan 21 21:24:19 PST 2024


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

--- Comment #2 from Karl Dubost <karlcow at apple.com> ---
I wonder what is returned by this in the two cases:

https://searchfox.org/wubkat/source/Source/WebCore/css/parser/CSSParserImpl.cpp#596-607

RefPtr<StyleRuleNamespace> CSSParserImpl::consumeNamespaceRule(CSSParserTokenRange prelude)
{
    AtomString namespacePrefix;
    if (prelude.peek().type() == IdentToken)
        namespacePrefix = prelude.consumeIncludingWhitespace().value().toAtomString();

    AtomString uri(consumeStringOrURI(prelude));
    if (uri.isNull() || !prelude.atEnd())
        return nullptr; // Parse error, expected string or URI

    return StyleRuleNamespace::create(namespacePrefix, uri);
}

-- 
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/20240122/b2ad4699/attachment-0001.htm>


More information about the webkit-unassigned mailing list