diff --git a/mozilla/editor/composer/src/nsEditingSession.cpp b/mozilla/editor/composer/src/nsEditingSession.cpp index 280bdccc8bb..28280fbf1d4 100644 --- a/mozilla/editor/composer/src/nsEditingSession.cpp +++ b/mozilla/editor/composer/src/nsEditingSession.cpp @@ -119,8 +119,8 @@ nsEditingSession::~nsEditingSession() mLoadBlankDocTimer->Cancel(); } -NS_IMPL_ISUPPORTS4(nsEditingSession, nsIEditingSession, nsIWebProgressListener, - nsIURIContentListener, nsISupportsWeakReference) +NS_IMPL_ISUPPORTS3(nsEditingSession, nsIEditingSession, nsIWebProgressListener, + nsISupportsWeakReference) /*--------------------------------------------------------------------------- @@ -145,15 +145,7 @@ nsEditingSession::MakeWindowEditable(nsIDOMWindow *aWindow, nsIDocShell *docShell = GetDocShellFromWindow(aWindow); if (!docShell) return NS_ERROR_FAILURE; - // register as a content listener, so that we can fend off URL - // loads from sidebar nsresult rv; - nsCOMPtr listener = do_GetInterface(docShell, &rv); - NS_ENSURE_SUCCESS(rv, rv); - - rv = listener->SetParentContentListener(this); - NS_ENSURE_SUCCESS(rv, rv); - // Disable JavaScript in this document: PRBool tmp; rv = docShell->GetAllowJavascript(&tmp); @@ -916,70 +908,6 @@ nsEditingSession::OnSecurityChange(nsIWebProgress *aWebProgress, } -#ifdef XP_MAC -#pragma mark - -#endif - -/* boolean onStartURIOpen (in nsIURI aURI); */ -NS_IMETHODIMP nsEditingSession::OnStartURIOpen(nsIURI *aURI, PRBool *aAbortOpen) -{ - return NS_OK; -} - -/* boolean doContent (in string aContentType, in boolean aIsContentPreferred, in nsIRequest aRequest, out nsIStreamListener aContentHandler); */ -NS_IMETHODIMP nsEditingSession::DoContent(const char *aContentType, PRBool aIsContentPreferred, nsIRequest *aRequest, nsIStreamListener **aContentHandler, PRBool *aAbortProcess) -{ - NS_ENSURE_ARG_POINTER(aContentHandler); - NS_ENSURE_ARG_POINTER(aAbortProcess); - *aContentHandler = nsnull; - *aAbortProcess = PR_FALSE; - return NS_OK; -} - -/* boolean isPreferred (in string aContentType, out string aDesiredContentType); */ -NS_IMETHODIMP nsEditingSession::IsPreferred(const char *aContentType, char **aDesiredContentType, PRBool *_retval) -{ - NS_ENSURE_ARG_POINTER(aDesiredContentType); - NS_ENSURE_ARG_POINTER(_retval); - *aDesiredContentType = nsnull; - *_retval = PR_FALSE; - return NS_OK; -} - -/* boolean canHandleContent (in string aContentType, in boolean aIsContentPreferred, out string aDesiredContentType); */ -NS_IMETHODIMP nsEditingSession::CanHandleContent(const char *aContentType, PRBool aIsContentPreferred, char **aDesiredContentType, PRBool *_retval) -{ - NS_ENSURE_ARG_POINTER(aDesiredContentType); - NS_ENSURE_ARG_POINTER(_retval); - *aDesiredContentType = nsnull; - *_retval = PR_FALSE; - return NS_OK; -} - -/* attribute nsISupports loadCookie; */ -NS_IMETHODIMP nsEditingSession::GetLoadCookie(nsISupports * *aLoadCookie) -{ - NS_ENSURE_ARG_POINTER(aLoadCookie); - *aLoadCookie = nsnull; - return NS_OK; -} -NS_IMETHODIMP nsEditingSession::SetLoadCookie(nsISupports * aLoadCookie) -{ - return NS_OK; -} - -/* attribute nsIURIContentListener parentContentListener; */ -NS_IMETHODIMP nsEditingSession::GetParentContentListener(nsIURIContentListener * *aParentContentListener) -{ - NS_ENSURE_ARG_POINTER(aParentContentListener); - *aParentContentListener = nsnull; - return NS_OK; -} -NS_IMETHODIMP nsEditingSession::SetParentContentListener(nsIURIContentListener * aParentContentListener) -{ - return NS_OK; -} - #ifdef XP_MAC #pragma mark - #endif diff --git a/mozilla/editor/composer/src/nsEditingSession.h b/mozilla/editor/composer/src/nsEditingSession.h index 7d40db33707..f8bec766f80 100644 --- a/mozilla/editor/composer/src/nsEditingSession.h +++ b/mozilla/editor/composer/src/nsEditingSession.h @@ -46,10 +46,6 @@ #include "nsITimer.h" -#ifndef __gen_nsIURIContentListener_h__ -#include "nsIURIContentListener.h" -#endif - #ifndef __gen_nsIWebProgressListener_h__ #include "nsIWebProgressListener.h" #endif @@ -75,7 +71,6 @@ class nsComposerCommandsUpdater; class nsEditingSession : public nsIEditingSession, public nsIWebProgressListener, - public nsIURIContentListener, public nsSupportsWeakReference { public: @@ -86,9 +81,6 @@ public: // nsISupports NS_DECL_ISUPPORTS - // nsIURIContentListener - NS_DECL_NSIURICONTENTLISTENER - // nsIWebProgressListener NS_DECL_NSIWEBPROGRESSLISTENER diff --git a/mozilla/toolkit/content/widgets/editor.xml b/mozilla/toolkit/content/widgets/editor.xml index 3678dabc429..8109e125304 100644 --- a/mozilla/toolkit/content/widgets/editor.xml +++ b/mozilla/toolkit/content/widgets/editor.xml @@ -27,6 +27,40 @@ + + + @@ -34,6 +68,10 @@ diff --git a/mozilla/xpfe/global/resources/content/bindings/editor.xml b/mozilla/xpfe/global/resources/content/bindings/editor.xml index 3678dabc429..8109e125304 100644 --- a/mozilla/xpfe/global/resources/content/bindings/editor.xml +++ b/mozilla/xpfe/global/resources/content/bindings/editor.xml @@ -27,6 +27,40 @@ + + + @@ -34,6 +68,10 @@