Commit Graph

2040 Commits

Author SHA1 Message Date
Eric Rahm
6ce89615f9 Bug 1183894 - Remove warning if MessagePort::CloseInternal is called before start. r=khuey 2015-07-14 18:06:32 -07:00
Catalin Badea
e031508bf0 Bug 1179685 - Fix messageport assert in wpt service worker test. r=baku 2015-07-14 17:41:13 -07:00
Andrea Marchesini
804881c9a1 Bug 1160890 - Part 2: ImportScripts() should return muted errors with 3rd party scripts. r=smaug 2015-07-14 16:08:38 +01:00
Andrea Marchesini
6aa2608c1c Bug 1160890 - Part 1: Remove unneeded code from ImportScripts(). r=smaug 2015-07-14 16:08:36 +01:00
Ben Kelly
1d8798cbc9 Bug 1173912 Fail opaque responses for client requests. r=ehsan 2015-07-14 13:11:26 -07:00
Ben Kelly
e2321797dc Bug 1173934 Show a message if a docshell fails to load due to SW intercept failure. r=ehsan r=jdm 2015-07-14 13:11:26 -07:00
Nikhil Marathe
16a5e3f9b8 Bug 1114554 - Patch 8 - Support waitUntil() on notificationclick event. r=baku
This was originally a part of Bug 1160527, separated due to changes in order of landing the patches.

--HG--
extra : rebase_source : d997a510f7a93506e8804a1a84671e58684c60f5
2015-06-25 18:50:26 -07:00
Nikhil Marathe
9f27656cb4 Bug 1114554 - Patch 6 - ServiceWorkerRegistration.getNotifications() tests. r=wchen
--HG--
extra : rebase_source : 737d9f69a4746b45ce7919b5b7aa36858dcdbdcd
2015-06-25 18:50:25 -07:00
Nikhil Marathe
c8a46b6965 Bug 1114554 - Patch 5 - getNotifications() on worker thread. r=wchen
--HG--
extra : rebase_source : 7d42bf40e9228d3729e0a269d66fa427db3eb38f
2015-06-25 18:50:25 -07:00
Nikhil Marathe
0dcce8d9fe Bug 1114554 - Patch 4 - ServiceWorkerRegistration.getNotifications() on main thread. r=wchen
--HG--
extra : rebase_source : 094fa1eca4e3a9e303202ecaad4edf6cd816c065
2015-06-25 18:50:25 -07:00
Nikhil Marathe
f35ee7d850 Bug 1114554 - Patch 3 - Fire notificationclick event on ServiceWorkerGlobalScope. r=wchen,baku
Bug 1114554 - Patch 3.1 - ServiceWorker principal fixes. r=baku

Bug 1162088 introduced origin attributes that ServiceWorkerManager callers have to use. This patch updates notificationclick events to work.

Folded:
Hide NotificationEvent behind pref

--HG--
extra : rebase_source : e892411834525b4c9b31d96d56ddf42634414040
2015-06-25 18:50:25 -07:00
Nikhil Marathe
b3f34da652 Bug 1114554 - Patch 2 - ServiceWorkerRegistration.showNotification(). r=wchen,baku
Refactor creation and show dispatch so Notification constructor and showNotification can use it.
Move persistence to ShowInternal.
NotificationStorage calls callback async even when fetching from cache, simply to have similar semantics.
Calls to Notification::Get() are performed async since persistence is now async after being moved to ShowInternal().
Both are in accordance with the spec where the "append to list of notifications" operation is performed in the "show steps" which are performed in parallel from API invocations.

--HG--
extra : rebase_source : 52d3864fb39aa892d2f70dc2b71f09fb0d2ba533
2015-06-25 18:50:24 -07:00
Nikhil Marathe
0b129137a7 Bug 1114554 - Patch 1 - Notification ServiceWorker API stubs. r=wchen,baku
--HG--
extra : rebase_source : e033641ae9d271d1681c424f533db63671b3e735
2015-06-25 18:50:24 -07:00
Jose Antonio Olivera Ortega
7ae012a58f Bug 1178233 - [non-e10s] The update process doesn't work within about:serviceworkers in non-e10s mode. Test. r=baku
--HG--
rename : dom/workers/test/serviceworkers/periodic/wait_for_update.html => dom/workers/test/serviceworkers/app2/wait_for_update.html
2015-07-14 15:44:15 +02:00
Jose Antonio Olivera Ortega
4747512d8a Bug 1178233 - [non-e10s] The update process doesn't work within about:serviceworkers in non-e10s mode. r=baku 2015-07-14 15:44:13 +02:00
Ehsan Akhgari
e0be2658f3 Bug 1183158 - Part 5: Get rid of RemoveAllEnumerator; r=baku 2015-07-13 22:42:10 -04:00
Ehsan Akhgari
e32bfc21dc Bug 1183158 - Part 4: Get rid of RemoveEnumerator; r=baku 2015-07-13 22:42:08 -04:00
Ehsan Akhgari
5b102b4397 Bug 1183158 - Part 3: Get rid of UnregisterEnumerator; r=baku 2015-07-13 22:42:06 -04:00
Ehsan Akhgari
f33cca7068 Bug 1183158 - Part 2: Get rid of SoftUpdateEnumerator; r=baku 2015-07-13 22:42:05 -04:00
Ehsan Akhgari
34d0041be3 Bug 1183158 - Part 1: Get rid of RegistrationEnumerator; r=baku 2015-07-13 22:42:03 -04:00
Ehsan Akhgari
a849803571 Bug 1183141 - Use nsTHashtable::Iterator in ServiceWorkerManager::ClaimClients; r=catalinb 2015-07-13 22:42:01 -04:00
Ryan VanderMeulen
0011e3d331 Backed out changeset 57167b45c9d3 (bug 1183141) for wpt failures.
CLOSED TREE
2015-07-13 21:07:29 -04:00
Ryan VanderMeulen
66a68d91af Backed out 5 changesets (bug 1183158) for wpt failures.
Backed out changeset 2dad407995cc (bug 1183158)
Backed out changeset 5c7525b1e21c (bug 1183158)
Backed out changeset 2e6a27e72d83 (bug 1183158)
Backed out changeset db9953b220ae (bug 1183158)
Backed out changeset b0ea3f8b4512 (bug 1183158)
2015-07-13 21:07:01 -04:00
Ehsan Akhgari
b242ba825a Bug 1183158 - Part 5: Get rid of RemoveAllEnumerator; r=baku 2015-07-13 19:28:51 -04:00
Ehsan Akhgari
622961192f Bug 1183158 - Part 4: Get rid of RemoveEnumerator; r=baku 2015-07-13 19:28:49 -04:00
Ehsan Akhgari
5c93eeb5f1 Bug 1183158 - Part 3: Get rid of UnregisterEnumerator; r=baku 2015-07-13 19:28:48 -04:00
Ehsan Akhgari
c51668f943 Bug 1183158 - Part 2: Get rid of SoftUpdateEnumerator; r=baku 2015-07-13 19:28:46 -04:00
Ehsan Akhgari
44899f18a4 Bug 1183158 - Part 1: Get rid of RegistrationEnumerator; r=baku 2015-07-13 19:28:44 -04:00
Ehsan Akhgari
1ea4a2fdd5 Bug 1183141 - Use nsTHashtable::Iterator in ServiceWorkerManager::ClaimClients; r=catalinb 2015-07-13 19:28:43 -04:00
Birunthan Mohanathas
a8939590de Bug 1182996 - Fix and add missing namespace comments. rs=ehsan
The bulk of this commit was generated by running:

  run-clang-tidy.py \
    -checks='-*,llvm-namespace-comment' \
    -header-filter=^/.../mozilla-central/.* \
    -fix
2015-07-13 08:25:42 -07:00
Michael Layzell
562c0a00bc Bug 1181321 - Eliminate duplicate mRefCnt members in PromiseNativeHandler subclasses. r=baku
--HG--
extra : rebase_source : 64348ca27d2f70dc116856dd4f9271e1fb63a467
2015-07-09 08:56:00 +02:00
Wes Kocher
aec62d3dc0 Backed out changeset adf95d1cd0aa (bug 1173934) for fetch-frame-resource.https.html WPT orange and test_synthesized_response.js S4 orange CLOSED TREE
--HG--
extra : amend_source : 82d7af13e11137e614b0b1bd12f5af3108551bfc
2015-07-10 15:59:01 -07:00
Wes Kocher
14b97c87b1 Backed out changeset df6593df027b (bug 1173912) 2015-07-10 15:58:24 -07:00
Ben Kelly
e0d5d6632a Bug 1173912 Fail opaque responses for client requests. r=ehsan 2015-07-10 14:28:32 -07:00
Ben Kelly
2a31a01e4b Bug 1173934 Show a message if a docshell fails to load due to SW intercept failure. r=ehsan r=jdm 2015-07-10 14:28:32 -07:00
Ben Kelly
03162f3aca Bug 1181871 P2 Fix ServiceWorkerManager usage of stack-based ErrorResult. r=ehsan 2015-07-10 13:56:06 -07:00
Geoff Brown
52d4e225a0 Bug 1026290 - Update mochitest-chrome manifests for android; r=jgriffin 2015-07-10 14:41:59 -06:00
Wes Kocher
d8780b2a3f Backed out changeset 74293125739a (bug 1176341) 2015-07-10 12:48:20 -07:00
Andrew McCreight
8047284e97 Bug 1176341 - De-holder nsIXPConnect::CreateSandbox. r=baku,gabor 2015-07-10 07:41:33 -07:00
Randell Jesup
b63478816a Bug 1155059: Patch 5 - clean up ServiceWorkers and avoid leaks r=nikhil 2015-07-09 23:21:46 -04:00
Randell Jesup
c87c478f4f Bug 1155059: Patch 1&2 - Convert Dispatch() and friends to already_AddRefed<> r=froydnj
Modify Dispatch IDL and code to deal with MSVC issues with overloaded templates r=froydnj
2015-07-09 23:21:46 -04:00
Carsten "Tomcat" Book
7066396ea2 Backed out changeset 2db7f8ad8c8f (bug 1178233) on request by jaoo
--HG--
extra : rebase_source : 42d27ad778b8bf93773c8f4c9790b46982fda362
extra : histedit_source : bd90cc84a7b25d1d9cbd1a617b1335dd59341748
2015-07-09 10:53:26 +02:00
Carsten "Tomcat" Book
91625404b0 Backed out changeset ab0df10f86e2 (bug 1178233)
--HG--
extra : rebase_source : 8dd5addb6247f40d7274077185f41951fd104166
extra : histedit_source : 3d804f032d6b107644c187ee7de7354d291e351b
2015-07-09 10:52:24 +02:00
Jose Antonio Olivera Ortega
0f6d49432e Bug 1178233 - [non-e10s] The update process doesn't work within about:serviceworkers in non-e10s mode. Test. r=baku 2015-07-09 09:26:04 +02:00
Jose Antonio Olivera Ortega
4351767879 Bug 1178233 - [non-e10s] The update process doesn't work within about:serviceworkers in non-e10s mode. r=baku 2015-07-09 09:25:55 +02:00
Michael Layzell
2d6d3c44ec Bug 1181318 - Eliminate duplicate mRefCnt members in nsRunnable subclasses. r=ehsan 2015-07-07 14:03:00 +02:00
Wes Kocher
e539211474 Backed out changeset 35aee276e08f (bug 1179685) for wpt failures CLOSED TREE 2015-07-07 12:29:21 -07:00
Catalin Badea
820bc62413 Bug 1179685 - Fix messageport assert in wpt service worker test. r=baku 2015-07-07 11:11:34 -07:00
Ehsan Akhgari
0d43f2a7cc Bug 1180887 - Part 2: Split test_request_context.html into one test file per chunk; r=baku
--HG--
rename : dom/workers/test/serviceworkers/test_request_context.html => dom/workers/test/serviceworkers/test_request_context_audio.html
rename : dom/workers/test/serviceworkers/test_request_context.html => dom/workers/test/serviceworkers/test_request_context_beacon.html
rename : dom/workers/test/serviceworkers/test_request_context.html => dom/workers/test/serviceworkers/test_request_context_cache.html
rename : dom/workers/test/serviceworkers/test_request_context.html => dom/workers/test/serviceworkers/test_request_context_cspreport.html
rename : dom/workers/test/serviceworkers/test_request_context.html => dom/workers/test/serviceworkers/test_request_context_embed.html
rename : dom/workers/test/serviceworkers/test_request_context.html => dom/workers/test/serviceworkers/test_request_context_fetch.html
rename : dom/workers/test/serviceworkers/test_request_context.html => dom/workers/test/serviceworkers/test_request_context_font.html
rename : dom/workers/test/serviceworkers/test_request_context.html => dom/workers/test/serviceworkers/test_request_context_frame.html
rename : dom/workers/test/serviceworkers/test_request_context.html => dom/workers/test/serviceworkers/test_request_context_iframe.html
rename : dom/workers/test/serviceworkers/test_request_context.html => dom/workers/test/serviceworkers/test_request_context_image.html
rename : dom/workers/test/serviceworkers/test_request_context.html => dom/workers/test/serviceworkers/test_request_context_imagesrcset.html
rename : dom/workers/test/serviceworkers/test_request_context.html => dom/workers/test/serviceworkers/test_request_context_internal.html
rename : dom/workers/test/serviceworkers/test_request_context.html => dom/workers/test/serviceworkers/test_request_context_nestedworker.html
rename : dom/workers/test/serviceworkers/test_request_context.html => dom/workers/test/serviceworkers/test_request_context_nestedworkerinsharedworker.html
rename : dom/workers/test/serviceworkers/test_request_context.html => dom/workers/test/serviceworkers/test_request_context_object.html
rename : dom/workers/test/serviceworkers/test_request_context.html => dom/workers/test/serviceworkers/test_request_context_picture.html
rename : dom/workers/test/serviceworkers/test_request_context.html => dom/workers/test/serviceworkers/test_request_context_ping.html
rename : dom/workers/test/serviceworkers/test_request_context.html => dom/workers/test/serviceworkers/test_request_context_plugin.html
rename : dom/workers/test/serviceworkers/test_request_context.html => dom/workers/test/serviceworkers/test_request_context_script.html
rename : dom/workers/test/serviceworkers/test_request_context.html => dom/workers/test/serviceworkers/test_request_context_sharedworker.html
rename : dom/workers/test/serviceworkers/test_request_context.html => dom/workers/test/serviceworkers/test_request_context_style.html
rename : dom/workers/test/serviceworkers/test_request_context.html => dom/workers/test/serviceworkers/test_request_context_track.html
rename : dom/workers/test/serviceworkers/test_request_context.html => dom/workers/test/serviceworkers/test_request_context_video.html
rename : dom/workers/test/serviceworkers/test_request_context.html => dom/workers/test/serviceworkers/test_request_context_worker.html
rename : dom/workers/test/serviceworkers/test_request_context.html => dom/workers/test/serviceworkers/test_request_context_xhr.html
rename : dom/workers/test/serviceworkers/test_request_context.html => dom/workers/test/serviceworkers/test_request_context_xslt.html
2015-07-07 09:07:13 -04:00
Ehsan Akhgari
c8db7315b7 Bug 1180887 - Part 1: Separate out the JS code inside test_request_context.html; r=baku 2015-07-07 09:06:15 -04:00
Dragana Damjanovic
7987d2203e Bug 905127 - Part 2 - remove unnecessary nsNetUtil.h includes r=jduell 2015-07-06 07:55:00 +02:00
Emanuel Hoogeveen
7d1e52f2ff Bug 905127 - Part 1 - Make some functions from nsNetUtil not inline. r=jduell 2015-07-07 04:17:00 +02:00
Andrea Marchesini
0bb0e9c317 Bug 1176034 - Implement JSAutoStructuredCloneBuffer::clear(with callbacks and closure), r=sfink 2015-07-06 12:22:08 +01:00
Juan Gomez
258ad59e3f Bug 1171931 - Refactor duplicated code using XRE_IsParent/ContentProcess. r=froydnj 2015-07-03 18:29:00 -07:00
Fernando Jimenez
691c7a6873 Bug 1171651 - Disable the interception of app:// URIs in service workers on release builds. r=baku 2015-07-03 18:41:01 +02:00
Hiroyuki Ikezoe
47d5b2db66 Bug 1179982 - Fix all compile errors in dom/workers on non-unified build. r=mrbkap 2015-07-02 14:54:00 +02:00
Ben Kelly
e0d7c2260d Bug 1167808 P4 Test that respondWith() for a browser load reads the body correctly. r=ehsan 2015-07-02 20:09:21 -07:00
Ben Kelly
6f115f3d29 Bug 1167808 P3 FetchEvent.respondWith() should use opaque response internal body. r=nsm 2015-07-02 20:09:21 -07:00
Ben Kelly
0b1916f864 Bug 1167808 P2 Block opaque response interception if pref is disabled. r=ehsan 2015-07-02 20:09:21 -07:00
Ben Kelly
d0a67ebc82 Bug 1167808 P1 Add dom.serviceWorkers.interception.opaque.enabled pref. r=ehsan 2015-07-02 20:09:20 -07:00
Ehsan Akhgari
1d4e1f5b2f Bug 1179489 - Don't count service workers towards an origin's max worker quota; r=nsm
This is a follow-up to bug 1178339.
2015-07-02 18:48:48 -04:00
Wes Kocher
e9a82d0d8e Backed out 4 changesets (bug 1167808) for mulet mochitest-4 permafail in test_fetch_cors_sw_reroute.html
Backed out changeset 1c9c72d93973 (bug 1167808)
Backed out changeset 9c94c759a0fb (bug 1167808)
Backed out changeset e8ac89eafb1d (bug 1167808)
Backed out changeset 48abf470ef5b (bug 1167808)
2015-07-02 15:30:29 -07:00
Ben Kelly
552b53971f Bug 1167808 P4 Test that respondWith() for a browser load reads the body correctly. r=ehsan 2015-07-02 14:34:01 -07:00
Ben Kelly
718d40eab6 Bug 1167808 P3 FetchEvent.respondWith() should use opaque response internal body. r=nsm 2015-07-02 14:34:00 -07:00
Ben Kelly
a3bdc88aaf Bug 1167808 P2 Block opaque response interception if pref is disabled. r=ehsan 2015-07-02 14:34:00 -07:00
Ben Kelly
ca953711c7 Bug 1167808 P1 Add dom.serviceWorkers.interception.opaque.enabled pref. r=ehsan 2015-07-02 14:34:00 -07:00
Ehsan Akhgari
ba7853765f Bug 1179753 - Use pushPrefEnv more in worker tests; r=baku 2015-07-02 12:22:48 -04:00
Ehsan Akhgari
c1d16c122a Bug 1179548 - Close the windows opened in private browsing worker tests; r=baku 2015-07-02 12:22:47 -04:00
Ben Kelly
0fd3dd2bfb Bug 1178508 ServiceWorker scripts should never be intercepted. r=baku 2015-07-02 07:30:06 -07:00
Ehsan Akhgari
8dc57f5800 Bug 1179567 - Make ServiceWorker keep its document and window alive; r=baku
Without this, ServiceWorker::PostMessage won't work when the window has
been cleaned up, since at that time the event targets are disconnected
from their owners and GetParentObject() will return null.
2015-07-02 09:48:27 -04:00
Ehsan Akhgari
6422b76944 Bug 1163410 - Ensure that JSAPI is properly initialized before calling ServiceWorkerClientPostMessageRunnable::DispatchDOMEvent; r=nsm 2015-07-01 20:45:13 -04:00
Ehsan Akhgari
2860680543 Mark test_bug883784.jsm as a support file, no bug 2015-07-01 20:45:12 -04:00
Ehsan Akhgari
92139cbfb2 Bug 1178339 - Account for service workers separately in WorkerDomainInfo; r=nsm 2015-07-01 20:37:40 -04:00
Wes Kocher
a1c9065f46 Backed out changeset c0cfb1a32d09 (bug 1178339) for being the likely causes of a spike in serviceworker intermittent failures 2015-07-01 17:18:17 -07:00
Wes Kocher
2b28741a66 Backed out changeset c3d3ec68482b (bug 1163410) 2015-07-01 17:18:00 -07:00
Ehsan Akhgari
0532a54cb7 Bug 1163410 - Ensure that JSAPI is properly initialized before calling ServiceWorkerClientPostMessageRunnable::DispatchDOMEvent; r=nsm 2015-07-01 16:15:02 -04:00
Ehsan Akhgari
80bb6f7d91 Bug 1178339 - Account for service workers separately in WorkerDomainInfo; r=nsm 2015-07-01 16:12:43 -04:00
Jan de Mooij
303b210317 Bug 1177892 part 3 - Remove OBJECT_TO_JSVAL. r=evilpie 2015-06-30 21:09:46 -07:00
Jan de Mooij
155b1afd35 Bug 1177892 part 1 - Remove BOOLEAN_TO_JSVAL and STRING_TO_JSVAL. r=evilpie 2015-06-30 11:20:56 -07:00
Ehsan Akhgari
a7e0f3e102 Bug 1148935 - Correctly reflect worker and sharedworker RequestContext values; r=smaug 2015-06-30 18:52:42 -04:00
Ryan VanderMeulen
c4367148d1 Backed out changeset 07bf31cca660 (bug 1148935) for Werror bustage.
CLOSED TREE
2015-06-30 15:53:43 -04:00
Ryan VanderMeulen
7483c0563e Backed out changesets ad58c270ce87 and 849151330d60 (bug 1177892) for B2G bustage.
CLOSED TREE
2015-06-30 15:48:11 -04:00
Ehsan Akhgari
d560d3dcf3 Bug 1148935 - Correctly reflect worker and sharedworker RequestContext values; r=smaug 2015-06-30 15:30:08 -04:00
Jan de Mooij
731f441d6e Bug 1177892 part 1 - Remove BOOLEAN_TO_JSVAL and STRING_TO_JSVAL. r=evilpie
--HG--
extra : rebase_source : f7ae63c351c82516e7db48a12c4cfb2048a81805
2015-06-30 11:20:56 -07:00
Birunthan Mohanathas
670cde3e29 Bug 1174803 - Simplify RuntimeService::WorkerPrefChanged. r=bent 2015-06-30 11:16:03 -07:00
Jan de Mooij
976586cb5f Bug 1177825 - Remove JSVAL_* constants. r=evilpie 2015-06-29 18:36:44 -07:00
Andrea Marchesini
3fb4f10250 Bug 1177916 - URL should be a nsWrapperCache object, r=smaug 2015-06-29 17:03:47 +01:00
Andrea Marchesini
fc9a4cb52f Bug 1177916 - URLSearchParams::GetParentObject should not return nullptr, r=smaug 2015-06-29 17:02:53 +01:00
Carsten "Tomcat" Book
90ccc67e4e merge mozilla-inbound to mozilla-central a=merge 2015-06-29 14:17:02 +02:00
Andrew Osmond
7816914768 Bug 1167650 - Expose DOMRequest and DOMCursor to workers. r=bent 2015-06-28 09:34:01 -07:00
Ben Kelly
2de3ef558a Bug 1175138 P5 Make CacheStorage reject on untrusted origins. r=ehsan 2015-06-27 23:19:24 -04:00
Ben Kelly
46d52c7f4d Bug 1175138 P4 Enable dom.caches.testing.enabled in existing tests. r=ehsan 2015-06-27 23:19:24 -04:00
Ben Kelly
adbd55f907 Bug 1175138 P3 Expose the devtools SW testing flag on workers. r=ehsan 2015-06-27 23:19:24 -04:00
Ben Kelly
5940533c35 Bug 1175138 P2 Expose dom.serviceWorkers.testing.enabled to workers. r=ehsan 2015-06-27 23:19:24 -04:00
Ben Kelly
74e7e7f196 Bug 1175138 P1 Make the dom.caches.testing.enabled pref available in workers. r=ehsan 2015-06-27 23:19:23 -04:00
Nikhil Marathe
091eef6ff6 Bug 916893 - Patch 1 - Notification on workers. r=khuey,wchen
Does not implement the Service Worker API - https://notifications.spec.whatwg.org/#service-worker-api
***
Folded:
Bug 916893 - Better ownership model. r=khuey
Fix for bug found by ASan where we were touching the NotificationFeature after releasing it.

--HG--
extra : transplant_source : %3C%09F%99%CASF%1A%25%89X%D9%8C%0B%FAu%9D%27%E8w
2015-06-25 18:53:02 -07:00
Ehsan Akhgari
55918a5838 Bug 1177816 - Dump a message when the service worker for test_request_context receives an unexpected context value; r=baku 2015-06-27 12:38:55 -07:00
Ben Kelly
d722c7d5fb Bug 1173467 P3 Pass private browsing flag into CacheStorage factory methods. r=ehsan 2015-06-26 19:36:40 -07:00
Cameron McCormack
860a9f7d1a Back out bug 1177916 (changeset d4c34d7fb112) for test_urlSearchParams.html failure. 2015-06-27 12:18:19 +10:00
Cameron McCormack
5ccbe11d06 Back out bug 1173467 (changesets a20799ebf48c, 9312c5cb756e, c0e8bba17067, af075443ab21, 30cefdf8d020) for assertion failures in test_app_protocol.html. 2015-06-27 11:57:17 +10:00
Andrea Marchesini
d55095b632 Bug 1177916 - URLSearchParams::GetParentObject should not return nullptr, r=smaug 2015-06-26 17:44:34 -07:00
Ben Kelly
73d7dcb1a3 Bug 1173467 P3 Pass private browsing flag into CacheStorage factory methods. r=ehsan 2015-06-26 17:42:56 -07:00
Ryan VanderMeulen
84d140a54b Backed out 11 changesets (bug 916893, bug 1114554) for various mochitest and Gij failures.
Backed out changeset 247ca4bf258e (bug 1114554)
Backed out changeset 5578d5c280a6 (bug 1114554)
Backed out changeset 404830c1ecf7 (bug 1114554)
Backed out changeset 15bdf9c78e6e (bug 1114554)
Backed out changeset f92abe5ec784 (bug 1114554)
Backed out changeset 75324b6862a8 (bug 1114554)
Backed out changeset ce8a768782f2 (bug 1114554)
Backed out changeset 0d860fd12534 (bug 1114554)
Backed out changeset 7dc2448065a9 (bug 916893)
Backed out changeset c3b07f0d1a60 (bug 916893)
Backed out changeset 61c3f24cc908 (bug 916893)

CLOSED TREE
2015-06-25 19:52:40 -04:00
Ryan VanderMeulen
5f5c327690 Backed out changeset 8b4e4083639e (bug 1171931) for B2G debug emulator bustage. 2015-06-25 19:48:42 -04:00
Nikhil Marathe
8f7048a174 Bug 1114554 - Patch 8 - Support waitUntil() on notificationclick event. r=baku
This was originally a part of Bug 1160527, separated due to changes in order of landing the patches.

--HG--
extra : rebase_source : 7095a8aed48684f4c10d2d0927a38bafe851f422
2015-06-24 09:34:11 -07:00
Andrea Marchesini
43fb37cc29 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
Nikhil Marathe
e3a3384edf Bug 1114554 - Patch 6 - ServiceWorkerRegistration.getNotifications() tests. r=wchen
--HG--
extra : rebase_source : 579603744487eda0857ee297408e0ec71c4b7227
2015-05-04 19:10:53 -07:00
Nikhil Marathe
811edc788a Bug 1114554 - Patch 5 - getNotifications() on worker thread. r=wchen
--HG--
extra : rebase_source : b3f68e725be5cbfedc2995c9b20450e4bcaa1aae
2015-05-04 09:04:25 -04:00
Nikhil Marathe
54e0ea7180 Bug 1114554 - Patch 4 - ServiceWorkerRegistration.getNotifications() on main thread. r=wchen
--HG--
extra : rebase_source : 7963829964347156d091c2c8f492c546a9e5fdc0
extra : amend_source : a1bcbf20f5e4ab65b4214bc97d64deba9732b952
2015-04-27 14:18:54 -07:00
Nikhil Marathe
1abb9e59d8 Bug 1114554 - Patch 3 - Fire notificationclick event on ServiceWorkerGlobalScope. r=wchen,baku
Bug 1114554 - Patch 3.1 - ServiceWorker principal fixes. r=baku

Bug 1162088 introduced origin attributes that ServiceWorkerManager callers have to use. This patch updates notificationclick events to work.

Folded:
Hide NotificationEvent behind pref

--HG--
extra : rebase_source : b536cc6a6e0ba212f225a3638cf4140635628047
2015-06-25 15:01:01 -07:00
Nikhil Marathe
7df5ce7b58 Bug 1114554 - Patch 2 - ServiceWorkerRegistration.showNotification(). r=wchen,baku
Refactor creation and show dispatch so Notification constructor and showNotification can use it.
Move persistence to ShowInternal.
NotificationStorage calls callback async even when fetching from cache, simply to have similar semantics.
Calls to Notification::Get() are performed async since persistence is now async after being moved to ShowInternal().
Both are in accordance with the spec where the "append to list of notifications" operation is performed in the "show steps" which are performed in parallel from API invocations.

--HG--
extra : rebase_source : 1becb5055dc29166dc6445227bab4b9daed213cf
2015-05-06 13:52:41 -07:00
Nikhil Marathe
914907fc27 Bug 1114554 - Patch 1 - Notification ServiceWorker API stubs. r=wchen,baku
--HG--
extra : rebase_source : 10558f76070842454f22356d35b4f6639f990e29
2015-03-10 18:57:09 -07:00
Nikhil Marathe
6ecdd193cc Bug 916893 - Patch 1 - Notification on workers. r=khuey,wchen
Does not implement the Service Worker API - https://notifications.spec.whatwg.org/#service-worker-api
***
Folded:
Bug 916893 - Better ownership model. r=khuey
Fix for bug found by ASan where we were touching the NotificationFeature after releasing it.

--HG--
extra : rebase_source : 7522a4a51fda41726e7cf26b61fbf535c260fab3
2015-06-25 11:36:53 -07:00
Juan Gomez
702a59d135 Bug 1171931 - Refactor duplicated code using XRE_IsParent/ContentProcess. r=froydnj
--HG--
extra : rebase_source : 2ecbe6c1dd8a7ad8dc529b53349ad431cf1116c9
2015-06-24 14:11:00 -04:00
Andrea Marchesini
d56d23dc96 Bug 1168933 - Send referrer when downloading worker script. r=khuey
--HG--
extra : rebase_source : b4fa11d4ba34525979c98de119934beffba284f7
2015-06-04 16:20:13 -07:00
Nikhil Marathe
769b046558 Bug 1169044 - Patch 5 - build fixes. a=bustage
--HG--
extra : rebase_source : 3983bd2531b85f3f1f61b360aa44a11f0effe8bc
2015-06-04 17:26:05 -07:00
Nikhil Marathe
313557b8e3 Bug 1169044 - Patch 4 - Set referrer on intercepted request. r=jdm
--HG--
extra : rebase_source : eb69cd43d33c1f84d6fb4ea5080db0a6e240570a
2015-06-04 15:50:03 -07:00
Nikhil Marathe
b52b66ebf5 Bug 1169044 - Patch 3 - Store and set principal with script URI on ServiceWorkers. r=ehsan
The ServiceWorkerRegistrationInfo's principal is the principal of the document
that called register(). If we create WorkerPrivate instances based off of
this, they have a valid principal in terms of security and same-origin-ness,
but the URI path is wrong. When fetching the script from the network, the
channel's principal is used to update the worker principal. We need to do the
same when the script is loaded from Cache. This patch adds support to store the
channel principal in the cache.

--HG--
extra : rebase_source : e7d527335aa4f0d4ee52e58915c8b0ef4ad26983
2015-06-04 21:39:34 -07:00
Nikhil Marathe
b8eea4d16b Bug 1166350 - Push fixes for principals. r=kitcambridge,bholley
Fix xpcshell tests.
Add support for webapps-clear-data.
Trash old regs on idb version upgrade.
Use principal for permission check.
use principal in PushSubscription.

--HG--
extra : source : d7554019b424327a3271e2c0debda995fff36cb5
extra : intermediate-source : be40dea6534771bdeedc9f7c6ccd8bbddb6e41c2
2015-06-24 13:34:54 -07:00
Ryan VanderMeulen
c01c5195c9 Backed out changeset 98c7277a8fb5 (bug 1166350) for xpcshell failures. 2015-06-24 16:10:45 -04:00
Andrea Marchesini
46ed66e379 Bug 1174731 - patch 1 - Make searchParams attribute readonly, r=smaug 2015-06-24 12:15:59 -07:00
Nikhil Marathe
bd635e2c8a Bug 1166350 - Push fixes for principals. r=kitcambridge,bholley
Fix xpcshell tests.
Add support for webapps-clear-data.
Trash old regs on idb version upgrade.
Use principal for permission check.
use principal in PushSubscription.

--HG--
extra : rebase_source : 3b8cb541512d3fb9a253773c2fd5227c980efdd2
extra : source : d7554019b424327a3271e2c0debda995fff36cb5
2015-06-02 15:56:33 -07:00
Nikhil Marathe
6534f790ec Bug 1160527 - Patch 1 - Support PushEvent.waitUntil(). r=baku.
--HG--
extra : rebase_source : 3cafe72c66d2e04ef939fa092ae55e6b87c0f626
extra : source : a3ca94614c928cc640d41087cffb6c123ed382d7
2015-06-02 14:52:49 -07:00
Ehsan Akhgari
60626aff92 Bug 1175480 - Expose the external content policy type from the load info objects; r=smaug
Consumers of this type need to deal with the external content policy
types.  One example is HttpObserverManager.runChannelListener in
WebRequest.jsm.
2015-06-24 08:52:45 -07:00
Andrea Marchesini
6713cdfbc5 Bug 1176034 - MessagePort should force a close() if the structured clone algorithm fails, r=bent 2015-06-23 15:50:00 -07:00
Carsten "Tomcat" Book
fa9ac90dde Backed out changeset 4f4ceae7be1a (bug 1176034) for frequent bustages in Windows 8 x64 debug 2015-06-24 10:11:07 +02:00
Andrea Marchesini
676a802cc7 Bug 1176034 - MessagePort should force a close() if the structured clone algorithm fails, r=bent 2015-06-23 15:50:00 -07:00
Josh Matthews
e78831b550 Bug 1137683 - Use a loadgroup derived from the document's when updating a ServiceWorker; r=bkelly 2015-06-23 10:50:04 -07:00
Andrea Marchesini
138e30b4a8 Bug 1174381 - ServiceWorkerManager::TeardownRunnable should be called when xpcom-shutdown notification is received, r=nsm 2015-06-23 05:56:29 -07:00
Ben Turner
a0940b9a26 Bug 1171578 - Avoid crashing if indexedDB is used at a particular point in the worker shutdown sequence, r=baku. 2015-06-22 12:13:38 -07:00
Ryan VanderMeulen
db78fb6a30 Bug 1163410 - Skip test_request_context.html on Android for frequent crashes.
--HG--
extra : rebase_source : 80703ca36eb2c07bf2057659e86bb475e338720d
2015-06-21 21:14:53 -04:00
Ryan VanderMeulen
926e7b839f Backed out changeset b7653e3d5f91 (bug 1174381) for widespread assertion failures. 2015-06-21 07:47:02 -04:00
Andrea Marchesini
4546e525be Bug 1167296 - patch 2 - ServiceWorkerManager::Remove should use PBackground, r=nsm 2015-06-21 12:19:07 +01:00
Andrea Marchesini
0bc6c733fd Bug 1167296 - patch 1 - ServiceWorkerManager::RemoveAll should use PBackground, r=nsm 2015-06-21 12:17:58 +01:00
Andrea Marchesini
c7076248d9 Bug 1174381 - ServiceWorkerManager::TeardownRunnable should be called when xpcom-shutdown notification is received, r=nsm 2015-06-21 10:21:28 +01:00
Valentin Gosu
6dd869a927 Bug 1093611 - Stage 2 - Make hash getters not do percent decoding if dom.url.getters_decode_hash is false r=smaug 2015-06-15 15:55:02 +03:00
Valentin Gosu
bc3da3efc4 Bug 1093611 - Stage 2 - Tests that hash getters don't do percent decoding r=smaug 2015-06-10 03:31:36 +03:00
Nikhil Marathe
0db24a2c7c Bug 1173389 - Disable ServiceWorker network interception by default. r=ehsan
--HG--
extra : rebase_source : 6309f011f978f08c4f104123910f7d8d9e56045a
2015-06-12 16:28:13 -07:00
Andrea Marchesini
d373161bc9 Bug 1168411 - Disable test_sharedWorker_performance_user_timing.html on B2G debug for intermittent failures. r=RyanVM
CLOSED TREE
2015-06-19 07:58:00 -04:00
Andrea Marchesini
fc1b46e170 Bug 1134224 - Disable test_bug1132395.html due to frequent intermittent failures. r=RyanVM 2015-06-19 06:36:00 -04:00
Carsten "Tomcat" Book
dc3312548b Backed out changeset b2c472fe14ca (bug 1175480) for crashes in serviceworkers/test_request_context.htm 2015-06-18 09:54:44 +02:00
Carsten "Tomcat" Book
320d038d99 Backed out changeset 7b09594541f3 (bug 1148935) 2015-06-18 09:48:01 +02:00
Ehsan Akhgari
47e2d52863 Bug 1148935 - Correctly reflect worker and sharedworker RequestContext values; r=smaug 2015-06-17 17:48:45 -04:00
Ryan VanderMeulen
88a04ff445 Backed out changeset 439e1f841ea2 (bug 1148935) for Werror bustage.
CLOSED TREE
2015-06-17 15:48:16 -04:00
Ehsan Akhgari
f6c4133715 Bug 1148935 - Correctly reflect worker and sharedworker RequestContext values; r=smaug 2015-06-17 15:09:07 -04:00
Ehsan Akhgari
cee6f01c68 Bug 1175480 - Expose the external content policy type from the load info objects; r=smaug
Consumers of this type need to deal with the external content policy
types.  One example is HttpObserverManager.runChannelListener in
WebRequest.jsm.
2015-06-17 15:09:06 -04:00
Jose Antonio Olivera Ortega
6d2c2b30f9 Bug 1160458 - Part 2: Test. r=nsm
--HG--
extra : transplant_source : xN%84%97%96%EC%E8T%AB%93M%5Ex%DCj/%3Fs%E4%0D
2015-06-16 09:42:57 +02:00
Jose Antonio Olivera Ortega
8e93c3cd23 Bug 1160458 - Part 1: Use the CSP of the principal passed to CreateServiceWorker. r=nsm
--HG--
extra : transplant_source : %5D%12%AE%F1%22%FAx%02g%D1C%3E%F7h%DB%AF%5C%A7PY
2015-06-16 09:20:21 +02:00
Andrea Marchesini
10f444c31f Bug 952139 - Enable MessagePort/MessageChannel by default, r=smaug 2015-06-17 11:45:17 +01:00
Andrea Marchesini
8372e7d29d Bug 911972 - MessagePort and MessageChannel in workers, r=smaug, r=bent
--HG--
rename : dom/base/MessageChannel.cpp => dom/messagechannel/MessageChannel.cpp
rename : dom/base/MessageChannel.h => dom/messagechannel/MessageChannel.h
rename : dom/base/MessagePort.cpp => dom/messagechannel/MessagePort.cpp
rename : dom/base/MessagePort.h => dom/messagechannel/MessagePort.h
rename : dom/base/MessagePortList.cpp => dom/messagechannel/MessagePortList.cpp
rename : dom/base/MessagePortList.h => dom/messagechannel/MessagePortList.h
rename : dom/base/test/iframe_messageChannel_chrome.html => dom/messagechannel/tests/iframe_messageChannel_chrome.html
rename : dom/base/test/iframe_messageChannel_cloning.html => dom/messagechannel/tests/iframe_messageChannel_cloning.html
rename : dom/base/test/iframe_messageChannel_pingpong.html => dom/messagechannel/tests/iframe_messageChannel_pingpong.html
rename : dom/base/test/iframe_messageChannel_post.html => dom/messagechannel/tests/iframe_messageChannel_post.html
rename : dom/base/test/test_messageChannel.html => dom/messagechannel/tests/test_messageChannel.html
rename : dom/base/test/test_messageChannel.xul => dom/messagechannel/tests/test_messageChannel.xul
rename : dom/base/test/test_messageChannel_cloning.html => dom/messagechannel/tests/test_messageChannel_cloning.html
rename : dom/base/test/test_messageChannel_pingpong.html => dom/messagechannel/tests/test_messageChannel_pingpong.html
rename : dom/base/test/test_messageChannel_post.html => dom/messagechannel/tests/test_messageChannel_post.html
rename : dom/base/test/test_messageChannel_pref.html => dom/messagechannel/tests/test_messageChannel_pref.html
rename : dom/base/test/test_messageChannel_start.html => dom/messagechannel/tests/test_messageChannel_start.html
rename : dom/base/test/test_messageChannel_transferable.html => dom/messagechannel/tests/test_messageChannel_transferable.html
rename : dom/base/test/test_messageChannel_unshipped.html => dom/messagechannel/tests/test_messageChannel_unshipped.html
2015-06-17 11:44:27 +01:00