| Index: Source/core/dom/DecodedDataDocumentParser.cpp
|
| ===================================================================
|
| --- Source/core/dom/DecodedDataDocumentParser.cpp (revision 160097)
|
| +++ Source/core/dom/DecodedDataDocumentParser.cpp (working copy)
|
| @@ -41,7 +41,10 @@
|
| if (!length)
|
| return 0;
|
|
|
| - if (isStopped())
|
| + // This should be checking isStopped(), but XMLDocumentParser prematurely
|
| + // stops parsing when handling an XSLT processing instruction and still
|
| + // needs to receive decoded bytes.
|
| + if (isDetached())
|
| return 0;
|
|
|
| String decoded = document()->decoder()->decode(data, length);
|
| @@ -58,7 +61,10 @@
|
|
|
| size_t DecodedDataDocumentParser::flush()
|
| {
|
| - if (isStopped())
|
| + // This should be checking isStopped(), but XMLDocumentParser prematurely
|
| + // stops parsing when handling an XSLT processing instruction and still
|
| + // needs to receive decoded bytes.
|
| + if (isDetached())
|
| return 0;
|
|
|
| // null decoder indicates there is no data received.
|
|
|