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

48 Коммитов

Автор SHA1 Сообщение Дата
Andrea Marchesini 8d4a4c315a Bug 1213169 - requestsync assumes all in-memory mozAlarms will never be purged (and these alarms get persisted anyways), but they are purged on timezone/clock changes, r=asuth 2015-10-27 09:48:00 -04:00
Andrea Marchesini 61dc0b019b Bug 1216002 - "JavaScript error: resource://gre/modules/RequestSyncService.jsm, line 228: TypeError: 'continue' called on an object that does not implement interface IDBCursor." r=bz 2015-10-19 14:11:00 +02:00
Nathan Froyd 01583602a9 Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat
The bulk of this commit was generated with a script, executed at the top
level of a typical source code checkout.  The only non-machine-generated
part was modifying MFBT's moz.build to reflect the new naming.

CLOSED TREE makes big refactorings like this a piece of cake.

 # The main substitution.
find . -name '*.cpp' -o -name '*.cc' -o -name '*.h' -o -name '*.mm' -o -name '*.idl'| \
    xargs perl -p -i -e '
 s/nsRefPtr\.h/RefPtr\.h/g; # handle includes
 s/nsRefPtr ?</RefPtr</g;   # handle declarations and variables
'

 # Handle a special friend declaration in gfx/layers/AtomicRefCountedWithFinalize.h.
perl -p -i -e 's/::nsRefPtr;/::RefPtr;/' gfx/layers/AtomicRefCountedWithFinalize.h

 # Handle nsRefPtr.h itself, a couple places that define constructors
 # from nsRefPtr, and code generators specially.  We do this here, rather
 # than indiscriminantly s/nsRefPtr/RefPtr/, because that would rename
 # things like nsRefPtrHashtable.
perl -p -i -e 's/nsRefPtr/RefPtr/g' \
     mfbt/nsRefPtr.h \
     xpcom/glue/nsCOMPtr.h \
     xpcom/base/OwningNonNull.h \
     ipc/ipdl/ipdl/lower.py \
     ipc/ipdl/ipdl/builtin.py \
     dom/bindings/Codegen.py \
     python/lldbutils/lldbutils/utils.py

 # In our indiscriminate substitution above, we renamed
 # nsRefPtrGetterAddRefs, the class behind getter_AddRefs.  Fix that up.
find . -name '*.cpp' -o -name '*.h' -o -name '*.idl' | \
    xargs perl -p -i -e 's/nsRefPtrGetterAddRefs/RefPtrGetterAddRefs/g'

if [ -d .git ]; then
    git mv mfbt/nsRefPtr.h mfbt/RefPtr.h
else
    hg mv mfbt/nsRefPtr.h mfbt/RefPtr.h
fi

--HG--
rename : mfbt/nsRefPtr.h => mfbt/RefPtr.h
2015-10-18 01:24:48 -04:00
Carsten "Tomcat" Book 08997000eb Backed out 2 changesets (bug 1202902) to recking bug 1202902 to be able to reopen inbound on a CLOSED TREE
Backed out changeset 647025383676 (bug 1202902)
Backed out changeset d70c7fe532c6 (bug 1202902)
2015-10-07 14:03:21 +02:00
Carsten "Tomcat" Book e7ef778c9d Backed out 1 changesets (bug 1202902) for causing merge conflicts to mozilla-central
Backed out changeset cfc1820361f5 (bug 1202902)

--HG--
extra : rebase_source : 5d3db72337754bc7ab0ed0c30b2896100411ff92
2015-10-07 12:13:45 +02:00
Shu-yu Guo d06b6030f6 Bug 1202902 - Scripted fix the world. 2015-10-06 14:00:31 -07:00
Fernando Jimenez 19620c93ea Bug 1211469 - JavaScript error: resource://gre/modules/RequestSyncService.jsm, line 104: TypeError: this.addRegistration is not a function. r=baku 2015-10-05 23:10:55 +02:00
Stephanie Ouillon 5e14a3b3a8 Bug 1178533 - Add nsIInstallPackagedWebapp for registering permissions when navigating to signed packages r=bholley,fabrice,valentin 2015-08-26 13:12:13 +02:00
Carsten "Tomcat" Book 64c0a617b7 Backed out 1 changesets (bug 1178533) for xpcshell-1 test failures
Backed out changeset b12584fad334 (bug 1178533)
2015-09-24 08:41:04 +02:00
Stephanie Ouillon 478b31c634 Bug 1178533 - Add nsIInstallPackagedWebapp for registering permissions when navigating to signed packages. r=bholley, r=fabrice, r=valentin 2015-09-23 07:41:00 +02:00
Carsten "Tomcat" Book 58878018ac Backed out 1 changesets (bug 1178533) for s4 testfailures
Backed out changeset 8bbdb80f67e0 (bug 1178533)

--HG--
extra : rebase_source : 040491f382ad7b03ba803686601f1272416ab47d
2015-09-23 10:17:54 +02:00
Chris Peterson 71920a9550 Bug 1207030 - Enable -Wshadow flag in more directories that have no -Wshadow warnings. r=glandium 2015-09-22 21:39:03 -07:00
Stephanie Ouillon ad9e2b8a95 Bug 1178533 - Add nsIInstallPackagedWebapp for registering permissions when navigating to signed packages. r=bholley, r=fabrice, r=valentin 2015-09-22 11:55:00 +02:00
Nicholas Nethercote f44287005f Bug 1198334 (part 1) - Replace the opt-in FAIL_ON_WARNINGS with the opt-out ALLOW_COMPILER_WARNINGS. r=glandium.
The patch removes 455 occurrences of FAIL_ON_WARNINGS from moz.build files, and
adds 78 instances of ALLOW_COMPILER_WARNINGS. About half of those 78 are in
code we control and which should be removable with a little effort.

--HG--
extra : rebase_source : 82e3387abfbd5f1471e953961d301d3d97ed2973
2015-08-27 20:44:53 -07:00
Nick Robson 40e1ba271a Bug 904479 - Added createPromiseWithId() that returns id of resolver r=kanru,nsm
--HG--
extra : rebase_source : 2aae82958670d0154a3cf08bd0e2a80d529e36f3
2015-08-19 14:53:22 -07:00
Andrea Marchesini d6b3882365 Bug 1194978 - Renable RequestSync tests in b2g, r=nsm 2015-08-19 16:17:16 +01:00
Ryan VanderMeulen 4c83c6ae8c Bug 1182358 - Follow-up: Disable permafailing tests on B2G.
--HG--
extra : rebase_source : bf3b5d0d330f419fb35ca3a4015c8fcfc5ca9a68
2015-08-14 16:03:54 -04:00
Andrea Marchesini c7cb0a6a38 Bug 1182358 - RequestSyncService.jsm should use AlarmService instead nsITimer, r=nsm 2015-08-14 17:47:42 +01:00
Ryan VanderMeulen 2deb989989 Backed out changesets 78aa8018df7d and 9b6e1c462c99 (bug 1182358) for Android test_basic.html timeouts followed by other failures. 2015-08-14 11:30:50 -04:00
Andrea Marchesini c41de6b706 Bug 1182358 - patch 2 - RequestSyncService.jsm should not write debug messages 2015-08-14 14:42:39 +01:00
Andrea Marchesini e4350889d5 Bug 1182358 - RequestSyncService.jsm should use AlarmService instead nsITimer, r=nsm 2015-08-14 14:37:05 +01:00
Sean Lin b7aa8f88e2 Bug 1140275 - System messages shouldn't be sent to app pages not registered in manifests. r=fabrice
--HG--
extra : rebase_source : 37a8736aba727b0ace601fd9e5bcd78c97b69bc8
2015-08-03 01:05:00 +02:00
Bobby Holley 23aa464074 Bug 1182347 - Migrate existing code away from .cookieJar. r=sicking,r=allstars.chh 2015-07-14 19:56:33 -07:00
Birunthan Mohanathas a8939590de Bug 1182996 - Fix and add missing namespace comments. rs=ehsan
The bulk of this commit was generated by running:

  run-clang-tidy.py \
    -checks='-*,llvm-namespace-comment' \
    -header-filter=^/.../mozilla-central/.* \
    -fix
2015-07-13 08:25:42 -07:00
Yoshi Huang a05fb40add Bug 1165787 - Use origin in RequestSyncService.jsm. r=ehsan 2015-05-29 19:35:10 +08:00
Bobby Holley 3b6ba803a8 Bug 1165162 - Serialize originSuffix into .origin. r=gabor,sr=sicking
We also provide an opt-out for the original behavior, and use it in various
consumers that look like they need fixing up. Most of the usage here is in
code with persistence considerations, where we may need some sort of migration
path.
2015-05-20 17:11:49 -07:00
Bobby Holley 42151b7774 Bug 1165162 - Stop recreating principals from the message manager. r=smaug 2015-05-20 17:08:56 -07:00
Bobby Holley 0cc37b29bf Bug 1165162 - Make requestsync test failures more useful. rpending=baku 2015-05-20 17:08:54 -07:00
Andrew McCreight 9e8f4b219e Bug 1152551, part 2 - Fix mode lines in dom/. r=jst 2015-05-03 15:32:37 -04:00
Andrea Marchesini ce8084617b Bug 1151082 - RequestSyncAPI - avoid infinite loop when processing pending messages, r=ehsan 2015-04-09 19:59:39 +01:00
Andrea Marchesini e6f385fb3d Bug 1148527 - Indentation fix after bug 1145631, r=ehsan 2015-03-27 18:52:19 +00:00
Ehsan Akhgari 883849ee32 Bug 1145631 - Part 1: Replace MOZ_OVERRIDE and MOZ_FINAL with override and final in the tree; r=froydnj
This patch was automatically generated using the following script:

function convert() {
echo "Converting $1 to $2..."
find . \
       ! -wholename "*/.git*" \
       ! -wholename "obj-ff-dbg*" \
         -type f \
      \( -iname "*.cpp" \
         -o -iname "*.h" \
         -o -iname "*.c" \
         -o -iname "*.cc" \
         -o -iname "*.idl" \
         -o -iname "*.ipdl" \
         -o -iname "*.ipdlh" \
         -o -iname "*.mm" \) | \
    xargs -n 1 sed -i -e "s/\b$1\b/$2/g"
}

convert MOZ_OVERRIDE override
convert MOZ_FINAL final
2015-03-21 12:28:04 -04:00
Anish 4063a569ed Bug 958147 - Choose one of run-if or skip-if and get rid of the other.r=jmaher, mwargers 2015-03-03 08:46:37 -05:00
Andrea Marchesini f3cdfe7ee3 Bug 1136434 - RequestSync API should delete all the timers when a task is unregistered, r=ehsan 2015-03-03 11:07:26 +00:00
Anish 45de248a8b Bug 1056851 - Change existing callers of SpecialPowers.setBoolPref/setIntPref/setCharPref to SpecialPowers.pushPrefEnv. r=jmaher,mwargers 2015-02-19 11:53:01 -05:00
Carsten "Tomcat" Book c0d53e2918 Backed out changeset 6885e993936a (bug 1056851) for crashtest failures 2015-02-19 15:02:05 +01:00
Anish e7006d8a59 Bug 1056851 - Change existing callers of SpecialPowers.setBoolPref/setIntPref/setCharPref to SpecialPowers.pushPrefEnv. r=jmaher 2015-02-19 07:26:41 -05:00
Andrea Marchesini c8920119d7 Bug 1132752 - RequestSync API should not try to clone nsITimers, r=fabrice 2015-02-14 09:10:11 +01:00
Andrea Marchesini e9ffc3ce9e Bug 1131963 - RequestSyncService must use also the task name to identify the correct task, r=fabrice 2015-02-11 15:38:22 +01:00
Andrea Marchesini 499649fa5f Bug 1130663 - requestsync-manager::runNow to allow for an immediate sync, r=fabrice 2015-02-11 14:32:45 +01:00
Chris Peterson 009c1a2bcb Bug 1129325 - Remove nonstandard let blocks from dom. r=mrbkap 2015-01-24 23:38:46 -08:00
Ehsan Akhgari 2ba1b3c041 Bug 1125178 - Mark some functions in dom as override; r=baku 2015-01-23 14:27:12 -05:00
Andrea Marchesini 959e325991 Bug 1018320 - RequestSync API - patch 7 - reject promise when an exception is thrown, r=fabrice 2015-01-13 09:53:26 +00:00
Andrea Marchesini bf1781a498 Bug 1018320 - RequestSync API - patch 6 - Manager API, r=ehsan 2015-01-13 09:53:24 +00:00
Andrea Marchesini d6ae21b741 Bug 1018320 - RequestSync API - patch 5 - mozSetMessageHandlerPromise, r=fabrice 2015-01-13 09:53:22 +00:00
Andrea Marchesini f2e48111ed Bug 1018320 - RequestSync API - patch 4 - sendAsyncMessage used to schedule tasks, r=ehsan 2015-01-13 09:53:20 +00:00
Andrea Marchesini 717717cd09 Bug 1018320 - RequestSync API - patch 2 - Wifi Only, r=ehsan 2015-01-13 09:53:16 +00:00
Andrea Marchesini 6b6fa3fbff Bug 1018320 - RequestSync API - patch 1 - webIDL and basic logic, r=ehsan 2015-01-13 09:53:14 +00:00