~ubuntu-branches/ubuntu/feisty/firefox/feisty-security

« back to all changes in this revision

Viewing changes to content/base/public/nsIDocument.h

  • Committer: Bazaar Package Importer
  • Author(s): Alexander Sack
  • Date: 2008-02-04 13:35:29 UTC
  • mfrom: (1.1.21 upstream)
  • Revision ID: james.westby@ubuntu.com-20080204133529-0pyfe6dcs1tlhkhb
Tags: 2.0.0.12+1nobinonly+2-0ubuntu0.7.4
* New stability upstream release (v2.0.0.12)
* New security/stability upstream release (v2.0.0.12) - 1.8.0.14 prepatches
* MFSA 2008-01 aka CVE-2008-0412: Crashes with evidence of memory corruption
  v1.8.1.12 (Browser crashes)
* MFSA 2008-01 aka CVE-2008-0413: Crashes with evidence of memory corruption
  v1.8.1.12 (javascript crashes)
* MFSA 2008-02 aka CVE-2008-0414: Multiple file input focus stealing
  vulnerabilities: 1. Focus shifting bugs and 2. Selective keystroke blocking
  bugs
* MFSA 2008-03 aka CVE-2008-0415: Privilege escalation, XSS, Remote Code
  Execution (JavaScript privilege escalation bugs)
* MFSA 2008-04 aka CVE-2008-0416: Multiple XSS vulnerabilities from
  character encoding
* MFSA 2008-05 aka CVE-2008-0417: Stored password corruption
* MFSA 2008-06 aka CVE-2008-0418: Directory traversal via chrome: URI
* MFSA 2008-07 aka CVE-2008-0419: Web browsing history and forward navigation
  stealing
* MFSA 2008-08 aka CVE-2008-0420: Possible information disclosure in BMP
  decoder
* MFSA 2008-09 aka CVE-2008-0591: File action dialog tampering
* MFSA 2008-10 aka CVE-2008-0592: Mishandling of locally-saved plain text
  files
* MFSA 2008-11 aka CVE-2008-0593: URL token stealing via stylesheet redirect
* MFSA 2008-12 aka CVE-2008-0594: Web forgery overwrite with div overlay

Show diffs side-by-side

added added

removed removed

Lines of Context:
910
910
  PRBool mIsInitialDocumentInWindow;
911
911
};
912
912
 
 
913
#define NS_IDOCUMENT_MOZILLA_1_8_BRANCH3_IID      \
 
914
{ 0x23da8ffb, 0x095d, 0x4215, \
 
915
  { 0x9a, 0x93, 0x3e, 0x0f, 0xe4, 0x10, 0x89, 0x0b } }
 
916
 
 
917
class nsIDocument_MOZILLA_1_8_BRANCH3 : public nsISupports
 
918
{
 
919
public:
 
920
  NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDOCUMENT_MOZILLA_1_8_BRANCH3_IID)
 
921
  /**
 
922
   * Get/set the object from which the context for the event/script handling can
 
923
   * be got. Normally GetScriptHandlingObject() returns the same object as
 
924
   * GetScriptGlobalObject(), but if the document is loaded as data,
 
925
   * non-null may be returned, even if GetScriptGlobalObject() returns null.
 
926
   * aHasHadScriptHandlingObject is set PR_TRUE if document has had the object
 
927
   * for event/script handling. Do not process any events/script if the method
 
928
   * returns null, but aHasHadScriptHandlingObject is true.
 
929
   */
 
930
  virtual nsIScriptGlobalObject*
 
931
    GetScriptHandlingObject(PRBool& aHasHadScriptHandlingObject) const = 0;
 
932
  virtual void SetScriptHandlingObject(nsIScriptGlobalObject* aScriptObject) = 0;
 
933
protected:
 
934
 
 
935
};
 
936
 
913
937
/**
914
938
 * Helper class to automatically handle batching of document updates.  This
915
939
 * class will call BeginUpdate on construction and EndUpdate on destruction on
961
985
NS_NewDocumentFragment(nsIDOMDocumentFragment** aInstancePtrResult,
962
986
                       nsNodeInfoManager *aNodeInfoManager);
963
987
nsresult
 
988
NS_NewDOMDocument_MOZILLA_1_8_BRANCH(nsIDOMDocument** aInstancePtrResult,
 
989
                                     const nsAString& aNamespaceURI,
 
990
                                     const nsAString& aQualifiedName,
 
991
                                     nsIDOMDocumentType* aDoctype,
 
992
                                     nsIURI* aBaseURI,
 
993
                                     nsIScriptGlobalObject* aScriptHandler,
 
994
                                     PRBool aLoadedAsData);
 
995
 
 
996
nsresult
964
997
NS_NewDOMDocument(nsIDOMDocument** aInstancePtrResult,
965
998
                  const nsAString& aNamespaceURI, 
966
999
                  const nsAString& aQualifiedName,