Commit Graph
49 Commits
Author SHA1 Message Date
Andrew McCreight 5bceb4422a Bug 1226708 - part 1 - Use importInMainProcess in requestsync tests. r=baku
This makes them work with e10s.
2015-11-23 11:44:00 +01:00
Andrea Marchesini d7c2eb1961 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 8900d36894 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 4e6d8f6705 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
2015-10-18 01:24:48 -04:00
Carsten "Tomcat" Book 036e6d2fa3 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 12369728f5 Backed out 1 changesets (bug 1202902) for causing merge conflicts to mozilla-central
Backed out changeset cfc1820361f5 (bug 1202902)
2015-10-07 12:13:45 +02:00
Shu-yu Guo 474f49adb7 Bug 1202902 - Scripted fix the world. 2015-10-06 14:00:31 -07:00
Fernando Jimenez 1d7449e0a7 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 f75df23f8f 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 34decaf4a3 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 38e36ba770 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 e3420a256f Backed out 1 changesets (bug 1178533) for s4 testfailures
Backed out changeset 8bbdb80f67e0 (bug 1178533)
2015-09-23 10:17:54 +02:00
Chris Peterson 752223fd52 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 8719127565 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 12fec02dfb 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.
2015-08-27 20:44:53 -07:00
Nick Robson 152a74db21 Bug 904479 - Added createPromiseWithId() that returns id of resolver r=kanru,nsm 2015-08-19 14:53:22 -07:00
Andrea Marchesini 6bf0fada4c Bug 1194978 - Renable RequestSync tests in b2g, r=nsm 2015-08-19 16:17:16 +01:00
Ryan VanderMeulen 8209b15821 Bug 1182358 - Follow-up: Disable permafailing tests on B2G. 2015-08-14 16:03:54 -04:00
Andrea Marchesini 15cc3ad652 Bug 1182358 - RequestSyncService.jsm should use AlarmService instead nsITimer, r=nsm 2015-08-14 17:47:42 +01:00
Ryan VanderMeulen 037eb756bd 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 bb953f9a18 Bug 1182358 - patch 2 - RequestSyncService.jsm should not write debug messages 2015-08-14 14:42:39 +01:00
Andrea Marchesini 0c606c70cc Bug 1182358 - RequestSyncService.jsm should use AlarmService instead nsITimer, r=nsm 2015-08-14 14:37:05 +01:00
Sean Lin 828e853618 Bug 1140275 - System messages shouldn't be sent to app pages not registered in manifests. r=fabrice 2015-08-03 01:05:00 +02:00
Bobby Holley 95279e5e44 Bug 1182347 - Migrate existing code away from .cookieJar. r=sicking,r=allstars.chh 2015-07-14 19:56:33 -07:00
Birunthan Mohanathas a29151dc87 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 2e6f823aae Bug 1165787 - Use origin in RequestSyncService.jsm. r=ehsan 2015-05-29 19:35:10 +08:00
Bobby Holley ee6d021a95 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 25fec1979d Bug 1165162 - Stop recreating principals from the message manager. r=smaug 2015-05-20 17:08:56 -07:00
Bobby Holley f683de5943 Bug 1165162 - Make requestsync test failures more useful. rpending=baku 2015-05-20 17:08:54 -07:00
Andrew McCreight 92010d3e4c Bug 1152551, part 2 - Fix mode lines in dom/. r=jst 2015-05-03 15:32:37 -04:00
Andrea Marchesini f97e006d35 Bug 1151082 - RequestSyncAPI - avoid infinite loop when processing pending messages, r=ehsan 2015-04-09 19:59:39 +01:00
Andrea Marchesini ad97ae68b8 Bug 1148527 - Indentation fix after bug 1145631, r=ehsan 2015-03-27 18:52:19 +00:00
Ehsan Akhgari ea41d8de48 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 fe58834cf9 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 6af4c4603d 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 fa269e6f15 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 d406cdf168 Backed out changeset 6885e993936a (bug 1056851) for crashtest failures 2015-02-19 15:02:05 +01:00
Anish 0de2fa06b1 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 9f003782b0 Bug 1132752 - RequestSync API should not try to clone nsITimers, r=fabrice 2015-02-14 09:10:11 +01:00
Andrea Marchesini 9bac061c12 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 99ed809d8c Bug 1130663 - requestsync-manager::runNow to allow for an immediate sync, r=fabrice 2015-02-11 14:32:45 +01:00
Chris Peterson 7c40fe4568 Bug 1129325 - Remove nonstandard let blocks from dom. r=mrbkap 2015-01-24 23:38:46 -08:00
Ehsan Akhgari 9866f9b2f3 Bug 1125178 - Mark some functions in dom as override; r=baku 2015-01-23 14:27:12 -05:00
Andrea Marchesini ac324497de 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 8e851f4c78 Bug 1018320 - RequestSync API - patch 6 - Manager API, r=ehsan 2015-01-13 09:53:24 +00:00
Andrea Marchesini bec5452722 Bug 1018320 - RequestSync API - patch 5 - mozSetMessageHandlerPromise, r=fabrice 2015-01-13 09:53:22 +00:00
Andrea Marchesini 434ffa86eb Bug 1018320 - RequestSync API - patch 4 - sendAsyncMessage used to schedule tasks, r=ehsan 2015-01-13 09:53:20 +00:00
Andrea Marchesini c88b6e41b7 Bug 1018320 - RequestSync API - patch 2 - Wifi Only, r=ehsan 2015-01-13 09:53:16 +00:00
Andrea Marchesini 025094dd4b Bug 1018320 - RequestSync API - patch 1 - webIDL and basic logic, r=ehsan 2015-01-13 09:53:14 +00:00