Граф коммитов

2054 Коммитов

Автор SHA1 Сообщение Дата
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
Fernando Jimenez cedf327295 Bug 1174078 - Calling "fetch" inside Service Worker's "onfetch" handler in b2g causes "onfetch" again that leads to an infinite loop. Test. r=nsm 2015-06-17 11:50:07 +02:00
Ehsan Akhgari 2a127a2d67 Bug 1147668 - Correctly reflect video and track RequestContext values; r=smaug 2015-06-16 21:18:08 -04:00
Wes Kocher 3ae1cac20c Backed out changeset f46a712edf7e (bug 1147668) for assertion failures in test_access_control.html CLOSED TREE 2015-06-16 14:48:15 -07:00
Ryan VanderMeulen 83cd9ed67a Backed out changesets a08167680328 and b008f158e91f (bug 1093611) for talos svgr timeouts. 2015-06-16 15:37:37 -04:00
Ehsan Akhgari 103e06656c Bug 1147668 - Correctly reflect video and track RequestContext values; r=smaug 2015-06-16 14:49:58 -04:00
Valentin Gosu c852d75d5c Bug 1093611 - Stage 2 - Make hash getters not do percent decoding if dom.url.getters_decode_hash is false r=smaug 2015-06-16 19:46:31 +03:00
Valentin Gosu be1dbef669 Bug 1093611 - Stage 2 - Tests that hash getters don't do percent decoding r=smaug 2015-06-16 19:46:18 +03:00
Ehsan Akhgari aeecf7b38d Backed out changeset 7210dfe7ad78 (Bug 1147668) for test failure 2015-06-15 23:20:02 -04:00
Ehsan Akhgari 0096b1db1f Bug 1147668 - Correctly reflect video and track RequestContext values; r=smaug 2015-06-15 22:08:06 -04:00
Ryan VanderMeulen 350215c93f Backed out changeset 068df0223a6c (bug 1125961) for e10s crashes.
CLOSED TREE
2015-06-15 15:27:53 -04:00
Josh Matthews e3e3f30ca2 Bug 1125961 - Allow sending null PBrowser actors when there's a triggering principal which can be used for security checks; r=dragana 2015-06-15 14:35:06 -04:00
Ryan VanderMeulen c366b2c3f3 Backed out changeset 1d67d747b3eb (bug 911972) for frequent linux64 debug e10s test_post_message_advanced.html timeouts.
CLOSED TREE

--HG--
rename : dom/messagechannel/MessageChannel.cpp => dom/base/MessageChannel.cpp
rename : dom/messagechannel/MessageChannel.h => dom/base/MessageChannel.h
rename : dom/messagechannel/MessagePort.cpp => dom/base/MessagePort.cpp
rename : dom/messagechannel/MessagePort.h => dom/base/MessagePort.h
rename : dom/messagechannel/MessagePortList.cpp => dom/base/MessagePortList.cpp
rename : dom/messagechannel/MessagePortList.h => dom/base/MessagePortList.h
rename : dom/messagechannel/tests/iframe_messageChannel_chrome.html => dom/base/test/iframe_messageChannel_chrome.html
rename : dom/messagechannel/tests/iframe_messageChannel_cloning.html => dom/base/test/iframe_messageChannel_cloning.html
rename : dom/messagechannel/tests/iframe_messageChannel_pingpong.html => dom/base/test/iframe_messageChannel_pingpong.html
rename : dom/messagechannel/tests/iframe_messageChannel_post.html => dom/base/test/iframe_messageChannel_post.html
rename : dom/messagechannel/tests/test_messageChannel.html => dom/base/test/test_messageChannel.html
rename : dom/messagechannel/tests/test_messageChannel.xul => dom/base/test/test_messageChannel.xul
rename : dom/messagechannel/tests/test_messageChannel_cloning.html => dom/base/test/test_messageChannel_cloning.html
rename : dom/messagechannel/tests/test_messageChannel_pingpong.html => dom/base/test/test_messageChannel_pingpong.html
rename : dom/messagechannel/tests/test_messageChannel_post.html => dom/base/test/test_messageChannel_post.html
rename : dom/messagechannel/tests/test_messageChannel_pref.html => dom/base/test/test_messageChannel_pref.html
rename : dom/messagechannel/tests/test_messageChannel_start.html => dom/base/test/test_messageChannel_start.html
rename : dom/messagechannel/tests/test_messageChannel_transferable.html => dom/base/test/test_messageChannel_transferable.html
rename : dom/messagechannel/tests/test_messageChannel_unshipped.html => dom/base/test/test_messageChannel_unshipped.html
2015-06-15 13:06:23 -04:00
Ryan VanderMeulen faad1a38af Backed out changesets 465dfc26cccb and bd11384b3241 (bug 952139) because it depends on bug 911972. 2015-06-15 13:04:02 -04:00
Andrea Marchesini d87596f0b2 Bug 952139 - patch 2 - Expose MessageChannel to workers in mochitests, r=smaug CLOSED TREE 2015-06-15 17:44:08 +01:00
Andrea Marchesini 9b1ac68ebb 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-15 14:08:25 +01:00
Ben Kelly d889c8192d Bug 1169819 Add browser chrome test to validate SW force refresh. r=ehsan 2015-06-12 18:59:01 -07:00
Ben Kelly 6600d293f7 Bug 1172884 P2 Add test for synthesizing a redirect to a compressed resource. r=ehsan 2015-06-12 07:20:21 -07:00
Andrea Marchesini 42a5970722 Bug 1169867 - XMLHttpRequest::SendInternal should not unpin itself when the worker goes away. r=bent 2015-06-12 10:06:19 -04:00
Ehsan Akhgari 863c850e90 Bug 1172948 - Part 3: Add an explicit test case to ensure that authenticated origins that have a non-authenticated parent cannot register a service worker; r=nsm 2015-06-12 09:45:50 -04:00
Ehsan Akhgari 010a84f058 Bug 1172948 - Part 2: Consider all non-chrome parent documents when checking the authenticity of an origin; r=nsm 2015-06-12 09:45:48 -04:00
Ehsan Akhgari 8678e4d7fd Bug 1172948 - Part 1: Refactor the logic for checking for authenticated origins into a helper function; r=nsm 2015-06-12 09:45:46 -04:00
Phil Ringnalda 26d25ec201 Backed out 3 changesets (bug 1172884, bug 1169819) for OS X timeouts in browser_force_refresh.js in bc3
CLOSED TREE

Backed out changeset 7b23ff6ac3a2 (bug 1169819)
Backed out changeset 1434730c0e19 (bug 1172884)
Backed out changeset 17d6ecf1b4ec (bug 1172884)
2015-06-11 20:57:24 -07:00
Nikhil Marathe 83d79304bb Bug 1170822 - Fix controlled documents comparison. r=catalinb
--HG--
extra : rebase_source : c49fed55ea782a7ef34e867a9b21b1dc66a7c088
2015-06-02 14:53:09 -07:00
Ben Kelly 4668eb9cd1 Bug 1169819 Add browser chrome test to validate SW force refresh. r=ehsan 2015-06-11 18:29:28 -07:00
Ben Kelly 7c7866f1b2 Bug 1172884 P2 Add test for synthesizing a redirect to a compressed resource. r=ehsan 2015-06-11 18:29:28 -07:00
Wes Kocher a560c52ed5 Backed out changeset 573451ac095c (bug 1172884) 2015-06-11 17:57:50 -07:00
Wes Kocher 01c957f00a Backed out changeset 8d71eb212b9a (bug 1169819) 2015-06-11 17:57:49 -07:00
Ben Kelly 3b1c0e6220 Bug 1169819 Add browser chrome test to validate SW force refresh. r=ehsan a=kwierso 2015-06-11 17:52:02 -07:00
Ben Kelly 11670de4f9 Bug 1172884 P2 Add test for synthesizing a redirect to a compressed resource. r=ehsan a=kwierso 2015-06-11 17:52:02 -07:00
Fernando Jimenez 69cbd6af13 Bug 1169249 - Unregister service worker registration when uninstalling a service-worker-enabled application. Tests. r=baku 2015-06-11 19:42:38 +02:00
Fernando Jimenez 86b73d268c Bug 1169249 - Unregister service worker registration when uninstalling a service-worker-enabled application. r=baku 2015-06-11 19:42:38 +02:00
Eric Rahm cfbf5aa4f8 Bug 1171555 - Remove overly verbose ServiceWorker warnings. r=bkelly 2015-06-11 09:47:46 -07:00
Fernando Jimenez dbb95a17ef Bug 1137245 - ServiceWorkerManager should set WorkerPrivate::LoadInfo::mIndexedDBAllowed correctly. r=bent, bkelly 2015-06-11 15:32:54 +02:00
Fernando Jimenez 10fa76166d Bug 1152899 - Disallow the interception of third-party iframes using service workers when the third-party cookie preference is set. r=smaug,baku 2015-06-11 15:32:54 +02:00
Jose Antonio Olivera Ortega 01f058a8e8 Bug 1168226 - ServiceWorkerRegistrar only use the scope when registering a service worker. r=baku
--HG--
extra : rebase_source : b71689b85faf90d9715cdf21b842f2ab628df6ce
2015-06-10 10:17:00 +02:00
Wes Kocher cf559bd6b2 Merge m-c to inbound, a=merge CLOSED TREE 2015-06-10 18:38:28 -07:00
Wes Kocher 4eedce1509 Merge inbound to central, a=merge 2015-06-10 18:29:39 -07:00
Ehsan Akhgari ea81410c78 Bug 1173240 - Use the document URI for performing the service worker registration secure origin check; r=baku 2015-06-10 10:33:36 -04:00
Andrea Marchesini dcdcd94a06 Bug 1155153 - about:serviceworkers should work in e10s mode, r=nsm, r=bholley 2015-06-04 19:51:57 +01:00
Christoph Kerschbaumer 90902a1a7f Bug 1117650 - Part 1: Move all CORS tests into dom/security/test. r=sicking
--HG--
rename : dom/base/test/file_CrossSiteXHR_cache_server.sjs => dom/security/test/cors/file_CrossSiteXHR_cache_server.sjs
rename : dom/base/test/file_CrossSiteXHR_inner.html => dom/security/test/cors/file_CrossSiteXHR_inner.html
rename : dom/base/test/file_CrossSiteXHR_inner.jar => dom/security/test/cors/file_CrossSiteXHR_inner.jar
rename : dom/base/test/file_CrossSiteXHR_inner_data.sjs => dom/security/test/cors/file_CrossSiteXHR_inner_data.sjs
rename : dom/base/test/file_CrossSiteXHR_server.sjs => dom/security/test/cors/file_CrossSiteXHR_server.sjs
rename : dom/base/test/test_CrossSiteXHR.html => dom/security/test/cors/test_CrossSiteXHR.html
rename : dom/base/test/test_CrossSiteXHR_cache.html => dom/security/test/cors/test_CrossSiteXHR_cache.html
rename : dom/base/test/test_CrossSiteXHR_origin.html => dom/security/test/cors/test_CrossSiteXHR_origin.html
extra : rebase_source : c57a90e41f381ac5322298c32857c26764acf2de
2015-06-08 16:21:31 -07:00
Ben Turner 496e2b6920 Bug 1173139 - Reorder global creation on workers, r=khuey. 2015-06-10 14:12:55 -07:00
Ben Kelly 42f5e55e0e Bug 1173361 Make ServiceWorkerRegisterJob::Start() call Done() async. r=nsm 2015-06-10 13:39:42 -07:00
Wes Kocher c6d76d7fd9 Merge m-c to inbound, a=merge CLOSED TREE 2015-06-09 19:29:20 -07:00
Wes Kocher 516ac5b38c Merge b2ginbound to central, a=merge 2015-06-09 19:25:38 -07:00
Ryan VanderMeulen acb544810a Merge m-c to b2g-inbound. a=merge
--HG--
rename : js/src/jit/BaselineIC.cpp => js/src/jit/SharedIC.cpp
rename : js/src/jit/BaselineIC.h => js/src/jit/SharedIC.h
rename : js/src/jit/BaselineHelpers.h => js/src/jit/SharedICHelpers.h
rename : js/src/jit/BaselineRegisters.h => js/src/jit/SharedICRegisters.h
rename : js/src/jit/arm/BaselineHelpers-arm.h => js/src/jit/arm/SharedICHelpers-arm.h
rename : js/src/jit/arm/BaselineRegisters-arm.h => js/src/jit/arm/SharedICRegisters-arm.h
rename : js/src/jit/mips/BaselineHelpers-mips.h => js/src/jit/mips/SharedICHelpers-mips.h
rename : js/src/jit/mips/BaselineRegisters-mips.h => js/src/jit/mips/SharedICRegisters-mips.h
rename : js/src/jit/none/BaselineHelpers-none.h => js/src/jit/none/SharedICHelpers-none.h
rename : js/src/jit/none/BaselineRegisters-none.h => js/src/jit/none/SharedICRegisters-none.h
rename : js/src/jit/x64/BaselineHelpers-x64.h => js/src/jit/x64/SharedICHelpers-x64.h
rename : js/src/jit/x64/BaselineRegisters-x64.h => js/src/jit/x64/SharedICRegisters-x64.h
rename : js/src/jit/x86/BaselineHelpers-x86.h => js/src/jit/x86/SharedICHelpers-x86.h
rename : js/src/jit/x86/BaselineRegisters-x86.h => js/src/jit/x86/SharedICRegisters-x86.h
extra : rebase_source : 5d6b69f1e3a8cbad9cab2a5b3fb5ab6eec57ae8f
2015-06-09 13:27:49 -04:00
Nikhil Marathe 338560dbe9 Bug 1172717 - Fail on UNKNOWN_APP_ID instead of crashing. r=bholley a=RyanVM
--HG--
extra : rebase_source : 971c575911a800d97c741a65efcf0689b454fee3
extra : amend_source : abdf62fe7b775cf3305a4e8a0616c99096813cec
2015-06-08 16:18:09 -07:00
Morris Tseng 066c9f47e0 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
Carsten "Tomcat" Book 6f10985138 Merge mozilla-central to fx-team 2015-06-08 12:29:48 +02:00
Eddy Bruël 9fa7476bb3 Bug 1168853 - Implement WorkerDebugger.isInitialized;r=khuey 2015-06-08 09:08:20 +02:00
Ben Turner 215b1e0292 Bug 1173002 - Set worker system principal flag correctly when created from chrome, r=bz, a=kwierso. 2015-06-09 14:34:00 -07:00
Paolo Amadini 0697364b3d Bug 1158133 - Add a way to disable async stacks, and disable by default on mobile platforms. r=bent,jimb
--HG--
extra : rebase_source : 440284ded7a60d44430cd0a91fd946fa4c76c987
2015-06-09 11:17:09 +02:00
Ehsan Akhgari 9a671f5365 Bug 1172110 - Re-enable service workers on desktop and mobile for non-release builds; r=jst 2015-06-06 21:00:18 -04:00
Ehsan Akhgari e140eb2cf9 Bug 1164397 - Part 12: Add a test case for the service worker responding to normal and cached HTTP->HTTPS responses; r=jdm 2015-06-05 15:58:00 -04:00
Ehsan Akhgari efca89ffe3 Bug 1164397 - Part 11: Add a test case for the service worker responding to HTTPS normal and cached Responses; r=jdm 2015-06-05 15:57:58 -04:00
Ehsan Akhgari b71252d396 Bug 1164397 - Part 10: Add a test case for the service worker for an app:// URI responding with cached HTTP and HTTPS responses; r=jdm 2015-06-05 15:57:56 -04:00
Ehsan Akhgari 94b37a9fb9 Bug 1164397 - Part 9: Add a test case for the service worker for an app:// URI responding with a redirected HTTPS response; r=jdm 2015-06-05 15:57:53 -04:00
Ehsan Akhgari 861774e782 Bug 1164397 - Part 8: Add a test case for the service worker for an app:// URI responding with a redirected Response; r=jdm 2015-06-05 15:57:51 -04:00
Ehsan Akhgari 1315a45cc4 Bug 1164397 - Part 7: Add a test case for the redirected Response object being stored in the DOM Cache; r=jdm
--HG--
rename : dom/workers/test/serviceworkers/test_origin_after_redirect.html => dom/workers/test/serviceworkers/test_origin_after_redirect_cached.html
2015-06-05 15:57:49 -04:00
Ehsan Akhgari 02f547b7e8 Bug 1164397 - Part 6: Add a test case for the service worker responding with a redirected Response; r=jdm 2015-06-05 15:57:46 -04:00
Jose Antonio Olivera Ortega 88a9211951 Bug 1115820 - Add telemetry to ServiceWorkers. r=nsm, r=vladan
--HG--
extra : rebase_source : 69547573525bcea989d24e0a0293f6df9e7f90e1
2015-06-05 08:11:18 +02:00
Jose Antonio Olivera Ortega 49e020876b Bug 1122161 - Redirected channels should respect skip service worker flag. r=nsm
--HG--
extra : rebase_source : 959228846310fa8b44a74e8378f24c14a4f278c0
2015-06-03 10:02:40 +02:00
Ehsan Akhgari a402da64d1 Bug 1171486 - Part 2: Make it OK to call ServiceWorkerManager::GetInstance() during its Init() function; r=baku 2015-06-05 08:52:19 -04:00
Carsten "Tomcat" Book e7e949f08a Backed out changeset bc305c9b5d05 (bug 1155153) for b2g xpshell test failure on a CLOSED TREE 2015-06-05 13:07:51 +02:00
Fernando Jimenez 953d3573cb Bug 1169613 - Use content type of synthesized response for JAR channel requests if available. Tests. r=jdm 2015-06-05 12:53:58 +02:00
Andrea Marchesini 6b856c6ad5 Bug 1134224 - onerror for test_bug1132395.html, r=ehsan 2015-06-05 11:15:17 +01:00
Andrea Marchesini 42cd5b397c Bug 1155153 - about:serviceworkers should work in e10s mode, r=nsm, r=bholley 2015-06-04 19:51:57 +01:00
Ehsan Akhgari f30c9b2b9a Bug 1162018 - Add an automated test to ensure that a redirected Request won't be visible to a service worker if it had triggered the original fetch(); r=jdm 2015-06-04 16:29:48 -04:00
Ehsan Akhgari cbf85aceea Bug 1171486 - Avoid recursively obtaining the service worker manager service; r=nsm 2015-06-04 16:27:48 -04:00
Bobby Holley 7df20a2925 Bug 1171175 - Improve BasePrincipal::IsCodebasePrincipal. r=baku 2015-06-04 10:01:40 -07:00
Ryan VanderMeulen c2e15cd8c8 Backed out changeset e95a9e8e7650 (bug 1170795) for e10s test_fetch_event.html faliures. 2015-06-04 11:09:07 -04:00
Ehsan Akhgari ca699d4bcb Bug 1171285 - Part 2: Fix test_app_protocol.html to finish both index.html and controlled.html tests; r=jdm 2015-06-04 10:18:53 -04:00
Ehsan Akhgari 8fa914ff17 Bug 1171285 - Part 1: Add a script for regenerating the application.zip used by test_app_protocol.html; r=jdm 2015-06-04 10:18:47 -04:00
Josh Matthews 3bd0da1770 Bug 1170795 - Ignore redirect errors for synthesized cache entries. r=mayhemer 2015-06-04 10:06:33 -04:00
Andrea Marchesini 610a5e6ef0 Bug 1169867 - nsXMLHttpRequest should use and free mProxy correctly, r=ehsan 2015-06-04 15:04:09 +01:00
Andrea Marchesini 9e407c75be Bug 1134224 - More test for test_bug1132395.html, r=ehsan 2015-06-04 08:58:19 +01:00
Andrea Marchesini 80f57ca876 Bug 1131352 - Part 3: ServiceWorkerManager::SetSkipWaitingFlag() updated CLOSED TREE 2015-06-03 15:20:52 +01:00
Jose Antonio Olivera Ortega 2d3a0be044 Bug 1131352 - Part 2: Add ServiceWorkerGlobalScope skipWaiting(). r=nsm, r=baku 2015-06-02 07:12:00 -04:00
Andrea Marchesini 8adec8a2d4 Bug 1162088 - patch 2 - ServiceWorkerManager should use OriginAttributes from the principal as scopeKey, r=nsm 2015-06-03 09:44:09 +01:00
Andrea Marchesini a71e717b67 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
Fernando Jimenez bf20132dbb Bug 1169296 - Intercepting top-level document loads is not working with JAR channels. Tests. r=jdm 2015-06-03 10:41:45 +02:00
Wes Kocher bcd821592f Merge m-c to inbound, a=merge 2015-06-02 18:43:25 -07:00
Wes Kocher d80ffbf1c9 Merge inbound to central, a=merge 2015-06-02 18:20:12 -07:00
Eddy Bruël 27446f880e Bug 1166847 - Implement OpaqueCrossCompartmentWrapper;r=evilpies 2015-06-02 16:54:54 +02:00
Eddy Bruël 05c931e961 Bug 1164564 - WorkerDebugger.initialize should not return failure when called more than once;r=khuey 2015-06-02 16:52:17 +02:00
Ehsan Akhgari 0cd59018b9 Bug 1170550 - Don't crash when registering a service worker which has a strict mode error; r=baku 2015-06-02 18:20:52 -04:00
Ben Kelly 93d33ee1bd Bug 1157619 P2 Test that service worker is not intercepted on force refresh. r=ehsan 2015-06-01 10:53:20 -04:00
Nikhil Marathe 66014a3f14 Bug 1168676 - Switch off embed/object ServiceWorker interception. r=ehsan
I would have liked to watch for onerror on the tags instead of having these
todos(), but onerror does not seem to fire. I have locally verified that the
test does indeed receive 404s on the network console.

--HG--
extra : rebase_source : 53c3f05cdca707b692fcf0192ae46ad42d83bc7e
extra : amend_source : 200549af4247ece528e38c7eeaa950809312adf2
2015-05-28 16:27:45 -07:00
Wes Kocher 18437e8dc3 Backed out changeset 3b09b61cdb45 (bug 1168676) for causing assertion failures CLOSED TREE 2015-05-28 11:45:56 -07:00
Birunthan Mohanathas 470bd9148f Bug 968520 - Add mozilla::fallible to FallibleTArray::AppendElements calls. r=froydnj 2015-05-28 11:07:43 -07:00
Nikhil Marathe e5964f4913 Bug 1168676 - Switch off embed/object ServiceWorker interception. r=ehsan
I would have liked to watch for onerror on the tags instead of having these
todos(), but onerror does not seem to fire. I have locally verified that the
test does indeed receive 404s on the network console.

--HG--
extra : rebase_source : bb1c9150b3efc0c8ea3027ec8f59198d31d13039
2015-05-27 16:36:44 -07:00
Josh Matthews f5fb27939c Bug 1157283 - Recreate IPC redirected HTTP channels as necessary after intercepting the request in the child. r=mayhemer 2015-05-28 10:47:35 -04:00
Jose Antonio Olivera Ortega c5913f35b9 Bug 1169210 - Can't call content service worker from chrome. r=nsm
--HG--
extra : rebase_source : a49c90113ea72dad97d70906479870c5b50f29ad
2015-05-29 18:17:33 +02:00
Wes Kocher 8f6c908ed7 Bug 1166924 part 1 r=baku
--HG--
extra : rebase_source : 02f9db11cd27f70ecd644a734e6ff03583067d1f
2015-05-27 14:33:22 -07:00
Andrea Marchesini c2ab19f99e Bug 1166924 part 0 r=bent
--HG--
extra : rebase_source : 750e7006efaa29b503cda99f565128312a347139
2015-05-27 14:21:44 -07:00
Ehsan Akhgari 4017e4028f Bug 1168208 - Refactor the existing logic for syncing the security info between Response and channel objects into a new helper class; r=nsm,jdm,bkelly
--HG--
rename : dom/fetch/InternalResponse.cpp => dom/fetch/ChannelInfo.cpp
rename : dom/fetch/Response.h => dom/fetch/ChannelInfo.h
2015-05-27 14:22:53 -04:00
Carsten "Tomcat" Book 1f0ef48e79 Backed out changeset ae9c77fa58d1 (bug 1168208) for bustage on a CLOSED TREE 2015-05-27 14:50:43 +02:00
Ehsan Akhgari c66a858d3a Bug 1168208 - Refactor the existing logic for syncing the security info between Response and channel objects into a new helper class; r=nsm,jdm,bkelly
--HG--
rename : dom/fetch/InternalResponse.cpp => dom/fetch/ChannelInfo.cpp
rename : dom/fetch/Response.h => dom/fetch/ChannelInfo.h
2015-05-27 08:25:03 -04:00
Ben Turner 57dc7c8b04 Bug 1163109. Restrict the resource:// weirdness in workers to loads from a system principal. r=bzbarsky 2015-05-26 17:27:01 -04:00
Andrea Marchesini 6a2a4a1aa9 Bug 1155761 - User Timing API in Workers, r=ehsan 2015-05-25 17:53:07 +01:00
Fernando Jimenez 46140c45a2 Bug 1161684 - Allow JAR channels to be intercepted by service workers. Tests. r=jdm 2015-05-22 09:32:25 +02:00
Fernando Jimenez 95803111ef Bug 1161684 - Allow JAR channels to be intercepted by service workers. r=jdm 2015-05-22 09:32:25 +02:00
Ryan VanderMeulen 8f6f16604c Merge inbound to m-c. a=merge 2015-05-22 14:02:47 -04:00
Cervantes Yu 55152ad9d9 Backout change 39e167bbd14c, a80140872ea5, adae9be2294d and b71ccef9c674 (bug 970307). 2015-05-19 14:31:25 +08:00
Cervantes Yu 836d8fd8d0 Backout change 3285d8bef13f (bug 1113429) due to backout of bug 970307. 2015-05-19 11:26:26 +08:00
Andrew McCreight e32a66ebb3 Bug 1166488 - Eliminate ServiceWorkerRegistrationBase::mCCDummy. r=smaug 2015-05-20 09:55:07 -07:00
Sebastian Hengst 89d9f2f631 Backout 068cc6419d1e (Bug 1161684) for M4 perma-failures on opt. r=backout 2015-05-22 10:48:03 +02:00
Sebastian Hengst 6fce538b2e Backout f938930b3ac5 (Bug 1161684) for M4 perma-failures on opt. r=backout 2015-05-22 10:47:20 +02:00
Fernando Jimenez b489f767be Bug 1161684 - Allow JAR channels to be intercepted by service workers. Tests. r=jdm 2015-05-22 09:32:25 +02:00
Fernando Jimenez 6608088159 Bug 1161684 - Allow JAR channels to be intercepted by service workers. r=jdm 2015-05-22 09:32:25 +02:00
Catalin Badea a68051d606 Bug 1158728 - ServiceWorkerClient: use innerWindow id for referencing clients. r=nsm
--HG--
extra : rebase_source : 51313aa04168631d1d2952f90fb02406aa824fb5
2015-05-20 13:14:49 -07:00
Catalin Badea fc75d392de Bug 1130684 - Test fetch events are intercepted after a client is claimed. r=nsm
--HG--
extra : rebase_source : 75792d264f2ffb118c0360d58d493c69ceb00e8e
2015-05-20 11:48:06 -07:00
Ryan VanderMeulen e1ee0d7597 Backed out changeset f0af05d88416 (bug 1162088) for various web-platform-test failures.
CLOSED TREE
2015-05-19 15:20:15 -04:00
Andrea Marchesini 1d31da42fd Bug 1162088 - ServiceWorkerManager should use the principal+scope for the initialization of ServiceWorkers, r=nsm,ehsan 2015-05-19 17:53:36 +01:00
Terrence Cole 161a4c26ba Bug 1164602 - Replace js::NullPtr and JS::NullPtr with nullptr_t; r=sfink 2015-05-13 14:07:34 -07:00
Andrea Marchesini 61b9bd0496 Bug 1166231 - Make nsIDOMBlob an empty interface, r=ehsan 2015-05-19 15:36:37 +01:00
Catalin Badea 8b1fbc7805 Bug 1130684 - Implement Service Worker clients.claim. r=nsm,ehsan
--HG--
extra : rebase_source : ea1da8f6dfd8d31936c0ae495ec262581c9e5775
2015-05-14 12:41:42 -07:00
Ehsan Akhgari 909a826cf5 Merge central into inbound on a CLOSED TREE to fix bustage 2015-05-14 15:52:39 -04:00
Ehsan Akhgari 3a263e7770 Fix the interfaces tests now that service workers have been disabled, no bug, a=me
Fixing bustage on a CLOSED TREE.
2015-05-14 15:49:13 -04:00
Ehsan Akhgari 3309c4cb9b Bug 1163945 - Handle aborted CompareNetwork jobs properly in CompareNetwork::OnStartRequst; r=nsm 2015-05-14 11:27:35 -04:00
Ehsan Akhgari e2d76efa70 Bug 1164487 - Part 2: Update the interfaces tests; r=baku 2015-05-14 09:04:02 -04:00
Andrea Marchesini 138f6d0913 Bug 1159792 - get rid of dom.workers.websocket.enabled pref, r=smaug 2015-05-14 12:24:06 +01:00
Eddy Bruël d2c20ea03d Bug 1150444 - Intermittent test_WorkerDebugger.isFrozen.xul;r=khuey 2015-05-08 07:08:17 +02:00
Andrea Marchesini f4538bb921 Bug 1163387 - Rename FileImpl to BlobImpl, r=ehsan
--HG--
rename : dom/base/MultipartFileImpl.cpp => dom/base/MultipartBlobImpl.cpp
rename : dom/base/MultipartFileImpl.h => dom/base/MultipartBlobImpl.h
2015-05-12 13:11:03 +01:00
Andrea Marchesini 368a198972 Bug 1159401 - Split Blob and File classes, r=bz 2015-05-12 13:09:51 +01:00
Wes Kocher 983fcabeef Backed out 2 changesets (bug 1159401) for b2g build bustage
Backed out changeset adfee1efb1e1 (bug 1159401)
Backed out changeset 70c63c8546e3 (bug 1159401)
2015-05-11 14:54:02 -07:00
Wes Kocher 6b003ab737 Backed out changeset 56e4c68dc3da (bug 1163387) for build bustage CLOSED TREE
--HG--
rename : dom/base/MultipartBlobImpl.cpp => dom/base/MultipartFileImpl.cpp
rename : dom/base/MultipartBlobImpl.h => dom/base/MultipartFileImpl.h
2015-05-11 13:17:58 -07:00
Andrea Marchesini 49a0ee6938 Bug 1163387 - Rename FileImpl to BlobImpl, r=ehsan
--HG--
rename : dom/base/MultipartFileImpl.cpp => dom/base/MultipartBlobImpl.cpp
rename : dom/base/MultipartFileImpl.h => dom/base/MultipartBlobImpl.h
2015-05-11 18:50:54 +01:00
Andrea Marchesini 91a8a35606 Bug 1159401 - patch 1 - Split Blob and File in 2 classes, r=bz 2015-05-11 18:50:50 +01:00
Ryan VanderMeulen 2390c704f8 Backout revisions 4287533203fb and 96a3ebfe09d8 (bug 1159401) for bustage.
CLOSED TREE

--HG--
extra : histedit_source : a6c24f88b9c5a0cbcf2d44189fd359ddb20757b4%2C46613cfc309a9f0531e8c2475ac17877f606f231
2015-05-11 11:43:59 -04:00
Andrea Marchesini 48ecacaa74 Bug 1159401 - patch 1 - Split Blob and File in 2 classes, r=bz 2015-05-11 15:20:06 +01:00
Jordan Santell 7b6fec2d8c Bug 922221 - implement console.timeStamp(label) to create profile timeline markers. r=khuey 2015-04-29 12:48:57 -07:00
Ehsan Akhgari e268b57aa9 Bug 1162344 - Use the exemptFromPerDomainMax pref in test_importscript.html; r=nsm 2015-05-08 16:33:05 -04:00
Nikhil Marathe 21ce8b6fa0 Bug 1162787 - Check for null before calling Equals. r=ehsan
CLOSED TREE

--HG--
extra : amend_source : c6f56030839abc8ca179c7f5ca0aec338165c614
2015-05-07 19:10:06 -07:00
Boris Zbarsky 59ea7eac31 Bug 1162013. Process the Promise queue between adjacent setTimeout callback invocations when we're going through the callback list without returning to the event loop. r=smaug 2015-05-07 14:49:31 -04:00
Ehsan Akhgari 4336f915ab Bug 1130101 - Part 3: Add unit tests for the handling of the Service-Worker-Allowed header; r=nsm 2015-05-07 21:07:10 -04:00
Ehsan Akhgari ac2874c72f Bug 1130101 - Part 2: Honor the Service-Worker-Allowed header when prefix matching the service worker scope; r=nsm 2015-05-07 21:06:34 -04:00
Ehsan Akhgari 0053c63b09 Bug 1130101 - Part 1: Store the value of the Service-Worker-Allowed header in the CompareManager object; r=nsm 2015-05-07 21:06:33 -04:00
Nikhil Marathe 1bcf68b61f Bug 1150959 - Log rejected Promise error message to browser console
--HG--
extra : rebase_source : e3fdd530c32c042791e959f896ef4ae06263f1f0
2015-04-08 16:04:12 -07:00
Nikhil Marathe 4c2d6784e1 Bug 1080109 - Clear ServiceWorkers when clearing history or forgetting about site. r=baku,ehsan
--HG--
extra : rebase_source : 41417b60ed6603d613b65cd7e96a5ba8121b05e5
2015-03-05 17:37:49 -08:00
Ehsan Akhgari 71f3e8945e Bug 1162787 - Make the service worker periodic tests robust to the idle daily service firing its notification when the tests are being run; r=nsm
--HG--
extra : rebase_source : b78061a0cda67e426cdbbef7f89ca006c03a9158
2015-05-07 16:23:50 -07:00
Ehsan Akhgari a26860eed6 Bug 1159378 - Part 4: Add a unit test for periodic updates of service workers on HTTPS origins; r=nsm
The reason why this test is interesting here is that it tests the code
path added in the part 2 of this bug.

--HG--
extra : rebase_source : 0742186497adfc4bafb5a9073b13736efb14d78e
2015-05-04 10:18:19 -04:00
Ehsan Akhgari 33bf6126a9 Bug 1159378 - Part 3: Refactor the logic of test_periodic_update.html into a helper script; r=nsm
This helper script will allow us to run the same test across both HTTP
and HTTPS origins.  This patch also uses postMessage instead of a direct
function call on the parent window, because in the HTTPS case, that
window will be cross-origin.  It also moves the code to trigger the
update and get the corresponding updatefound event to
wait_for_update.html, since getting the service worker registration
cross-origin is not possible.

--HG--
extra : rebase_source : 4df46df635f6445f286b54a8a3d9b2e3f8b8447a
2015-05-04 10:18:12 -04:00
Ehsan Akhgari d1a47ed982 Bug 1159378 - Part 2: When storing the service worker downloaded after a failed network compare into the cache, store its security info in the cache as well; r=nsm
--HG--
extra : rebase_source : 0c085287c181d7a98f83c659e7aceaaf0c32f2cc
2015-05-04 10:18:01 -04:00
Nikhil Marathe 8464296492 Bug 1154494 - patch 2 - Hold a ref to the sandbox. r=baku
--HG--
extra : rebase_source : d08a068a7f79c95b029b7ef5e0fbdea2674ae10a
2015-05-04 13:02:12 -04:00
Nikhil Marathe cbd6b8b352 Bug 1154494 - Hit network only once. r=baku,bkelly
--HG--
extra : rebase_source : d2720c0bbef92595228658d92db3bbaef051cced
2015-04-13 21:05:28 -07:00
Wes Kocher f15282bf26 Backed out changeset 57f0b16030e9 (bug 1162013) for m-oth and m-dt3 bustage CLOSED TREE 2015-05-07 13:37:27 -07:00
Boris Zbarsky 0c6597b3e0 Bug 1162013. Process the Promise queue between adjacent setTimeout callback invocations when we're going through the callback list without returning to the event loop. r=smaug 2015-05-07 14:49:31 -04:00
Ben Turner 86ad786706 Bug 1162218 - Make worker idle thread timeouts more strict, r=baku.
--HG--
extra : rebase_source : 9a8741c4ad67c782e313bc79a8eb87e4d2749649
2015-05-07 10:35:57 -07:00
Andrea Marchesini 80f0a3700f Bug 1156875 - patch 2 - Unify the registration of blob URIs in WorkerPrivate and nsIGlobalObject, r=bent 2015-05-07 08:06:24 +01:00
Andrea Marchesini 0d81eae126 Bug 1156875 - patch 1 - URL.createObjectURL leaks in JS sandbox, r=bholley 2015-05-07 08:05:43 +01:00
Ehsan Akhgari 7e11bb40f0 Bug 1148818 - Re-enable the Cache part of test_request_context.html on Android now that it passes 2015-05-06 08:15:24 -04:00
Ehsan Akhgari 41012d0662 Clean up after test_workerupdatefoundevent.html, no bug 2015-05-05 21:45:00 -04:00
Ehsan Akhgari 2ff1229507 Revert the debugging patch for bug 1157901 2015-05-05 21:43:53 -04:00
Boris Zbarsky 0472742d0c Bug 1160628. Speed up the URL constructor in the common case of no base URI. r=baku 2015-05-05 13:38:56 -04:00
Boris Zbarsky d05df285e4 Bug 1161036 part 2. Only force-enable dom cache in test_serviceworker_interfaces if we're having to force-enable servicewceworkers too. r=bkelly 2015-05-05 13:38:56 -04:00
Ehsan Akhgari c18dfa5852 Bug 1134325 - Part 2: Correctly reflect the Request's body to the service worker's fetch event; r=jdm 2015-05-05 13:20:54 -04:00
Ehsan Akhgari 6e93a857f0 Bug 1161239 - Emit a warning if the respondWith handler is resolved with a non-Object value; r=baku 2015-05-05 09:56:48 -04:00
Ehsan Akhgari a08aacbfd9 Bug 1159813 - Make sure service worker tests clean up after themselves; r=baku
This makes it possible to run the service workers tests using
--run-until-failure, which will hopefully help with reproducing
intermittent test failures.
2015-05-04 09:21:04 -04:00
Andrew McCreight 023db96fd8 Bug 1152551, part 3 - Fix more mode lines in dom/. r=jst 2015-05-03 15:32:37 -04:00
Andrew McCreight 9e8f4b219e Bug 1152551, part 2 - Fix mode lines in dom/. r=jst 2015-05-03 15:32:37 -04:00
Andrea Marchesini 7f54aa583d Bug 1157627 - about:serviceworkers should show new registered ServiceWorkers. r=nsm 2015-04-30 15:32:47 +01:00
Boris Zbarsky 9610791e34 Bug 1160215. Get rid of the now-unused workerTestGetPrefs bits. r=bkelly 2015-05-01 11:42:37 -04:00
Boris Zbarsky 2b6cdc5b73 Bug 1159742. Get rid of the pref annotation from test_interfaces, since it basically corresponds to disabling the test. r=jst 2015-05-01 11:42:37 -04:00
Ben Kelly f15449e4a2 Bug 1134841 Hold ServiceWorker alive during install event's waitUntil(). r=bz 2015-05-01 08:14:42 -07:00
Boris Zbarsky eb10b36db2 Bug 1160190. Remove most of the pref annotations in test_interfaces and test_worker_interfaces. r=jst 2015-04-30 23:08:44 -04:00
Daniel Holbert 37bc14ef82 Bug 1156847 followup: annotate workers helper-class "ScriptLoaderRunnable" OnStartRequest/OnStopRequest as override. rs=ehsan 2015-04-30 11:42:16 -07:00
Phil Ringnalda fee82dca85 Backed out changeset d90e308bfb98 (bug 1159813) for "test_importscript.html | Unregister should return true" failures
CLOSED TREE
2015-04-29 20:15:34 -07:00
Ehsan Akhgari d04c18e961 Bug 1159813 - Make sure service worker tests clean up after themselves; r=baku
This makes it possible to run the service workers tests using
--run-until-failure, which will hopefully help with reproducing
intermittent test failures.
2015-04-29 20:22:32 -04:00
Ehsan Akhgari b1a88291c2 Bug 1156847 - Part 7: Add unit tests for responding to a FetchEvent with a synthesized Response both in the case where the service worker is loaded from the network and from the cache; r=nsm
--HG--
rename : dom/workers/test/serviceworkers/test_https_fetch.html => dom/workers/test/serviceworkers/test_https_synth_fetch_from_cached_sw.html
2015-04-29 20:22:31 -04:00
Ehsan Akhgari a3e0449fce Bug 1156847 - Part 6: When calling FetchEvent.respondWith(), fall back to the security info of the service worker if the Response object that we are responding with doesn't have its own security info; r=nsm
This case will only happen if we're responding with a synthesized Response object.
Response objects obtained through fetch() already have their correct security
info.
2015-04-29 20:22:31 -04:00
Ehsan Akhgari cea01af662 Bug 1156847 - Part 5: When loading a service worker from the cache, set its security info on the WorkerPrivate; r=nsm 2015-04-29 20:22:30 -04:00
Ehsan Akhgari cd281dd5d2 Bug 1156847 - Part 4: When storing a service worker script to the cache, store its security info in the cache as well; r=khuey
Before this patch, we would call Cache.put() before opening the channel,
which means that we have no way of knowing the security info for the
channel in order to set it on the Response object that we synthesize.
This patch adds an nsIRequestObserver to the tee created for piping the
body of the response to the cache, and delays calling Cache.put() until
we receive the nsIRequestObserver::OnStartRequest() notification, at
which point we set the obtained security info on the Response object to
be stored in the cache.
2015-04-29 20:22:29 -04:00
Ehsan Akhgari a2a584db69 Bug 1156847 - Part 3: When loading a service worker from the network, remember the security info of the channel on the WorkerPrivate; r=nsm 2015-04-29 20:22:28 -04:00
Ehsan Akhgari 9d614e4dc8 Bug 1156847 - Part 2: Store the security info for a service worker on its WorkerPrivate; r=bent,khuey 2015-04-29 20:22:27 -04:00
Tooru Fujisawa 0edbeb71c8 Bug 1102219 - Part 5: Replace more `String.prototype.contains` with `String.prototype.includes` in chrome code. r=till 2015-04-30 00:32:05 +09:00
ziyunfei e1db0f779e Bug 1102219 - Part 4: Replace `String.prototype.contains` with `String.prototype.includes` in chrome code. r=till 2015-04-30 00:32:05 +09:00
Ehsan Akhgari 531d28100a Debugging patch for bug 1157901 2015-04-29 08:31:29 -04:00
Doug Turner 107cf1a962 Bug 1147214 - Allow app: urls to use sw. r=baku 2015-04-25 08:27:50 +02:00
Makoto Kato bc393a738b Bug 866301 - Part 4. Turn on Intl API for B2G. r=fabrice,waldo 2015-04-28 18:59:53 +09:00
David Major ebde6b9f4f Bug 1157835: Remove the MSVC_ENABLE_PGO flag from the build system. r=glandium
--HG--
extra : rebase_source : 0c47c99bb8b92f8361a51fd81b20a2cc8647a986
2015-04-27 19:59:27 -04:00
Boris Zbarsky 34d521e285 Bug 1155984. Improve the performance of the "self" getter in both window and workers. r=peterv,jorendorff 2015-04-27 13:38:12 -04:00
Ehsan Akhgari 8861db851c Bug 1136780 - Re-enable test_fetch_event.html now that bug 1156771 has been fixed; r=nsm 2015-04-27 13:04:24 -04:00
Nathan Froyd ddbb44d13f Bug 1158320 - rename nsThread::mRunningEvent to mNestedEventLoopDepth; r=bsmedberg
The current name reads to me like a boolean variable, even though it's
actually a counter.  Try to make that property more explicit at its uses
by renaming it to something more evocative of counter-ness.
2015-04-24 16:04:50 -04:00
Boris Zbarsky d36060dc11 Bug 1157898 part 5. Eliminate the remaining non-ErrorResult consumers of ErrorResult::ErrorCode and make it protected. r=peterv 2015-04-27 09:18:52 -04:00
Boris Zbarsky 839141fb74 Bug 1157898 part 3. Fix the remaining consumers of rv.ErrorCode() in NS_ENSURE_* expressions to not do that. r=peterv 2015-04-27 09:18:52 -04:00
Boris Zbarsky 1540774b0c Bug 1157898 part 1. Make code of the form "return rv.ErrorCode();" where rv is an ErrorResult use StealNSResult instead. r=peterv
This patch was generated with the following command:

  find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 's/return ([a-zA-Z0-9]+)\.ErrorCode\(\);/return \1.StealNSResult();/'
2015-04-27 09:18:51 -04:00