Nikhil Marathe
715428eb35
Bug 1131327 - Patch 10 - Remember to remove the feature. r=baku
2015-04-17 16:44:58 -07:00
Nikhil Marathe
60d2f6e781
Bug 1131327 - Patch 7 - Fire updatefound on worker registration. r=baku
2015-04-08 15:22:36 -07:00
Nikhil Marathe
e502918a0e
Bug 1131327 - Patch 6 - SWM holds ServiceWorkerRegistrationListener for updatefound and invalidation notifications. r=baku
...
Splits up the listener interface to which SWM can hold rawptrs so that registration objects living on the worker thread can use awkward proxies to listen to these events.
2015-04-08 13:13:32 -07:00
Nikhil Marathe
f5565162bb
Bug 1131327 - Patch 5 - Implement ServiceWorkerRegistration.unregister() on worker. r=baku
2015-04-07 14:17:02 -07:00
Nikhil Marathe
a17b1f8132
Bug 1131327 - Patch 4 - Implement ServiceWorkerRegistration.update() on worker. r=baku
...
ServiceWorkerGlobalScope::Registration() now returns initialized registration.
2015-04-07 11:50:08 -07:00
Nikhil Marathe
565637850b
Bug 1131327 - Patch 3 - move event listeners to main thread class. r=baku
2015-04-07 13:09:07 -07:00
Nikhil Marathe
dc1c6a0c24
Bug 1131327 - Patch 2 - Expose to workers. r=baku
...
This patch exposes ServiceWorkerRegistration (and ServiceWorker to satisfy constraints) to workers.
For now, a null registration is returned in the worker.
2015-04-03 22:46:07 -07:00
Nikhil Marathe
b79d343a14
Bug 1131327 - Patch 1 - Introduce ServiceWorkerRegistration{Base,MainThread,WorkerThread} r=baku
2015-04-03 15:18:55 -07:00
Nikhil Marathe
13399bc3c8
Bug 1131350 - Move update() to ServiceWorkerRegistration. r=baku
2015-03-19 18:09:10 -07:00
Doug Turner
9b21eb1441
Bug 1038811 - Push Notifications - ServiceWorker changes, push event implementation. r=nsm
2015-04-10 20:19:28 -07:00
Ehsan Akhgari
33bb32f549
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
Boris Zbarsky
54c64f20a9
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
Nikhil Marathe
7e6a0d766f
Bug 1131882 - Associate ServiceWorkers with underlying ServiceWorkerInfo. r=baku
...
This allows controller to track state too, and provides better encapsulation.
1) Move SW setup to SWM. RuntimeService now only creates the underlying SharedWorker.
2) Require a SWInfo to create a SW. The SW holds a refptr to the info.
2015-02-19 08:40:21 -08:00
Daniel Holbert
1e42ab9e58
Bug 1043701 followup: add missing #include to provide ServiceWorkerState enum. (no review, minor obviously-correct patch to fix local build bustage)
2015-01-26 10:31:38 -08:00
Nikhil Marathe
32a624145e
Bug 1043701 - Fire statechange event on ServiceWorker instances. r=baku
...
Folded:
Various registration related UpdateState() calls and abort on failure to create a service worker.
Set ServiceWorker instances state based on corresponding ServiceWorkerInfo state.
--HG--
extra : rebase_source : 43e519457c640b07f4358484b435aa1de581a668
2014-12-19 03:25:56 -08:00
Nikhil Marathe
0c086acc76
Bug 1089778 - ServiceWorkerRegistration is keyed by scope for event dispatch and invalidation. r=baku
...
--HG--
extra : rebase_source : 012bcfa0aef20bc6b79e030cb7439f03799e9370
2014-10-27 11:52:57 -07:00
Ehsan Akhgari
a3a8837e15
Bug 1118428 - Mark virtual overridden functions as MOZ_OVERRIDE in dom/workers; r=baku
2015-01-06 16:35:26 -05:00
Nikhil Marathe
4cf96ddcba
Bug 1058043 - Patch 2 - StopListeningForEvents in ServiceWorkerRegistration destructor. r=baku
...
--HG--
extra : rebase_source : 224f28dcb1b9604916cbdd53bf4690ef32d71be9
2014-08-27 13:33:20 -07:00
Andrea Marchesini
2fbc05383c
Bug 1058043 - ServiceWorkerRegistration should not keep a reference to the window, r=nsm
2014-08-26 09:17:36 +01:00
Andrea Marchesini
c36595a55e
Bug 1056259 - ServiceWorkerRegistration should unregister itself when the window is destroyed. r=nsm
2014-08-20 13:30:00 -04:00
Andrea Marchesini
bd3a7549ff
Bug 1043004 - Update ServiceWorkerContainer API to spec. r=bkelly
2014-08-19 09:56:00 -04:00