Commit Graph

52 Commits

Author SHA1 Message Date
Jeff Gilbert
70a22b2878 Bug 1470325 - s/FooBinding/Foo_Binding/g - r=qdot
MozReview-Commit-ID: JtTcLL5OPF0
2018-06-26 17:05:01 -07:00
Emilio Cobos Álvarez
4b8b5e1717 Bug 1465585: Switch from mozilla::Move to std::move. r=froydnj
This was done automatically replacing:

  s/mozilla::Move/std::move/
  s/ Move(/ std::move(/
  s/(Move(/(std::move(/

Removing the 'using mozilla::Move;' lines.

And then with a few manual fixups, see the bug for the split series..

MozReview-Commit-ID: Jxze3adipUh
2018-06-01 10:45:27 +02:00
Andrea Marchesini
ddb4518ad1 Bug 1435174 - Remove the renaming 'using namespace workers', r=bkelly 2018-02-05 19:55:07 +01:00
Andrea Marchesini
3e08265e73 Bug 1432963 - Fixing workers headers - part 17 - no LIBS=[workers] in moz.build files, r=smaug 2018-01-31 08:25:30 +01:00
Andrea Marchesini
98ac9eb616 Bug 1432963 - Fixing workers headers - part 15 - static function in a workers namespace, r=smaug 2018-01-31 08:24:30 +01:00
Andrea Marchesini
5e357eed9f Bug 1432963 - Fixing workers headers - part 14 - WorkerPrivate without workers namespace, r=smaug 2018-01-31 08:24:08 +01:00
Mike Hommey
261761b534 Bug 1407838 - Remove the remains of NS_Alloc/NS_Realloc/NS_Free. r=njn
Bug 1134923 removed the use of those functions in gecko, and left some
for the XPCOM standalone glue. The XPCOM standalone glue was severely
stripped down in bug 1306327, with the effect of removing the
implementation for those functions.

The remains in nsXPCOM.h are:
XPCOM_API(void*) NS_Alloc(size_t aSize);
XPCOM_API(void*) NS_Realloc(void* aPtr, size_t aSize);
XPCOM_API(void) NS_Free(void* aPtr);

With no implementation left, the first arm is never actually used, and
the second arm means every remaining use of those functions in the tree
is a macro expansion to one of moz_xmalloc, moz_xrealloc or free.
2017-10-12 11:08:44 +09:00
Bill McCloskey
ce42826bdf Bug 1372405 - Provide names for all runnables in the tree (r=froydnj)
MozReview-Commit-ID: DKR6ROiHRS7
2017-06-26 14:19:58 -07:00
Carsten "Tomcat" Book
238bf154d5 Backed out changeset 4f6302a98ae4 (bug 1372405) 2017-06-21 13:59:26 +02:00
Bill McCloskey
67e8af4720 Bug 1372405 - Provide names for all runnables in the tree (r=froydnj)
MozReview-Commit-ID: DKR6ROiHRS7
2017-06-20 21:44:11 -07:00
Carsten "Tomcat" Book
bbe9441993 Backed out changeset 9846de3bd954 (bug 1372405) 2017-06-20 08:27:02 +02:00
Bill McCloskey
f69608368b Bug 1372405 - Provide names for all runnables in the tree (r=froydnj)
MozReview-Commit-ID: DKR6ROiHRS7
2017-06-19 22:25:47 -07:00
Kit Cambridge
9853574f83 Bug 1337348 - Ensure array buffers and Base64-encoded strings can be passed as app server keys. r=baku
MozReview-Commit-ID: HgpSjhCKGgI
2017-02-07 13:56:01 -08:00
Kan-Ru Chen
a9b19d0584 Bug 1297276 - Rename mfbt/unused.h to mfbt/Unused.h for consistency. r=froydnj
The patch is generated from following command:

  rgrep -l unused.h|xargs sed -i -e s,mozilla/unused.h,mozilla/Unused.h,

MozReview-Commit-ID: AtLcWApZfES
2016-08-24 14:47:04 +08:00
Andrea Marchesini
611ada4ec2 Bug 1280067 - WorkerThreadModifyBusyCount should be the default value for WorkerRunnable, r=sicking 2016-06-28 19:28:13 +02:00
Kit Cambridge
6a2413422e Bug 1273260 - Add a pref to override push permissions. r=wchen
MozReview-Commit-ID: 8nJzACxIJmI
2016-05-17 08:32:05 -07:00
Kit Cambridge
f21168dd8c Bug 1267021 - Use fallible allocation and move semantics for Push events. r=wchen
MozReview-Commit-ID: H43zrz5fhvU
2016-04-22 20:54:22 -07:00
Kyle Huey
a9cf047227 Bug 1265927: Move nsRunnable to mozilla::Runnable, CancelableRunnable to mozilla::CancelableRunnable. r=froydnj 2016-04-25 17:23:21 -07:00
Kit Cambridge
f9c161b402 Bug 1247685 - WebIDL and DOM implementation changes for app server keys. r=mt,baku
MozReview-Commit-ID: 1xYjSuLMnV4
2016-03-22 13:38:03 -07:00
Kit Cambridge
a397c771b4 Bug 1257401 - Remove the worker descriptor for PushManager. r=khuey
MozReview-Commit-ID: 4nZElH1K3W5
2016-04-01 15:25:49 -07:00
Kit Cambridge
0b620ea522 Bug 1257401 - Remove the worker descriptor for PushSubscription. r=khuey
MozReview-Commit-ID: 9rTJn4KU2Es
2016-03-31 10:49:07 -07:00
Kyle Huey
20d0dc7286 Bug 1259294: Part 2 - Use MOZ_ALWAYS_SUCCEEDS. r=froydnj 2016-03-28 10:28:15 -07:00
Boris Zbarsky
a2c926eb89 Bug 1252127. Remove unnecessary JSContext argument from PromiseWorkerProxy::CleanUp. r=khuey 2016-02-29 14:52:42 -05:00
Boris Zbarsky
e3eff10fb4 Bug 1251045 part 4. Remove the JSContext argument of WorkerRunnable::Dispatch. r=khuey 2016-02-26 15:23:12 -05:00
Kit Cambridge
9a068bf9a8 Bug 1243781 - Push methods called from a worker should reject with a DOMException. r=mt 2016-01-28 08:23:29 -08:00
Carsten "Tomcat" Book
519627724e Backed out changeset 6d13649d2f01 (bug 1243781) 2016-02-01 12:40:36 +01:00
Kit Cambridge
7d907a98f8 Bug 1243781 - Push methods called from a worker should reject with a DOMException. r=mt 2016-01-28 08:23:29 -08:00
Kit Cambridge
8493889139 Bug 1228723 - Avoid a promise worker proxy deadlock caused by synchronous Push callbacks. r=catalinb 2016-01-26 12:16:32 -08:00
Kit Cambridge
311c0d4b85 Bug 1205137 - Add a PushSubscription serializer. r=mt,smaug 2015-12-14 16:28:19 -08:00
Kit Cambridge
1942c86774 Bug 1189998, Part 1 - Consolidate Push client interfaces. r=mt,dragana 2015-12-08 15:41:41 -05:00
Martin Thomson
134a387481 Bug 1225968 - Add authentication secret to push API, r=kitcambridge,smaug 2015-12-09 07:26:42 +11:00
Boris Zbarsky
4e9d369b63 Bug 1225603. Codegen ToJSValue overloads for Web IDL enums. r=smaug,jib 2015-11-21 12:15:11 -05:00
Kit Cambridge
3019e8045b Bug 1206302 - Use DOMException for Push errors. r=mt 2015-11-05 10:38:35 -08:00
Kit Cambridge
b0160496ff Bug 1159641, Part 1 - Skip the permission check in pushManager.getSubscription(). r=mt 2015-10-30 09:37:22 -07: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
Kit Cambridge
f87c3cbd23 Bug 1192458, Part 1 - Consolidate push and desktop notification permissions. r=nsm,wchen,MattN 2015-10-05 16:39:34 -07:00
Dragana Damjanovic
579751a2b2 Bug 1172502 - Add message encription for WebPush. r=mt r=kitcambridge r=keeler r=smaug 2015-09-11 07:51:32 -07:00
Nikhil Marathe
90a561adbe Bug 1197421 - Fix promise worker proxy cleanup and update callers. r=catalinb
Get rid of having users dispatch control runnables. It was error prone and
required too much reasoning. It was also possible to end up in a state where
callers would dispatch a WorkerRunnable, which would succeed, so they would not
dispatch a WorkerControlRunnable. Then the worker would stop Running,
canceling and releasing the runnable leading to releasing the proxy in an
unclean state. Instead, we AddRef() and add the feature and remove the feature
and Release() on Notify(). If callers successfully run a WorkerRunnable they
clean the proxy. If not, the proxy stays alive until the worker switches to
Canceling state.
2015-09-02 10:07:26 -07:00
Andrea Marchesini
a2c814e845 Bug 1198795 - ipc/StructuredCloneUtils should be merged with StructuredCloneHelper, r=smaug 2015-09-02 17:20:30 +01:00
Kit Cambridge
58fa3696f6 Bug 1189543 - pushManager.getSubscription() should return null for nonexistent push subscriptions in workers. r=nsm 2015-08-06 10:15:00 -07:00
Kit Cambridge
f8b2b42373 Back out changeset 0e68d7a16ed8 (bug 1189543) for mochitest-push timeouts. 2015-08-06 10:12:59 -07:00
Nikhil Marathe
ac011d0a1f Bug 1191495 - Relax PushManager callback assertions. r=kitcambridge 2015-08-05 15:32:19 -07:00
Wes Kocher
6a7e2366bd Backed out 3 changesets (bug 1191495, bug 1153499, bug 1144660) for mochitest-push crashes
Backed out changeset 8917e7323399 (bug 1191495)
Backed out changeset 13ed6f60d3f9 (bug 1144660)
Backed out changeset 95bd6642e4b1 (bug 1153499)
2015-08-05 15:18:05 -07:00
Nikhil Marathe
6f1c4e6c68 Bug 1191495 - Relax PushManager callback assertions. r=kitcambridge 2015-08-05 13:21:08 -07:00
Kit Cambridge
2abc97c63e Bug 1189543 - pushManager.getSubscription() should return null for nonexistent push subscriptions in workers. r=nsm 2015-08-04 13:43:23 -07:00
Nikhil Marathe
2c31f8f22e Bug 1190672 - Fix use of AutoReleasePromiseWorkerProxy in PushManager. r=catalinb 2015-08-03 21:47:16 -07:00
Ryan VanderMeulen
d40f148b97 Backed out changeset 96bb759922a1 (bug 1189543) for frequent crashes/asserts.
CLOSED TREE
2015-08-03 12:32:31 -04:00
Kit Cambridge
903cb88a50 Bug 1189543 - pushManager.getSubscription() should return null for nonexistent push subscriptions in workers. r=nsm 2015-07-30 15:31:48 -07:00
Ehsan Akhgari
bac8dddb71 Bug 1188091 - Fix the exposure of Push interfaces; r=dougt,bzbarsky,nsm
Currently we don't check the dom.push.enabled pref in some cases for
some of these interfaces.  This patch unifies how all of these
interfaces are exposed to Window, Worker, and ServiceWorker.
2015-07-30 01:06:38 -04:00
Ryan VanderMeulen
5a65a53c72 Backed out changeset c88d1138bc38 (bug 1188091) for Mulet test_serviceworker_interfaces.html failures.
CLOSED TREE
2015-07-28 13:28:39 -04:00