Commit Graph

22 Commits

Author SHA1 Message Date
Boris Zbarsky
dc24477d79 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
5ffa8c89b7 Bug 1130688 - Implement additional scope checking in service worker registration. r=bkelly,ehsan
--HG--
extra : amend_source : 19663c098313445da8c3c271cea59dc366207d43
extra : transplant_source : %CFl%F7%92%0B%22%5D%CB%10%DE%B6%3F%19%1AW%DA%D9%0FS%85
2015-03-09 18:57:06 -07:00
Ehsan Akhgari
0996dfac83 Bug 1140120 - Remove a couple of unused test functions on ServiceWorkerContainer; r=baku 2015-03-06 08:19:32 -05:00
Nikhil Marathe
ab3efc22ff Bug 1081293 - Silently ignore lack of ServiceWorkerManager when shutting down ServiceWorkerContainer. r=baku
--HG--
extra : rebase_source : 65066288a5cec4bb9e97adbaf6bbe9cd32835394
extra : amend_source : b3e2cd0f05150d290050d99926fb0d48659929d4
2015-01-23 11:23:55 -08:00
Nikhil Marathe
d374da2039 Bug 1113555 - Update ServiceWorker registration lifecycle. r=baku
Folded:
Allow file: serviceworkers
Registration fixes WIP
Queue updatefound instead of immediately firing
Initial "atomically" steps of registration should also be a part of the job
Fix some compiler errors
Be sure not to null out various workers too early during activation
Integrated ServiceWorkerGlobalScope::Update into the ServiceWorkerRegisterJob.

--HG--
extra : rebase_source : 14dd02d18e1209147acd3fd118807c9bd8d4d300
2014-12-19 02:00:29 -08:00
Andrea Marchesini
c33db444da Bug 1025077 - patch 2 - ServiceWorkerContainer should unregister its promise on dtor, r=nsm 2014-08-28 17:04:51 +01:00
Andrea Marchesini
51c5e60fe1 Bug 1025077 - Implement ServiceWorkerContainer.ready, r=nsm 2014-08-26 09:16:03 +01:00
Nikhil Marathe
231b875967 Bug 1057135 - ServiceWorkerManager::Register() uses entry global. r=ehsan
--HG--
extra : transplant_source : %B1%3F%EA%17%81%DB%D6%EC%8A%86%3C%EE%D7%A9x%C7%0B%CD2%A0
2014-08-21 16:31:12 -07:00
Andrea Marchesini
401a133406 Bug 1002571 - Implement navigator.serviceWorker.getRegistrations. r=nsm 2014-08-20 11:40:00 -04:00
Andrea Marchesini
1355a04e72 Bug 1043004 - Update ServiceWorkerContainer API to spec. r=bkelly 2014-08-19 09:56:00 -04:00
Lynn Tran
7bec1a6b6d Bug 1041335 - Add a mozilla::services getter for nsIServiceWorkerManager; r=ehsan 2014-08-18 21:13:14 -04:00
Nikhil Marathe
721e6c9846 Bug 1002570 - Return valid ServiceWorker instances for .installing, .waiting, .active and .controller. r=ehsan
--HG--
extra : transplant_source : %B2%1D%A4%8D%04%E9%BE%D9%C1%CC%C89%F0%07%07%15%B1Df%F1
2014-07-23 14:05:08 -07:00
Boris Zbarsky
92fb7dde3a Bug 1040263. Eagerly create and preserve Promise reflectors so we always have them available during unlink. r=nsm,bholley. 2014-07-18 21:31:11 -04:00
Nikhil Marathe
77a88e4eeb Bug 983497 - Patch 1: Infrastructure to fire events on ServiceWorkerContainers. r=ehsan,smaug
--HG--
extra : transplant_source : S1z%F3%86%E5%CF%D6%3BWW%8E%1A%90%A3%94%7E%FE%E3z
2014-07-14 14:15:23 -07:00
Nikhil Marathe
98d53f31bc Bug 984048 - Patch 6 - Scope ordering and utility functions. r=ehsan,khuey
Added r=khuey via IRC to validate webidl DOM peer check.

--HG--
extra : rebase_source : 0aa1a6bcdc0f2ec8c5cd8af44d39afb62b1d4abf
2014-07-11 11:52:19 -07:00
Nikhil Marathe
4a3b901700 Bug 1025082 - ServiceWorker related WebIDL changes. r=ehsan,jst
--HG--
extra : amend_source : c8d89097ddfb423ba2eb39beb469c48b69944a89
2014-06-17 11:01:28 -07:00
Nikhil Marathe
38e0d68766 Bug 984048: Part 1 - ServiceWorkerManager Register(). r=ehsan 2013-11-19 15:15:02 -08:00
Ryan VanderMeulen
4b8339eede Backed out changeset 3add0c55a799 (bug 984048) for mochitest-e10s timeouts. 2014-05-29 15:02:41 -04:00
Nikhil Marathe
fc4217adba Bug 984048: Part 1 - ServiceWorkerManager Register(). r=ehsan 2013-11-19 15:15:02 -08:00
Nikhil Marathe
9785376d60 Bug 930348 - window.navigator stubs for ServiceWorker. r=ehsan,bent
--HG--
extra : rebase_source : ac9bc321c679cbf7045c9d32d1001c5d87d68c69
2013-11-19 15:14:07 -08:00
Ryan VanderMeulen
82d24eb10c Backed out changeset c189d09ec942 (bug 930348) for B2G desktop bustage.
CLOSED TREE
2014-05-13 15:33:58 -04:00
Nikhil Marathe
b7f44d85a7 Bug 930348 - window.navigator stubs for ServiceWorker. r=ehsan,bent
--HG--
extra : rebase_source : 291219bb284967790bdbbc1f456b88d5f6baacc1
2013-11-19 15:14:07 -08:00