Commit Graph

253 Commits

Author SHA1 Message Date
Christoph Kerschbaumer
d26294b1b5 Bug 1191107 - Split TYPE_XMLHTTPREQUEST and TYPE_DATAREQUEST for EventSource (r=sicking,ehsan) 2015-08-06 11:17:24 -07:00
Carsten "Tomcat" Book
3dfe591c94 Backed out 2 changesets (bug 1191107, bug 1180273) for causing xpcshell and m-oth testfailures on a CLOSED TREEi IGNORE IDL
Backed out changeset c5f710ed8718 (bug 1191107)
Backed out changeset d98d82f9981b (bug 1180273)
2015-08-06 08:39:05 +02:00
Christoph Kerschbaumer
02919da4b2 Bug 1191107 - Split TYPE_XMLHTTPREQUEST and TYPE_DATAREQUEST for EventSource - IGNORE IDL (r=sicking,ehsan) 2015-08-05 12:58:05 -07:00
David Anderson
57767f5962 Use the same graphics device parameters across processes. (bug 1183910 part 7, r=mattwoodrow) 2015-08-02 13:59:33 -07:00
Bobby Holley
106e778c81 Bug 1188696 - Hoist nsRefPtr.h into MFBT. r=froydnj 2015-07-29 10:44:59 -07:00
dimi
73425f6ead Bug 1186312 - Cache API should not accept system principals for child processes. r=bkelly 2015-07-23 17:42:02 +08:00
Birunthan Mohanathas
e52329c788 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
Ben Kelly
97df79d492 Bug 1181871 P1 Only enforce Cache Context shared data destruction on target thread after init. r=ehsan 2015-07-10 13:56:06 -07:00
Ben Kelly
3a8abc5937 Bug 1181577 Delay creation of QuotaInitRunnable until Cache Context actually started. r=ehsan 2015-07-09 11:19:50 -07:00
Ehsan Akhgari
31f9459d09 Bug 1180765 - Bump the caches.sqlite version numbers because of the field that was added in bug 1169044; r=jdm 2015-07-08 19:35:29 -04:00
Ben Kelly
072b2e3199 Bug 1181259 Remove stray debugging printf from Cache API. r=froydnj 2015-07-08 12:55:36 -07:00
Dragana Damjanovic
c7fc0a288e Bug 905127 - Part 2 - remove unnecessary nsNetUtil.h includes r=jduell 2015-07-06 07:55:00 +02:00
Emanuel Hoogeveen
31c0c961cd Bug 905127 - Part 1 - Make some functions from nsNetUtil not inline. r=jduell 2015-07-07 04:17:00 +02:00
Ben Kelly
e3165d2433 Bug 1179772 Make Cache API honor devtools SW testing flag in SW itself. r=ehsan 2015-07-02 11:47:10 -07:00
Fernando Jimenez
2e5485a600 Bug 1172562 - Clear QuotaManager storage when uninstalling an app. Test. r=bkelly 2015-07-02 11:17:01 +02:00
Ben Kelly
c1bdbc4ce6 Bug 1178196 Fix race in Cache API orphaned data tests. r=ehsan 2015-06-30 08:31:00 -07:00
Jan Varga
d8e220fa45 Bug 1170021 - Part 2: Move DirectoryLock out of QuotaManager class; r=bent 2015-06-30 14:59:53 +02:00
Jan Varga
bc82e78a6b Bug 1130775 - Convert synchronized ops and storage registration into unified directory locks; r=bent 2015-06-30 14:59:27 +02:00
Carsten "Tomcat" Book
306ecadd2b Backed out changeset 6ff483d6ba34 (bug 1172562) for timeouts in test_cache_clear_on_app_uninstall.html 2015-06-30 14:58:20 +02:00
Fernando Jimenez
62b6874bdc Bug 1172562 - Add a test to check that cache storage is cleaned up when uninstalling an app. r=bkelly 2015-06-30 11:53:30 +02:00
Ben Kelly
f1f29679fd Bug 1177965 Remove browser.privatebrowing.autostart from browser_cache_pb_window.js r=ehsan 2015-06-29 11:45:26 -07:00
Ben Kelly
65d87bf0f5 Bug 1175138 P6 Add a simple test to verify CacheStorage rejects in http origin. r=ehsan 2015-06-27 23:19:24 -04:00
Ben Kelly
10607c718d Bug 1175138 P5 Make CacheStorage reject on untrusted origins. r=ehsan 2015-06-27 23:19:24 -04:00
Ben Kelly
2491e551ee Bug 1175138 P4 Enable dom.caches.testing.enabled in existing tests. r=ehsan 2015-06-27 23:19:24 -04:00
Ben Kelly
de7c269851 Bug 1173467 P4 Add a test to validate Cache in private browsing window. r=ehsan 2015-06-26 19:36:40 -07:00
Ben Kelly
4aa1f16fcb Bug 1173467 P3 Pass private browsing flag into CacheStorage factory methods. r=ehsan 2015-06-26 19:36:40 -07:00
Ben Kelly
5e424c4b77 Bug 1173467 P1 Modify CacheStorage to reject with SecurityErr instead of throwing on creation. r=ehsan 2015-06-26 19:36:39 -07:00
Cameron McCormack
e0844cdbf0 Back out a bit more of bug 1173467 (changeset 30cefdf8d020) that I missed. 2015-06-27 12:21:05 +10:00
Cameron McCormack
b3cd74b933 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
Ben Kelly
48a8c703f8 Bug 1173467 P4 Add a test to validate Cache in private browsing window. r=ehsan 2015-06-26 17:42:56 -07:00
Ben Kelly
fb7d9df80e Bug 1173467 P3 Pass private browsing flag into CacheStorage factory methods. r=ehsan 2015-06-26 17:42:56 -07:00
Ben Kelly
e78a82b9ba Bug 1173467 P1 Modify CacheStorage to reject with SecurityErr instead of throwing on creation. r=ehsan 2015-06-26 17:42:55 -07:00
Ben Kelly
06d449dbbe Bug 1110446 P4 Add a test that orphanes Cache API body files. r=ehsan 2015-06-25 22:22:47 -07:00
Ben Kelly
dab632639e Bug 1110446 P3 Add a test that forces a Cache object to be orphaned and reclaimed. r=ehsan 2015-06-25 22:22:47 -07:00
Ben Kelly
2251c69c0b Bug 1110446 P2 Cleanup stale caches/bodies if last session didn't shutdown cleanly. r=ehsan 2015-06-25 22:22:46 -07:00
Ben Kelly
f3bdc49aa5 Bug 1110446 P1 Create marker files when Cache API context is open. r=ehsan 2015-06-25 22:22:46 -07:00
Nikhil Marathe
ccc56e1b20 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.
2015-06-04 21:39:34 -07:00
Ben Kelly
19f30022f1 Bug 1173439 P5 Cache should index on a hash instead of the url itself. r=ehsan 2015-06-16 17:39:05 -07:00
Ben Kelly
c39b0d36a0 Bug 1173439 P4 Remove Request url field from Cache API database. r=ehsan 2015-06-16 17:39:05 -07:00
Ben Kelly
93ae3fe3a8 Bug 1173439 P3 Use url query field for database matching and Request creation. r=ehsan 2015-06-16 17:39:05 -07:00
Ben Kelly
610bb60b9c Bug 1173439 P2 Parse Response URL query as a separate field. r=ehsan 2015-06-16 17:39:05 -07:00
Ben Kelly
f96de4b805 Bug 1173439 P1 Store URLs as UTF8 strings in Cache instead of UTF16. r=ehsan 2015-06-16 17:39:05 -07:00
Ben Kelly
b813f542f4 Bug 1174768 Cache should check if QuotaManager is shutting down before calling GetOrCreate. r=janv 2015-06-16 12:00:55 -07:00
Ehsan Akhgari
d9c3cc1f26 Bug 1174982 - Add the new nsContentPolicyType values to the DBSchema.cpp static_assert; r=bkelly
Added a comment to nsIContentPolicyBase.idl since even I forgot to do this.
2015-06-16 10:42:31 -04:00
Ehsan Akhgari
2bd9b287e1 Bug 1174868 - Avoid storing RequestContext inside InternalRequest; r=nsm,bkelly,smaug
We are going to infer all RequestContext types from the corresponding
nsContentPolicyType. It no longer makes sense to store both of these on
InternalRequest.  This has the extra benefit that we don't need to worry
about keeping them in sync any more.
2015-06-15 21:36:04 -04:00
Ehsan Akhgari
1d5e845871 Bug 1174849 - Remove "serviceworker" from RequestContext; r=smaug,bkelly 2015-06-15 21:36:01 -04:00
Ben Kelly
0565956e1e Bug 1167808 P0 Cache.put() should use internal body of opaque Response. r=nsm 2015-06-12 18:59:01 -07:00
Ben Kelly
4ab395208a Bug 1169994 Fix Cache to close connection on right thread when init is canceled. r=ehsan 2015-06-10 06:37:16 -07:00
Ehsan Akhgari
1d3ef5533c Bug 1172629 - Use the caches global property from an iframe loaded after setting the pref in order to make the tests pass with the pref disabled; r=bkelly a=RyanVM 2015-06-09 16:06:00 -04:00
Ehsan Akhgari
02e9234885 Bug 1164397 - Part 5: Save the redirected flag and the redirected URI in the DOM cache; r=bkelly 2015-06-05 15:57:44 -04:00