Changeset 65843 in webkit
- Timestamp:
- Aug 23, 2010 4:48:38 PM (14 years ago)
- Location:
- trunk/WebCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r65842 r65843 1 2010-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 1 16 2010-08-23 Eric Seidel <eric@webkit.org> 2 17 -
trunk/WebCore/html/HTMLConstructionSite.cpp
r65769 r65843 291 291 { 292 292 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); 294 295 m_openElements.push(attachToCurrent(element.release())); 295 296 } -
trunk/WebCore/html/HTMLTreeBuilder.cpp
r65819 r65843 2399 2399 m_scriptToProcessStartLine = m_lastScriptElementStartLine + 1; 2400 2400 m_tree.openElements()->pop(); 2401 if (isParsingFragment() && m_fragmentContext.scriptingPermission() == FragmentScriptingNotAllowed) 2402 m_scriptToProcess->removeAllChildren(); 2401 2403 setInsertionMode(m_originalInsertionMode); 2402 2404 return;
Note: See TracChangeset
for help on using the changeset viewer.