首页 > 代码库 > 坑,Chromium里threaded parsing导致sub resource loader不止一个路径

坑,Chromium里threaded parsing导致sub resource loader不止一个路径

void ScriptLoader::handleSourceAttribute(const String& sourceUrl)
{
    if (ignoresLoadRequest() || sourceUrl.isEmpty())
        return;
bool ScriptLoader::ignoresLoadRequest() const
{
    VLOG(0)<<"ScriptLoader::ignoresLoadRequest m_alreadyStarted="<<m_alreadyStarted<<" m_isExternalScript="<<m_isExternalScript
        <<" !element()="<<!element()
        <<" !element()->inDocument()="<<(element()? !element()->inDocument() : false);
    return m_alreadyStarted || m_isExternalScript || m_parserInserted || !element() || !element()->inDocument();
}

坑,Chromium里threaded parsing导致sub resource loader不止一个路径