Bug 444322 - Ignore OnDataAvailable calls when we're executing a script. r+sr=bzbarsky/jst a=dveditz

git-svn-id: svn://10.0.0.236/trunk@255767 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
mrbkap%gmail.com
2009-01-08 07:40:47 +00:00
parent a5c1c31cd6
commit 070e8296b2
9 changed files with 2661 additions and 30 deletions

View File

@@ -58,6 +58,10 @@
{ 0x506527cc, 0xd832, 0x420b, \
{ 0xba, 0x3a, 0x80, 0xc0, 0x5a, 0xa1, 0x05, 0xf4 } }
// 5FA66227-44CF-4572-9B5F-E9A357B67ED9
#define NS_IPARSER_1_9_0_BRANCH \
{ 0x5FA66227, 0x44CF, 0x4572, \
{ 0x9B, 0x5F, 0xE9, 0xA3, 0x57, 0xB6, 0x7E, 0xD9 } }
// {41421C60-310A-11d4-816F-000064657374}
#define NS_IDEBUG_DUMP_CONTENT_IID \
@@ -291,6 +295,22 @@ class nsIParser : public nsISupports {
virtual void Reset() = 0;
};
class nsIParser_1_9_0_BRANCH : public nsIParser {
public:
/**
* Tells the parser that a script is now executing. The only data we
* should resume parsing for is document.written data. We'll deal with any
* data that comes in over the network later.
*/
virtual void ScriptExecuting() = 0;
/**
* Tells the parser that the script is done executing. We should now
* continue the regular parsing process.
*/
virtual void ScriptDidExecute() = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIParser, NS_IPARSER_IID)
/* ===========================================================*