diff options
author | Oystein <oysteine@chromium.org> | 2014-07-22 09:05:08 +0200 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@digia.com> | 2014-07-22 12:57:29 +0200 |
commit | 4a39158368f6184c8d56e1d65866ba99f83297e0 (patch) | |
tree | 010797f76282f1bc1c7902a07b84cb8ea87c7b97 /Source/JavaScriptCore/API/JavaScript.h | |
parent | 20558f56823e28c0c28043ed5ba06b29bebe348b (diff) | |
download | qtwebkit-4a39158368f6184c8d56e1d65866ba99f83297e0.tar.gz |
Added support for appending an escaped SegmentedString to another.
Merge of blink r174725
This was previously an assert which triggers in the situation where the
HTMLEntityParser is parsing a potential named entity, but only has one or two
characters of data available due to being at the end of a network packet
boundary, so it 'unconsumes' them from the SegmentedString which has some
special handling when only one or two characters needs unconsuming to avoid
string creation. Next time the tokenizer is pumped, the SegmentedString is
then appended to the HTMLSourceTracker right before the actual parsing happens
(i.e. when we'd consume the previously unconsumed characters).
SegmentedString::append mostly assumes the parameter string hasn't been
consumed from and had an assert instead of handling this case, which hits.
Task-number: QTBUG-40284
Change-Id: Ifcf9af6f6e2e5a9750af4297cfda2f55f3bb274e
Reviewed-by: Michael Bruning <michael.bruning@digia.com>
Diffstat (limited to 'Source/JavaScriptCore/API/JavaScript.h')
0 files changed, 0 insertions, 0 deletions