17977 [DOGFOOD] Reading documents using document.body 17538 document.lastModified is exposed 17537 document.images vulnerabilities 16036 [DOGFOOD] document.Element exposes the DOM of documents from 15757 [DOGFOOD] Injecting JS code using setAttribute and getElemen 15550 Injecting text in documents from any domain using createText 15067 [DOGFOOD] getElementsByTagName() allows reading of arbitrary * Create an array of dom property policy types and initialize it when the script security manager is created. * Move some implementation code to a new shared implementation base class. * Implement privilege enabling, disabling and reverting * Implement stack walking for checking privileges. r=mstoltz@netscape.com * Modify nsIPref to support security policy work. r=neeti@netscape.com git-svn-id: svn://10.0.0.236/trunk@53254 18797224-902f-48f8-a5cc-f745e15eee43
123 lines
3.7 KiB
Plaintext
Executable File
123 lines
3.7 KiB
Plaintext
Executable File
#!nmake
|
|
#
|
|
# The contents of this file are subject to the Netscape Public
|
|
# License Version 1.1 (the "License"); you may not use this file
|
|
# except in compliance with the License. You may obtain a copy of
|
|
# the License at http://www.mozilla.org/NPL/
|
|
#
|
|
# Software distributed under the License is distributed on an "AS
|
|
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
|
# implied. See the License for the specific language governing
|
|
# rights and limitations under the License.
|
|
#
|
|
# The Original Code is mozilla.org code.
|
|
#
|
|
# The Initial Developer of the Original Code is Netscape
|
|
# Communications Corporation. Portions created by Netscape are
|
|
# Copyright (C) 1998 Netscape Communications Corporation. All
|
|
# Rights Reserved.
|
|
#
|
|
# Contributor(s):
|
|
|
|
|
|
#//------------------------------------------------------------------------
|
|
#//
|
|
#// Makefile to build
|
|
#//
|
|
#//------------------------------------------------------------------------
|
|
|
|
|
|
#//------------------------------------------------------------------------
|
|
#//
|
|
#// Specify the depth of the current directory relative to the
|
|
#// root of MOZILLA
|
|
#//
|
|
#//------------------------------------------------------------------------
|
|
DEPTH= ..\..
|
|
|
|
#//------------------------------------------------------------------------
|
|
#//
|
|
#// Define any Public Make Variables here: (ie. PDFFILE, MAPFILE, ...)
|
|
#//
|
|
#//------------------------------------------------------------------------
|
|
|
|
MAKE_OBJ_TYPE=DLL
|
|
|
|
DLLNAME=caps
|
|
DLL=.\$(OBJDIR)\$(DLLNAME).dll
|
|
|
|
#//------------------------------------------------------------------------
|
|
#//
|
|
#// Define the files necessary to build the target (ie. OBJS)
|
|
#//
|
|
#//------------------------------------------------------------------------
|
|
|
|
C_OBJS= \
|
|
$(NULL)
|
|
|
|
CPP_OBJS= \
|
|
.\$(OBJDIR)\nsBasePrincipal.obj \
|
|
.\$(OBJDIR)\nsCertificatePrincipal.obj \
|
|
.\$(OBJDIR)\nsCodebasePrincipal.obj \
|
|
.\$(OBJDIR)\nsJSPrincipals.obj \
|
|
.\$(OBJDIR)\nsScriptSecurityManager.obj \
|
|
.\$(OBJDIR)\nsSecurityManagerFactory.obj \
|
|
.\$(OBJDIR)\nsSystemPrincipal.obj \
|
|
$(NULL)
|
|
|
|
#//------------------------------------------------------------------------
|
|
#//
|
|
#// Define any Public Targets here (ie. PROGRAM, LIBRARY, DLL, ...)
|
|
#// (these must be defined before the common makefiles are included)
|
|
#//
|
|
#//------------------------------------------------------------------------
|
|
|
|
#//------------------------------------------------------------------------
|
|
#//
|
|
#// Define any local options for the make tools
|
|
#// (ie. LCFLAGS, LLFLAGS, LLIBS, LINCS)
|
|
#//
|
|
#//------------------------------------------------------------------------
|
|
LINCS= $(LINCS) \
|
|
-I$(PUBLIC)\js \
|
|
-I$(XPDIST)\public\js \
|
|
-I$(PUBLIC)\nspr \
|
|
-I$(PUBLIC)\xpcom \
|
|
-I$(PUBLIC)\security \
|
|
-I$(PUBLIC)\libimg \
|
|
-I$(PUBLIC)\jar \
|
|
-I$(PUBLIC)\zlib \
|
|
-I$(PUBLIC)\pref \
|
|
-I$(DEPTH)\lib\layout \
|
|
-I$(DEPTH)\lib\libstyle \
|
|
-I$(PUBLIC)\caps \
|
|
-I$(PUBLIC)\public \
|
|
-I$(PUBLIC)\xpconnect \
|
|
# -I$(PUBLIC)\rdf \
|
|
$(NULL)
|
|
|
|
LLIBS = \
|
|
$(LIBNSPR) \
|
|
$(DIST)\lib\xpcom.lib \
|
|
$(DIST)\lib\js3250.lib \
|
|
$(DIST)\lib\oji.lib \
|
|
$(DIST)\lib\zlib.lib \
|
|
$(NULL)
|
|
|
|
|
|
#//------------------------------------------------------------------------
|
|
#//
|
|
#// Include the common makefile rules
|
|
#//
|
|
#//------------------------------------------------------------------------
|
|
include <$(DEPTH)/config/rules.mak>
|
|
|
|
install:: $(DLL)
|
|
$(MAKE_INSTALL) .\$(OBJDIR)\$(DLLNAME).dll $(DIST)\bin\components
|
|
$(MAKE_INSTALL) .\$(OBJDIR)\$(DLLNAME).lib $(DIST)\lib
|
|
|
|
clobber::
|
|
rm -f $(DIST)\lib\$(DLLNAME).lib
|
|
rm -f $(DIST)\bin\components\$(DLLNAME).dll
|
|
|