Commit Graph

655 Commits

Author SHA1 Message Date
Carsten "Tomcat" Book
2df123b59f Backed out 1 changesets (bug 1153499) for test failures in browser_force_refresh.js
Backed out changeset 252814d5e628 (bug 1153499)
2015-08-06 09:47:38 +02:00
Nikhil Marathe
ea58277c0d Bug 1153499 - Enable push and sw prefs. r=dougt,ehsan
--HG--
extra : commitid : GLh29700Ofi
extra : rebase_source : 850c4534d62d9db98b890a5239c8f5c647baa8ef
extra : source : 06a05093fc417449b9458fa88105e863acddef8d
2015-07-15 13:12:44 -07:00
Wes Kocher
5e90ccec17 Backed out 3 changesets (bug 1191495, bug 1153499, bug 1144660) for mochitest-push crashes
Backed out changeset 8917e7323399 (bug 1191495)
Backed out changeset 13ed6f60d3f9 (bug 1144660)
Backed out changeset 95bd6642e4b1 (bug 1153499)
2015-08-05 15:18:05 -07:00
Nikhil Marathe
9c77fa0bcd Bug 1144660 - client.focus() adds window interaction checks and directly uses DOMServiceWorkerFocusClient to focus window. r=ehsan,dao
client.focus() now directly uses the DOMServiceWorkerFocusClient event. The
platform popup checking is not available on service workers. Instead each
worker maintains a counter of if it is allowed to interact with windows. This
counter is currently only incremented by the notificationclick event and
dropped after the event has been dispatched.

Since acquiring a client is an async operation most service workers will
perform in notificationclick, an additional extension is granted after the event
during which the service worker may focus a client. This extension is only granted
if the script invokes NotificationEvent.waitUntil() at which point the timer begins.
The extension is terminated when the Promise passed to waitUntil() is fulfilled, or
the timer expires, whichever comes first.

--HG--
extra : commitid : 5DUAOg4j41K
extra : rebase_source : 775d36e41c3d3b62e5189b032220fa2469ac237d
extra : source : 8300859f8e9751ca663f96fae3375dfda8b2ad13
2015-07-23 08:30:27 -07:00
Nikhil Marathe
4d3d992a72 Bug 1153499 - Enable push and sw prefs. r=dougt,ehsan
--HG--
extra : commitid : JbPfHDqXUbo
extra : rebase_source : c1114f39f003e9109da73ab49e30b73826ef8f04
extra : source : 06a05093fc417449b9458fa88105e863acddef8d
2015-07-15 13:12:44 -07:00
Nikhil Marathe
839a3bc3fb Bug 1183954 - Fix Notification.data structured cloning on workers. r=robertbindar,mccr8
Rather than store a non-thread-safe refcounted nsIStructuredCloneContainer, store the base64 representation.
Caches a jsval the first time an attempt to access data is made from content script.

--HG--
extra : commitid : Ijd82LTJaYo
extra : rebase_source : f82e837842037ea02efae3a0fc9b2b35c2a0d7d0
2015-07-30 12:44:14 -07:00
Kaku Kuo
b6da468928 Bug 1044102 - Part 0 - Test cases. r=smaug.
--HG--
extra : rebase_source : 59e9690e7c5b029cab5f35b544151366025876bf
2015-07-30 20:45:00 +02:00
Wes Kocher
98e5242831 Backed out changeset 2bdaed564656 (bug 1125961) for b2g emulator mochitest-21 failures starting in test_fetch_event_client_postmessage.html 2015-07-30 14:53:38 -07:00
Josh Matthews
77fd3928cf Bug 1125961 - Allow sending null PBrowser actors when there's a triggering principal which can be used for security checks. r=bkelly,ddamjano 2015-06-03 15:07:42 -04:00
Ehsan Akhgari
aeacbc159a Bug 1188062 - Unship Request.context; r=baku 2015-07-30 08:14:00 -04:00
Ehsan Akhgari
547404788d Bug 1188091 - Fix the exposure of Push interfaces; r=dougt,bzbarsky,nsm
Currently we don't check the dom.push.enabled pref in some cases for
some of these interfaces.  This patch unifies how all of these
interfaces are exposed to Window, Worker, and ServiceWorker.
2015-07-30 01:06:38 -04:00
Kyle Huey
c5c0116764 Bug 1158031: Don't return empty arrays from MultiPartBlobImpl::GetSubBlobImpls(). r=baku 2015-07-28 15:59:56 -07:00
Kyle Huey
b4476f96d4 Bug 1188115: Expose IDBCursorWithValue in workers. r=baku 2015-07-28 15:59:55 -07:00
Ryan VanderMeulen
96b36b5855 Backed out changeset c88d1138bc38 (bug 1188091) for Mulet test_serviceworker_interfaces.html failures.
CLOSED TREE
2015-07-28 13:28:39 -04:00
Ehsan Akhgari
6e916540f5 Bug 1188091 - Fix the exposure of Push interfaces; r=dougt,bzbarsky
Currently we don't check the dom.push.enabled pref in some cases for
some of these interfaces.  This patch unifies how all of these
interfaces are exposed to Window, Worker, and ServiceWorker.
2015-07-28 12:28:53 -04:00
dimi
7ddb221e8c Bug 1158735 - FetchEvent.client asserting in onFetch when there's no document. r=bkelly 2015-07-27 19:01:37 +08:00
Anup Kumar
1e19a034c9 Bug 1171941 - Removed an incorrect URL prefix from fetch_tests.js. r=jdm 2015-07-25 08:44:00 +02:00
Nikhil Marathe
cf6e7ed78b Bug 1184574 - Allow access to PushManager on ServiceWorker. r=kitcambridge,smaug,catalinb
Refactoring to allow access to PushManager in ServiceWorkerGlobalScope. See comment in PushManager.h for details.

--HG--
extra : commitid : A7RvB9rm8av
extra : transplant_source : %20%99%CA%B0%EB%B9%82%27D%F7e%B8UQ%12%E6%9B%18%BB5
2015-07-23 08:30:15 -07:00
Josh Matthews
4130ff6d80 Bug 1186589 - Ensure CORS preflight requests are never intercepted. r=sicking 2015-07-23 10:25:12 -04:00
Ehsan Akhgari
3d45149452 Bug 1148030 - Correctly reflect object and embed RequestContext values; r=smaug
Note that these elements cannot be intercepted for now.  See bug
1168676 for the background.
2015-07-18 16:44:28 -04:00
Ehsan Akhgari
020deeb507 Bug 1148044 - Correctly reflect frame and iframe RequestContext values; r=smaug 2015-07-18 13:18:06 -04:00
Jason Orendorff
3a5f570d6f Bug 987514, part 3 - Make every global have a (usually empty) Reflect object; rename JS_InitReflect -> JS_InitReflectParse. r=Waldo.
The bit in MIRGenerator.h fixes a straight-up bug in the code, masked until now by unified builds (and unmasked because this patch adds a .cpp file, perturbing the unified build boundaries).

--HG--
extra : rebase_source : aa6bf55dc1ce87b9fc10af76cb506560b14c3de9
2014-11-04 21:41:43 -06:00
Ehsan Akhgari
17dae132ba Bug 1180275 - Part 2: Disable test_app_protocol.html in release builds; r=ferjm 2015-07-16 14:47:53 -04:00
Ryan VanderMeulen
d05bc1e9af Backed out changesets 9a048b598b1e and 56e9597b1257 (bug 1180275) for OSX test_android_eclipse.py failures.
CLOSED TREE
2015-07-15 23:40:06 -04:00
Ehsan Akhgari
59bd7ca0e4 Bug 1180275 - Part 2: Disable test_app_protocol.html in release builds; r=ferjm 2015-07-15 20:00:00 -04:00
Ben Kelly
1d8798cbc9 Bug 1173912 Fail opaque responses for client requests. r=ehsan 2015-07-14 13:11: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
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
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
Geoff Brown
52d4e225a0 Bug 1026290 - Update mochitest-chrome manifests for android; r=jgriffin 2015-07-10 14:41:59 -06: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
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
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
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
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
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
Ehsan Akhgari
2860680543 Mark test_bug883784.jsm as a support file, no bug 2015-07-01 20:45:12 -04: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
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
Ehsan Akhgari
d560d3dcf3 Bug 1148935 - Correctly reflect worker and sharedworker RequestContext values; r=smaug 2015-06-30 15:30:08 -04: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
46d52c7f4d Bug 1175138 P4 Enable dom.caches.testing.enabled in existing tests. r=ehsan 2015-06-27 23:19:24 -04:00