Commit Graph

172 Commits

Author SHA1 Message Date
Wes Kocher
3ddd04bd7d Backed out changeset 5555ee7490fb (bug 1113631) for asan mochitest-4 bustage on a CLOSED TREE 2015-01-23 19:51:33 -08:00
Wes Kocher
9a6d8ea64e Backed out changeset 5ed6d1902cc7 (bug 1113621) for asan mochitest-4 bustage on a CLOSED TREE
--HG--
rename : dom/webidl/ExtendableEvent.webidl => dom/webidl/InstallPhaseEvent.webidl
2015-01-23 19:49:51 -08:00
Wes Kocher
d002e5fc4b Backed out changeset 3ff80c877212 (bug 1113627) for asan mochitest-4 bustage on a CLOSED TREE 2015-01-23 19:49:39 -08:00
Nikhil Marathe
8b4174b259 Bug 1113631 - Remove registration when installation failure occurs. Fixes spec issue #547. r=baku
--HG--
extra : rebase_source : aa6421ca130625f7e6c7aba8e866048cc3d5b5a4
2014-11-05 14:43:51 -08:00
Nikhil Marathe
085d20b0ae Bug 1113627 - Refactor lifecycle event dispatching and handling. r=baku
--HG--
extra : rebase_source : 548af9014c8a6bf701736289e82f55f02f408ac0
2014-12-19 05:01:53 -08:00
Nikhil Marathe
bb20c13405 Bug 1113621 - Rename InstallPhaseEvent to ExtendableEvent. r=baku
Change Exposed=ServiceWorker for all ServiceWorker events.
Move Func= exposure check to ServiceWorker.

--HG--
rename : dom/webidl/InstallPhaseEvent.webidl => dom/webidl/ExtendableEvent.webidl
extra : rebase_source : c9d314c6cffd577ab7309eb9e39e7d80f2f294f7
2014-11-06 07:57:57 -08:00
Nikhil Marathe
f59c428a7b Bug 1113619 - Abort on lifecycle event handler errors. r=baku
Folded:
Handle install event listener errors and fail installation
Activate handler runtime errors should lead to activation failure.

--HG--
extra : rebase_source : 5e5409346cb3999d29a1e624edc640653b9c0475
2014-12-19 04:45:07 -08:00
Nikhil Marathe
b28384d250 Bug 1113582 - ServiceWorker parse errors are now properly handled during the Update phase. r=baku,bz
Folded:
Enable network error detection test. Fix scopes for network test and parse...

... test to deal with https://github.com/slightlyoff/ServiceWorker/issues/547

--HG--
extra : rebase_source : bbe594b231f1ea878fba78f6594483d6dbd72424
2014-12-19 02:48:31 -08:00
Nikhil Marathe
fbe18cf922 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
0bb964a725 Bug 1113587 - Fire controllerchange event on controlled documents ServiceWorkerContainer. r=baku
--HG--
extra : rebase_source : cad64bf4ec965906f6268a02e83bcb089cdd2f5e
2014-10-28 13:11:31 -07:00
Nikhil Marathe
1769f1b983 Bug 1089778 - ServiceWorkerManager NS_WARN_IF compiler error. a=bustage 2015-01-23 11:53:23 -08:00
Nikhil Marathe
076d17e308 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
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
449657cc1a Bug 1065366 - Implement ServiceWorkerGlobalScope update(), r=nsm
--HG--
extra : rebase_source : abdca619a27b46693ead93a6f468a40b2eeab2cf
2014-10-06 16:45:14 +01:00
Ben Turner
2be368dceb Bug 701634 - Support IndexedDB in Workers, r=khuey+baku. 2014-12-16 22:26:15 -08:00
Ben Kelly
28e0242799 Bug 1107516 - Part 3: Make sure all workers have an nsILoadGroup when loading scripts. r=sicking, r=bent 2014-12-12 11:06:00 -05:00
Wes Kocher
126b4f108e Backed out changeset bf25101e66cf (bug 1095098) for build bustage 2014-12-08 16:27:12 -08:00
Denis Volk
0f94bddfc8 Bug 1095098: move do_QueryObject templates into their own header r=froydnj 2014-11-20 12:20:10 +01:00
Tom Tromey
5bbf671871 Bug 1101819 - Check result of ToJSValue. r=nsm 2014-11-19 13:38:00 -05:00
Catalin Badea
0bfc866519 Bug 982726 - Patch 1.5 - Update getServiced test and fix an assert when the registration has been removed. r=baku 2014-11-04 13:04:00 +01:00
Catalin Badea
610145e67c Bug 982726 - Patch 1.1 - Service Worker: ServiceWorkerClients and Client interfaces with getServiced(). r=baku 2014-10-27 12:03:00 +01:00
Ehsan Akhgari
dee315315e Bug 1072310 - Build more DOM code in unified mode; r=baku
--HG--
extra : rebase_source : a34dbc7323238d5f83a0144b62a6c52c3e6c54dc
2014-09-25 10:12:06 -04:00
Andrea Marchesini
7396255880 Bug 982728 - Implement ServiceWorkerGlobalScope unregister(), r=nsm 2014-09-10 11:21:32 -04:00
Andrea Marchesini
5d8e4ad449 Bug 1065109 - Remove the MOZ_ASSERT(IsControllingDocuments()) in ServiceWorkerManager CLOSED TREE, r=nsm 2014-09-09 18:01:07 -04:00
Ryan VanderMeulen
8be77b965e Backed out 4 changesets (bug 982726) for the same serviceworker perma-fails it hit last time it landed.
Backed out changeset 9674f68df2e5 (bug 982726)
Backed out changeset 9d397edb8e9a (bug 982726)
Backed out changeset ebe7add5dd11 (bug 982726)
Backed out changeset 2771520aa1b9 (bug 982726)
2014-09-03 21:45:30 -04:00
Catalin Badea
ac388bcb58 Bug 982726 - Patch 1 - Service Worker: ServiceWorkerClients and Client interfaces with getServiced(). r=baku
--HG--
extra : rebase_source : f8dd649fd30cfffb2a361aa24868e83413e7b54c
2014-08-27 10:24:09 -07:00
Wes Kocher
9e0a82dbec Backed out 4 changesets (bug 982726) for mochitest-4 bustage
Backed out changeset 547076d4a357 (bug 982726)
Backed out changeset 095ca68e5d38 (bug 982726)
Backed out changeset 05acfcc7a341 (bug 982726)
Backed out changeset 9244a16c3258 (bug 982726)
2014-09-02 19:09:38 -07:00
Catalin Badea
a2d3be8aeb Bug 982726 - Patch 1 - Service Worker: ServiceWorkerClients and Client interfaces with getServiced(). r=baku
--HG--
extra : transplant_source : %06f%1C%BE%29%D4F%BAeN%0CI_%93y%8A%8FE%E5%BB
2014-08-27 10:24:09 -07:00
Nikhil Marathe
d185ce387a Bug 1057933 - ServiceWorkerRegistrations should use scope and not window to obtain workers. r=baku
--HG--
extra : rebase_source : 299337329af979f091fefd6b2d1ef202c547c5ed
2014-08-24 22:35:03 -07:00
Andrea Marchesini
82b446b143 Bug 1059174 - Allow ServiceWorkers over http on localhost, r=nsm 2014-09-02 21:07:55 +01:00
Ehsan Akhgari
1b1d6ffebf Bug 1061023 - Fix more bad implicit constructors in DOM; r=baku
--HG--
extra : rebase_source : c80c5f9d7ae28286513cdb52ad76b46c240bdd5d
2014-09-01 18:26:43 -04:00
Nikhil Marathe
d32849655e 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
51c5e60fe1 Bug 1025077 - Implement ServiceWorkerContainer.ready, r=nsm 2014-08-26 09:16:03 +01:00
Nikhil Marathe
46efeb2c68 Bug 1057135 - Use MOZ_ASSERT. r=ehsan
--HG--
extra : amend_source : d6317642ffd394b129857372826edf09783d09b7
extra : transplant_source : o%1E%D7n%C9%BAe%FD%81%E1%9F%03%7D%8F%5El7%A1O%D7
2014-08-22 15:19:37 -07:00
Nikhil Marathe
948ebc5e2c Bug 1057135 - Use MOZ_CRASH and not MOZ_ASSERT. Typo. r=bustage
--HG--
extra : transplant_source : %3B%E1D%F7%22%2C%E6x%A3d%0B%87t%08%B7%A3%05%BDs%DA
2014-08-22 15:01:06 -07: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
Nikhil Marathe
a5dc9951ad Bug 1057136 - ServiceWorkers use longest-match for scopes. r=ehsan,bz
--HG--
extra : rebase_source : e037a3c0f7d0923a5b6f5a06afe9f22abb91d5de
2014-08-21 16:38:40 -07:00
Nikhil Marathe
ac703e92cb Bug 1011268 - Unregister algorithm. r=ehsan
--HG--
extra : rebase_source : 134f7db35f039891775cf45a6bfd2146e03b8e75
2014-07-14 10:33:44 -07:00
Andrea Marchesini
f4a5ca4d21 Bug 1056259 - ServiceWorkerRegistration should unregister itself when the window is destroyed. r=nsm 2014-08-20 13:30:00 -04: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
Bobby Holley
e70ddb7476 Bug 1052052 - Hoist Auto*JSContext into nsContentUtils and kill nsCxPusher.{cpp,h}. r=gabor 2014-08-14 18:47:15 -07:00
Ryan VanderMeulen
30ae466592 Backed out changesets 5b1a3161f614, 17a9673ed782, and a9b8c346d295 (bug 1052052) for B2G non-unified bustage. 2014-08-14 17:23:10 -04:00
Bobby Holley
3e4d70a655 Bug 1052052 - Hoist Auto*JSContext into nsContentUtils and kill nsCxPusher.{cpp,h}. r=gabor 2014-08-14 12:54:34 -07:00
Andrea Marchesini
60e99f3cd4 Bug 1047398 - ServiceWorker should use WeakRef instead nsTWeakRef, r=smaug 2014-08-01 17:42:19 +01:00
Ehsan Akhgari
3fa82c9346 Bug 1045436 - Fix more bad implicit constructors in XPCOM; r=froydnj 2014-07-29 20:43:56 -04:00
Ehsan Akhgari
dcf416b927 Bug 1044598 - Part 2: Make ServiceWorkerManager::GetServiceWorkerRegistration honor XPCOM rules; r=smaug 2014-07-28 09:57:31 -04:00
Ryan VanderMeulen
ebbb39773f Backed out changesets c6691cff88a4 and 43a7db7bf902 (bug 1044598) for bustage.
CLOSED TREE
2014-07-28 11:08:12 -04:00
Ehsan Akhgari
9196c1ddd0 Bug 1044598 - Part 2: Make ServiceWorkerManager::GetServiceWorkerRegistration honor XPCOM rules; r=smaug
--HG--
extra : rebase_source : 6fcd656cae5db25b99c70a6d2c901409fb751755
2014-07-28 09:57:31 -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
Nikhil Marathe
0430f40e80 Bug 984048: Part 8 - Activate algorithm. r=ehsan,bent
--HG--
extra : rebase_source : 366eabae6bbd60f3223725da31c7175e6b3603db
2014-07-11 13:07:59 -07:00
Nikhil Marathe
1a6cd2110f Bug 984048 - Add non-null installing worker check to FinishInstall. r=ehsan
--HG--
extra : rebase_source : bb459bc5bddca875099584446c65b2909f92b343
2014-07-22 18:18:48 -07:00
Nikhil Marathe
4fad78d9c2 Bug 984048 - Part 7 - Documents register themselves with corresponding ServiceWorkerInfo. r=bz
--HG--
extra : transplant_source : %FD%9BD%8C%E4a%A9%CB9%17L%EE%E38%11%A1t%8A%3Bs
2014-07-20 23:25:44 -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
ffd3a07c65 Bug 983497 - Patch 2: Fire updatefound on ServiceWorkerContainers. r=ehsan
--HG--
extra : transplant_source : %98%1B%D73y%CF%A9%3Fb%DAR%DC%25%A9S%15%22%CF%C4%1B
2014-07-11 16:00:52 -07: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
Benoit Jacob
cb33a38711 Bug 1028588 - Fix more, recently introduced dangerous public destructors - r=ehsan 2014-07-05 16:35:35 -04:00
Nikhil Marathe
20b913a8fb Bug 984048 - Patch 5 - ServiceWorker [[Install]] algorithm. r=ehsan, khuey
--HG--
extra : rebase_source : 6c710937fde2ebe679908690c1295927eb4c195d
2014-07-02 17:48:50 -07:00
Nikhil Marathe
a58ac47144 Bug 984048 - Patch 4 - Handle parse and uncaught errors. r=khuey
--HG--
extra : rebase_source : 463146233c874c2f2c63c018f2a43a66ca9ea49a
2014-07-02 17:48:35 -07:00
Wes Kocher
40b922a6e4 Backed out 3 changesets (bug 984048) for breaking hazard builds.
Backed out changeset 2d0c34b7045f (bug 984048)
Backed out changeset c18211a2afa1 (bug 984048)
Backed out changeset 30fa36882d57 (bug 984048)
2014-07-01 20:29:08 -07:00
Nikhil Marathe
012736aea3 Bug 984048 - Patch 5 - ServiceWorker [[Install]] algorithm. r=ehsan, khuey 2014-07-01 16:43:22 -07:00
Nikhil Marathe
80b377d13a Bug 984048 - Patch 4 - Handle parse and uncaught errors. r=khuey 2014-07-01 16:43:13 -07:00
Ryan VanderMeulen
a510b05849 Backed out changesets bacfdc83424a and 7d12b5d7446f (bug 984048) for crashes. 2014-06-30 17:22:47 -04:00
Nikhil Marathe
d79746f50d Bug 984048 - Patch 5 - ServiceWorker [[Install]] algorithm. r=ehsan, khuey
--HG--
extra : rebase_source : 5f9d890c655d7f5e77851a8a3bd6b6fd3f9bf108
2014-06-30 13:31:24 -07:00
Nikhil Marathe
f66104b587 Bug 984048 - Patch 4 - Handle parse and uncaught errors. r=khuey
--HG--
extra : rebase_source : 9cc36dea950be96fba079877c2d67b76f8383635
2014-06-30 13:31:02 -07:00
Nikhil Marathe
08d119358f Bug 984048: Part 3 - Update algorithm. r=ehsan,khuey
--HG--
extra : rebase_source : 5e80b118faeea419cfebbc2d1060cd2a1a61bcba
2014-06-11 09:12:56 -07:00
Nikhil Marathe
fa1c34c4be Bug 984048 - Register should ignore scope fragment. r=ehsan 2014-06-17 13:03:11 -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