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

20 Коммитов

Автор SHA1 Сообщение Дата
Ben Kelly bc6fd423a1 Bug 1203680 P1 Test file blob uploads with service worker interception. r=nsm 2015-09-15 10:15:45 -07:00
Nikhil Marathe 25e263af21 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 : 5wavKTRZWcy
extra : rebase_source : fc8ab4ef6c9bf384b5525b0bc979b3cedc4e1d6c
2015-07-23 08:30:27 -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
dimi 7ddb221e8c Bug 1158735 - FetchEvent.client asserting in onFetch when there's no document. r=bkelly 2015-07-27 19:01:37 +08: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
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
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
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
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
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
Catalin Badea 3c89238807 Bug 1130686 - Add test for service worker client.focus. r=nsm 2015-04-07 16:25:08 +03:00
Catalin Badea 553cdbd8f5 Bug 1136467 - ServiceWorker: client.postMessage should land in navigator.serviceWorker.onmessage. r=baku 2015-02-25 21:38:37 +02:00
Catalin Badea 9804afb257 Bug 1058311 - Remove prefix for SWClients. Rename getServiced to matchAll. Add stub query options for matchAll r=baku
--HG--
rename : dom/webidl/ServiceWorkerClient.webidl => dom/webidl/Client.webidl
rename : dom/webidl/ServiceWorkerClients.webidl => dom/webidl/Clients.webidl
rename : dom/workers/test/serviceworkers/test_get_serviced.html => dom/workers/test/serviceworkers/test_match_all.html
2015-02-20 17:16:17 +02:00
Catalin Badea a1696f318d Bug 982726 - Patch 3: Implement client.postMessage. r=baku 2015-02-09 12:43:00 -05:00
Catalin Badea 0bfc866519 Bug 982726 - Patch 1.5 - Update getServiced test and fix an assert when the registration has been removed. r=baku 2014-11-04 13:04:00 +01:00
Catalin Badea 610145e67c Bug 982726 - Patch 1.1 - Service Worker: ServiceWorkerClients and Client interfaces with getServiced(). r=baku 2014-10-27 12:03:00 +01:00