2012-05-21 15:12:37 +04: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-14 09:12:50 +04:00
|
|
|
|
2012-08-04 22:26:44 +04:00
|
|
|
DEPTH = @DEPTH@
|
2009-07-01 00:39:22 +04: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
|
2012-08-07 11:06:29 +04:00
|
|
|
FAIL_ON_WARNINGS := 1
|
2009-07-01 00:39:22 +04:00
|
|
|
|
2010-11-24 19:08:47 +03:00
|
|
|
ifneq (cocoa,$(MOZ_WIDGET_TOOLKIT))
|
2012-02-04 21:32:24 +04:00
|
|
|
TEST_DIRS += tests
|
2010-11-24 19:08:47 +03:00
|
|
|
endif
|
2010-11-24 16:58:21 +03:00
|
|
|
|
2012-06-07 12:41:59 +04:00
|
|
|
EXPORTS = PCOMContentPermissionRequestChild.h
|
2009-11-17 17:22:23 +03:00
|
|
|
|
2012-08-02 10:02:29 +04:00
|
|
|
EXPORTS_NAMESPACES = \
|
2012-08-09 06:58:06 +04:00
|
|
|
mozilla \
|
2012-08-02 10:02:29 +04:00
|
|
|
mozilla/dom \
|
|
|
|
mozilla/dom/ipc \
|
|
|
|
$(NULL)
|
2009-08-12 20:18:08 +04:00
|
|
|
|
2012-08-09 06:58:06 +04:00
|
|
|
EXPORTS_mozilla = \
|
|
|
|
AppProcessPermissions.h \
|
|
|
|
$(NULL)
|
|
|
|
|
2009-08-15 03:21:21 +04:00
|
|
|
EXPORTS_mozilla/dom = \
|
2010-07-19 22:33:33 +04:00
|
|
|
ContentChild.h \
|
|
|
|
ContentParent.h \
|
|
|
|
ContentProcess.h \
|
2010-11-24 17:15:03 +03:00
|
|
|
CrashReporterChild.h \
|
|
|
|
CrashReporterParent.h \
|
2012-07-30 18:58:26 +04:00
|
|
|
PermissionMessageUtils.h \
|
2012-08-02 10:02:29 +04:00
|
|
|
StructuredCloneUtils.h \
|
2010-06-18 14:49:28 +04: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 22:32:37 +04:00
|
|
|
TabContext.h \
|
2011-06-08 23:56:31 +04:00
|
|
|
TabMessageUtils.h \
|
2009-08-15 03:21:21 +04:00
|
|
|
$(NULL)
|
|
|
|
|
2012-08-02 10:02:29 +04:00
|
|
|
EXPORTS_mozilla/dom/ipc = \
|
|
|
|
Blob.h \
|
2012-08-05 09:09:39 +04:00
|
|
|
ProcessPriorityManager.h \
|
2012-08-02 10:02:29 +04:00
|
|
|
nsIRemoteBlob.h \
|
|
|
|
$(NULL)
|
|
|
|
|
2009-07-01 00:39:22 +04:00
|
|
|
CPPSRCS = \
|
2012-08-09 06:58:06 +04:00
|
|
|
AppProcessPermissions.cpp \
|
2012-08-02 10:02:29 +04:00
|
|
|
Blob.cpp \
|
2010-07-19 22:33:33 +04:00
|
|
|
ContentProcess.cpp \
|
|
|
|
ContentParent.cpp \
|
|
|
|
ContentChild.cpp \
|
2010-11-24 17:15:03 +03:00
|
|
|
CrashReporterParent.cpp \
|
2011-06-08 23:56:31 +04:00
|
|
|
CrashReporterChild.cpp \
|
2012-07-30 18:58:26 +04:00
|
|
|
PermissionMessageUtils.cpp \
|
2012-08-05 09:09:39 +04:00
|
|
|
ProcessPriorityManager.cpp \
|
2012-08-02 10:02:29 +04:00
|
|
|
StructuredCloneUtils.cpp \
|
2009-07-01 00:39:22 +04: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 22:32:37 +04:00
|
|
|
TabContext.cpp \
|
2009-11-17 17:22:23 +03:00
|
|
|
TabMessageUtils.cpp \
|
2009-07-01 00:39:22 +04:00
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
include $(topsrcdir)/config/config.mk
|
|
|
|
include $(topsrcdir)/ipc/chromium/chromium-config.mk
|
|
|
|
include $(topsrcdir)/config/rules.mk
|
|
|
|
|
2010-01-01 04:35:55 +03:00
|
|
|
LOCAL_INCLUDES += \
|
2011-03-08 06:58:46 +03:00
|
|
|
-I$(srcdir)/../../content/base/src \
|
|
|
|
-I$(srcdir)/../../content/events/src \
|
2012-11-09 13:55:54 +04:00
|
|
|
-I$(srcdir)/../../docshell/base \
|
2011-03-08 06:58:46 +03:00
|
|
|
-I$(topsrcdir)/chrome/src \
|
|
|
|
-I$(topsrcdir)/uriloader/exthandler \
|
|
|
|
-I$(srcdir)/../../netwerk/base/src \
|
|
|
|
-I$(srcdir)/../src/base \
|
|
|
|
-I$(srcdir)/../src/storage \
|
|
|
|
-I$(srcdir)/../../xpcom/base \
|
2012-06-01 21:21:12 +04:00
|
|
|
-I$(topsrcdir)/dom/indexedDB \
|
|
|
|
-I$(topsrcdir)/dom/indexedDB/ipc \
|
2011-03-08 06:58:46 +03:00
|
|
|
-I$(topsrcdir)/extensions/cookie \
|
2011-09-13 21:53:51 +04:00
|
|
|
-I$(topsrcdir)/dom/base \
|
2011-10-05 00:31:00 +04:00
|
|
|
-I$(topsrcdir)/toolkit/xre \
|
2011-10-06 02:15:45 +04:00
|
|
|
-I$(topsrcdir)/hal/sandbox \
|
2011-11-21 02:40:53 +04:00
|
|
|
-I$(topsrcdir)/dom/sms/src/ipc \
|
2012-06-20 03:14:39 +04:00
|
|
|
-I$(topsrcdir)/dom/devicestorage \
|
2012-08-29 19:26:18 +04:00
|
|
|
-I$(topsrcdir)/widget/xpwidgets \
|
2012-09-13 20:37:14 +04:00
|
|
|
-I$(topsrcdir)/dom/bluetooth \
|
|
|
|
-I$(topsrcdir)/dom/bluetooth/ipc \
|
2011-03-08 06:58:46 +03:00
|
|
|
$(NULL)
|
2010-01-01 04:35:55 +03:00
|
|
|
|
2009-07-01 00:39:22 +04:00
|
|
|
DEFINES += -DBIN_SUFFIX='"$(BIN_SUFFIX)"'
|
2010-08-21 03:24:40 +04:00
|
|
|
|
2012-05-17 02:30:10 +04:00
|
|
|
ifeq ($(MOZ_WIDGET_TOOLKIT),$(findstring $(MOZ_WIDGET_TOOLKIT),android gtk2 gonk qt))
|
|
|
|
DEFINES += -DMOZ_ENABLE_FREETYPE
|
|
|
|
endif
|
|
|
|
|
2010-10-09 22:07:38 +04:00
|
|
|
ifdef MOZ_PERMISSIONS
|
|
|
|
DEFINES += -DMOZ_PERMISSIONS
|
|
|
|
endif
|
|
|
|
|
2010-08-21 03:24:40 +04:00
|
|
|
CXXFLAGS += $(TK_CFLAGS)
|