Commit Graph

1589 Commits

Author SHA1 Message Date
Nikhil Marathe
9ecfa34d9b Bug 1131327 - Patch 10 - Remember to remove the feature. r=baku
--HG--
extra : rebase_source : 3bc133e8e22dce4b65cb0b90db7b806a2ad96eef
2015-04-17 16:44:58 -07:00
Nikhil Marathe
de1f3a4bf5 Bug 1131327 - Patch 9 - Fix windows compiler macro error. r=baku
--HG--
extra : rebase_source : d11b7bce9a2a1cc7c3b40262e5cec4aba32886f5
2015-04-16 12:53:14 -07:00
Nikhil Marathe
e4c89a3bc6 Bug 1131327 - Patch 8 - Return null on worker attribute access. r=baku
--HG--
extra : rebase_source : 3d959ca15e2d669220882c0611b2235ee3291bf0
2015-04-14 16:12:59 -07:00
Nikhil Marathe
a24add821f Bug 1131327 - Patch 7 - Fire updatefound on worker registration. r=baku
--HG--
extra : rebase_source : d87fd98d37ee45fb592a0fba764b099485df7cb3
2015-04-08 15:22:36 -07:00
Nikhil Marathe
d7b71e8fbf 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.

--HG--
extra : rebase_source : 7b9753742b3dd6e416057fdee528b0d2067c55a9
2015-04-08 13:13:32 -07:00
Nikhil Marathe
e1029f2748 Bug 1131327 - Patch 5 - Implement ServiceWorkerRegistration.unregister() on worker. r=baku
--HG--
extra : rebase_source : f8beb830277b9351673ccfd42b7b0a25516fb4dd
2015-04-07 14:17:02 -07:00
Nikhil Marathe
279301faf2 Bug 1131327 - Patch 4 - Implement ServiceWorkerRegistration.update() on worker. r=baku
ServiceWorkerGlobalScope::Registration() now returns initialized registration.

--HG--
extra : rebase_source : 6c07c86c0ddc4b3d714ebc423ff40282217d7f4c
2015-04-07 11:50:08 -07:00
Nikhil Marathe
d9d452e06b Bug 1131327 - Patch 3 - move event listeners to main thread class. r=baku
--HG--
extra : rebase_source : 66145d7dbddd0e0a89164ffa7a3dd2805e3a609b
2015-04-07 13:09:07 -07:00
Nikhil Marathe
5b54bf699f 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.

--HG--
extra : rebase_source : ae1b59d5ee3b3522826ed59fcfcb31e009018ac3
2015-04-03 22:46:07 -07:00
Nikhil Marathe
3f0efb4e4d Bug 1131327 - Patch 1 - Introduce ServiceWorkerRegistration{Base,MainThread,WorkerThread} r=baku
--HG--
extra : rebase_source : 352f05447f45a9dfa651bf683d22659b83508814
2015-04-03 15:18:55 -07:00
Nikhil Marathe
e8ed488816 Bug 1131350 - Move update() to ServiceWorkerRegistration. r=baku
--HG--
extra : rebase_source : 0483ec35b9b53c4970afaf76ff3b8a6f92120e34
2015-03-19 18:09:10 -07:00
Jan de Mooij
103a223716 Bug 1155946 part 1 - Add a mayResolve class hook to optimize objects with resolve hooks better. r=bhackett 2015-04-23 15:51:28 +02:00
Ehsan Akhgari
19615bcc2a Bug 1157544 - Fix a typo in the test; r=baku 2015-04-23 08:31:29 -04:00
Andrea Marchesini
8bef21375a Bug 1155546 - Implement WorkerControlRunnable::Cancel(), r=bent 2015-04-22 09:03:52 +02:00
Andrea Marchesini
e666f02521 Bug 1156632 - Remove unused forward class declarations - patch 2 - dom/media, dom/indexedDB, dom/svg, r=ehsan 2015-04-22 08:29:17 +02:00
Rahul
cc5d6147ae Bug 1152473 - Remove InstallEvent. r=nsm,ehsan
--HG--
extra : rebase_source : f2c7f7069f4b0606d3185d5be9255d1ae20fea1e
2015-04-20 18:47:13 -07:00
Ehsan Akhgari
3b9c04bb47 Bug 1156432 - Part 2: Use different error messages for the hello-after-extracting.gz test; r=nsm
This helps make it eaiser to tell whether this or the hello.gz
test failed by just looking at the logs.
2015-04-21 00:25:15 -04:00
Ehsan Akhgari
97eba20d5d Bug 1156432 - Part 1: Unregister the service worker when we are done with it; r=nsm
This lets us for example use the --run-until-failure mochitest option.
2015-04-21 00:25:08 -04:00
Ehsan Akhgari
20c06b408e Bug 1155989 - Dump the rejection of the promise returned by ServiceWorkerRegistration.unregister() in our tests; r=nsm 2015-04-21 00:24:44 -04:00
Ehsan Akhgari
c6e94fa106 Bug 1155988 - Use the ready promise more often in service worker tests; r=nsm 2015-04-21 00:23:22 -04:00
Ehsan Akhgari
d84695c24e Bug 1155987 - Unregister the service workers registered in tests; r=nsm
Without this, test_periodic_update.html is going to try to update all
of them which is unnecessary.
2015-04-21 00:21:30 -04:00
Ben Kelly
24a3dd7de7 Bug 1151974 P2 Re-enable serviceworkers/test_periodic_update.html. r=ehsan 2015-04-20 11:14:57 -07:00
Denis Volk
32e981896d Bug 1095098 - move do_QueryObject templates into their own header; r=froydnj 2015-04-15 12:47:03 -04:00
Jim Blandy
ebd83c9a61 Bug 1152577: Add 'aReason' argument to AutoEntryScript constructor, and provide plausible names for its instantiations. r=bholley
--HG--
extra : rebase_source : 8ab7a3628a5b4d94b957f24e23e4c5c7871db97c
2015-04-08 21:23:48 -04:00
Wes Kocher
5e1fa12171 Bug 1154813 - Typo fix that broke builds CLOSED TREE 2015-04-17 16:06:54 -07:00
Nikhil Marathe
d400efdfdc Bug 1137287 - Part 0: Test for synthesized redirects. r=jdm 2015-02-26 11:53:51 -05:00
Josh Matthews
3ed5032f57 Bug 1154813 - Enable test_fetch_event.html on linux. r=nsm 2015-04-17 16:11:10 -04:00
Ehsan Akhgari
af9d1cc526 Bug 1112469 follow-up: Disable the test everywhere for now since it seems that bug 1151974 hits more than just Windows
Landed on a CLOSED TREE
2015-04-17 15:12:11 -04:00
Ehsan Akhgari
aa1876514b Bug 1112469 - Part 5: Actually test the code path that handles the idle-daily message; r=nsm
This is much better than testing just the
nsIServiceWorkerManager::UpdateAllRegistrations API.
2015-04-17 14:06:18 -04:00
Ehsan Akhgari
6cff744014 Bug 1112469 - Part 4: Disable periodic updates of service workers when running tests; r=nsm
This is meant to avoid random issues with Gecko suddenly kicking off the
periodic updates in the middle of our test runs.  This uses a hidden pref
intentionally since nobody should be able to discover this pref by going
to about:config.
2015-04-17 14:06:02 -04:00
Ehsan Akhgari
574ec745b0 Bug 1112469 - Part 3: Add a unit test for ensuring that the nsIServiceWorkerManager.updateAllRegistrations() API works correctly; r=nsm 2015-04-17 14:05:05 -04:00
Ehsan Akhgari
44e6522def Bug 1112469 - Part 2: Update the service workers in the parent and all child processes every day; r=nsm 2015-04-17 14:01:21 -04:00
Ehsan Akhgari
41df4b9686 Bug 1112469 - Part 1: Implement an XPCOM service responsible to trigger daily updates of service workers; r=nsm
--HG--
rename : dom/base/nsDOMCID.h => dom/workers/ServiceWorkerPeriodicUpdater.cpp
rename : dom/base/nsDOMCID.h => dom/workers/ServiceWorkerPeriodicUpdater.h
2015-04-17 13:59:49 -04:00
Ehsan Akhgari
dc30989a71 Bug 1148942 - Ensure that the registration of empty service workers succeeds; r=bent 2015-04-16 18:18:20 -04:00
Nathan Froyd
d876b3e545 Bug 870891 - move DIST_FILES to moz.build; r=mshal 2015-04-15 16:04:49 -04:00
Valentin Gosu
f2c9e3a737 Bug 1149913 - Disable bug 1093611. Set pref dom.url.encode_decode_hash to true r=honzab 2015-04-16 05:25:10 +03:00
Boris Zbarsky
0f4c42d994 Bug 1154878 followup. Fix a test that expects to see navigator.taintEnabled in workers so we can reopen the CLOSED TREE. 2015-04-15 17:37:58 -04:00
Boris Zbarsky
37e96c22d5 Bug 1154812. Fix location.pathname to return the right thing in workers. r=baku 2015-04-15 16:32:53 -04:00
Andrea Marchesini
3faaae83fb Bug 1154721 - Add an "Unregister" button to about:serviceworkers, r=ehsan 2015-04-15 18:11:17 +01:00
Ehsan Akhgari
1d0a36b48b Bug 1154563 - Drop the unused argument of WorkerPrivate::Close(); r=baku 2015-04-15 09:24:22 -04:00
Nikhil Marathe
3927633b56 Bug 1151916 - Set worker principalinfo on cache load. r=bkelly
--HG--
extra : rebase_source : ac5c81a995badf835a9d81f76d674c55c38bd6bb
2015-04-10 14:14:44 -07:00
Ms2ger
f1fc41b0e5 Bug 949614 - Use === for SimpleTest.is; r=Waldo
This is more likely to be correct, and a necessary step in case we ever want
to move to Object.is.

This keeps ise as an alias for is, and introduces is_loosely for the old
behaviour.
2015-04-14 15:28:13 +02:00
David Rajchenbach-Teller
b08ce98d2a Bug 1083361 - Exposing a PromiseDebugging API to monitor uncaught DOM Promise. r=bz
--HG--
extra : rebase_source : cba2fc37d263d431c3008739a89a4fe47d10b7da
2015-04-10 17:27:57 +02:00
Doug Turner
9c9d8e38df Bug 1038811 - Push Notifications - ServiceWorker changes, push event implementation. r=nsm 2015-04-10 20:19:28 -07:00
Doug Turner
3dc192b085 Bug 1038811 - Push Notifications - Tests. r=nsm 2015-04-10 20:19:28 -07:00
Doug Turner
c3022641a3 Bug 1151664 - Make claim return undefined for now. r=nsm 2015-04-10 20:19:28 -07:00
Andrea Marchesini
81daef00e3 Bug 1133601 - Implement about:serviceworkers, r=ehsan 2015-04-10 09:50:06 +01:00
Andrea Marchesini
590d964eff Bug 1152602 - dom/workers/test/serviceworkers/importscript.sjs should return an error at the second request, r=ehsan 2015-04-10 09:45:51 +01:00
Ben Turner
94a12266fb Bug 1151646 - Fix static analysis bustage. 2015-04-08 18:49:38 -07:00
Ben Turner
8f3a68440b Bug 1151646 - Cleanup, r=khuey. 2015-04-08 15:21:26 -07:00