DescriptionEscape "--" in the page URL at page serialization
This patch makes page serializer to escape the page URL embed into a HTML
comment of result HTML[1] to avoid inserting text as HTML from URL by
introducing a static member function |PageSerialzier::markOfTheWebDeclaration()|
for sharing it between |PageSerialzier| and |WebPageSerialzier| classes.
[1] We use following format for serialized HTML:
saved from url=(${lengthOfURL})${URL}
BUG=503217
TEST=webkit_unit_tests --gtest_filter=PageSerializerTest.markOfTheWebDeclaration
TEST=webkit_unit_tests --gtest_filter=WebPageSerializerTest.fromUrlWithMinusMinu
Committed: https://crrev.com/a81593e7f162428585832ac8f6e71f75592b53e7
Cr-Commit-Position: refs/heads/master@{#351736}
Patch Set 1 : 2015-09-30T17:19:13 #
Total comments: 3
Patch Set 2 : 2015-09-30T19:11:33 Follow review comments #
Messages
Total messages: 9 (2 generated)
|