Ehsan Akhgari
a726d074a1
Bug 1222464 - Part 2: Implement FetchEvent.clientId; r=jdm
2015-12-02 20:36:59 -05:00
Ben Kelly
531592cb95
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
f10040b2ed
Bug 1207068 - Implement ExtendableMessageEvent interface. r=baku
2015-11-10 14:31:41 +08:00
Ben Kelly
da0565c244
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
d390455098
Bug 1215140 P5 Report the line number where respondWith() was called. r=bz
2015-10-29 19:53:25 -07:00
Ehsan Akhgari
f7b1ec3f21
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
69b651fa9c
Bug 1218499 - Make FetchEvent.request nullable; r=bzbarsky
2015-10-26 23:00:19 -04:00
Ehsan Akhgari
e3652e5d9c
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
84f681a9b7
Bug 1214772 - Part 2: Make FetchEvent inherit from ExtendableEvent; r=bzbarsky
2015-10-26 23:00:14 -04:00
Ehsan Akhgari
1ff9b3b75a
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
e4e2da55c9
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
Catalin Badea
ec6bc64f09
Bug 1188545 - respondWith promise should extend the service worker's lifetime. r=nsm
2015-09-30 19:11:03 -04:00
Catalin Badea
91b1e48a71
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
711e09ec3d
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
c1d2b19702
Bug 1188545 - respondWith promise should extend the service worker's lifetime. r=nsm
2015-09-30 10:14:33 -04:00
Catalin Badea
aee7d66324
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
7be88fe195
Bug 1205112 - Make PushEvent.data
nullable. r=mt,smaug
2015-09-17 05:13:04 -07:00
Kit Cambridge
2ce3628b0c
Bug 1149195 - Expose push message data accessors. r=nsm,dragana,smaug
2015-09-17 05:10:42 -07:00
Nikhil Marathe
56a9c419d8
Bug 1198230 - Respect FetchEvent.preventDefault(). r=jdm
...
Update web-platform-tests expected data
2015-09-04 12:00:24 -07:00
Nikhil Marathe
9cb602ff2d
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
2015-08-24 14:42:14 -07:00
Ryan VanderMeulen
7bba4b4e12
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
1c93d7a95a
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
2015-08-21 16:13:54 -07:00
Nikhil Marathe
0a02023664
Bug 1181056 - waitUntil() should throw if called when event is not dispatching. r=smaug
2015-08-18 16:28:04 -07:00
Nikhil Marathe
cfbab4cece
Bug 1190478 - Hide PushEvent.data until we ship message encryption. r=mt,jst
2015-08-03 11:04:41 -07:00
Boris Zbarsky
2b193a0d99
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
68342b6b61
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
50d519f161
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
1ebf85a7c8
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
f304f3cc12
Bug 1183882, properly implement wrapper caching on PushMessageData, r=nsm
2015-07-18 01:17:14 +03:00
Nikhil Marathe
327f4e3a85
Bug 1183813 - PushEvent.data should be same instance every time. r=smaug
2015-07-14 13:10:58 -07:00
Andrea Marchesini
08c931dc57
Bug 1159401 - Split Blob and File classes, r=bz
2015-05-12 13:09:51 +01:00
Wes Kocher
477215237f
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
7e0e157266
Bug 1159401 - patch 1 - Split Blob and File in 2 classes, r=bz
2015-05-11 18:50:50 +01:00
Ryan VanderMeulen
64bb0dd547
Backout revisions 4287533203fb and 96a3ebfe09d8 (bug 1159401) for bustage.
...
CLOSED TREE
2015-05-11 11:43:59 -04:00
Andrea Marchesini
246389cea0
Bug 1159401 - patch 1 - Split Blob and File in 2 classes, r=bz
2015-05-11 15:20:06 +01:00
Andrew McCreight
c979f253c0
Bug 1152551, part 2 - Fix mode lines in dom/. r=jst
2015-05-03 15:32:37 -04:00
Rahul
b517abd208
Bug 1152473 - Remove InstallEvent. r=nsm,ehsan
2015-04-20 18:47:13 -07:00
Doug Turner
ac1c0fa486
Bug 1038811 - Push Notifications - ServiceWorker changes, push event implementation. r=nsm
2015-04-10 20:19:28 -07:00
Timur Valeev
9ec0b448ba
Bug 1146365 - Add support of union type for FetchEvent.respondWith. r=nsm, r=ehsan
2015-03-24 10:37:39 +03:00
Ehsan Akhgari
5cccea6f0f
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
28a5828a95
Bug 1136757 - Add direct Response overload for FetchEvent.respondWith(). r=jdm,nsm,ehsan
...
ON CLOSED TREE
Fix bug number
2015-03-20 08:44:20 -07:00
Nikhil Marathe
21808d9cca
Backed out changeset 62b55b1f9b7e for wrong bug number ON CLOSED TREE
2015-03-20 08:43:59 -07:00
Timur Valeev
063358ac0c
Bug 1135627 - Add direct Response overload for FetchEvent.respondWith(). r=jdm,nsm,ehsan
2015-03-18 06:17:11 +03:00
Boris Zbarsky
988b8e01be
Bug 1117172 part 3. Change the wrappercached WrapObject methods to allow passing in aGivenProto. r=peterv
...
The only manual changes here are to BindingUtils.h, BindingUtils.cpp,
Codegen.py, Element.cpp, IDBFileRequest.cpp, IDBObjectStore.cpp,
dom/workers/Navigator.cpp, WorkerPrivate.cpp, DeviceStorageRequestChild.cpp,
Notification.cpp, nsGlobalWindow.cpp, MessagePort.cpp, nsJSEnvironment.cpp,
Sandbox.cpp, XPCConvert.cpp, ExportHelpers.cpp, and DataStoreService.cpp. The
rest of this diff was generated by running the following commands:
find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(WrapObjectInternal\(JSContext *\* *(?:aCx|cx|aContext|aCtx|js))\)/\1, JS::Handle<JSObject*> aGivenProto)/g'
find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(WrapObjectInternal\((?:aCx|cx|aContext|aCtx|js))\)/\1, aGivenProto)/g'
find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(WrapNode\(JSContext *\* *(?:aCx|cx|aContext|aCtx|js))\)/\1, JS::Handle<JSObject*> aGivenProto)/g'
find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(WrapNode\((?:aCx|cx|aContext|aCtx|js))\)/\1, aGivenProto)/g'
find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(WrapObject\(JSContext *\* *(?:aCx|cx|aContext|aCtx|js))\)/\1, JS::Handle<JSObject*> aGivenProto)/g'
find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(Binding(?:_workers)?::Wrap\((?:aCx|cx|aContext|aCtx|js), [^,)]+)\)/\1, aGivenProto)/g'
2015-03-19 10:13:33 -04:00
Catalin Badea
6e3207a0d0
Bug 1058311 - Update client interface. Implement matchAll WindowClient. r=baku
2015-03-06 15:04:49 +02:00
Josh Matthews
c8749efb5f
Bug 1065216 - Dispatch a fetch event to workers when controlled pages initiate a network load. r=baku,mayhemer,smaug
2015-02-18 20:34:29 -05:00
Ryan VanderMeulen
3759ea0732
Backed out changeset 25f90464e93b (bug 1065216) for Android mochitest failures.
2015-02-18 16:00:33 -05:00
Josh Matthews
58c1eb50b9
Bug 1065216 - Dispatch a fetch event to workers when controlled pages initiate a network load. r=baku,mayhemer,smaug
2015-02-18 14:10:52 -05:00
Nikhil Marathe
caf6b06882
Bug 1127882 - Fix Promise include.
2015-02-06 10:08:31 -08:00
Nikhil Marathe
b4bb7fa086
Bug 1113627 - Refactor lifecycle event dispatching and handling. r=baku,bz
2014-12-19 05:01:53 -08:00