Граф коммитов

9041 Коммитов

Автор SHA1 Сообщение Дата
Ehsan Akhgari 2824b29025 Bug 895322 - Part 1: Replace the usages of MOZ_STATIC_ASSERT with C++11 static_assert; r=Waldo
This patch was mostly generated by running the following scripts on the codebase, with some
manual changes made afterwards:

# static_assert.sh
#!/bin/bash
# Command to convert an NSPR integer type to the equivalent standard integer type

function convert() {
echo "Converting $1 to $2..."
find . ! -wholename "*nsprpub*" \
       ! -wholename "*security/nss*" \
       ! -wholename "*/.hg*" \
       ! -wholename "obj-ff-dbg*" \
       ! -name nsXPCOMCID.h \
       ! -name prtypes.h \
         -type f \
      \( -iname "*.cpp" \
         -o -iname "*.h" \
         -o -iname "*.cc" \
         -o -iname "*.mm" \) | \
    xargs -n 1 `dirname $0`/assert_replacer.py #sed -i -e "s/\b$1\b/$2/g"
}

convert MOZ_STATIC_ASSERT static_assert
hg rev --no-backup mfbt/Assertions.h \
                   media/webrtc/signaling/src/sipcc/core/includes/ccapi.h \
                   modules/libmar/src/mar_private.h \
                   modules/libmar/src/mar.h


# assert_replacer.py
#!/usr/bin/python

import sys
import re

pattern = re.compile(r"\bMOZ_STATIC_ASSERT\b")

def replaceInPlace(fname):
  print fname
  f = open(fname, "rw+")
  lines = f.readlines()
  for i in range(0, len(lines)):
    while True:
      index = re.search(pattern, lines[i])
      if index != None:
        index = index.start()
        lines[i] = lines[i][0:index] + "static_assert" + lines[i][index+len("MOZ_STATIC_ASSERT"):]
        for j in range(i + 1, len(lines)):
          if lines[j].find("                 ", index) == index:
            lines[j] = lines[j][0:index] + lines[j][index+4:]
          else:
            break
      else:
        break
  f.seek(0, 0)
  f.truncate()
  f.write("".join(lines))
  f.close()

argc = len(sys.argv)
for i in range(1, argc):
  replaceInPlace(sys.argv[i])

--HG--
extra : rebase_source : 4b4a4047d82f2c205b9fad8d56dfc3f1afc0b045
2013-07-18 13:59:53 -04:00
Ehsan Akhgari ef4b479714 Bug 872127 - Part 2: Replace mozilla/StandardInteger.h with stdint.h; r=Waldo,ted 2013-07-30 10:25:31 -04:00
Bobby Holley 43974de990 Bug 899245 - Rename JS_SetGlobalObject and move it into jsfriendapi. r=luke 2013-07-29 16:45:26 -07:00
Ryan VanderMeulen 2c49080aca Merge m-c to inbound. 2013-07-29 18:42:45 -04:00
Ryan VanderMeulen f69b55f446 Merge m-c to fx-team. 2013-07-29 17:27:08 -04:00
Tomoaki Konno e07a5ce083 Bug 797561 - Expose a server tcp socket API to web applications r=honza 2013-07-29 10:36:43 -07:00
Robert Bindar 343917fd58 Bug 897910 - Trace data sent or received by Firefox. r=mcmanus 2013-07-29 12:08:03 -04:00
Adrian Lungu 8bac10e69e Bug 887984 - Send telemetry data from NTLM Init() methods. r=honzab 2013-07-25 09:54:11 -07:00
Trevor Saunders 108b7dd046 backout bug 886526 because it probably made us use a lot more memory to link on windows 2013-07-29 11:03:21 -04:00
Dão Gottwald 500ec2e26f Bug 788422 - Use UserAgentOverrides.jsm as designed to fix YouTube on tablets. r=bnicholson 2013-07-27 16:18:25 +02:00
Ryan VanderMeulen 9ed674d6b8 Backed out changeset f570fc641c5f (bug 894586) for xpcshell failures on a CLOSED TREE. 2013-07-26 22:49:13 -04:00
Mook 5e1fa07d48 content: sync load service: don't die when channels have unknown size (b=894586 r=jst r=jduell) 2013-07-26 15:25:27 -07:00
David Keeler e76bfadffd bug 846825 - refactor, make HSTS header parser more spec-conformant r=cviecco r=grobinson 2013-07-25 16:13:50 -07:00
Ryan VanderMeulen 221f68e05b Merge m-c to inbound. 2013-07-26 12:09:20 -04:00
Dão Gottwald 9154735eb9 Bug 891968 - Only have one copy of each overriding UA string. f=hurley r=jduell 2013-07-26 09:39:01 +02:00
Mike de Boer d3a98caab4 Bug 890690 - Add postDataString property to nsISearchSubmission. r=gavin
--HG--
extra : transplant_source : %F8%86%BD%9A%0Bt%95%F8%DC%E5%FA%BD%C8%3BP%87%A1%CB/%95
2013-07-19 19:56:38 +02:00
Nick Hurley 92922b9c06 Bug 891932 - process the pending spdy transaction queue in order r=mcmanus 2013-07-24 17:05:49 -07:00
Ivan Alagenchev 7931f44b23 Bug 846918: add hsts message queue to httpchannel. r=bsmith. 2013-07-26 08:37:03 -07:00
Ed Morley fe0891a1ec Merge mozilla-central and fx-team 2013-07-24 13:37:09 +01:00
Tim Taubert b3feea2284 merge m-c to fx-team 2013-07-24 12:15:50 +02:00
Ms2ger 3c48262d76 Merge m-c to inbound. 2013-07-24 11:53:22 +02:00
Paolo Amadini c9ba52a780 Bug 896179 - Crash in BackgroundFileSaver when append is enabled and hashing is disabled. r=mcmanus 2013-07-24 10:16:01 +02:00
Ms2ger 10d5739f7a Bug 888643 - Part b: Move CPP_UNIT_TESTS definitions into moz.build files; r=gps 2013-07-24 09:23:06 +02:00
Dão Gottwald ad54b2d53b Bug 896382 - Cache the override (or that there's no override) for each host to avoid doing the same iterative string matching for every HTTP request. r=hurley 2013-07-24 09:38:45 +02:00
David Zbarsky f6f620d05f Bug 894646 - Various dom deCOM cleanups r=Ms2ger 2013-07-23 16:39:17 -07:00
Gregory Szorc 1f0e635098 Bug 896093 - Reference proper variable when blocked port is used; r=trivial 2013-07-23 13:53:01 -07:00
David Rajchenbach-Teller a4528c0dc2 Bug 897033 - Fix nsCookieService's statement finalization. r=ehsan 2013-07-23 16:41:23 -04:00
Catalin Iordache 3ebe2a0a79 Bug 888628 - Create another field for HttpRetParams structure which keeps track of half open connections. r=valentin.gosu 2013-07-23 10:52:01 -04:00
Joshua Cranmer b82a7849fb Bug 884061 - Part 4: Remove nsAtomicRefcnt.h, r=jlebar
--HG--
extra : rebase_source : ce24ab345baa48104328e3c101b7266a31e81870
2013-07-11 15:21:45 -05:00
Joshua Cranmer 37465bc6bd Bug 884061 - Part 3q: Use NS_DECL_THREADSAFE_ISUPPORTS in netwerk/, r=macmanus
--HG--
extra : rebase_source : d029f73a1f27896c142f76dce263dd3542763b18
2013-07-18 21:24:13 -05:00
Patrick McManus db05cbea1d bug 887753 - server not found after reconnecting to etherpad r=sworkman 2013-07-19 18:40:00 -04:00
Cameron McCormack cd4006ab60 Backout bdceed703766 (bug 887984) for Windows build failures. 2013-07-23 13:43:45 +10:00
Adrian Lungu 1b8eddbd1f Bug 887984 - Send telemetry data from NTLM Init() methods. r=mayhemer 2013-07-18 12:00:04 -07:00
Shih-Chiang Chien 30db599e0c Bug 882526 - Remove Gecko support for WBMP. r=joe, r=roc 2013-07-22 22:31:24 -04:00
Mihnea Dobrescu-Balaur de3e7988f4 Bug 888350 - Use a dynamic port in network/test/unit* xpcshell tests so they can be run in parallel. r=honzab 2013-07-19 10:19:28 -07:00
Gregory Szorc b5a7c28fde Bug 895542 - Only automatically select ports that aren't blocked from clients; r=Waldo 2013-07-19 10:30:06 -07:00
Arnaud Sourioux 38d6c0d455 Bug 883360 - Remove bool operator and nsMainThreadPtrHolder conversion. r=bsmedberg 2013-07-19 12:53:12 -04:00
Gregory Szorc 5cf35af589 No Bug - Removing empty Makefile.in files; r=me 2013-07-18 09:09:28 -07:00
Ehsan Akhgari 192bc42d5e Bug 895141 - Remove useless prlong.h inclusions from the tree; r=jcranmer 2013-07-18 12:06:38 -04:00
Boris Zbarsky 9d5d30d8a1 Bug 893004 part 2. Remove various no-longer-used XPCOM bits from Navigator, except the ones from nsIDOMNavigator. r=smaug
--HG--
rename : dom/network/interfaces/nsIDOMNavigatorNetwork.idl => dom/network/interfaces/nsIMozNavigatorNetwork.idl
2013-07-17 23:23:52 -04:00
Bobby Holley 055a4a328f Bug 887334 - Miscellaneous JSAutoCompartments. r=luke 2013-07-17 11:53:53 -07:00
Jan Beich a08e5b3ece Bug 803480 - Enable NeckoWifi by default only on platforms where it's actually supported. r=ted 2013-07-17 09:57:28 -04:00
Mihnea Dobrescu-Balaur 0dc5efa464 Bug 887706 - Use a dynamic port in httpserver xpcshell tests so they can be run in parallel. r=Waldo 2013-07-17 09:11:19 -04:00
Honza Bambas e4b77b101d Bug 892486 - Telemetry for appcache vs http cache page load, r=ehsan 2013-07-16 19:38:15 +02:00
Brian O'Keefe f4815f2203 Bug 883502 - Part 1: Move 'chromium_config.mk' includes after rules.mk. r=gps 2013-07-04 08:28:43 -04:00
Hector Zhao 21f841bfd8 Bug 892340 - Remove Off-Main-Thread XPCWrappedJS refcounting from (UDP)ServerSocketListenerProxy. r=mcmanus 2013-07-11 14:00:52 +08:00
Benoit Girard be559fe75a Bug 892861 - Remove useless -D flags 'IMPL_THEBES,_IMPL_NS_GFX,...'. r=glandium 2013-07-12 08:56:54 -04:00
Trevor Saunders f33ade0d68 bug 887483 - remove a bunch of useless assignments to FORCE_STATIC_LIB implied by LIBXUL_LIBRARY=1 r=mshal 2013-07-11 11:06:34 -04:00
Patrick McManus ec80b06fb8 bug 888268 - wifi tickler for mitigating 802.11 psp mode on android r=dougt
--HG--
extra : rebase_source : a767b6c10501105b3c5d22043f11745807caf2f9
2013-07-11 11:39:36 -04:00
Gervase Markham 2d8a4ce521 Bug 864704 - re-add csiro.au to PSL. DONTBUILD. 2013-07-11 13:39:16 +01:00