Commit Graph

117 Commits

Author SHA1 Message Date
Nikhil Marathe
3e3ec7b71d 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
474cc9bc5e 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
ff63905ce5 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
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
0430c85e85 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
444e443a46 Bug 1089778 - ServiceWorkerManager NS_WARN_IF compiler error. a=bustage 2015-01-23 11:53:23 -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
Nikhil Marathe
595bb41b83 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
4a775b3930 Bug 1065366 - Implement ServiceWorkerGlobalScope update(), r=nsm
--HG--
extra : rebase_source : abdca619a27b46693ead93a6f468a40b2eeab2cf
2014-10-06 16:45:14 +01:00
Ben Turner
5976259500 Bug 701634 - Support IndexedDB in Workers, r=khuey+baku. 2014-12-16 22:26:15 -08:00
Ben Kelly
0422e2eb55 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
c659ea6bce Backed out changeset bf25101e66cf (bug 1095098) for build bustage 2014-12-08 16:27:12 -08:00
Denis Volk
c3639f1324 Bug 1095098: move do_QueryObject templates into their own header r=froydnj 2014-11-20 12:20:10 +01:00
Tom Tromey
4c96b930ca Bug 1101819 - Check result of ToJSValue. r=nsm 2014-11-19 13:38:00 -05:00
Catalin Badea
769651290f 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
f841511972 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
8d05436942 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
072f88419c Bug 982728 - Implement ServiceWorkerGlobalScope unregister(), r=nsm 2014-09-10 11:21:32 -04:00
Andrea Marchesini
38fded5695 Bug 1065109 - Remove the MOZ_ASSERT(IsControllingDocuments()) in ServiceWorkerManager CLOSED TREE, r=nsm 2014-09-09 18:01:07 -04:00
Ryan VanderMeulen
3164f3e5f7 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
27f6269f74 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
5580b0eaf5 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
70e37013d7 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
9485470265 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
c215c6b6bf Bug 1059174 - Allow ServiceWorkers over http on localhost, r=nsm 2014-09-02 21:07:55 +01:00
Ehsan Akhgari
bc7cc3893c 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
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
4c908a6e53 Bug 1025077 - Implement ServiceWorkerContainer.ready, r=nsm 2014-08-26 09:16:03 +01:00
Nikhil Marathe
c27bb9264b 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
c7acebc632 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
e8762c026e 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
e191a967d9 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
99ab26d803 Bug 1011268 - Unregister algorithm. r=ehsan
--HG--
extra : rebase_source : 134f7db35f039891775cf45a6bfd2146e03b8e75
2014-07-14 10:33:44 -07: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
93621e30cd Bug 1002571 - Implement navigator.serviceWorker.getRegistrations. r=nsm 2014-08-20 11:40:00 -04:00
Andrea Marchesini
bd3a7549ff Bug 1043004 - Update ServiceWorkerContainer API to spec. r=bkelly 2014-08-19 09:56:00 -04:00
Lynn Tran
36bc853044 Bug 1041335 - Add a mozilla::services getter for nsIServiceWorkerManager; r=ehsan 2014-08-18 21:13:14 -04:00
Bobby Holley
7c7704aa07 Bug 1052052 - Hoist Auto*JSContext into nsContentUtils and kill nsCxPusher.{cpp,h}. r=gabor 2014-08-14 18:47:15 -07:00
Ryan VanderMeulen
7c3098f03b Backed out changesets 5b1a3161f614, 17a9673ed782, and a9b8c346d295 (bug 1052052) for B2G non-unified bustage. 2014-08-14 17:23:10 -04:00
Bobby Holley
e5da39b71b Bug 1052052 - Hoist Auto*JSContext into nsContentUtils and kill nsCxPusher.{cpp,h}. r=gabor 2014-08-14 12:54:34 -07:00
Andrea Marchesini
042b7cf53f Bug 1047398 - ServiceWorker should use WeakRef instead nsTWeakRef, r=smaug 2014-08-01 17:42:19 +01:00
Ehsan Akhgari
38ec6af068 Bug 1045436 - Fix more bad implicit constructors in XPCOM; r=froydnj 2014-07-29 20:43:56 -04:00
Ehsan Akhgari
29e9acc005 Bug 1044598 - Part 2: Make ServiceWorkerManager::GetServiceWorkerRegistration honor XPCOM rules; r=smaug 2014-07-28 09:57:31 -04:00
Ryan VanderMeulen
7fd54e73a0 Backed out changesets c6691cff88a4 and 43a7db7bf902 (bug 1044598) for bustage.
CLOSED TREE
2014-07-28 11:08:12 -04:00
Ehsan Akhgari
15881d17fe 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
a0036c576d 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
144f4ed277 Bug 984048: Part 8 - Activate algorithm. r=ehsan,bent
--HG--
extra : rebase_source : 366eabae6bbd60f3223725da31c7175e6b3603db
2014-07-11 13:07:59 -07:00
Nikhil Marathe
5046cd6a14 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
5f5ae44de2 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
c03ab46f93 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
3d3aa2f19f 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
6fdc708536 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
1c5af4824d 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
49fdae91d7 Bug 1028588 - Fix more, recently introduced dangerous public destructors - r=ehsan 2014-07-05 16:35:35 -04:00
Nikhil Marathe
37c5d788b2 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
4d7bfd252f 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
bbc09af3cc 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
b41666bc6b Bug 984048 - Patch 5 - ServiceWorker [[Install]] algorithm. r=ehsan, khuey 2014-07-01 16:43:22 -07:00
Nikhil Marathe
8ece823137 Bug 984048 - Patch 4 - Handle parse and uncaught errors. r=khuey 2014-07-01 16:43:13 -07:00
Ryan VanderMeulen
6b74ec8899 Backed out changesets bacfdc83424a and 7d12b5d7446f (bug 984048) for crashes. 2014-06-30 17:22:47 -04:00
Nikhil Marathe
88457821f1 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
40400978a6 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
ce740561d8 Bug 984048: Part 3 - Update algorithm. r=ehsan,khuey
--HG--
extra : rebase_source : 5e80b118faeea419cfebbc2d1060cd2a1a61bcba
2014-06-11 09:12:56 -07:00
Nikhil Marathe
0b7bf13a5f Bug 984048 - Register should ignore scope fragment. r=ehsan 2014-06-17 13:03:11 -07:00
Nikhil Marathe
54617d96df Bug 984048: Part 1 - ServiceWorkerManager Register(). r=ehsan 2013-11-19 15:15:02 -08:00
Ryan VanderMeulen
4511841a1f Backed out changeset 3add0c55a799 (bug 984048) for mochitest-e10s timeouts. 2014-05-29 15:02:41 -04:00
Nikhil Marathe
ac310b5cde Bug 984048: Part 1 - ServiceWorkerManager Register(). r=ehsan 2013-11-19 15:15:02 -08:00