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

66 Коммитов

Автор SHA1 Сообщение Дата
Kit Cambridge c6e8720d75 Bug 1267021 - Use fallible allocation and move semantics for Push events. r=wchen
MozReview-Commit-ID: H43zrz5fhvU

--HG--
extra : rebase_source : 63631f3c2f4a3389e8e0365cd9a770a537162762
2016-04-22 20:54:22 -07:00
Ben Kelly 2623d70dd2 Bug 1267733 P2 Pass ServiceWorkerRegistrationInfo down to CancelChannelRunnable. r=jdm 2016-04-27 02:24:04 -07:00
Kyle Huey c73656947b Bug 1265927: Move nsRunnable to mozilla::Runnable, CancelableRunnable to mozilla::CancelableRunnable. r=froydnj 2016-04-25 17:23:21 -07:00
Kyle Huey 171ac8799b Bug 1257042: Remove the worker descriptor for PushEvent and PushMessageData. r=bz 2016-03-16 13:44:24 -07:00
Sebastian Hengst c213b3dd0c Backed out changeset 06101225c145 (bug 1257042) for bustage. r=backout on a CLOSED TREE 2016-03-16 20:30:32 +01:00
Kyle Huey 24341cb722 Bug 1257042: Remove the worker descriptor for PushEvent and PushMessageData. r=bz 2016-03-16 11:51:11 -07:00
Ehsan Akhgari 25594f6881 Bug 1238213 - Make FetchEvent.request non-nullable; r=baku 2016-01-11 13:21:23 -05:00
Ehsan Akhgari d8cef2d841 Bug 1222464 - Part 2: Implement FetchEvent.clientId; r=jdm 2015-12-02 20:36:59 -05:00
Ben Kelly 60dc9e2371 Bug 1225470 Report a message to the console when a service worker waitUntil() is rejected. r=baku 2015-11-19 13:15:17 -08:00
dimi a41b603e0d Bug 1207068 - Implement ExtendableMessageEvent interface. r=baku
--HG--
extra : rebase_source : ddc40a1fddf3558d22f647a8a8b785de97a270cc
2015-11-10 14:31:41 +08:00
Ben Kelly e3bee41820 Bug 1215140 P9 Provide file and line number when FetchEvent.preventDefault() cancels a request. r=bz
* * *
Bug 1215140 P9 interdiff 001
2015-10-29 19:53:25 -07:00
Ben Kelly 5fb3550c91 Bug 1215140 P5 Report the line number where respondWith() was called. r=bz 2015-10-29 19:53:25 -07:00
Ehsan Akhgari da8340a541 Bug 1218621 - Keep the service worker alive while the promise passed to FetchEvent.respondWith() settles; r=catalinb 2015-10-27 17:10:57 -04:00
Ehsan Akhgari 8bb8104d86 Bug 1218499 - Make FetchEvent.request nullable; r=bzbarsky 2015-10-26 23:00:19 -04:00
Ehsan Akhgari 7029e804f8 Bug 1218135 - Remove FetchEvent.client; r=bzbarsky
This has been removed from the spec.  See:
https://github.com/slightlyoff/ServiceWorker/issues/723#issuecomment-123516555
2015-10-26 23:00:16 -04:00
Ehsan Akhgari 61cf88b565 Bug 1214772 - Part 2: Make FetchEvent inherit from ExtendableEvent; r=bzbarsky 2015-10-26 23:00:14 -04:00
Ehsan Akhgari b17439be5e Bug 1214772 - Part 1: Move the declaration of FetchEvent to after that of ExtendableEvent; r=bkelly 2015-10-26 23:00:13 -04: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
Catalin Badea cce3b797b1 Bug 1188545 - respondWith promise should extend the service worker's lifetime. r=nsm 2015-09-30 19:11:03 -04:00
Catalin Badea 76c7d43fd9 Bug 1188545 - Disentangle service workers from shared workers and refactor event dispatching code into a separate class. r=nsm,mrbkap 2015-09-30 19:11:03 -04:00
Wes Kocher 6fbdec2422 Backed out 12 changesets (bug 1188545) for test_fetch_cors failures CLOSED TREE
Backed out changeset e04738ee72a3 (bug 1188545)
Backed out changeset 1989893b59de (bug 1188545)
Backed out changeset 11ff29cc25d8 (bug 1188545)
Backed out changeset 4b6bdf859845 (bug 1188545)
Backed out changeset 76eb7ffeca2a (bug 1188545)
Backed out changeset 4473e036b52e (bug 1188545)
Backed out changeset 2a28cb794b23 (bug 1188545)
Backed out changeset 1fa2f55727f3 (bug 1188545)
Backed out changeset 032f4c24fc34 (bug 1188545)
Backed out changeset 4be675dc1b37 (bug 1188545)
Backed out changeset d5d05def5b17 (bug 1188545)
Backed out changeset e94f12b0bcf3 (bug 1188545)
2015-09-30 11:11:47 -07:00
Catalin Badea 40fb568048 Bug 1188545 - respondWith promise should extend the service worker's lifetime. r=nsm 2015-09-30 10:14:33 -04:00
Catalin Badea c537f8c503 Bug 1188545 - Disentangle service workers from shared workers and refactor event dispatching code into a separate class. r=nsm,mrbkap 2015-09-30 10:14:33 -04:00
Kit Cambridge 556109257e Bug 1205112 - Make `PushEvent.data` nullable. r=mt,smaug
--HG--
extra : commitid : 8kofiFgB7WB
extra : rebase_source : 1ff780efd336a9a4214800149c397d9fd3fd6429
2015-09-17 05:13:04 -07:00
Kit Cambridge cc7189cb64 Bug 1149195 - Expose push message data accessors. r=nsm,dragana,smaug
--HG--
extra : commitid : 10hopC95zuL
extra : rebase_source : c3c9cfac62d1acb234bba2f16b443783354c43a4
2015-09-17 05:10:42 -07:00
Nikhil Marathe cd9d0eb7ab Bug 1198230 - Respect FetchEvent.preventDefault(). r=jdm
Update web-platform-tests expected data

--HG--
extra : commitid : 4dM6kivKeAc
extra : rebase_source : 64e40258a98b79064d5073422811fb8e1f688735
2015-09-04 12:00:24 -07:00
Nikhil Marathe b540329bb9 Bug 1189644 - Update waitUntil() and activation to spec. r=catalinb
waitUntil() has been updated to accept multiple calls and concatenate them into Promise.all().
activation does not fail any more even if the promise(s) passed to waitUntil() reject.

Update web-platform-tests expected data

--HG--
extra : commitid : IawOgxEfc79
extra : rebase_source : e6fcc47c873fd9f71f51a67303a6566bf0c0dd21
extra : amend_source : 787990406129722a3c58ff78782d778823daf2bf
2015-08-24 14:42:14 -07:00
Ryan VanderMeulen ad4abd6428 Backed out 7 changesets (bug 1189678, bug 1193128, bug 1189661, bug 1189644, bug 1189675) for various serviceworker mochitest and wpt failures.
Backed out changeset 696463139720 (bug 1189661)
Backed out changeset 7babb5b9d74a (bug 1189644)
Backed out changeset d4fa5cfc4b86 (bug 1189678)
Backed out changeset a7c27770b861 (bug 1189675)
Backed out changeset 471a45b97ce2 (bug 1189644)
Backed out changeset 4d96f2d48077 (bug 1193128)
Backed out changeset a9d5366288ff (bug 1189661)

CLOSED TREE
2015-08-24 18:09:47 -04:00
Nikhil Marathe 0a089b35b0 Bug 1189644 - Update waitUntil() and activation to spec. r=catalinb
waitUntil() has been updated to accept multiple calls and concatenate them into Promise.all().
activation does not fail any more even if the promise(s) passed to waitUntil() reject.

Update web-platform-tests expected data

--HG--
extra : commitid : 1jnUWlyw4zQ
extra : rebase_source : 3e2ac14a2f1ebc6fbfc322bb1914feb47f261349
2015-08-21 16:13:54 -07:00
Nikhil Marathe 0756a03abe Bug 1181056 - waitUntil() should throw if called when event is not dispatching. r=smaug
--HG--
extra : commitid : 5Caz3xiFQQe
extra : rebase_source : ef708cda07cbaf897ec3201e19defcf02d85e06f
2015-08-18 16:28:04 -07:00
Nikhil Marathe 7fe3f37d58 Bug 1190478 - Hide PushEvent.data until we ship message encryption. r=mt,jst
--HG--
extra : commitid : 6i4eexsw50U
extra : rebase_source : 9147a2f5e3996d104ff40e32da3e82ca1cc3917d
2015-08-03 11:04:41 -07:00
Boris Zbarsky dba569f117 Bug 983301 part 2. Change Promise to not be distinguishable from any other type. r=peterv 2015-07-31 13:30:55 -04:00
Ehsan Akhgari 547404788d 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 96b36b5855 Backed out changeset c88d1138bc38 (bug 1188091) for Mulet test_serviceworker_interfaces.html failures.
CLOSED TREE
2015-07-28 13:28:39 -04:00
Ehsan Akhgari 6e916540f5 Bug 1188091 - Fix the exposure of Push interfaces; r=dougt,bzbarsky
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-28 12:28:53 -04:00
Olli Pettay 8a40d313a1 Bug 1183882, properly implement wrapper caching on PushMessageData, r=nsm
--HG--
extra : rebase_source : 779ada29196c741b6e34bb5e9adc6f0f7ce02623
2015-07-18 01:17:14 +03:00
Nikhil Marathe 3f86a6f1dd Bug 1183813 - PushEvent.data should be same instance every time. r=smaug
--HG--
extra : commitid : 1NJMNKiGa9p
extra : rebase_source : 6ea076e0969ae3312a094f533e29bc9a7da895de
2015-07-14 13:10:58 -07:00
Andrea Marchesini 368a198972 Bug 1159401 - Split Blob and File classes, r=bz 2015-05-12 13:09:51 +01:00
Wes Kocher 983fcabeef Backed out 2 changesets (bug 1159401) for b2g build bustage
Backed out changeset adfee1efb1e1 (bug 1159401)
Backed out changeset 70c63c8546e3 (bug 1159401)
2015-05-11 14:54:02 -07:00
Andrea Marchesini 91a8a35606 Bug 1159401 - patch 1 - Split Blob and File in 2 classes, r=bz 2015-05-11 18:50:50 +01:00
Ryan VanderMeulen 2390c704f8 Backout revisions 4287533203fb and 96a3ebfe09d8 (bug 1159401) for bustage.
CLOSED TREE

--HG--
extra : histedit_source : a6c24f88b9c5a0cbcf2d44189fd359ddb20757b4%2C46613cfc309a9f0531e8c2475ac17877f606f231
2015-05-11 11:43:59 -04:00
Andrea Marchesini 48ecacaa74 Bug 1159401 - patch 1 - Split Blob and File in 2 classes, r=bz 2015-05-11 15:20:06 +01:00
Andrew McCreight 9e8f4b219e Bug 1152551, part 2 - Fix mode lines in dom/. r=jst 2015-05-03 15:32:37 -04:00
Rahul cc5d6147ae Bug 1152473 - Remove InstallEvent. r=nsm,ehsan
--HG--
extra : rebase_source : f2c7f7069f4b0606d3185d5be9255d1ae20fea1e
2015-04-20 18:47:13 -07:00
Doug Turner 9c9d8e38df Bug 1038811 - Push Notifications - ServiceWorker changes, push event implementation. r=nsm 2015-04-10 20:19:28 -07:00
Timur Valeev 19a398b233 Bug 1146365 - Add support of union type for FetchEvent.respondWith. r=nsm, r=ehsan 2015-03-24 10:37:39 +03: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
Timur Valeev 19d6b48603 Bug 1136757 - Add direct Response overload for FetchEvent.respondWith(). r=jdm,nsm,ehsan
ON CLOSED TREE
Fix bug number

--HG--
extra : rebase_source : 98ca84186a9840a8827aa8da8a217badffc856c2
extra : histedit_source : ae3613ff672e71d340587c74d511e2beb04030f8
2015-03-20 08:44:20 -07:00
Nikhil Marathe a6bcf43dcd Backed out changeset 62b55b1f9b7e for wrong bug number ON CLOSED TREE
--HG--
extra : rebase_source : ce58377252069674fd30d3c9ebca91c8d4aca780
extra : histedit_source : 4af47c8f4abf6ba8c234547e47c99a737d3e4771
2015-03-20 08:43:59 -07:00
Timur Valeev 4a14abec30 Bug 1135627 - Add direct Response overload for FetchEvent.respondWith(). r=jdm,nsm,ehsan
--HG--
extra : rebase_source : 1df0b695586ff6273e7e5ded032c2daa3d5e1e31
2015-03-18 06:17:11 +03:00