Fix for bug 46861. nsIDOMWindow is now split into two interfaces: a public interface (still called nsIDOMWindow) for embedders and an internal interface (nsIDOMWindowInternal) for internal use. The union of the two interfaces is still visible from JavaScript. r=jst@netscape.com
git-svn-id: svn://10.0.0.236/trunk@77828 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -46,7 +46,7 @@
|
||||
#include "nsIDOMComment.h"
|
||||
#include "nsIDOMDOMImplementation.h"
|
||||
#include "nsIDOMDocumentType.h"
|
||||
#include "nsIDOMWindow.h"
|
||||
#include "nsIDOMWindowInternal.h"
|
||||
#include "nsIDOMHTMLFormElement.h"
|
||||
#include "nsIStreamListener.h"
|
||||
#include "nsIURL.h"
|
||||
@@ -2007,7 +2007,7 @@ nsHTMLDocument::GetSourceDocumentURL(JSContext* cx,
|
||||
nsCOMPtr<nsIScriptGlobalObject> global;
|
||||
nsLayoutUtils::GetDynamicScriptGlobal(cx, getter_AddRefs(global));
|
||||
if (global) {
|
||||
nsCOMPtr<nsIDOMWindow> window(do_QueryInterface(global, &result));
|
||||
nsCOMPtr<nsIDOMWindowInternal> window(do_QueryInterface(global, &result));
|
||||
|
||||
if (window) {
|
||||
nsCOMPtr<nsIDOMDocument> document;
|
||||
|
||||
Reference in New Issue
Block a user