Prevent charset loading for document.write content because the content is already in unicode. b=125317, r=ftang, sr=jst
git-svn-id: svn://10.0.0.236/trunk@119320 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -61,6 +61,7 @@ class nsIElementObserver : public nsISupports {
|
||||
public:
|
||||
static const nsIID& GetIID() { static nsIID iid = NS_IELEMENTOBSERVER_IID; return iid; }
|
||||
|
||||
enum { IS_DOCUMENT_WRITE = 1U };
|
||||
/*
|
||||
* Subject call observer when the parser hit the tag
|
||||
* @param aDocumentID- ID of the document
|
||||
@@ -81,7 +82,8 @@ public:
|
||||
nsISupports* aChannel,
|
||||
const PRUnichar* aTag,
|
||||
const nsStringArray* aKeys,
|
||||
const nsStringArray* aValues) = 0;
|
||||
const nsStringArray* aValues,
|
||||
const PRUint32 aFlags) = 0;
|
||||
|
||||
};
|
||||
|
||||
|
||||
@@ -62,7 +62,8 @@ class nsIObserverEntry : public nsISupports {
|
||||
|
||||
NS_IMETHOD Notify(nsIParserNode* aNode,
|
||||
nsIParser* aParser,
|
||||
nsISupports* aWebShell) = 0;
|
||||
nsISupports* aWebShell,
|
||||
const PRUint32 aFlags) = 0;
|
||||
|
||||
};
|
||||
|
||||
|
||||
@@ -1523,7 +1523,8 @@ nsObserverEntry::~nsObserverEntry() {
|
||||
NS_IMETHODIMP
|
||||
nsObserverEntry::Notify(nsIParserNode* aNode,
|
||||
nsIParser* aParser,
|
||||
nsISupports* aWebShell)
|
||||
nsISupports* aWebShell,
|
||||
const PRUint32 aFlags)
|
||||
{
|
||||
NS_ENSURE_ARG_POINTER(aNode);
|
||||
NS_ENSURE_ARG_POINTER(aParser);
|
||||
@@ -1573,7 +1574,7 @@ nsObserverEntry::Notify(nsIParserNode* aNode,
|
||||
if (observer) {
|
||||
result = observer->Notify(aWebShell, channel,
|
||||
nsHTMLTags::GetStringValue(theTag),
|
||||
&keys, &values);
|
||||
&keys, &values, aFlags);
|
||||
if (NS_FAILED(result)) {
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -571,7 +571,8 @@ public:
|
||||
|
||||
NS_IMETHOD Notify(nsIParserNode* aNode,
|
||||
nsIParser* aParser,
|
||||
nsISupports* aWebShell);
|
||||
nsISupports* aWebShell,
|
||||
const PRUint32 aFlags);
|
||||
|
||||
nsresult AddObserver(nsIElementObserver* aObserver,eHTMLTags aTag);
|
||||
void RemoveObserver(nsIElementObserver* aObserver);
|
||||
|
||||
Reference in New Issue
Block a user