Commit Graph

2150 Commits

Author SHA1 Message Date
Carsten "Tomcat" Book
404e79482a merge mozilla-inbound to mozilla-central a=merge 2015-10-02 11:52:49 +02:00
Ehsan Akhgari
cd927a3900 Bug 1204596 - Part 3: Store the responses with manual redirect in the tests added for bug 1164397; r=bkelly
This needs to be done so that we match the manual redirect mode
for navigations when the response is stored in the cache.
2015-10-01 18:47:07 -04:00
Yoshi Huang
697bf63dd6 Bug 1167100 - User originAttribute in ContentPrincipalInfo. r=bholley 2015-09-23 18:19:06 +08:00
Catalin Badea
3ab43c8cbf Bug 1188545 - Disable unstable test: test_aboutserviceworkers.html. a=testonly 2015-09-30 19:11:04 -04:00
Catalin Badea
a034468e87 Bug 1188545 - Cancel network interceptions when the service worker is being terminated with unresolved respondWith promises. r=nsm 2015-09-30 19:11:03 -04:00
Catalin Badea
b7c0f4f391 Bug 1188545 - Add tests for service workers' lifetime management. r=nsm 2015-09-30 19:11:03 -04:00
Catalin Badea
ddeb807fe7 Bug 1188545 - Prevent service workers from being terminated while checking if the script evaluation was successful. r=nsm 2015-09-30 19:11:03 -04:00
Catalin Badea
ec6bc64f09 Bug 1188545 - respondWith promise should extend the service worker's lifetime. r=nsm 2015-09-30 19:11:03 -04:00
Catalin Badea
fa56ecda15 Bug 1188545 - Terminate service workers that have been idle for some time. r=nsm 2015-09-30 19:11:03 -04:00
Catalin Badea
7d4b36b058 Bug 1188545 - Cosmetic changes regarding workerPrivate properties shared between shared workers and service workers. r=nsm 2015-09-30 19:11:03 -04:00
Catalin Badea
570cc4a460 Bug 1188545 - ServiceWorkerRegistrationInfo::Clear() should terminated workers. r=nsm 2015-09-30 19:11:03 -04:00
Catalin Badea
91b1e48a71 Bug 1188545 - Disentangle service workers from shared workers and refactor event dispatching code into a separate class. r=nsm,mrbkap 2015-09-30 19:11:03 -04:00
Wes Kocher
711e09ec3d Backed out 12 changesets (bug 1188545) for test_fetch_cors failures CLOSED TREE
Backed out changeset e04738ee72a3 (bug 1188545)
Backed out changeset 1989893b59de (bug 1188545)
Backed out changeset 11ff29cc25d8 (bug 1188545)
Backed out changeset 4b6bdf859845 (bug 1188545)
Backed out changeset 76eb7ffeca2a (bug 1188545)
Backed out changeset 4473e036b52e (bug 1188545)
Backed out changeset 2a28cb794b23 (bug 1188545)
Backed out changeset 1fa2f55727f3 (bug 1188545)
Backed out changeset 032f4c24fc34 (bug 1188545)
Backed out changeset 4be675dc1b37 (bug 1188545)
Backed out changeset d5d05def5b17 (bug 1188545)
Backed out changeset e94f12b0bcf3 (bug 1188545)
2015-09-30 11:11:47 -07:00
Jason Orendorff
00bf86b02b Bug 1054756, part 5 - Remove Class::convert. 2015-03-20 16:28:59 -05:00
Jason Orendorff
de8a5d035d Bug 1054756, part 3 - Implement Symbol.toPrimitive. Replace existing convert hooks with methods. r=jandem.
JSClass::convert is no longer used after this, but to minimize the noise, it will be deleted in a separate patch. However all non-nullptr convert hook implementations must be replaced with [@@toPrimitive] methods in this patch to avoid changing the behavior.

The changes in XrayWrapper.cpp fix a pre-existing bug: when an Xray wrapper tries to emit the "Silently denied access" warning, if id is a symbol, the existing code triggers an error trying to convert it to a string for the warning message. Implementing Symbol.toPrimitive revealed this bug; the fix is straightforward.
2015-03-20 14:02:55 -05:00
Catalin Badea
14d5d21691 Bug 1188545 - Disable unstable test: test_aboutserviceworkers.html. a=testonly 2015-09-30 10:14:33 -04:00
Catalin Badea
08f9c32eb8 Bug 1188545 - Cancel network interceptions when the service worker is being terminated with unresolved respondWith promises. r=nsm 2015-09-30 10:14:33 -04:00
Catalin Badea
acbaa6621d Bug 1188545 - Add tests for service workers' lifetime management. r=nsm 2015-09-30 10:14:33 -04:00
Catalin Badea
17327033ff Bug 1188545 - Prevent service workers from being terminated while checking if the script evaluation was successful. r=nsm 2015-09-30 10:14:33 -04:00
Catalin Badea
c1d2b19702 Bug 1188545 - respondWith promise should extend the service worker's lifetime. r=nsm 2015-09-30 10:14:33 -04:00
Catalin Badea
44723a9d54 Bug 1188545 - Terminate service workers that have been idle for some time. r=nsm 2015-09-30 10:14:33 -04:00
Catalin Badea
efc8a14421 Bug 1188545 - Cosmetic changes regarding workerPrivate properties shared between shared workers and service workers. r=nsm 2015-09-30 10:14:33 -04:00
Catalin Badea
f380e13483 Bug 1188545 - ServiceWorkerRegistrationInfo::Clear() should terminated workers. r=nsm 2015-09-30 10:14:33 -04:00
Catalin Badea
aee7d66324 Bug 1188545 - Disentangle service workers from shared workers and refactor event dispatching code into a separate class. r=nsm,mrbkap 2015-09-30 10:14:33 -04:00
Andrea Marchesini
89c14c0dbe Bug 1209919 - Improving naming and comments in StructuredCloneHelper, r=smaug 2015-09-30 13:22:08 +01:00
Wes Kocher
0025d4b8ab Merge inbound to central, a=merge 2015-09-29 15:35:49 -07:00
Wes Kocher
832bf936d8 Backed out changeset d0e88c95f3c5 (bug 1167100) for crashes a=backout 2015-09-29 10:25:20 -07:00
Kyle Huey
5cb3e9a795 Bug 1208687: Only discard events from the outermost queue. r=ehsan
When workers shut down we discard the event queue rather than running it to completion.  Originally workers managed their event queue themselves and would simply iterate through the array of events and cancel them all.  After bug 914762 this was done by setting a (thread-)global "canceling" flag and then calling NS_ProcessPendingEvents.  But this neglects that a shut down request can be received while the worker is in a sync queue.  In this case, calling NS_ProcessPendingEvents will process any events pending in the sync queue, which is *not* the queue we need to cancel.

The fix is, if we are in a sync queue when NotifyInternal is called, to defer clearing the queue until the top-most sync queue is destroyed and we are about to return to the regular event queue.  Only then can we call NS_ProcessPendingEvents to clear out the queue.  Because we can never process any events from this queue while sync queues are active, the timing of the mass cancellation is unchanged from the perspective of events in the regular queue.
2015-09-28 14:34:28 -07:00
Carsten "Tomcat" Book
d4860186ab merge mozilla-inbound to mozilla-central a=merge 2015-09-28 14:13:24 +02:00
Nigel Babu
a9c7a72fbb Backed out changeset ee27fc2f6a1d (bug 1208687) for W(4) bustage
ON A CLOSED TREE
2015-09-28 12:23:36 +05:30
Kyle Huey
12c0524c0b Bug 1208687: Only discard events from the outermost queue. r=ehsan
When workers shut down we discard the event queue rather than running it to completion.  Originally workers managed their event queue themselves and would simply iterate through the array of events and cancel them all.  After bug 914762 this was done by setting a (thread-)global "canceling" flag and then calling NS_ProcessPendingEvents.  But this neglects that a shut down request can be received while the worker is in a sync queue.  In this case, calling NS_ProcessPendingEvents will process any events pending in the sync queue, which is *not* the queue we need to cancel.

The fix is, if we are in a sync queue when NotifyInternal is called, to defer clearing the queue until the top-most sync queue is destroyed and we are about to return to the regular event queue.  Only then can we call NS_ProcessPendingEvents to clear out the queue.  Because we can never process any events from this queue while sync queues are active, the timing of the mass cancellation is unchanged from the perspective of events in the regular queue.
2015-09-27 21:57:36 -07:00
Yoshi Huang
4ce0a4b561 Bug 1167100 - User nsIPrincipal.originAttribute in ContentPrincipalInfo. r=bholley 2015-09-23 18:19:06 +08:00
Ehsan Akhgari
165b89f007 Bug 1207603 - Increase the timeout of test_third_party_iframes.html to give it enough time to pass on Android debug 2015-09-27 11:31:14 -04:00
Wes Kocher
6482c81f9b Backed out 13 changesets (bug 709490) for android webgl-color-test.html failures
Backed out changeset 5be7514914b6 (bug 709490)
Backed out changeset 04b6f94fbe8a (bug 709490)
Backed out changeset 00c0e85dd8cd (bug 709490)
Backed out changeset 221385b7b81a (bug 709490)
Backed out changeset ecc38c18734f (bug 709490)
Backed out changeset 22878c936384 (bug 709490)
Backed out changeset 0edcbb60eee3 (bug 709490)
Backed out changeset 5feceec2014b (bug 709490)
Backed out changeset 835b655cb873 (bug 709490)
Backed out changeset 6fbb4a3f8cf7 (bug 709490)
Backed out changeset a5f8646fa156 (bug 709490)
Backed out changeset 2ae1386916b3 (bug 709490)
Backed out changeset 6b29a2a0a8fb (bug 709490)
2015-09-29 08:57:36 -07:00
Benjamin Bouvier
d29d3560cb Bug 1206520: Add about:config prefs to enable throwing on asm.js validation failures; r=bz 2015-09-28 12:40:03 +02:00
Morris Tseng
fe706cfad0 Bug 709490 - Part 10: Using mechanism in RuntimeService to get pref in worker thread instead of gfxPref, r=baku 2015-09-29 11:51:25 +01:00
Morris Tseng
9529d1d773 Bug 709490 - Part 5: Add interfaces test, r=ehsan 2015-09-29 11:51:24 +01:00
Wes Kocher
1c269b0ef9 Backed out 7 changesets (bug 1206168, bug 1177318, bug 1054756) for hazard build failures CLOSED TREE
Backed out changeset e892727a373a (bug 1206168)
Backed out changeset 6c93d1044b7e (bug 1054756)
Backed out changeset 105433ce195b (bug 1054756)
Backed out changeset 13128a88f2b9 (bug 1054756)
Backed out changeset c250abf4fd17 (bug 1054756)
Backed out changeset fc9fef646a97 (bug 1054756)
Backed out changeset c8897f109a08 (bug 1177318)
2015-09-23 12:31:19 -07:00
Andrea Marchesini
fca46b3858 Bug 1205676 - Enable WPT service-worker/unregister-then-register-new-script.https.html in e10s, r=nsm 2015-09-23 19:40:51 +01:00
Andrea Marchesini
1020a98af9 Bug 1207635 - get rid of dom.workers.sharedWorkers.enabled pref, r=khuey 2015-09-23 19:33:40 +01:00
Jason Orendorff
5d3792d31b Bug 1054756, part 5 - Remove Class::convert. 2015-03-20 16:28:59 -05:00
Jason Orendorff
f92ef8629a Bug 1054756, part 3 - Implement Symbol.toPrimitive. Replace existing convert hooks with methods. r=jandem.
JSClass::convert is no longer used after this, but to minimize the noise, it will be deleted in a separate patch. However all non-nullptr convert hook implementations must be replaced with [@@toPrimitive] methods in this patch to avoid changing the behavior.

The changes in XrayWrapper.cpp fix a pre-existing bug: when an Xray wrapper tries to emit the "Silently denied access" warning, if id is a symbol, the existing code triggers an error trying to convert it to a string for the warning message. Implementing Symbol.toPrimitive revealed this bug; the fix is straightforward.
2015-03-20 14:02:55 -05:00
Chris Peterson
dd2fcb9b7d Bug 1207030 - Enable -Wshadow flag in more directories that have no -Wshadow warnings. r=glandium 2015-09-22 21:39:03 -07:00
dimi
27589a86c2 Bug 1143717 - Implement the ServiceWorkerMessageEvent interface. r=baku 2015-09-22 16:56:48 +08:00
Andrea Marchesini
0bc80cb79e Bug 1193414 - SharedWorkers thread should be kept alive also when the SharedWorker object is CCed, r=khuey 2015-09-23 06:54:29 +01:00
Nikhil Marathe
b4ab0e78f8 Bug 1184798 - Ensure workers loads are treated as non-subresource fetches. r=jdm 2015-09-17 11:56:41 -07:00
Henry Chang
4a65cddb1a Bug 1163254 - Add signedPkg to OriginAttributes. r=bholley 2015-09-18 15:11:58 +08:00
Ehsan Akhgari
527bf87e31 Bug 1206894 - Enable asynchronous dispatching of fetch events; r=jdm
This refactoring patch separates the preparation of the fetch event
object from its dispatching, so that consumers would be able to
dispatch the event asynchronously.
2015-09-21 20:59:27 -04:00
Christoph Kerschbaumer
1feac968da Bug 1048048 - add preload content policy types for scripts (r=baku) 2015-09-20 14:56:21 -07:00
Wes Kocher
9c40f87100 Backed out 7 changesets (bug 1048048) for android crashes in various chunks CLOSED TREE
Backed out changeset b5abe23a4ea5 (bug 1048048)
Backed out changeset 4f91b10e8be0 (bug 1048048)
Backed out changeset 450d4a13c90e (bug 1048048)
Backed out changeset 6a727c40eb68 (bug 1048048)
Backed out changeset 88c2333ff745 (bug 1048048)
Backed out changeset 740ab1ecd079 (bug 1048048)
Backed out changeset 02c6d6aef163 (bug 1048048)
2015-09-21 09:08:34 -07:00