Commit Graph

1595 Commits

Author SHA1 Message Date
Catalin Badea
02dc461839 Bug 1142015 - Add source for messages dispatched to a Service Worker. r=baku 2015-03-16 22:23:42 +02:00
Catalin Badea
3ab2d93fbd Bug 1143732 - Add exempt from limit for two service worker tests. r=bkelly 2015-03-16 19:57:42 +02:00
Albert Crespell
22b2a2180f Bug 1139425 - Service Worker Client uuid tests. r=baku 2015-03-16 11:20:40 +01:00
Albert Crespell
5cb6d620a6 Bug 1139425 - Service Worker Client id should return a DOMString uuid. r=baku 2015-03-13 07:15:25 +01:00
Boris Zbarsky
f8e0ebdf55 Bug 1097987 part 7. Require callers of JS::Evaluate to either use the global as the scope or pass in an explicit scopechain. r=waldo 2015-03-14 01:36:16 -04:00
Ehsan Akhgari
6541ca0b6f Bug 1133763 - Part 8: Ensure that FetchEvent.respondWith works correctly on HTTPS requests with a cloned response; r=nsm 2015-03-13 14:37:27 -04:00
Ehsan Akhgari
68ae51bd33 Bug 1133763 - Part 7: Add automated tests for using FetchEvent.respondWith on an HTTPS request; r=nsm 2015-03-13 14:37:25 -04:00
Ehsan Akhgari
81a811da5c Bug 1133763 - Part 6: Set the correct security info on intercepted channels when using the respondWith API; r=jdm 2015-03-13 14:37:24 -04:00
Jonathan Griffin
84011a87cc Bug 1116187 - Disable failing mochitest-chrome tests for B2G, r=gbrown 2015-02-06 16:30:37 -08:00
Sushrut Girdhari
d3c0163a47 Bug 1137248 - Remove FetchEvent.default and FetchEvent.forwardTo. r=baku 2015-03-02 05:32:00 -05:00
Ehsan Akhgari
890be1ec6d Bug 1141274 - Allocate shared workers and service workers from separate namespaces; r=nsm
This patch makes sure that we never reuse a WorkerPrivate belonging
to a shared worker for a service worker and vice versa.
2015-03-10 22:52:22 -04:00
Nikhil Marathe
caca74ccd6 Bug 1140788 - Set headers to immutable. r=bkelly,ehsan 2015-03-07 18:54:41 -08:00
Andrea Marchesini
ab05554f75 Bug 1141026 - BroadcastChannel should throw if it fails registering the worker feature, r=smaug 2015-03-09 13:51:47 +00:00
Nikhil Marathe
60aeafafea Bug 1133805 - Enable all serviceworker tests on all platforms except b2g. r=baku 2015-03-03 15:57:15 -08:00
Nikhil Marathe
bfaefa32a6 Bug 1053275 - Exempt ServiceWorkers from per domain thread limits. r=sicking 2015-03-03 14:30:58 -08:00
Nikhil Marathe
57039ce2c7 Bug 1133861 - Enable the Fetch API by default. r=jst 2015-02-22 01:52:10 -08:00
Ehsan Akhgari
4a2ec83e86 Bug 1037739 - Disable test_scopes.html temporarily on a CLOSED TREE 2015-03-06 10:09:05 -05:00
Ehsan Akhgari
ce6a8495a1 Bug 1137816 follow-up: Add WindowClient, added by bug 1058311 2015-03-06 09:34:50 -05:00
Ehsan Akhgari
2ff8733a59 Bug 1137816 - Add a test for interfaces exposed to service workers; r=baku 2015-03-06 08:27:24 -05:00
Ehsan Akhgari
4c972a5d64 Bug 1131353 - Make ServiceWorkerGlobalScope.close() throw InvalidAccessError; r=baku 2015-03-06 08:19:33 -05:00
Ehsan Akhgari
ed177eb47f Bug 1140120 - Remove a couple of unused test functions on ServiceWorkerContainer; r=baku 2015-03-06 08:19:32 -05:00
Catalin Badea
17af33f0f1 Bug 1058311 - Update client interface. Implement matchAll WindowClient. r=baku 2015-03-06 15:04:49 +02:00
Jan de Mooij
22989040ae Bug 1139794 - Remove __noSuchMethod__ from the console object. r=baku 2015-03-06 09:50:51 +01:00
Nikhil Marathe
0f61f58788 Bug 1139990 - Remove No activatingWorker warning. r=ehsan 2015-03-05 09:39:58 -08:00
Nikhil Marathe
8c4d11dc98 Bug 1139561 - Various small ServiceWorker test fixes. r=baku
Replace setTimeout for test_unregister with detailed checks for active worker before opening iframe
check for null reg in unregister tests
Removed current dir scope so potential fetch event slowdown does not timeout tests
use navigator.serviceWorker to receive messages
Remove leftover getRegistration() test
2015-03-03 16:00:02 -08:00
Nikhil Marathe
9889aecde9 Bug 1137477 - Replace getServiced() with matchAll() in tests. r=catalinb 2015-02-26 17:20:23 -05:00
Nikhil Marathe
e19dc5c9dd Bug 1137419 - Use correct principal for update. r=baku 2015-02-23 10:34:40 -08: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
Nikhil Marathe
aafb36075f Bug 1132141 - Update storage when ServiceWorker registration fails. r=baku 2015-02-11 10:51:32 -08:00
Nikhil Marathe
9190583d2e Bug 1131874 - ServiceWorker persistence activation fixes. r=baku 2015-02-10 18:08:58 -08:00
Eddy Bruël
39c0f79c72 Bug 1092102 - Implement worker debugger runnables;r=khuey 2015-03-04 15:11:32 +01:00
Tim Taubert
4aaba8eeb4 Bug 1001691 - Move WorkerType out of WorkerPrivate.h r=khuey 2015-03-04 14:54:16 +01:00
Tim Taubert
24a910e81e Bug 1001691 - WorkerPrivate::LoadInfo -> WorkerLoadInfo r=khuey 2015-02-12 10:50:05 +01:00
Eddy Bruël
a471b66362 Bug 1092102 - Implement a WorkerDebuggerGlobalScope;r=khuey 2015-03-04 00:51:53 +01:00
Tim Taubert
48f66772cf Backed out changeset 2ea14f386df2 (bug 1001691) 2015-03-03 19:13:23 +01:00
Tim Taubert
f3ccda2d78 Backed out changeset a6e627eff6a6 (bug 1001691) 2015-03-03 19:13:21 +01:00
Tim Taubert
08fbec0d3b Bug 1001691 - Move WorkerType out of WorkerPrivate.h r=khuey 2015-02-12 11:12:59 +01:00
Tim Taubert
312978316e Bug 1001691 - WorkerPrivate::LoadInfo -> WorkerLoadInfo r=khuey 2015-02-12 10:50:05 +01:00
Andrea Marchesini
e40e217a75 Bug 1104623 - Inherit security flags if channel already has a loadinfo attached in NS_NewChannel - tests, r=ckerschb 2014-12-10 11:41:09 -08:00
Andrea Marchesini
bc6d927d7f Bug 1137814 - nsAString and nsACString in URL.cpp/h. r=nsm 2015-02-27 14:10:20 -05:00
Ben Kelly
499ef5cde1 Bug 940273 - Part 6 - Expose Service Worker Cache on workers as self.caches. r=ehsan 2015-03-02 14:23:00 +01:00
Ben Kelly
9cb904f9a5 Bug 940273 - Part 2 - Add a pref to enable Service Worker Cache. r=ehsan 2015-03-02 14:12:00 +01:00
Josh Matthews
71fc1b8529 Bug 1137250 - Fix incorrect initialization of Request object. r=bz 2015-02-26 15:40:00 -05:00
Jan de Mooij
c588ad661c Bug 1137523 - Unprefix most js_* functions. r=bhackett CLOSED TREE 2015-02-27 16:08:15 +01:00
Nikhil Marathe
ff515eace1 Bug 1137408 - Use inner window to create ServiceWorker for Fetch Event. r=jdm 2015-02-26 15:14:51 -05:00
Catalin Badea
a24152bcbd Bug 1136467 - ServiceWorker: client.postMessage should land in navigator.serviceWorker.onmessage. r=baku 2015-02-25 21:38:37 +02:00
Dirkjan Ochtman
d0f22d9629 Bug 853162 - Remove XMLHttpRequest.sendAsBinary() interface. r=smaug
Should use send(Blob) instead. Thanks to Ms2ger for help fixing test failures.
2015-02-08 17:01:44 +01:00
Boris Zbarsky
ddc26dbd51 Bug 1135427. Add missing early return, because throwing an exception without returning is weird. r=khuey 2015-02-23 10:03:27 -05:00
Ben Kelly
74b3e82fb7 Bug 1118845 P2 Make SharedWorker override parent LoadGroup with custom proxy callbacks. r=khuey 2015-02-21 10:09:17 -05:00
Boris Zbarsky
1d6d12894d Bug 742194 part 2. Use the new uncatchable exception machinery in worker XHR code. r=khuey 2015-02-20 23:58:40 -05:00
Daniel Holbert
a4b9f40ba9 Bug 1134931: Add some missing MOZ_OVERRIDE annotations in ServiceWorkerManager.cpp, nsFrameMessageManager.cpp, and 2D.h. r=ehsan 2015-02-20 09:25:07 -08:00
Catalin Badea
89447c4b1c Bug 1058311 - Remove prefix for SWClients. Rename getServiced to matchAll. Add stub query options for matchAll r=baku
--HG--
rename : dom/webidl/ServiceWorkerClient.webidl => dom/webidl/Client.webidl
rename : dom/webidl/ServiceWorkerClients.webidl => dom/webidl/Clients.webidl
rename : dom/workers/test/serviceworkers/test_get_serviced.html => dom/workers/test/serviceworkers/test_match_all.html
2015-02-20 17:16:17 +02:00
Ben Kelly
7330ad1c23 Bug 1073231 Follow-up to fix bad rebase in rev 39c5fd86a4a0. r=me 2015-02-19 20:39:27 -05:00
Ben Kelly
29ec96ecff Bug 1073231 Implement Request and Response Clone() methods. r=nsm r=baku 2015-02-19 20:24:24 -05:00
Josh Matthews
be893961ee Bug 1065216 - Dispatch a fetch event to workers when controlled pages initiate a network load. r=baku,mayhemer,smaug 2015-02-18 20:34:29 -05:00
Nikhil Marathe
b88102e5a7 Bug 1126815 - Implement Response.finalURL. r=bkelly,baku
--HG--
extra : rebase_source : 5180d5657c60c7aec33e9f750d24cbee9a2890e2
2015-02-17 10:23:34 -08:00
Ryan VanderMeulen
e41adc7788 Backed out changeset 25f90464e93b (bug 1065216) for Android mochitest failures. 2015-02-18 16:00:33 -05:00
Josh Matthews
c1a7e4eed2 Bug 1065216 - Dispatch a fetch event to workers when controlled pages initiate a network load. r=baku,mayhemer,smaug 2015-02-18 14:10:52 -05:00
Masatoshi Kimura
ff0c408bf6 Bug 1129756 - Revert test changes in bug 1041631 since Symbols are reenabled. r=jorendorff 2015-02-05 22:44:10 +09:00
Ryan VanderMeulen
db689de0ba Bug 1130065 - Skip test_workerUpdate.html due to frequent failures. 2015-02-17 16:13:59 -05:00
Andrea Marchesini
88c8c2de81 Bug 1130570 - Fix tests to use iframe to work on b2g. r=nsm
--HG--
extra : rebase_source : 88757a9f40a1b6c7e0dcd71afceee778c8b2e21a
2015-02-12 15:10:11 -08:00
Nikhil Marathe
50c91da5cb Bug 1130570 - Ensure we have a valid runtime service, and clear updating scopes on early return. r=baku
--HG--
extra : rebase_source : 0274f76d6a89eca902a52fe5dbc7e431f9e9737d
2015-02-11 13:24:57 -08:00
Nikhil Marathe
fc8ee86cf3 Bug 1130065 - ServiceWorkerManager capture "atomically" properly.
Folds:
Enable most SW tests
Cannot rely on controllerchange firing in an already controlled window. The AbortError case is no longer relevant due to FIFO ordering
Too bad we have to use timeouts

--HG--
extra : rebase_source : cef7f30bfab1e4079846d2aa4080f534ebaf8a3c
2015-02-10 14:33:23 -08:00
Nikhil Marathe
e8c60ffc59 Bug 1041340 - Implement [[HandleDocumentUnload]]. r=baku
--HG--
extra : rebase_source : 05bee71b7e26a52783462b9803fe161077af9a7b
2014-10-24 15:11:26 -07:00
Andrea Marchesini
6086f2096b Bug 1133242 - ServiceWorkerManager must use the correct principal in b2g, r=nsm 2015-02-17 13:36:09 +01:00
Carsten "Tomcat" Book
dd9d12971d Backed out changeset 4ed31c8b45c6 (bug 1041340) for causing multiple timeouts on different platforms in service worker tests on a CLOSED TREE 2015-02-17 09:35:58 +01:00
Carsten "Tomcat" Book
cca3c82dfc Backed out changeset 4d8423d5a83b (bug 1130065) 2015-02-17 09:35:27 +01:00
Carsten "Tomcat" Book
5d8fead3d5 Backed out changeset 8e6ce9a41be7 (bug 1130570) 2015-02-17 09:35:25 +01:00
Carsten "Tomcat" Book
033c20c787 Backed out changeset 8ea3cf306727 (bug 1130570) 2015-02-17 09:35:24 +01:00
Andrea Marchesini
2984fb9306 Bug 1133541 - ServiceWorkerManger::GetRegistrations should use the principal to match the registration objects, r=nsm 2015-02-16 23:22:17 +01:00
L. David Baron
2e447e6046 Back out changeset ffa5f28f512c (bug 1133541) on a CLOSED TREE for failing to compile (aPrincipal: undeclared identifier). 2015-02-17 10:42:40 +13:00
Catalin Badea
322895ea43 Bug 982726 - Patch 3.1 Throw InvalidStateError when ServiceWorkerState == Redundant. r=nsm 2015-02-16 23:03:48 +02:00
Andrea Marchesini
caad65775b Bug 1133541 - ServiceWorkerManger::GetRegistrations should use the principal to match the registration objects, r=nsm 2015-02-16 21:59:53 +01:00
Andrea Marchesini
ba6c1a7f46 Bug 1130570 - Tests use iframe instead of window.open. r=nsm
--HG--
extra : rebase_source : 30c2a3921cfa5208257da144ae496967a14d6511
2015-02-12 15:10:11 -08:00
Nikhil Marathe
1a8e002093 Bug 1130570 - Ensure we have a valid runtime service, and clear updating scopes on early return. r=baku
--HG--
extra : rebase_source : e72f9706bf4c6591bffb93ab9aff34d68c9a97b6
2015-02-11 13:24:57 -08:00
Nikhil Marathe
401c3772f8 Bug 1130065 - ServiceWorkerManager capture "atomically" properly. r=baku
Folds:
Enable most SW tests
Cannot rely on controllerchange firing in an already controlled window. The AbortError case is no longer relevant due to FIFO ordering
Too bad we have to use timeouts

--HG--
extra : rebase_source : c7370b79541d4e8036c07b81ae6da92f8175526b
2015-02-10 14:33:23 -08:00
Nikhil Marathe
df092af66f Bug 1041340 - Implement [[HandleDocumentUnload]]. r=baku
--HG--
extra : rebase_source : c3a06f24725dadc812f5a0c5e3230923869e26c6
2014-10-24 15:11:26 -07:00
Andrea Marchesini
f71cf5e1ec Bug 1132924 - XHR should support empty response in workers, r=bkelly. r=bent 2015-02-14 09:09:06 +01:00
Boris Zbarsky
4c68880cf9 Bug 1132655. Don't allow conversions from DOMString to const XPCOM string references, since it's meant to be an outparam only. r=smaug 2015-02-12 18:39:26 -05:00
Boris Zbarsky
dccefcef01 Bug 1131751. Drop [NoInterfaceObject] from XMLHttpRequestEventTarget. r=smaug 2015-02-12 18:39:25 -05:00
Andrea Marchesini
8398d2b3ca Bug 1132395 - URL.createObjectURL must be able to work with workers without parents, r=smaug 2015-02-12 14:20:08 +01:00
Alexandre Lissy
fa35dafc49 Bug 1129849 - Proper B2G identification for worker navigator tests. r=bent 2015-02-09 03:11:00 -05:00
Andrea Marchesini
3557feb052 Bug 984050 - Persist ServiceWorkerRegistrations. r=bent, r=nsm 2015-02-11 06:53:00 -05:00
Carsten "Tomcat" Book
a0acb2cde4 Backed out changeset b3a1efe7900a (bug 984050) for cpp unitest failures on a CLOSED TREE 2015-02-11 13:29:16 +01:00
Andrea Marchesini
937507217d Bug 984050 - Persist ServiceWorkerRegistrations. r=bent,nsm 2015-02-11 10:10:23 +01:00
Andrea Marchesini
580efcb973 Bug 1131700 - ServiceWorkerManager::CreateServiceWorker should use RuntimeService::GetOrCreateService. r=nsm 2015-02-10 09:58:00 +01:00
Alexandre Lissy
8529e5ac6b Bug 1129173 - Properly detect B2G for workers interface tests. r=bent
Make use of SpecialPowers.isB2G to do the proper detection, and fix
mochitest execution for Mulet to include some B2G-specific prefs.

--HG--
extra : rebase_source : 2683f17794204cdb8b17248c9469f2498085ee81
2015-02-10 06:51:00 +01:00
Catalin Badea
49e3a2ce87 Bug 982726 - Patch 3: Implement client.postMessage. r=baku 2015-02-09 12:43:00 -05:00
Catalin Badea
e6efda0fa9 Bug 982726 - Patch 2: Add postMessage to service worker. r=baku 2015-02-09 12:42:00 -05:00
Dhi Aurrahman
a3a06ef1c4 Bug 1113003: Remove domain level lookup from ServiceWorkerManager. r=nsm
--HG--
extra : rebase_source : 411f85381e0498ebfee96fa63586b44b897e7c28
2015-02-09 11:33:39 +07:00
Phil Ringnalda
8b344901ef Back out 3da63ccbadef (bug 984050) for Windows cppunit bustage
CLOSED TREE
2015-02-06 19:49:42 -08:00
Andrea Marchesini
dff0b85534 Bug 984050 - Persist ServiceWorker registrations, r=bent, r=nsm 2015-02-06 23:31:33 +00:00
Nikhil Marathe
a5c3b75425 Bug 1127882 - Fix Promise include.
--HG--
extra : rebase_source : 43aef21e2d432ef2a8a0a53890aed49b1ffd4a31
2015-02-06 10:08:31 -08:00
Nikhil Marathe
15fdafd322 Bug 1119037 - Add context attribute to Request. r=baku
--HG--
extra : transplant_source : p%1Cr%13%ED%F8%B1%B8D%9B%DC5%C6%EFEQD%CC%A2l
2015-01-27 15:43:09 -08:00
Ryan VanderMeulen
6393082129 Bug 1126470 - Re-disable test_scopes.html due to frequent crashes/timeouts. 2015-02-05 12:17:35 -05:00
Birunthan Mohanathas
5f227f1a63 Bug 1122044 - Remove unreferenced moz.build files. r=mshal 2015-01-21 20:15:59 +02:00
Andrea Marchesini
8cc1b60380 Bug 1127885 - Console API should display blobs when used in workers, r=smaug 2015-02-02 15:40:15 +00:00
Jon Coppeard
30e87f8c75 Bug 1127792 - Add a pref to globally disable compacting GC r=terrence r=mccr8 r=bent 2015-02-02 14:39:34 +00:00
Carsten "Tomcat" Book
ca80063673 Backed out changeset b15dd0241e60 (bug 1127885) for hazard build bustage 2015-02-02 14:37:23 +01:00
Andrea Marchesini
ff9df39912 Bug 1127885 - Console API should display blobs when used in workers, r=smaug 2015-02-02 11:51:52 +00:00
Phil Ringnalda
f9b8d259fd Back out 030744f8ef5a (bug 1127885) for hazard bustage 2015-01-31 12:06:40 -08:00
Andrea Marchesini
ffb8a11eea Bug 1127885 - Console API should display blobs when used in workers, r=smaug 2015-01-31 19:12:00 +01:00
Nikhil Marathe
77a8cfb540 Bug 1126483 - Added Response.ok. r=baku,bkelly
--HG--
extra : rebase_source : fdff9417d56b06a0556da9a95e0836148d91be0e
2015-01-27 17:34:34 -08:00
Nikhil Marathe
13e4b763d8 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
6114e477ec Bug 1113957 - ServiceWorker unregistration uses job queue. r=baku
--HG--
extra : transplant_source : %B3%AA%CF%C5%05%409%D9%15Ly%FA%FF%E3%FA%5E%9B%3F%9F.
2015-01-22 14:10:38 -08:00
Nikhil Marathe
380e3f26b2 Bug 1113631 - Remove registration when installation failure occurs. Fixes spec issue #547. r=baku
--HG--
extra : transplant_source : l%8C%98%C3%19%7C/%5C%076ZS%26%8DR%EDzM%CB%04
extra : histedit_source : 3acd229eebf3367ccf98faaf02d1330942c1cda0
2014-11-05 14:43:51 -08:00
Nikhil Marathe
ad0805a969 Bug 1113627 - Refactor lifecycle event dispatching and handling. r=baku,bz
--HG--
extra : transplant_source : %E9%C4%13%80%CA%EEj%8D%17%A0LE%F3Tm%0F%EB%2B%3D3
extra : histedit_source : e16da08aa5dca392ad6270a3b03c05c74d1a5ad6
2014-12-19 05:01:53 -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
Masatoshi Kimura
0676786e20 Bug 1111290 - Part 3: Remove TypedEnum.h and fold TypedEnumInternal.h into TypedEnumBits.h. r=waldo 2015-01-26 07:22:11 +09:00
Masatoshi Kimura
2490dcfe04 Bug 1111290 - Part 1: Remove MOZ_(BEGIN|END)_ENUM_CLASS. r=waldo 2015-01-26 07:22:07 +09:00
Nikhil Marathe
da6048aea3 Bug 1113621 - Rename InstallPhaseEvent to ExtendableEvent. r=baku relanding because it wasn't supposed to be backed out on a CLOSED TREE
Change Exposed=ServiceWorker for all ServiceWorker events.
Move Func= exposure check to ServiceWorker.

--HG--
rename : dom/webidl/InstallPhaseEvent.webidl => dom/webidl/ExtendableEvent.webidl
extra : source : 5ed6d1902cc7bafbf9ffeaf35815c56cdd8f8c0d
extra : amend_source : eab06a362baf7545b9b61e28316666c2ec76acac
2014-11-06 07:57:57 -08:00
Wes Kocher
6deceb597d 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
9d564e2e3e 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
6832df008e 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
1421045934 Bug 1113957 - Do not assert job queue empty at shutdown. a=bustage CLOSED TREE
--HG--
extra : rebase_source : 42a5b1087974554308413eaf19904aedd83ade37
extra : amend_source : 4f87e2842bf9b40ba50a7696ecb910914204fc04
2015-01-23 12:42:32 -08:00
Nikhil Marathe
bd0bc01fa2 Bug 1122677 - Disallow request body when method is HEAD/GET.
Spec bug https://www.w3.org/Bugs/Public/show_bug.cgi?id=27846
and :annevk OKed putting the check in the constructor and throwing http://logs.glob.uno/?c=content#c259382

--HG--
extra : rebase_source : 224da5d5f19387ffd95fc42c38a99b0e25427551
2015-01-16 13:08:19 -08:00
Nikhil Marathe
67312f8fcf Bug 1109742 - Fix Body.json() error rejection. r=baku
--HG--
extra : rebase_source : f76f97258fd09ce6391f70487ea8bd6ec76edce5
2014-12-04 14:06:45 -08:00
Nikhil Marathe
b6016767e6 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
aeea9a60cd 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
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
13b0afa850 Bug 1113577 - Fixes in ServiceWorkerGlobalScope.unregister implementation to prevent Promise release on wrong thread.
--HG--
extra : rebase_source : 8bfcc34f9520af2419d078c86525bcd308ab3107
2014-10-27 16:37:03 -07:00
Andrea Marchesini
8a92931e72 Bug 1065367 - Implement a mochitest for ServiceWorkerGlobalScope::Unregister(), r=nsm
--HG--
extra : rebase_source : e114cf527d5a17bdf0173ff8e373b31e58c8909d
2014-10-06 16:47:37 +01: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
ef8ceb114c Bug 1123016 - Clarify the ownership of DOMEventTargetHelper::mParentObject/mOwnerWindow; r=smaug
This patch converts DOMEventTargetHelper::mParentObject into an
nsWeakPtr, and adds fatal assertions to ensure that all future
nsIGlobalObject implementations support weak references.  It also marks
DOMEventTargetHelper::mOwnerWindow as a non-owning reference.
2015-01-23 08:37:37 -05:00
Valentin Gosu
6902281fe5 Bug 1122948 - .hash shouldn't be encoded/decoded for WorkerLocation. r=mrbkap 2015-01-18 00:10:38 +02:00
Nicholas Nethercote
0ca85f0b94 Bug 1122322 (follow-up) - Fix busted paths in worker memory reporter. r=bent.
--HG--
extra : rebase_source : c191acaa96ff7fd3d973eb542a56e7b96efb7466
2015-01-22 21:26:21 -08:00
Nikhil Marathe
e471930f45 Bug 1124743 - Temporarily disable test until race is figured out. a=testfailure 2015-01-22 09:58:43 -08: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
Nikhil Marathe
2fc8e5f701 Bug 1113515 - Update ServiceWorker webidl. r=baku
--HG--
extra : rebase_source : a6143c9d741d87b79ccf3686f868b0856a32cd4b
2014-10-17 11:43:14 -07:00
Boris Zbarsky
f718167620 Bug 1121688. Filter out overloads with non-worker-exposed arguments when generating worker bindings. r=peterv 2015-01-20 16:44:14 -05:00
Nikhil Marathe
610be35159 Bug 1122194 - Follow method validation rules when constructing Request. r=baku,bkelly
--HG--
extra : amend_source : 78950befd29e5aff54956b3399993ade769a21c5
extra : transplant_source : c%B3%E0%87%E7Zdx%03%A6%AA%0A%1C%5E%A8%EF%95%FF%3D%86
2015-01-15 12:11:12 -08:00
Ben Turner
1f7d7b92c9 Bug 1120336 - Fix another hang with blobURL+workers+indexedDB+xhr, r=khuey.
--HG--
rename : dom/indexedDB/test/test_blob_worker_xhr_post.html => dom/indexedDB/test/test_blob_worker_xhr_post_multifile.html
rename : dom/indexedDB/test/test_blob_worker_xhr_read.html => dom/indexedDB/test/test_blob_worker_xhr_read_slice.html
2015-01-13 14:15:04 -08:00
Nicholas Nethercote
93db18c435 Bug 1122322 - Fix crash in worker memory reporter. r=bent.
--HG--
extra : rebase_source : 23b1fde430b9f8c73c70a37f6e184b134c7ac1fc
2015-01-15 20:12:20 -08:00
Nikhil Marathe
8b4744909f Bug 1112922 - Implement request referrer correctly in Fetch API. r=bkelly
--HG--
extra : rebase_source : 226756fee8b777ed30b07cce0f3c5879d66ccf80
2014-12-23 07:56:19 -08:00
Andrea Marchesini
d425c07981 Bug 966439 - BroadcastChannel API - patch 3 - API disabled by pref, r=smaug 2015-01-15 16:58:41 +00:00
Nikhil Marathe
60d4b5d56f Bug 1112073 - Implement Response.redirect. r=baku,bkelly
--HG--
extra : rebase_source : b84a118d61103227e3e021d0efe344f709115fc9
2014-12-26 09:44:09 -08:00
Ben Turner
049cb54131 Bug 1121129 - Guard against multiple threads dispatching to a worker thread at the same time, r=khuey. 2015-01-14 13:50:03 -08:00
Ryan VanderMeulen
050f1df69c Backed out 11 changesets (bug 966439, bug 1121472) for causing widespread test failures and because inbound isn't Try and shouldn't be treated as such.
Backed out changeset e6cd15d43b5a (bug 1121472)
Backed out changeset 4f9788639f3f (bug 966439)
Backed out changeset ac9a967e5a10 (bug 966439)
Backed out changeset 14d322737871 (bug 966439)
Backed out changeset 8f941e519580 (bug 966439)
Backed out changeset b82d1010c6b4 (bug 966439)
Backed out changeset 2c29a52a03bd (bug 966439)
Backed out changeset e4b0802a3f06 (bug 966439)
Backed out changeset bdc9a0310034 (bug 966439)
Backed out changeset 6b3ae19628e6 (bug 966439)
Backed out changeset 3d23e775033a (bug 966439)

CLOSED TREE
2015-01-14 11:46:14 -05:00
Andrea Marchesini
4af9097f62 Bug 966439 - BroadcastChannel API - patch 3 - API disabled by pref, r=smaug 2015-01-14 11:50:35 +00:00
Ms2ger
230617c722 Bug 914067 - Remove JSVAL_VOID from dom/; r=jst 2015-01-14 08:59:06 +01:00
Nikhil Marathe
9fc52a9946 Bug 1119044 - Fetch API WebIDL Fixes. r=bkelly,baku
Add various [SameObject]/[NewObject] annotations.
Adds RequestCache enum.
Ensures that cors-with-forced-preflight is translated to cors in getter.
Reject cors-with-forced-preflight as a valid mode value in Request constructor.

--HG--
extra : rebase_source : 3a70d53965def8fe02deec307367b9fda3458935
2015-01-07 16:24:40 -08:00
Ryan VanderMeulen
6a478380c4 Backed out changeset 88970726eb6b (bug 1119044) for Werror bustage. 2015-01-13 13:26:52 -05:00
Nikhil Marathe
b64f2f9031 Bug 1119044 - Fetch API WebIDL Fixes. r=bkelly,baku
Add various [SameObject]/[NewObject] annotations.
Adds RequestCache enum.
Ensures that cors-with-forced-preflight is translated to cors in getter.
Reject cors-with-forced-preflight as a valid mode value in Request constructor.

--HG--
extra : rebase_source : 0b621e13dc5cdbf740fb7d380f96f1380cd5a3eb
extra : amend_source : 7ced6d36ed7212271163c6aa1baacc7d5ca39647
2015-01-07 16:24:40 -08:00
Nikhil Marathe
7b7c33434e Bug 1109574 - Check for null body before setting bodyUsed in Request constructor. r=bkelly
--HG--
extra : transplant_source : %07%B8%B0%D1%ED%D4%C6N%09%09%86%04g%BD%ECs%B2%C6%09%18
2014-12-23 02:25:17 -08:00
Nikhil Marathe
a4cda06007 Bug 1039846 - Patch 5: FetchDriver basic HTTP fetch support. r=baku,bkelly
This patch has the following big pieces:
HTTP support in FetchDriver, which requires the principal of the caller to be passed.
Managing worker lifetime when a fetch() call is in progress.
Managing worker lifetime when a Response body is being read.
Using nsIPipe to link network streams to Request/Response body streams.
Using nsIInputStreamPump to convert Request/Response body streams into respective types.

Folded:
Bug 1039846 - Fetch API: Use a pipe to immediately start writing HTTP body data to InternalResponse.
Bug 1039846 - Assert bodystream can be set only once
Bug 1039846 - Add feature when handling fetch responses on workers
Bug 1039846 - Try to retarget http fetch delivery off main thread.
Bug 1039846 - Safely consume body using nsIInputStreamPump on workers and main thread.
Bug 1039846 - Retarget body reading to stream transport service.

--HG--
extra : rebase_source : 809c4e799835ad6fd153b673cad70109d257ab6c
2014-12-10 00:51:59 -08:00
Peter Van der Beken
e08d1eb1bb Bug 1096328 - Remove nativeOwnership from Bindings.conf, make rooting analysis happy. r=bz.
--HG--
extra : rebase_source : 54a1e408aec6c7485152f18693047b2992251aff
2015-01-08 22:56:42 +01:00
Valentin Gosu
a8e4dbcf0d Bug 1093611 - Add/modify tests making sure Link,URL,nsLocation::GetHash don't unescape characters r=smaug 2014-11-12 05:59:24 +02:00
Andrea Marchesini
e71dbe47b6 Bug 1113062 - IndexedDB FileSnapshot not CCed, r=janv 2015-01-11 21:35:24 +00:00
Wes Kocher
15c62b5715 Backout 115690326c5e for mochitest-2 orange on a CLOSED TREE 2015-01-09 14:28:27 -08:00
Kyle Huey
d84258083b Bug 1119360: Allow AddFeature calls to succeed until we enter the Killing stage. r=bent 2015-01-09 13:29:05 -08:00
Ehsan Akhgari
b6e35bb4b4 Bug 1118486 - Part 1: Use = delete instead of MOZ_DELETE directly; r=Waldo
Most of this patch (with the exception of dom/bindings/Codegen.py) was
generated by the following bash script:

#!/bin/bash

function convert() {
echo "Converting $1 to $2..."
find . ! -wholename "*nsprpub*" \
       ! -wholename "*security/nss*" \
       ! -wholename "*/.hg*" \
       ! -wholename "*/.git*" \
       ! -wholename "obj-*" \
         -type f \
      \( -iname "*.cpp" \
         -o -iname "*.h" \
         -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_DELETE '= delete'
2015-01-08 23:19:05 -05:00
Ryan VanderMeulen
20c93a56ae Backed out changesets 41d0ad0271a6, 2bda66cf60fd, and dd1fc46d4d56 (bug 1118845) for B2G mochitest failures.
CLOSED TREE

--HG--
extra : amend_source : 19240e92f40420f384a7835383cbb2be75350ddc
2015-01-08 21:50:19 -05:00
Ben Kelly
0f16ead8f0 Bug 1118845 P3 Force the creation of a new load group for SharedWorkers. r=sicking 2015-01-08 19:52:22 -05:00
Ben Kelly
0c6b52fca5 Bug 1118443 Make workers specify the XHR load group to use during the request. r=sicking 2015-01-08 11:21:52 -05:00
Jon Coppeard
72a59b3b64 Bug 1099152 - Make external GC APIs take invocation kind as a parameter r=terrence r=mccr8 2015-01-02 17:19:43 +00:00
Andrea Marchesini
c09b82d5c2 Bug 1058644 - Console API in ServiceWorkers. r=khuey 2015-01-06 10:45:00 -05: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
Bobby Holley
8633b37ec8 Bug 1117851 - Make GetCallingLocation take an nsA{,C}String. r=smaug 2015-01-06 15:50:29 -05:00
Ryan VanderMeulen
09ec6a6ac1 Backed out changeset 9035e4de3c03 (bug 1117851) for suspicion of causing Linux32 dromaeo DOM regressions (bug 1118257). 2015-01-06 15:24:45 -05:00
Wes Kocher
14406139c4 Backed out changeset e89d431543ae (bug 1113062) for smaug's revoked r+ 2015-01-05 15:12:02 -08:00
Andrea Marchesini
2e70977183 Bug 1113062 - FileImpls are kept alive when a blob URI is generated from them, r=smaug 2015-01-05 23:55:26 +01:00
Bobby Holley
ea0b23c4fe Bug 1117851 - Make GetCallingLocation take an nsA{,C}String. r=smaug 2015-01-05 13:53:27 -08:00
Ryan VanderMeulen
034720a131 Backed out 5 changesets (bug 1099152, bug 1117098) for causing frequent B2G debug timeouts.
Backed out changeset 4feee07c34ad (bug 1117098)
Backed out changeset 168e5b9bf198 (bug 1099152)
Backed out changeset 9192d432d87e (bug 1099152)
Backed out changeset 8b891ebcd21f (bug 1099152)
Backed out changeset 24dae3ce853d (bug 1099152)
2015-01-05 12:38:18 -05:00
Boris Zbarsky
eddcf4b589 Bug 1117162. Give DOMEventTargetHelper a constructor taking nsIGlobalObject. r=smaug 2015-01-05 10:23:36 -05:00
Jon Coppeard
d6208af5a0 Bug 1099152 - Make external GC APIs take invocation kind as a parameter r=terrence r=mccr8 2015-01-02 17:19:43 +00:00
Wes Kocher
2ab57c410e Backed out 5 changesets (bug 1099152) for hazard build failures on a CLOSED TREE
Backed out changeset 3d195c54dcf1 (bug 1099152)
Backed out changeset e5a903979b5f (bug 1099152)
Backed out changeset 969965f4c893 (bug 1099152)
Backed out changeset 1e4e3b85c620 (bug 1099152)
Backed out changeset 501a22044336 (bug 1099152)
2015-01-02 12:43:48 -08:00
Jon Coppeard
08d71d0304 Bug 1099152 - Make external GC APIs take invocation kind as a parameter r=terrence r=mccr8 2015-01-02 17:19:43 +00:00
Andrea Marchesini
d08b61ce43 Bug 1115678 - Explicitly set dom.workers.websocket.enabled for websocket tests in workers. rs=RyanVM 2014-12-26 05:31:00 -05:00
Andrea Marchesini
7ec8cb15b2 Bug 1112054 - Disable WebSockets in workers on Fx35. r=smaug, a=lsblakk 2014-12-23 11:31:54 +01:00
Ben Turner
6b73ed054d Bug 1113340 - Make sure blob urls can load same-prcess PBackground blobs, r=khuey. 2014-12-19 11:59:02 -08:00
Ben Turner
b345efa2e9 Bug 1113429 - Optimize NUWA idle notifications on workers, r=froydnj. 2014-12-19 08:27:03 -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
Chih-Kai (Patrick) Wang
6f55b02411 Bug 970307: Part 1: Report status of each thread to find when all the threads are idle. r=nfroyd 2014-12-18 17:00:39 +08:00
Ben Turner
5976259500 Bug 701634 - Support IndexedDB in Workers, r=khuey+baku. 2014-12-16 22:26:15 -08:00
Andrea Marchesini
dddffc895b Bug 1057994 - DataStore should not dispatch runnables in a worker when it is shutting down, r=bent
--HG--
rename : dom/datastore/tests/file_basic_worker.html => dom/datastore/tests/file_worker_close.html
rename : dom/datastore/tests/test_basic_worker.html => dom/datastore/tests/test_worker_close.html
2014-12-17 14:49:36 +00:00
Dan Gohman
0a0a779f10 Bug 1054671 - Constify static callback arrays r=ehsan 2014-12-16 16:30:39 -08:00
Nigel Babu
cd37b395c6 Backed out changeset 6a3a0e3bfaf6 (bug 1054671) for B2G emulator build bustage on CLOSED TREE 2014-12-16 11:24:15 +05:30
Dan Gohman
447fe285f2 Bug 1054671 - Constify static callback arrays r=ehsan 2014-12-15 20:53:58 -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
Botond Ballo
df0906463c Bug 1073081 - Fix -Waddress warnings about Nuwa functions. r=khuey
--HG--
extra : source : 8cd5108862aaf2c579a76ac6e9c08eb69fa5f3ff
2014-11-26 19:20:03 -05:00
Wes Kocher
140b9317ab Backed out 3 changesets (bug 1107516) for b2g debug emulator mochitest bustage
Backed out changeset 5fe0df3298aa (bug 1107516)
Backed out changeset ce51e5cd2a85 (bug 1107516)
Backed out changeset c3b2309fdf93 (bug 1107516)
2014-12-12 15:29:28 -08:00
Ben Kelly
7d42839549 Bug 1107516 P3 Make sure all workers have an nsILoadGroup when loading scripts. r=sicking r=bent 2014-12-12 16:41:36 -05:00
Ehsan Akhgari
309b4049b4 Bug 649012 - Fail mochitest-plains which use flaky timeouts (setTimeout(x) for x > 0); r=ted
We are white-listing the existing set of tests that use setTimeout
like this.  Hopefully these tests will be investigated and fixed
in the future, so that we can narrow down the white-list.

This check is only turned on for mochitest-plain for now.
2014-12-11 13:34:40 -05:00
Ryan VanderMeulen
15d5a02c9d Backed out changesets c63a0dc3e90f and 5b53df2993fa (bug 1104623) for leaks.
--HG--
extra : rebase_source : cb4ed2e9e43d8d937f75561534f26081e694c964
2014-12-11 13:12:08 -05:00
Andrea Marchesini
944ef562e7 Bug 1104623 - Inherit security flags if channel already has a loadinfo attached in NS_NewChannel - tests (r=ckerschb) 2014-12-11 07:47:37 -08:00
Ryan VanderMeulen
b066004440 Backed out changesets 34a66a625618, 32db3daa20fe, and ac15ba8568c5 (bug 1102219) for Gaia unit test failures.
--HG--
extra : rebase_source : 0266cc0b2a6568ca653885745f381df8d6d167ec
2014-12-11 11:28:30 -05:00
ziyunfei
43231043f0 Bug 1102219 - Part 3: Replace String.prototype.contains with String.prototype.includes in chrome code. r=till 2014-12-10 20:50:00 -05:00
Carsten "Tomcat" Book
f9889c7dc1 Backed out changeset 932daea51104 (bug 1104623) 2014-12-11 08:49:48 +01:00
Ben Turner
c6326d93e0 Bug 1054638 - Bustage fix for non-DEBUG builds on CLOSED TREE 2014-12-10 21:42:07 -08:00
Ben Turner
3be9ad559b Bug 1054638 - Bustage fix for non-DEBUG builds on CLOSED TREE 2014-12-10 20:54:24 -08:00
Andrea Marchesini
fa00b94736 Bug 1104623 - Inherit security flags if channel already has a loadinfo attached in NS_NewChannel - tests (r=ckerschb) 2014-12-10 20:17:51 -08:00
Ben Turner
81be975ba8 Bug 1054638 - Notify the worker event loop when an XPCOM event is received, r=khuey. 2014-11-17 11:55:37 -08:00
Ben Turner
5fc35366c8 Bug 1054638 - Move WorkerThread into its own file, r=khuey. 2014-11-14 18:47:30 -08:00
Ehsan Akhgari
3023408a90 Bug 1109694 - Fix more bad implicit constructors in DOM; r=baku 2014-12-10 17:49:09 -05:00
Wes Kocher
c659ea6bce Backed out changeset bf25101e66cf (bug 1095098) for build bustage 2014-12-08 16:27:12 -08:00