зеркало из https://github.com/mozilla/pjs.git
Backed out changeset af956e9c02e3
This commit is contained in:
Родитель
4313e5d68c
Коммит
a99d9d2244
|
@ -53,8 +53,6 @@
|
||||||
#include "nsServiceManagerUtils.h"
|
#include "nsServiceManagerUtils.h"
|
||||||
#include "nsThreadUtils.h"
|
#include "nsThreadUtils.h"
|
||||||
#include "nsChromeRegistryChrome.h"
|
#include "nsChromeRegistryChrome.h"
|
||||||
#include "nsExternalHelperAppService.h"
|
|
||||||
#include "nsCExternalHandlerService.h"
|
|
||||||
|
|
||||||
#ifdef ANDROID
|
#ifdef ANDROID
|
||||||
#include "AndroidBridge.h"
|
#include "AndroidBridge.h"
|
||||||
|
@ -472,16 +470,6 @@ ContentParent::RecvSetURITitle(const IPC::URI& uri,
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool
|
|
||||||
ContentParent::RecvLoadURIExteneral(const URI& uri)
|
|
||||||
{
|
|
||||||
nsCOMPtr<nsIExternalProtocolService> extProtService (do_GetService(NS_EXTERNALPROTOCOLSERVICE_CONTRACTID));
|
|
||||||
nsCOMPtr<nsIURI> ourURI = uri;
|
|
||||||
extProtService->LoadURI(ourURI, nsnull);
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/* void onDispatchedEvent (in nsIThreadInternal thread); */
|
/* void onDispatchedEvent (in nsIThreadInternal thread); */
|
||||||
NS_IMETHODIMP
|
NS_IMETHODIMP
|
||||||
ContentParent::OnDispatchedEvent(nsIThreadInternal *thread)
|
ContentParent::OnDispatchedEvent(nsIThreadInternal *thread)
|
||||||
|
|
|
@ -154,8 +154,6 @@ private:
|
||||||
|
|
||||||
virtual bool RecvSetURITitle(const IPC::URI& uri,
|
virtual bool RecvSetURITitle(const IPC::URI& uri,
|
||||||
const nsString& title);
|
const nsString& title);
|
||||||
|
|
||||||
virtual bool RecvLoadURIExteneral(const URI& uri);
|
|
||||||
|
|
||||||
virtual bool RecvNotifyIME(const int&, const int&);
|
virtual bool RecvNotifyIME(const int&, const int&);
|
||||||
|
|
||||||
|
|
|
@ -82,7 +82,6 @@ LOCAL_INCLUDES += \
|
||||||
-I$(srcdir)/../../toolkit/components/places/src \
|
-I$(srcdir)/../../toolkit/components/places/src \
|
||||||
-I$(srcdir)/../src/geolocation \
|
-I$(srcdir)/../src/geolocation \
|
||||||
-I$(topsrcdir)/chrome/src \
|
-I$(topsrcdir)/chrome/src \
|
||||||
-I$(topsrcdir)/uriloader/exthandler \
|
|
||||||
$(NULL)
|
$(NULL)
|
||||||
|
|
||||||
CXXFLAGS += $(TK_CFLAGS)
|
CXXFLAGS += $(TK_CFLAGS)
|
||||||
|
|
|
@ -81,8 +81,6 @@ parent:
|
||||||
async VisitURI(URI uri, URI referrer, PRUint32 flags);
|
async VisitURI(URI uri, URI referrer, PRUint32 flags);
|
||||||
async SetURITitle(URI uri, nsString title);
|
async SetURITitle(URI uri, nsString title);
|
||||||
|
|
||||||
async LoadURIExteneral(URI uri);
|
|
||||||
|
|
||||||
// PrefService messages
|
// PrefService messages
|
||||||
sync GetPrefType(nsCString prefName) returns (PRInt32 retValue, nsresult rv);
|
sync GetPrefType(nsCString prefName) returns (PRInt32 retValue, nsresult rv);
|
||||||
sync GetBoolPref(nsCString prefName) returns (PRBool retValue, nsresult rv);
|
sync GetBoolPref(nsCString prefName) returns (PRBool retValue, nsresult rv);
|
||||||
|
|
|
@ -175,8 +175,6 @@ EXTRA_COMPONENTS = \
|
||||||
# we don't want the shared lib, but we want to force the creation of a static lib.
|
# we don't want the shared lib, but we want to force the creation of a static lib.
|
||||||
FORCE_STATIC_LIB = 1
|
FORCE_STATIC_LIB = 1
|
||||||
SRCS_IN_OBJDIR = 1
|
SRCS_IN_OBJDIR = 1
|
||||||
include $(topsrcdir)/config/config.mk
|
|
||||||
include $(topsrcdir)/ipc/chromium/chromium-config.mk
|
|
||||||
include $(topsrcdir)/config/rules.mk
|
include $(topsrcdir)/config/rules.mk
|
||||||
|
|
||||||
ifneq (,$(filter qt gtk2, $(MOZ_WIDGET_TOOLKIT)))
|
ifneq (,$(filter qt gtk2, $(MOZ_WIDGET_TOOLKIT)))
|
||||||
|
|
|
@ -42,11 +42,6 @@
|
||||||
*
|
*
|
||||||
* ***** END LICENSE BLOCK ***** */
|
* ***** END LICENSE BLOCK ***** */
|
||||||
|
|
||||||
#ifdef MOZ_IPC
|
|
||||||
#include "mozilla/dom/ContentChild.h"
|
|
||||||
#include "nsXULAppAPI.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "nsExternalHelperAppService.h"
|
#include "nsExternalHelperAppService.h"
|
||||||
#include "nsCExternalHandlerService.h"
|
#include "nsCExternalHandlerService.h"
|
||||||
#include "nsIURI.h"
|
#include "nsIURI.h"
|
||||||
|
@ -866,13 +861,6 @@ nsExternalHelperAppService::LoadURI(nsIURI *aURI,
|
||||||
{
|
{
|
||||||
NS_ENSURE_ARG_POINTER(aURI);
|
NS_ENSURE_ARG_POINTER(aURI);
|
||||||
|
|
||||||
#ifdef MOZ_IPC
|
|
||||||
if (XRE_GetProcessType() == GeckoProcessType_Content) {
|
|
||||||
mozilla::dom::ContentChild::GetSingleton()->SendLoadURIExteneral(aURI);
|
|
||||||
return NS_OK;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
nsCAutoString spec;
|
nsCAutoString spec;
|
||||||
aURI->GetSpec(spec);
|
aURI->GetSpec(spec);
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче