From 86f8c5c0cb56f4b0f071c85a4fd8435904b22ea0 Mon Sep 17 00:00:00 2001 From: Martin Thomson Date: Wed, 15 Apr 2015 14:19:21 -0700 Subject: [PATCH] Bug 1153294 - Exposing Document.documentLoadGroup to Chrome JS, r=sicking --- dom/bindings/Bindings.conf | 2 ++ dom/webidl/Document.webidl | 3 +++ 2 files changed, 5 insertions(+) diff --git a/dom/bindings/Bindings.conf b/dom/bindings/Bindings.conf index dd658ce7758c..83f9da1a86bc 100644 --- a/dom/bindings/Bindings.conf +++ b/dom/bindings/Bindings.conf @@ -1897,6 +1897,8 @@ addExternalIface('nsIDOMCrypto', nativeType='nsIDOMCrypto', addExternalIface('nsIInputStreamCallback', nativeType='nsIInputStreamCallback', headerFile='nsIAsyncInputStream.h') addExternalIface('nsIFile', nativeType='nsIFile', notflattened=True) +addExternalIface('nsILoadGroup', nativeType='nsILoadGroup', + headerFile='nsILoadGroup.h', notflattened=True) addExternalIface('nsIMessageBroadcaster', nativeType='nsIMessageBroadcaster', headerFile='nsIMessageManager.h', notflattened=True) addExternalIface('nsISelectionListener', nativeType='nsISelectionListener') diff --git a/dom/webidl/Document.webidl b/dom/webidl/Document.webidl index d385bf73c9f1..509046f4dee3 100644 --- a/dom/webidl/Document.webidl +++ b/dom/webidl/Document.webidl @@ -10,6 +10,7 @@ interface WindowProxy; interface nsISupports; interface URI; interface nsIDocShell; +interface nsILoadGroup; enum VisibilityState { "hidden", "visible" }; @@ -354,6 +355,8 @@ partial interface Document { [ChromeOnly] readonly attribute nsIDocShell? docShell; [ChromeOnly] readonly attribute DOMString contentLanguage; + + [ChromeOnly] readonly attribute nsILoadGroup? documentLoadGroup; }; // Extension to give chrome JS the ability to determine when a document was