2012-05-21 04:12:37 -07:00
|
|
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
2009-07-13 22:12:50 -07:00
|
|
|
|
2012-08-04 11:26:44 -07:00
|
|
|
DEPTH = @DEPTH@
|
2009-06-30 13:39:22 -07:00
|
|
|
topsrcdir = @top_srcdir@
|
|
|
|
srcdir = @srcdir@
|
|
|
|
VPATH = @srcdir@
|
|
|
|
|
|
|
|
include $(DEPTH)/config/autoconf.mk
|
|
|
|
|
|
|
|
MODULE = dom
|
|
|
|
LIBRARY_NAME = domipc_s
|
|
|
|
LIBXUL_LIBRARY = 1
|
|
|
|
FORCE_STATIC_LIB = 1
|
|
|
|
EXPORT_LIBRARY = 1
|
2013-01-02 07:56:38 -08:00
|
|
|
ifndef _MSC_VER
|
2012-08-07 00:06:29 -07:00
|
|
|
FAIL_ON_WARNINGS := 1
|
2013-01-02 07:56:38 -08:00
|
|
|
endif # !_MSC_VER
|
2009-06-30 13:39:22 -07:00
|
|
|
|
2010-11-24 08:08:47 -08:00
|
|
|
ifneq (cocoa,$(MOZ_WIDGET_TOOLKIT))
|
2012-02-04 09:32:24 -08:00
|
|
|
TEST_DIRS += tests
|
2010-11-24 08:08:47 -08:00
|
|
|
endif
|
2010-11-24 05:58:21 -08:00
|
|
|
|
2012-06-07 01:41:59 -07:00
|
|
|
EXPORTS = PCOMContentPermissionRequestChild.h
|
2009-11-17 06:22:23 -08:00
|
|
|
|
2012-08-01 23:02:29 -07:00
|
|
|
EXPORTS_NAMESPACES = \
|
2012-08-08 19:58:06 -07:00
|
|
|
mozilla \
|
2012-08-01 23:02:29 -07:00
|
|
|
mozilla/dom \
|
|
|
|
mozilla/dom/ipc \
|
|
|
|
$(NULL)
|
2009-08-12 09:18:08 -07:00
|
|
|
|
2012-08-08 19:58:06 -07:00
|
|
|
EXPORTS_mozilla = \
|
2012-12-22 03:53:38 -08:00
|
|
|
AppProcessChecker.h \
|
2012-08-08 19:58:06 -07:00
|
|
|
$(NULL)
|
|
|
|
|
2009-08-14 16:21:21 -07:00
|
|
|
EXPORTS_mozilla/dom = \
|
2010-07-19 11:33:33 -07:00
|
|
|
ContentChild.h \
|
|
|
|
ContentParent.h \
|
|
|
|
ContentProcess.h \
|
2010-11-24 06:15:03 -08:00
|
|
|
CrashReporterChild.h \
|
|
|
|
CrashReporterParent.h \
|
2012-07-30 07:58:26 -07:00
|
|
|
PermissionMessageUtils.h \
|
2012-08-01 23:02:29 -07:00
|
|
|
StructuredCloneUtils.h \
|
2010-06-18 03:49:28 -07:00
|
|
|
TabParent.h \
|
|
|
|
TabChild.h \
|
Bug 802366 - The main event: Let a browser process inherit its app's id. r=bz,cjones
The main bug fixed here is that in half of our interfaces, we use "is browser frame/element" to mean "browser or app", and in the other half, we use it to mean "is browser not app".
There's a related, functional bug also fixed here, which is that a browser process doesn't inherit its parent's app-id. This causes problems e.g. for IndexedDB: If a browser inside an app uses IndexedDB, the DB should have the app's app-id.
I also modified Tab{Parent,Child} and nsFrameLoader to call "app" "ownOrContainingApp", to emphasize that we might have inherited the app from a parent process. I left nsIDocShell::appId alone, because changing that would have necessitated changing nsILoadGroup and therefore a /lot/ of users in Necko; it's also not clear it would have clarified anything in those cases.
2012-11-10 10:32:37 -08:00
|
|
|
TabContext.h \
|
2011-06-08 12:56:31 -07:00
|
|
|
TabMessageUtils.h \
|
2009-08-14 16:21:21 -07:00
|
|
|
$(NULL)
|
|
|
|
|
2012-08-01 23:02:29 -07:00
|
|
|
EXPORTS_mozilla/dom/ipc = \
|
|
|
|
Blob.h \
|
2012-08-04 22:09:39 -07:00
|
|
|
ProcessPriorityManager.h \
|
2012-08-01 23:02:29 -07:00
|
|
|
nsIRemoteBlob.h \
|
|
|
|
$(NULL)
|
|
|
|
|
2009-06-30 13:39:22 -07:00
|
|
|
CPPSRCS = \
|
2012-12-22 03:53:38 -08:00
|
|
|
AppProcessChecker.cpp \
|
2012-08-01 23:02:29 -07:00
|
|
|
Blob.cpp \
|
2010-07-19 11:33:33 -07:00
|
|
|
ContentProcess.cpp \
|
|
|
|
ContentParent.cpp \
|
|
|
|
ContentChild.cpp \
|
2010-11-24 06:15:03 -08:00
|
|
|
CrashReporterParent.cpp \
|
2011-06-08 12:56:31 -07:00
|
|
|
CrashReporterChild.cpp \
|
2012-07-30 07:58:26 -07:00
|
|
|
PermissionMessageUtils.cpp \
|
2012-08-04 22:09:39 -07:00
|
|
|
ProcessPriorityManager.cpp \
|
2012-08-01 23:02:29 -07:00
|
|
|
StructuredCloneUtils.cpp \
|
2009-06-30 13:39:22 -07:00
|
|
|
TabParent.cpp \
|
|
|
|
TabChild.cpp \
|
Bug 802366 - The main event: Let a browser process inherit its app's id. r=bz,cjones
The main bug fixed here is that in half of our interfaces, we use "is browser frame/element" to mean "browser or app", and in the other half, we use it to mean "is browser not app".
There's a related, functional bug also fixed here, which is that a browser process doesn't inherit its parent's app-id. This causes problems e.g. for IndexedDB: If a browser inside an app uses IndexedDB, the DB should have the app's app-id.
I also modified Tab{Parent,Child} and nsFrameLoader to call "app" "ownOrContainingApp", to emphasize that we might have inherited the app from a parent process. I left nsIDocShell::appId alone, because changing that would have necessitated changing nsILoadGroup and therefore a /lot/ of users in Necko; it's also not clear it would have clarified anything in those cases.
2012-11-10 10:32:37 -08:00
|
|
|
TabContext.cpp \
|
2009-11-17 06:22:23 -08:00
|
|
|
TabMessageUtils.cpp \
|
2009-06-30 13:39:22 -07:00
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
include $(topsrcdir)/config/config.mk
|
|
|
|
include $(topsrcdir)/ipc/chromium/chromium-config.mk
|
|
|
|
include $(topsrcdir)/config/rules.mk
|
|
|
|
|
2009-12-31 17:35:55 -08:00
|
|
|
LOCAL_INCLUDES += \
|
2011-03-07 19:58:46 -08:00
|
|
|
-I$(srcdir)/../../content/base/src \
|
|
|
|
-I$(srcdir)/../../content/events/src \
|
2012-11-09 01:55:54 -08:00
|
|
|
-I$(srcdir)/../../docshell/base \
|
2011-03-07 19:58:46 -08:00
|
|
|
-I$(topsrcdir)/chrome/src \
|
|
|
|
-I$(topsrcdir)/uriloader/exthandler \
|
|
|
|
-I$(srcdir)/../../netwerk/base/src \
|
|
|
|
-I$(srcdir)/../src/base \
|
2012-12-31 08:36:46 -08:00
|
|
|
-I$(srcdir)/../src/geolocation \
|
2011-03-07 19:58:46 -08:00
|
|
|
-I$(srcdir)/../src/storage \
|
|
|
|
-I$(srcdir)/../../xpcom/base \
|
2012-06-01 10:21:12 -07:00
|
|
|
-I$(topsrcdir)/dom/indexedDB \
|
|
|
|
-I$(topsrcdir)/dom/indexedDB/ipc \
|
2011-03-07 19:58:46 -08:00
|
|
|
-I$(topsrcdir)/extensions/cookie \
|
2011-09-13 10:53:51 -07:00
|
|
|
-I$(topsrcdir)/dom/base \
|
2011-10-04 13:31:00 -07:00
|
|
|
-I$(topsrcdir)/toolkit/xre \
|
2011-10-05 15:15:45 -07:00
|
|
|
-I$(topsrcdir)/hal/sandbox \
|
2011-11-20 14:40:53 -08:00
|
|
|
-I$(topsrcdir)/dom/sms/src/ipc \
|
2012-06-19 16:14:39 -07:00
|
|
|
-I$(topsrcdir)/dom/devicestorage \
|
2012-08-29 08:26:18 -07:00
|
|
|
-I$(topsrcdir)/widget/xpwidgets \
|
2012-09-13 09:37:14 -07:00
|
|
|
-I$(topsrcdir)/dom/bluetooth \
|
|
|
|
-I$(topsrcdir)/dom/bluetooth/ipc \
|
2011-03-07 19:58:46 -08:00
|
|
|
$(NULL)
|
2009-12-31 17:35:55 -08:00
|
|
|
|
2009-06-30 13:39:22 -07:00
|
|
|
DEFINES += -DBIN_SUFFIX='"$(BIN_SUFFIX)"'
|
2010-08-20 16:24:40 -07:00
|
|
|
|
2012-05-16 15:30:10 -07:00
|
|
|
ifeq ($(MOZ_WIDGET_TOOLKIT),$(findstring $(MOZ_WIDGET_TOOLKIT),android gtk2 gonk qt))
|
|
|
|
DEFINES += -DMOZ_ENABLE_FREETYPE
|
|
|
|
endif
|
|
|
|
|
2010-10-09 11:07:38 -07:00
|
|
|
ifdef MOZ_PERMISSIONS
|
|
|
|
DEFINES += -DMOZ_PERMISSIONS
|
|
|
|
endif
|
|
|
|
|
2010-08-20 16:24:40 -07:00
|
|
|
CXXFLAGS += $(TK_CFLAGS)
|