Commit Graph

1343 Commits

Author SHA1 Message Date
Nikhil Marathe
72c4dc1a37 Bug 1126483 - Added Response.ok. r=baku,bkelly 2015-01-27 17:34:34 -08:00
Nikhil Marathe
4544b80a05 Bug 1081293 - Silently ignore lack of ServiceWorkerManager when shutting down ServiceWorkerContainer. r=baku 2015-01-23 11:23:55 -08:00
Nikhil Marathe
1c2be45c35 Bug 1113957 - ServiceWorker unregistration uses job queue. r=baku 2015-01-22 14:10:38 -08:00
Nikhil Marathe
0308c663f7 Bug 1113631 - Remove registration when installation failure occurs. Fixes spec issue #547. r=baku 2014-11-05 14:43:51 -08:00
Nikhil Marathe
b4bb7fa086 Bug 1113627 - Refactor lifecycle event dispatching and handling. r=baku,bz 2014-12-19 05:01:53 -08:00
Daniel Holbert
f5e8523d22 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
f1b5ace064 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
222483b6f4 Bug 1111290 - Part 1: Remove MOZ_(BEGIN|END)_ENUM_CLASS. r=waldo 2015-01-26 07:22:07 +09:00
Nikhil Marathe
b0e90150b2 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.
2014-11-06 07:57:57 -08:00
Wes Kocher
85b63832f0 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
1f43e23646 Backed out changeset 5ed6d1902cc7 (bug 1113621) for asan mochitest-4 bustage on a CLOSED TREE 2015-01-23 19:49:51 -08:00
Wes Kocher
494b2dd0a0 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
3cf4e089b2 Bug 1113957 - Do not assert job queue empty at shutdown. a=bustage CLOSED TREE 2015-01-23 12:42:32 -08:00
Nikhil Marathe
25784bf67f 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
2015-01-16 13:08:19 -08:00
Nikhil Marathe
7e7584b02d Bug 1109742 - Fix Body.json() error rejection. r=baku 2014-12-04 14:06:45 -08:00
Nikhil Marathe
b42d453262 Bug 1113631 - Remove registration when installation failure occurs. Fixes spec issue #547. r=baku 2014-11-05 14:43:51 -08:00
Nikhil Marathe
ea81aa3901 Bug 1113627 - Refactor lifecycle event dispatching and handling. r=baku 2014-12-19 05:01:53 -08:00
Nikhil Marathe
2450e7b0b6 Bug 1113621 - Rename InstallPhaseEvent to ExtendableEvent. r=baku
Change Exposed=ServiceWorker for all ServiceWorker events.
Move Func= exposure check to ServiceWorker.
2014-11-06 07:57:57 -08:00
Nikhil Marathe
2a58e25580 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.
2014-12-19 04:45:07 -08:00
Nikhil Marathe
e29c193dd9 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
2014-12-19 02:48:31 -08:00
Nikhil Marathe
61de7ae397 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.
2014-12-19 03:25:56 -08:00
Nikhil Marathe
023fe00c28 Bug 1113587 - Fire controllerchange event on controlled documents ServiceWorkerContainer. r=baku 2014-10-28 13:11:31 -07:00
Nikhil Marathe
09db329656 Bug 1089778 - ServiceWorkerManager NS_WARN_IF compiler error. a=bustage 2015-01-23 11:53:23 -08:00
Nikhil Marathe
cb9aaadc9a Bug 1113577 - Fixes in ServiceWorkerGlobalScope.unregister implementation to prevent Promise release on wrong thread. 2014-10-27 16:37:03 -07:00
Andrea Marchesini
bd3963f6ea Bug 1065367 - Implement a mochitest for ServiceWorkerGlobalScope::Unregister(), r=nsm 2014-10-06 16:47:37 +01:00
Nikhil Marathe
29dcbbc747 Bug 1089778 - ServiceWorkerRegistration is keyed by scope for event dispatch and invalidation. r=baku 2014-10-27 11:52:57 -07:00
Ehsan Akhgari
4c4956892d 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
a47fabf1c9 Bug 1122948 - .hash shouldn't be encoded/decoded for WorkerLocation. r=mrbkap 2015-01-18 00:10:38 +02:00
Nicholas Nethercote
f696af5220 Bug 1122322 (follow-up) - Fix busted paths in worker memory reporter. r=bent. 2015-01-22 21:26:21 -08:00
Nikhil Marathe
bf3b902cdb Bug 1124743 - Temporarily disable test until race is figured out. a=testfailure 2015-01-22 09:58:43 -08:00
Nikhil Marathe
03b3419146 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.
2014-12-19 02:00:29 -08:00
Nikhil Marathe
c9c6c2c8d2 Bug 1113515 - Update ServiceWorker webidl. r=baku 2014-10-17 11:43:14 -07:00
Boris Zbarsky
37ec2b883e 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
f9d7b7576c Bug 1122194 - Follow method validation rules when constructing Request. r=baku,bkelly 2015-01-15 12:11:12 -08:00
Ben Turner
624fb06abc Bug 1120336 - Fix another hang with blobURL+workers+indexedDB+xhr, r=khuey. 2015-01-13 14:15:04 -08:00
Nicholas Nethercote
165a868a7e Bug 1122322 - Fix crash in worker memory reporter. r=bent. 2015-01-15 20:12:20 -08:00
Nikhil Marathe
905b0da674 Bug 1112922 - Implement request referrer correctly in Fetch API. r=bkelly 2014-12-23 07:56:19 -08:00
Andrea Marchesini
83506b364b Bug 966439 - BroadcastChannel API - patch 3 - API disabled by pref, r=smaug 2015-01-15 16:58:41 +00:00
Nikhil Marathe
5fc3ba0a7e Bug 1112073 - Implement Response.redirect. r=baku,bkelly 2014-12-26 09:44:09 -08:00
Ben Turner
173ea3af60 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
35882877b9 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
5543fa8880 Bug 966439 - BroadcastChannel API - patch 3 - API disabled by pref, r=smaug 2015-01-14 11:50:35 +00:00
Ms2ger
ab12074deb Bug 914067 - Remove JSVAL_VOID from dom/; r=jst 2015-01-14 08:59:06 +01:00
Nikhil Marathe
2c90ec50fb 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.
2015-01-07 16:24:40 -08:00
Ryan VanderMeulen
b82b313197 Backed out changeset 88970726eb6b (bug 1119044) for Werror bustage. 2015-01-13 13:26:52 -05:00
Nikhil Marathe
75f5a806a9 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.
2015-01-07 16:24:40 -08:00
Nikhil Marathe
7d4e9dbdc2 Bug 1109574 - Check for null body before setting bodyUsed in Request constructor. r=bkelly 2014-12-23 02:25:17 -08:00
Nikhil Marathe
5efcea65d0 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.
2014-12-10 00:51:59 -08:00
Peter Van der Beken
00ece8f296 Bug 1096328 - Remove nativeOwnership from Bindings.conf, make rooting analysis happy. r=bz. 2015-01-08 22:56:42 +01:00
Valentin Gosu
31ba391d3f 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