Merge mozilla-central into mozilla-inbound

This commit is contained in:
Ehsan Akhgari 2012-12-09 12:40:04 -05:00
Родитель 4610ecbd72 f96ed5a637
Коммит 3d2f73ad85
7 изменённых файлов: 39 добавлений и 17 удалений

Просмотреть файл

@ -1,5 +1,5 @@
<?xml version="1.0"?> <?xml version="1.0"?>
<blocklist xmlns="http://www.mozilla.org/2006/addons-blocklist" lastupdate="1354308657000"> <blocklist xmlns="http://www.mozilla.org/2006/addons-blocklist" lastupdate="1354916891000">
<emItems> <emItems>
<emItem blockID="i58" id="webmaster@buzzzzvideos.info"> <emItem blockID="i58" id="webmaster@buzzzzvideos.info">
<versionRange minVersion="0" maxVersion="*"> <versionRange minVersion="0" maxVersion="*">
@ -45,6 +45,10 @@
<versionRange minVersion="2.5.0" maxVersion="2.5.0" severity="1"> <versionRange minVersion="2.5.0" maxVersion="2.5.0" severity="1">
</versionRange> </versionRange>
</emItem> </emItem>
<emItem blockID="i236" id="{EEE6C361-6118-11DC-9C72-001320C79847}">
<versionRange minVersion="0" maxVersion="*" severity="1">
</versionRange>
</emItem>
<emItem blockID="i64" id="royal@facebook.com"> <emItem blockID="i64" id="royal@facebook.com">
<versionRange minVersion="0" maxVersion="*"> <versionRange minVersion="0" maxVersion="*">
</versionRange> </versionRange>
@ -61,6 +65,13 @@
<versionRange minVersion="0" maxVersion="*"> <versionRange minVersion="0" maxVersion="*">
</versionRange> </versionRange>
</emItem> </emItem>
<emItem blockID="i238" id="/^pink@.*\.info$/">
<versionRange minVersion="0" maxVersion="*" severity="3">
<targetApplication id="{ec8030f7-c20a-464f-9b0e-13a3a9e97384}">
<versionRange minVersion="19.0a1" maxVersion="*" />
</targetApplication>
</versionRange>
</emItem>
<emItem blockID="i174" id="info@thebflix.com"> <emItem blockID="i174" id="info@thebflix.com">
<versionRange minVersion="0" maxVersion="*" severity="3"> <versionRange minVersion="0" maxVersion="*" severity="3">
</versionRange> </versionRange>

Просмотреть файл

@ -1426,6 +1426,13 @@ if test "$GNU_CC"; then
AC_TRY_LINK(,,AC_MSG_RESULT([yes]), AC_TRY_LINK(,,AC_MSG_RESULT([yes]),
AC_MSG_RESULT([no]) AC_MSG_RESULT([no])
LDFLAGS=$_SAVE_LDFLAGS) LDFLAGS=$_SAVE_LDFLAGS)
AC_MSG_CHECKING([for --build-id option to ld])
_SAVE_LDFLAGS=$LDFLAGS
LDFLAGS="$LDFLAGS -Wl,--build-id"
AC_TRY_LINK(,,AC_MSG_RESULT([yes]),
AC_MSG_RESULT([no])
LDFLAGS=$_SAVE_LDFLAGS)
# Check for -mssse3 on $CC # Check for -mssse3 on $CC
AC_MSG_CHECKING([if toolchain supports -mssse3 option]) AC_MSG_CHECKING([if toolchain supports -mssse3 option])

Просмотреть файл

@ -1194,6 +1194,13 @@ if test "$GNU_CC"; then
DSO_PIC_CFLAGS='-fPIC' DSO_PIC_CFLAGS='-fPIC'
ASFLAGS="$ASFLAGS -fPIC" ASFLAGS="$ASFLAGS -fPIC"
AC_MSG_CHECKING([for --build-id option to ld])
_SAVE_LDFLAGS=$LDFLAGS
LDFLAGS="$LDFLAGS -Wl,--build-id"
AC_TRY_LINK(,,AC_MSG_RESULT([yes]),
AC_MSG_RESULT([no])
LDFLAGS=$_SAVE_LDFLAGS)
# Turn on GNU-specific warnings: # Turn on GNU-specific warnings:
# -Wall - turn on a lot of warnings # -Wall - turn on a lot of warnings
# -pedantic - this is turned on below # -pedantic - this is turned on below

Просмотреть файл

@ -112,11 +112,10 @@ class StructuredTerminalFormatter(StructuredHumanFormatter):
class LoggingManager(object): class LoggingManager(object):
"""Holds and controls global logging state. """Holds and controls global logging state.
A mozbuild application should instantiate one of these and configure it An application should instantiate one of these and configure it as needed.
as needed.
This class provides a mechanism to configure the output of logging data This class provides a mechanism to configure the output of logging data
both from mozbuild and from the overall logging system (e.g. from other both from mach and from the overall logging system (e.g. from other
modules). modules).
""" """
@ -135,12 +134,12 @@ class LoggingManager(object):
# complaining about "no handlers could be found for logger XXX." # complaining about "no handlers could be found for logger XXX."
self.root_logger.addHandler(logging.NullHandler()) self.root_logger.addHandler(logging.NullHandler())
self.mozbuild_logger = logging.getLogger('mozbuild') self.mach_logger = logging.getLogger('mach')
self.mozbuild_logger.setLevel(logging.DEBUG) self.mach_logger.setLevel(logging.DEBUG)
self.structured_filter = ConvertToStructuredFilter() self.structured_filter = ConvertToStructuredFilter()
self.structured_loggers = [self.mozbuild_logger] self.structured_loggers = [self.mach_logger]
self._terminal = None self._terminal = None
@ -227,6 +226,6 @@ class LoggingManager(object):
"""Register a structured logger. """Register a structured logger.
This needs to be called for all structured loggers that don't chain up This needs to be called for all structured loggers that don't chain up
to the mozbuild logger in order for their output to be captured. to the mach logger in order for their output to be captured.
""" """
self.structured_loggers.append(logger) self.structured_loggers.append(logger)

Просмотреть файл

@ -611,21 +611,17 @@ class Dumper_Linux(Dumper):
return False return False
def CopyDebug(self, file, debug_file, guid): def CopyDebug(self, file, debug_file, guid):
import zlib, struct, hashlib
# We want to strip out the debug info, and add a # We want to strip out the debug info, and add a
# .gnu_debuglink section to the object, so the debugger can # .gnu_debuglink section to the object, so the debugger can
# actually load our debug info later. # actually load our debug info later.
file_dbg = file + ".dbg" file_dbg = file + ".dbg"
if subprocess.call([self.objcopy, '--only-keep-debug', file, file_dbg], stdout=sys.stderr) == 0 and \ if subprocess.call([self.objcopy, '--only-keep-debug', file, file_dbg]) == 0 and \
subprocess.call([self.objcopy, '--add-gnu-debuglink=%s' % file_dbg, file], stdout=sys.stderr) == 0: subprocess.call([self.objcopy, '--add-gnu-debuglink=%s' % file_dbg, file]) == 0:
rel_path = os.path.join(debug_file, rel_path = os.path.join(debug_file,
guid, guid,
debug_file + ".dbg") debug_file + ".dbg")
full_path = os.path.normpath(os.path.join(self.symbol_path, full_path = os.path.normpath(os.path.join(self.symbol_path,
rel_path)) rel_path))
# Temporary debug information
print >>sys.stderr, read_output('objdump', '-j', '.gnu_debuglink', '-s', file)
print >>sys.stderr, "%s crc: %08x" % (file_dbg, 0xffffffff & zlib.crc32(open(file_dbg).read()))
shutil.move(file_dbg, full_path) shutil.move(file_dbg, full_path)
# gzip the shipped debug files # gzip the shipped debug files
os.system("gzip %s" % full_path) os.system("gzip %s" % full_path)

Просмотреть файл

@ -133,7 +133,7 @@ Open()
bool bool
GetSize(nsIntSize *aScreenSize) { GetSize(nsIntSize *aScreenSize) {
// If the framebuffer has been opened, we should always have the size. // If the framebuffer has been opened, we should always have the size.
if (0 <= sFd || sScreenSize) { if (sScreenSize) {
*aScreenSize = *sScreenSize; *aScreenSize = *sScreenSize;
return true; return true;
} }

Просмотреть файл

@ -151,8 +151,10 @@ nsWindow::nsWindow()
} }
nsIntSize screenSize; nsIntSize screenSize;
mozilla::DebugOnly<bool> gotFB = Framebuffer::GetSize(&screenSize); bool gotFB = Framebuffer::GetSize(&screenSize);
MOZ_ASSERT(gotFB); if (!gotFB) {
NS_RUNTIMEABORT("Failed to get size from framebuffer, aborting...");
}
gScreenBounds = nsIntRect(nsIntPoint(0, 0), screenSize); gScreenBounds = nsIntRect(nsIntPoint(0, 0), screenSize);
char propValue[PROPERTY_VALUE_MAX]; char propValue[PROPERTY_VALUE_MAX];