Changeset 65843 in webkit


Ignore:
Timestamp:
Aug 23, 2010 4:48:38 PM (14 years ago)
Author:
eric@webkit.org
Message:

2010-08-23 Adam Barth <abarth@webkit.org>

Reviewed by Eric Seidel.

editing/pasteboard/paste-visible-script.html is broken with --html5-treebuilder
https://bugs.webkit.org/show_bug.cgi?id=44457

Turns out there are two more checks we need for fragment scripting
permission. Not the most beautiful design, but it seems work.

  • html/HTMLConstructionSite.cpp: (WebCore::HTMLConstructionSite::insertScriptElement):
  • html/HTMLTreeBuilder.cpp: (WebCore::HTMLTreeBuilder::processEndTag):
Location:
trunk/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r65842 r65843  
     12010-08-23  Adam Barth  <abarth@webkit.org>
     2
     3        Reviewed by Eric Seidel.
     4
     5        editing/pasteboard/paste-visible-script.html is broken with --html5-treebuilder
     6        https://bugs.webkit.org/show_bug.cgi?id=44457
     7
     8        Turns out there are two more checks we need for fragment scripting
     9        permission.  Not the most beautiful design, but it seems work.
     10
     11        * html/HTMLConstructionSite.cpp:
     12        (WebCore::HTMLConstructionSite::insertScriptElement):
     13        * html/HTMLTreeBuilder.cpp:
     14        (WebCore::HTMLTreeBuilder::processEndTag):
     15
    1162010-08-23  Eric Seidel  <eric@webkit.org>
    217
  • trunk/WebCore/html/HTMLConstructionSite.cpp

    r65769 r65843  
    291291{
    292292    RefPtr<HTMLScriptElement> element = HTMLScriptElement::create(scriptTag, m_document, true);
    293     element->setAttributeMap(token.takeAtributes(), m_fragmentScriptingPermission);
     293    if (m_fragmentScriptingPermission == FragmentScriptingAllowed)
     294        element->setAttributeMap(token.takeAtributes(), m_fragmentScriptingPermission);
    294295    m_openElements.push(attachToCurrent(element.release()));
    295296}
  • trunk/WebCore/html/HTMLTreeBuilder.cpp

    r65819 r65843  
    23992399            m_scriptToProcessStartLine = m_lastScriptElementStartLine + 1;
    24002400            m_tree.openElements()->pop();
     2401            if (isParsingFragment() && m_fragmentContext.scriptingPermission() == FragmentScriptingNotAllowed)
     2402                m_scriptToProcess->removeAllChildren();
    24012403            setInsertionMode(m_originalInsertionMode);
    24022404            return;
Note: See TracChangeset for help on using the changeset viewer.