From 2b2835689b0693e9eb63d0403743ed43c535d737 Mon Sep 17 00:00:00 2001 From: "heikki%netscape.com" Date: Thu, 20 Apr 2006 03:38:13 +0000 Subject: [PATCH] Bug 169984, sanitize XMExtras method availability to scripts. r=mstoltz, sr=jst. --- content/base/public/nsIDOMParser.idl | 9 ++++----- content/base/src/nsXMLHttpRequest.cpp | 1 - 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/content/base/public/nsIDOMParser.idl b/content/base/public/nsIDOMParser.idl index c127caf27f6..7341d6935a5 100644 --- a/content/base/public/nsIDOMParser.idl +++ b/content/base/public/nsIDOMParser.idl @@ -68,6 +68,8 @@ interface nsIDOMParser : nsISupports { /** * The byte stream passed in is parsed into a DOM document. * + * Not accessible from web content. + * * @param stream The byte stream whose contents are parsed * @param charset The character set that was used to encode the byte * stream. NULL if not specified. @@ -82,12 +84,9 @@ interface nsIDOMParser : nsISupports { in string contentType); /** - * Set/Get the baseURI. You will probably not need this if you - * have a script environment. This is mostly intended for cases - * without a script environment, for example calling from native - * code. + * Set/Get the baseURI, may be needed when called from native code. */ - attribute nsIURI baseURI; + [noscript] attribute nsIURI baseURI; }; %{ C++ diff --git a/content/base/src/nsXMLHttpRequest.cpp b/content/base/src/nsXMLHttpRequest.cpp index 704003ad268..4b69f7f5a8d 100644 --- a/content/base/src/nsXMLHttpRequest.cpp +++ b/content/base/src/nsXMLHttpRequest.cpp @@ -81,7 +81,6 @@ #include "nsIDOMClassInfo.h" #include "nsIDOMElement.h" #include "nsIDOMWindow.h" -#include "nsILoadGroup.h" #include "nsIVariant.h" #include "nsIParser.h" #include "nsLoadListenerProxy.h"