mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 22:32:46 +00:00
Merge central and inbound
This commit is contained in:
commit
d9c4131c8a
16
configure.in
16
configure.in
@ -6289,19 +6289,14 @@ fi
|
|||||||
dnl ========================================================
|
dnl ========================================================
|
||||||
dnl Installer
|
dnl Installer
|
||||||
dnl ========================================================
|
dnl ========================================================
|
||||||
MOZ_ARG_DISABLE_BOOL(installer,
|
dnl Abort Windows build if the required major version and
|
||||||
[ --disable-installer Disable building of installer],
|
dnl minimum minor version of Unicode NSIS isn't in the path.
|
||||||
MOZ_INSTALLER=,
|
|
||||||
MOZ_INSTALLER=1)
|
|
||||||
if test -n "$MOZ_INSTALLER" -a "$OS_ARCH" = "WINNT"; then
|
if test -n "$MOZ_INSTALLER" -a "$OS_ARCH" = "WINNT"; then
|
||||||
# Disable installer for Windows builds that use the new toolkit if the
|
|
||||||
# required major version and minimum minor version of Unicode NSIS isn't in
|
|
||||||
# the path.
|
|
||||||
REQ_NSIS_MAJOR_VER=2
|
REQ_NSIS_MAJOR_VER=2
|
||||||
MIN_NSIS_MINOR_VER=33
|
MIN_NSIS_MINOR_VER=33
|
||||||
MOZ_PATH_PROGS(MAKENSISU, $MAKENSISU makensisu-2.46 makensisu makensis)
|
MOZ_PATH_PROGS(MAKENSISU, $MAKENSISU makensisu-2.46 makensisu makensis)
|
||||||
if test -z "$MAKENSISU" -o "$MAKENSISU" = ":"; then
|
if test -z "$MAKENSISU" -o "$MAKENSISU" = ":"; then
|
||||||
AC_MSG_ERROR([To build the installer you must have the latest MozillaBuild or Unicode NSIS with a major version of $REQ_NSIS_MAJOR_VER and a minimum minor version of $MIN_NSIS_MINOR_VER in your path. To build without the installer reconfigure using --disable-installer.])
|
AC_MSG_ERROR([To build the installer you must have the latest MozillaBuild or Unicode NSIS with a major version of $REQ_NSIS_MAJOR_VER and a minimum minor version of $MIN_NSIS_MINOR_VER in your path.])
|
||||||
fi
|
fi
|
||||||
changequote(,)
|
changequote(,)
|
||||||
MAKENSISU_VER=`"$MAKENSISU" -version 2>/dev/null | sed -e '/-Unicode/!s/.*//g' -e 's/^v\([0-9]\+\.[0-9]\+\)\-Unicode$/\1/g'`
|
MAKENSISU_VER=`"$MAKENSISU" -version 2>/dev/null | sed -e '/-Unicode/!s/.*//g' -e 's/^v\([0-9]\+\.[0-9]\+\)\-Unicode$/\1/g'`
|
||||||
@ -6315,13 +6310,11 @@ if test -n "$MOZ_INSTALLER" -a "$OS_ARCH" = "WINNT"; then
|
|||||||
test ! "$MAKENSISU_MAJOR_VER" = "$REQ_NSIS_MAJOR_VER" -o \
|
test ! "$MAKENSISU_MAJOR_VER" = "$REQ_NSIS_MAJOR_VER" -o \
|
||||||
! "$MAKENSISU_MINOR_VER" -ge $MIN_NSIS_MINOR_VER; then
|
! "$MAKENSISU_MINOR_VER" -ge $MIN_NSIS_MINOR_VER; then
|
||||||
AC_MSG_RESULT([no])
|
AC_MSG_RESULT([no])
|
||||||
AC_MSG_ERROR([To build the installer you must have the latest MozillaBuild or Unicode NSIS with a major version of $REQ_NSIS_MAJOR_VER and a minimum minor version of $MIN_NSIS_MINOR_VER in your path. To build without the installer reconfigure using --disable-installer.])
|
AC_MSG_ERROR([To build the installer you must have the latest MozillaBuild or Unicode NSIS with a major version of $REQ_NSIS_MAJOR_VER and a minimum minor version of $MIN_NSIS_MINOR_VER in your path.])
|
||||||
fi
|
fi
|
||||||
AC_MSG_RESULT([yes])
|
AC_MSG_RESULT([yes])
|
||||||
fi
|
fi
|
||||||
|
|
||||||
AC_SUBST(MOZ_INSTALLER)
|
|
||||||
|
|
||||||
AC_MSG_CHECKING([for tar archiver])
|
AC_MSG_CHECKING([for tar archiver])
|
||||||
AC_CHECK_PROGS(TAR, gnutar gtar tar, "")
|
AC_CHECK_PROGS(TAR, gnutar gtar tar, "")
|
||||||
if test -z "$TAR"; then
|
if test -z "$TAR"; then
|
||||||
@ -8360,6 +8353,7 @@ AC_SUBST(MOZ_DEBUG_FLAGS)
|
|||||||
AC_SUBST(MOZ_DEBUG_LDFLAGS)
|
AC_SUBST(MOZ_DEBUG_LDFLAGS)
|
||||||
AC_SUBST(WARNINGS_AS_ERRORS)
|
AC_SUBST(WARNINGS_AS_ERRORS)
|
||||||
AC_SUBST(MOZ_EXTENSIONS)
|
AC_SUBST(MOZ_EXTENSIONS)
|
||||||
|
AC_SUBST(MOZ_INSTALLER)
|
||||||
AC_SUBST(MOZ_JSDEBUGGER)
|
AC_SUBST(MOZ_JSDEBUGGER)
|
||||||
AC_SUBST(MOZ_LOG_REFCNT)
|
AC_SUBST(MOZ_LOG_REFCNT)
|
||||||
AC_SUBST(MOZ_LEAKY)
|
AC_SUBST(MOZ_LEAKY)
|
||||||
|
@ -57,10 +57,10 @@ ImageData::GetHeight(PRUint32* aHeight)
|
|||||||
|
|
||||||
/* readonly attribute jsval data; */
|
/* readonly attribute jsval data; */
|
||||||
NS_IMETHODIMP
|
NS_IMETHODIMP
|
||||||
ImageData::GetData(JS::Value* aData)
|
ImageData::GetData(JSContext* aCx, JS::Value* aData)
|
||||||
{
|
{
|
||||||
*aData = GetData();
|
*aData = JS::ObjectOrNullValue(GetDataObject());
|
||||||
return NS_OK;
|
return JS_WrapValue(aCx, aData) ? NS_OK : NS_ERROR_FAILURE;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
@ -51,10 +51,6 @@ public:
|
|||||||
{
|
{
|
||||||
return mHeight;
|
return mHeight;
|
||||||
}
|
}
|
||||||
JS::Value GetData()
|
|
||||||
{
|
|
||||||
return JS::ObjectOrNullValue(GetDataObject());
|
|
||||||
}
|
|
||||||
JSObject* GetDataObject()
|
JSObject* GetDataObject()
|
||||||
{
|
{
|
||||||
xpc_UnmarkGrayObject(mData);
|
xpc_UnmarkGrayObject(mData);
|
||||||
|
@ -67,7 +67,7 @@ interface nsIDOMImageData : nsISupports
|
|||||||
{
|
{
|
||||||
readonly attribute unsigned long width;
|
readonly attribute unsigned long width;
|
||||||
readonly attribute unsigned long height;
|
readonly attribute unsigned long height;
|
||||||
readonly attribute jsval data;
|
[implicit_jscontext] readonly attribute jsval data;
|
||||||
};
|
};
|
||||||
|
|
||||||
[scriptable, uuid(c835c768-2dcc-461c-82f5-3653710d2942)]
|
[scriptable, uuid(c835c768-2dcc-461c-82f5-3653710d2942)]
|
||||||
|
@ -352,6 +352,12 @@ public:
|
|||||||
|
|
||||||
protected:
|
protected:
|
||||||
nsresult NotifyServiceObservers(const char *aSubject);
|
nsresult NotifyServiceObservers(const char *aSubject);
|
||||||
|
/**
|
||||||
|
* Reads the default pref file or, if that failed, try to save a new one.
|
||||||
|
*
|
||||||
|
* @return NS_OK if either action succeeded,
|
||||||
|
* or the error code related to the read attempt.
|
||||||
|
*/
|
||||||
nsresult UseDefaultPrefFile();
|
nsresult UseDefaultPrefFile();
|
||||||
nsresult UseUserPrefFile();
|
nsresult UseUserPrefFile();
|
||||||
nsresult ReadAndOwnUserPrefFile(nsIFile *aFile);
|
nsresult ReadAndOwnUserPrefFile(nsIFile *aFile);
|
||||||
|
@ -404,14 +404,16 @@ Preferences::ReadUserPrefs(nsIFile *aFile)
|
|||||||
nsresult rv;
|
nsresult rv;
|
||||||
|
|
||||||
if (nsnull == aFile) {
|
if (nsnull == aFile) {
|
||||||
|
|
||||||
NotifyServiceObservers(NS_PREFSERVICE_READ_TOPIC_ID);
|
NotifyServiceObservers(NS_PREFSERVICE_READ_TOPIC_ID);
|
||||||
|
|
||||||
rv = UseDefaultPrefFile();
|
rv = UseDefaultPrefFile();
|
||||||
UseUserPrefFile();
|
// A user pref file is optional.
|
||||||
|
// Ignore all errors related to it, so we retain 'rv' value :-|
|
||||||
|
(void) UseUserPrefFile();
|
||||||
} else {
|
} else {
|
||||||
rv = ReadAndOwnUserPrefFile(aFile);
|
rv = ReadAndOwnUserPrefFile(aFile);
|
||||||
}
|
}
|
||||||
|
|
||||||
return rv;
|
return rv;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -587,7 +589,7 @@ Preferences::NotifyServiceObservers(const char *aTopic)
|
|||||||
nsresult
|
nsresult
|
||||||
Preferences::UseDefaultPrefFile()
|
Preferences::UseDefaultPrefFile()
|
||||||
{
|
{
|
||||||
nsresult rv, rv2;
|
nsresult rv;
|
||||||
nsCOMPtr<nsIFile> aFile;
|
nsCOMPtr<nsIFile> aFile;
|
||||||
|
|
||||||
rv = NS_GetSpecialDirectory(NS_APP_PREFS_50_FILE, getter_AddRefs(aFile));
|
rv = NS_GetSpecialDirectory(NS_APP_PREFS_50_FILE, getter_AddRefs(aFile));
|
||||||
@ -597,8 +599,10 @@ Preferences::UseDefaultPrefFile()
|
|||||||
// exist, so save a new one. mUserPrefReadFailed will be
|
// exist, so save a new one. mUserPrefReadFailed will be
|
||||||
// used to catch an error in actually reading the file.
|
// used to catch an error in actually reading the file.
|
||||||
if (NS_FAILED(rv)) {
|
if (NS_FAILED(rv)) {
|
||||||
rv2 = SavePrefFileInternal(aFile);
|
if (NS_FAILED(SavePrefFileInternal(aFile)))
|
||||||
NS_ASSERTION(NS_SUCCEEDED(rv2), "Failed to save new shared pref file");
|
NS_ERROR("Failed to save new shared pref file");
|
||||||
|
else
|
||||||
|
rv = NS_OK;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -52,9 +52,6 @@
|
|||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
/*
|
|
||||||
** Ugh, MSVC6's qsort is too slow...
|
|
||||||
*/
|
|
||||||
#include "nsQuickSort.h"
|
#include "nsQuickSort.h"
|
||||||
|
|
||||||
#if defined(HAVE_BOUTELL_GD)
|
#if defined(HAVE_BOUTELL_GD)
|
||||||
|
@ -70,9 +70,6 @@
|
|||||||
#include <gdfontmb.h>
|
#include <gdfontmb.h>
|
||||||
#endif /* HAVE_BOUTELL_GD */
|
#endif /* HAVE_BOUTELL_GD */
|
||||||
|
|
||||||
/*
|
|
||||||
** Ugh, MSVC6's qsort is too slow...
|
|
||||||
*/
|
|
||||||
#include "nsQuickSort.h"
|
#include "nsQuickSort.h"
|
||||||
#include "prlong.h"
|
#include "prlong.h"
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user