-
commit-queue@webkit.org authored
deal with any trailing </script> tag included by mistake in the XSSAuditor itself. Correct tests to detect the missing close tags. https://bugs.webkit.org/show_bug.cgi?id=68898 Patch by Tom Sepez <tsepez@chromium.org> on 2011-09-28 Reviewed by Adam Barth. Source/WebCore: * html/parser/HTMLSourceTracker.cpp: (WebCore::HTMLSourceTracker::end): * html/parser/HTMLTokenizer.cpp: (WebCore::HTMLTokenizer::nextToken): * html/parser/XSSAuditor.cpp: (WebCore::startsHTMLEndTagAt): (WebCore::XSSAuditor::snippetForJavaScript): LayoutTests: * fast/frames/resources/viewsource-frame-2.html: * fast/frames/viewsource-plain-text-tags-expected.txt: * fast/frames/viewsource-plain-text-tags.html: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@96231 268f45cc-cd09-0410-ab3c-d52691b4dbfc
27e2cc7c