Nikhil Marathe
4d4496194c
Bug 1180861 - Various ServiceWorker registration fixes to get test passing. r=bkelly,jgraham.
...
This commit implements the following changes to get registration.https.html working.
1) Fail with NS_ERROR_DOM_SECURITY_ERR where the spec requires it.
2) Propagate JSExnType to ServiceWorkerManager::HandleError() so that a JS
exception object with the correct .name can be created.
3) Fail with security error on redirect failure.
4) Check fetched script's mimetype.
5) Add missing python server files for web-platform-tests.
6) Update web-platform-tests expected data.
7) Several tests have been changed to use TypeError or more appropriate JS
errors based on my reading of the spec.
2015-08-19 16:21:25 -07:00
Andrea Marchesini
58fde1e334
Bug 1185640 - serviceworker register() should not accept escaped slashes. r=bkelly
2015-08-19 13:23:58 -07:00
Nikhil Marathe
5df6faa9d6
Bug 1194562 - Pass wide strings to ThrowTypeError. r=mccr8
2015-08-18 12:59:44 -07:00
Nikhil Marathe
40088881fa
Bug 1181037 - Use entry settings object's base URL. r=ehsan
...
The second test, which checks for NetworkError is incorrect.
[[Update]] step 12 states:
"If response is a network error or response's status is not in the range 200 to 299, then:
1. Reject p with a TypeError."
which specifically converts the NetworkError (due to 404) to a TypeError.
Also fixes controller-on-reload.https.html
Update web-platform-tests expected data
2015-08-20 13:56:37 -07:00
Nigel Babu
089cc67b32
Backed out changeset f447f7b8190b (bug 1185640) for W8 failures on CLOSED TREE
2015-08-20 16:12:00 +05:30
Andrea Marchesini
c8cf0c096d
Bug 1185640 - ServiceWorkers - Passing a scope or scriptURL to register() with escaped '/' or '\' should fail, r=bkelly
2015-08-20 08:46:01 +01:00
Ryan VanderMeulen
373ebac3db
Backed out changeset 4a8f45990368 (bug 1185640) for causing serviceworker w-p-t permacrashes.
...
CLOSED TREE
2015-08-13 10:13:55 -04:00
Andrea Marchesini
01772237ae
Bug 1185640 - Passing a scope or scriptURL to register() with escaped '/' or '\' should fail, r=bkelly
2015-08-13 11:34:52 +01:00
Nikhil Marathe
78bb247425
Bug 1190703 - Relax scope resolution assertion in ServiceWorkerContainer::Register. r=bkelly
2015-08-05 14:33:50 -07:00
Ben Kelly
5f986f3ca7
Bug 1181887 Fall back to network if ServiceWorker script fails to load. r=ehsan r=khuey
2015-07-15 12:21:40 -07:00
Hiroyuki Ikezoe
b61dee95d7
Bug 1179982 - Fix all compile errors in dom/workers on non-unified build. r=mrbkap
2015-07-02 14:54:00 +02:00
Andrea Marchesini
bce6c64a90
Bug 1177621 - SharedWorkers should not be shared between a private and a non-private documents, r=nsm
2015-06-26 11:18:18 -07:00
Morris Tseng
40570a88d5
Bug 1172405 - Fix build error when adding files to dom/workers and gfx/layers. r=nical
...
CLOSED TREE
2015-06-08 02:28:00 -04:00
Andrea Marchesini
5ad7cadc6a
Bug 1162088 - patch 1 - ServiceWorkerManager should use OriginAttributes from the principal as scopeKey, r=nsm, r=bholley
2015-06-03 09:43:43 +01:00
Catalin Badea
62c1d7dc08
Bug 1130684 - Implement Service Worker clients.claim. r=nsm,ehsan
2015-05-14 12:41:42 -07:00
Andrew McCreight
92010d3e4c
Bug 1152551, part 2 - Fix mode lines in dom/. r=jst
2015-05-03 15:32:37 -04:00
Boris Zbarsky
3a822d99b4
Bug 1117172 part 3. Change the wrappercached WrapObject methods to allow passing in aGivenProto. r=peterv
...
The only manual changes here are to BindingUtils.h, BindingUtils.cpp,
Codegen.py, Element.cpp, IDBFileRequest.cpp, IDBObjectStore.cpp,
dom/workers/Navigator.cpp, WorkerPrivate.cpp, DeviceStorageRequestChild.cpp,
Notification.cpp, nsGlobalWindow.cpp, MessagePort.cpp, nsJSEnvironment.cpp,
Sandbox.cpp, XPCConvert.cpp, ExportHelpers.cpp, and DataStoreService.cpp. The
rest of this diff was generated by running the following commands:
find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(WrapObjectInternal\(JSContext *\* *(?:aCx|cx|aContext|aCtx|js))\)/\1, JS::Handle<JSObject*> aGivenProto)/g'
find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(WrapObjectInternal\((?:aCx|cx|aContext|aCtx|js))\)/\1, aGivenProto)/g'
find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(WrapNode\(JSContext *\* *(?:aCx|cx|aContext|aCtx|js))\)/\1, JS::Handle<JSObject*> aGivenProto)/g'
find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(WrapNode\((?:aCx|cx|aContext|aCtx|js))\)/\1, aGivenProto)/g'
find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(WrapObject\(JSContext *\* *(?:aCx|cx|aContext|aCtx|js))\)/\1, JS::Handle<JSObject*> aGivenProto)/g'
find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(Binding(?:_workers)?::Wrap\((?:aCx|cx|aContext|aCtx|js), [^,)]+)\)/\1, aGivenProto)/g'
2015-03-19 10:13:33 -04:00
Nikhil Marathe
51e0c370ac
Bug 1130688 - Implement additional scope checking in service worker registration. r=bkelly,ehsan
2015-03-09 18:57:06 -07:00
Ehsan Akhgari
bd3075f783
Bug 1140120 - Remove a couple of unused test functions on ServiceWorkerContainer; r=baku
2015-03-06 08:19:32 -05:00
Nikhil Marathe
ce71749aca
Bug 1081293 - Silently ignore lack of ServiceWorkerManager when shutting down ServiceWorkerContainer. r=baku
2015-01-23 11:23:55 -08:00
Nikhil Marathe
7ab9e80138
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
Andrea Marchesini
71d33e3cf3
Bug 1025077 - patch 2 - ServiceWorkerContainer should unregister its promise on dtor, r=nsm
2014-08-28 17:04:51 +01:00
Andrea Marchesini
75d11e9f51
Bug 1025077 - Implement ServiceWorkerContainer.ready, r=nsm
2014-08-26 09:16:03 +01:00
Nikhil Marathe
3612840e87
Bug 1057135 - ServiceWorkerManager::Register() uses entry global. r=ehsan
2014-08-21 16:31:12 -07:00
Andrea Marchesini
398ba28b05
Bug 1002571 - Implement navigator.serviceWorker.getRegistrations. r=nsm
2014-08-20 11:40:00 -04:00
Andrea Marchesini
f58a0cc498
Bug 1043004 - Update ServiceWorkerContainer API to spec. r=bkelly
2014-08-19 09:56:00 -04:00
Lynn Tran
2ad7913e05
Bug 1041335 - Add a mozilla::services getter for nsIServiceWorkerManager; r=ehsan
2014-08-18 21:13:14 -04:00
Nikhil Marathe
91c337a7c2
Bug 1002570 - Return valid ServiceWorker instances for .installing, .waiting, .active and .controller. r=ehsan
2014-07-23 14:05:08 -07:00
Boris Zbarsky
a14ed73f88
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
2452e85f23
Bug 983497 - Patch 1: Infrastructure to fire events on ServiceWorkerContainers. r=ehsan,smaug
2014-07-14 14:15:23 -07:00
Nikhil Marathe
ba4423ecda
Bug 984048 - Patch 6 - Scope ordering and utility functions. r=ehsan,khuey
...
Added r=khuey via IRC to validate webidl DOM peer check.
2014-07-11 11:52:19 -07:00
Nikhil Marathe
f232e45ba5
Bug 1025082 - ServiceWorker related WebIDL changes. r=ehsan,jst
2014-06-17 11:01:28 -07:00
Nikhil Marathe
e89098ced8
Bug 984048: Part 1 - ServiceWorkerManager Register(). r=ehsan
2013-11-19 15:15:02 -08:00
Ryan VanderMeulen
7d6956db11
Backed out changeset 3add0c55a799 (bug 984048) for mochitest-e10s timeouts.
2014-05-29 15:02:41 -04:00
Nikhil Marathe
aa961d511f
Bug 984048: Part 1 - ServiceWorkerManager Register(). r=ehsan
2013-11-19 15:15:02 -08:00
Nikhil Marathe
6c25fb8680
Bug 930348 - window.navigator stubs for ServiceWorker. r=ehsan,bent
2013-11-19 15:14:07 -08:00
Ryan VanderMeulen
6026213560
Backed out changeset c189d09ec942 (bug 930348) for B2G desktop bustage.
...
CLOSED TREE
2014-05-13 15:33:58 -04:00
Nikhil Marathe
1d4eea6336
Bug 930348 - window.navigator stubs for ServiceWorker. r=ehsan,bent
2013-11-19 15:14:07 -08:00