Ben Kelly
4f17b46d59
Bug 1210128 Ensure Cache API context internal state is consistent when shutdown during initialization. r=janv
2015-10-15 14:07:49 -07:00
Andrew McCreight
5171450b27
Bug 1197893 - Check the number of arguments for ThrowTypeError() and ThrowRangeError() at compile time. r=peterv
2015-10-05 09:38:14 -07:00
Wes Kocher
f0d829220d
Backed out changeset 821791826960 (bug 1197893) for Nexus build failures CLOSED TREE
2015-10-02 16:17:05 -07:00
Andrew McCreight
35cd15b8de
Bug 1197893 - Check the number of arguments for ThrowTypeError() and ThrowRangeError() at compile time. r=peterv
2015-10-02 15:09:02 -07:00
Andrew McCreight
7a2c6267d4
Backed out changeset 6fa9cdf4002b for breaking the build.
2015-10-02 10:49:28 -07:00
Andrew McCreight
404740a102
Bug 1197893 - Check the number of arguments for ThrowTypeError() and ThrowRangeError() at compile time. r=peterv
2015-10-02 10:42:08 -07:00
Carsten "Tomcat" Book
ca77b70a8d
merge mozilla-inbound to mozilla-central a=merge
2015-10-02 11:52:49 +02:00
Ehsan Akhgari
cf1376b18d
Bug 1204596 - Part 2: Update the schema of the DOM Cache database to remove the response_redirected and response_redirected_url columns; r=bkelly
2015-10-01 18:47:05 -04:00
Ehsan Akhgari
7f68257bc6
Bug 1204596 - Part 1: Avoid overriding the channel final URI when it gets intercepted; r=nsm,bkelly
2015-10-01 18:47:04 -04:00
Yoshi Huang
f97211a451
Bug 1167100 - User originAttribute in ContentPrincipalInfo. r=bholley
2015-09-23 18:19:06 +08:00
Wes Kocher
df21b43278
Backed out changeset d0e88c95f3c5 (bug 1167100) for crashes a=backout
2015-09-29 10:25:20 -07:00
Yoshi Huang
872722fe37
Bug 1167100 - User nsIPrincipal.originAttribute in ContentPrincipalInfo. r=bholley
2015-09-23 18:19:06 +08:00
Jeff Walden
4046fe1490
Bug 1179003 - Convert the infallible objectClassIs proxy hook into a fallible getBuiltinClass hook that indicates class type via outparam. r=efaust, r=bz on DOM bits, r=billm on IPC bits
...
--HG--
extra : rebase_source : 6ddc3727c411fdfced6338e5e383a10572575f0f
2015-08-28 21:55:40 -07:00
Henry Chang
b6b5862949
Bug 1163254 - Add signedPkg to OriginAttributes. r=bholley
2015-09-18 15:11:58 +08:00
Christoph Kerschbaumer
f69e2b393b
Bug 1048048 - add preload content policy types (r=ehsan)
...
--HG--
extra : source : 740ab1ecd0794b5a304b93ef528c8aa4c68ca417
2015-09-20 14:55:44 -07:00
Wes Kocher
cd079d2bf9
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
Christoph Kerschbaumer
319984decc
Bug 1048048 - add preload content policy types (r=ehsan)
2015-09-20 14:55:44 -07:00
Carsten "Tomcat" Book
c5551bace9
Backed out 2 changesets (bug 1169633, bug 1163254) for linux Mn-e10s test bustage on a CLOSED TREE
...
Backed out changeset 47ccf6689101 (bug 1169633)
Backed out changeset 503eab197a2d (bug 1163254)
2015-09-17 16:01:25 +02:00
hchang
2e884ff477
Bug 1163254 - Add signedPkg to OriginAttributes. r=bholley
2015-09-16 19:42:00 +02:00
Phil Ringnalda
92751c5b3e
Back out 3 changesets (bug 1204596) for b2g test_fetch_cors.html failures
...
Backed out changeset 2662a1ad4cad (bug 1204596)
Backed out changeset cfc4c4ecbbf5 (bug 1204596)
Backed out changeset d10c6f32ce46 (bug 1204596)
2015-09-16 20:51:17 -07:00
Ehsan Akhgari
bac1e66119
Bug 1204596 - Part 2: Update the schema of the DOM Cache database to remove the response_redirected and response_redirected_url columns; r=bkelly
2015-09-16 20:38:21 -04:00
Ehsan Akhgari
b2a35e80cb
Bug 1204596 - Part 1: Avoid overriding the channel final URI when it gets intercepted; r=nsm,bkelly
2015-09-16 20:38:19 -04:00
Ehsan Akhgari
59c135c176
Bug 1198078 - Add support for TYPE_INTERNAL_SERVICE_WORKER; r=ckerschb,tanvi
2015-09-16 19:15:30 -04:00
Ben Kelly
a944becd40
Bug 1184607 P7.8 Test Cache API schema verison migrations. r=ehsan
2015-08-31 14:26:30 -07:00
Ben Kelly
e4c6f8d174
Bug 1184607 P7.6 Expose CacheStorage .caches property on xpcshell global. r=smaug
...
* * *
7.6 interdiff
2015-08-31 14:26:30 -07:00
Ben Kelly
4bc651e2ed
Bug 1184607 P7.5 Add RequestRedirect to Cache API schema with migration. r=ehsan
2015-08-31 14:26:30 -07:00
Ben Kelly
11f983b483
Bug 1184607 P7.4 Infrastructure for running Cache schema migrations. r=ehsan
2015-08-31 14:26:30 -07:00
Ben Kelly
6e79a82e9f
Bug 1184607 P7.3 Rename Cache "max wipe version" constant to "first shipped version". r=ehsan
2015-08-31 14:26:30 -07:00
Ben Kelly
4fb2a6ffe3
Bug 1184607 P7.2 Validate Cache schema in debug builds. r=ehsan
2015-08-31 14:26:30 -07:00
Ben Kelly
ac1063f343
Bug 1184607 P7.1 Move Cache schema SQL into separate constants. r=ehsan
2015-08-31 14:26:29 -07:00
Ben Kelly
1947fc8d08
Bug 1112071 Change Cache ManagerId to use QuotaManager's concept of origin. r=ehsan
2015-08-31 14:26:29 -07:00
Nicholas Nethercote
f44287005f
Bug 1198334 (part 1) - Replace the opt-in FAIL_ON_WARNINGS with the opt-out ALLOW_COMPILER_WARNINGS. r=glandium.
...
The patch removes 455 occurrences of FAIL_ON_WARNINGS from moz.build files, and
adds 78 instances of ALLOW_COMPILER_WARNINGS. About half of those 78 are in
code we control and which should be removable with a little effort.
--HG--
extra : rebase_source : 82e3387abfbd5f1471e953961d301d3d97ed2973
2015-08-27 20:44:53 -07:00
Michael Layzell
d412cade2c
Bug 1145744 - Update CacheStorage to use common StorageAllowedForWindow logic, r=bkelly
2015-08-28 10:10:33 -04:00
Yoshi Huang
e6070e9062
Bug 1165272 - Part 2: replace getNoAppCodebasePrincipal. r=bholley
2015-08-18 15:01:42 +08:00
Bobby Holley
edfe287f26
Backed out 3 changesets (bug 1165272) for b2g sanity blocker.
2015-08-25 11:16:21 -07:00
Yoshi Huang
de47f4b89f
Bug 1165272 - Part 2: Replace getNoAppCodebasePrincipal. r=bholley
2015-08-24 01:18:00 -04:00
Antonio de Luna Lopez
f24373495b
Bug 1110476 - Stripped url fragment from Request::GetUrl() by calling either nsIURI::SetRef() or workers::URL::SetHash() in Request's url getter utility methods. Stripped url fragment from Response::GetUrl() by adding the method InternalRequest::StripFragmentAndSetUrl() which calls nsIURI::SetRef(). Added a test in dom/tests/mochitest/fetch/test_request.js for Request::GetUrl(). Removed manual url stripping from dom/cache/TypeUtils.cpp. r=bkelly
...
--HG--
extra : histedit_source : 034dc90148e27780a1f9a512a513ee30f26dce92
2015-08-13 08:22:19 -07:00
Christoph Kerschbaumer
1c05a94924
Bug 1191107 - Split TYPE_XMLHTTPREQUEST and TYPE_DATAREQUEST for EventSource (r=sicking,ehsan)
2015-08-06 11:17:24 -07:00
Carsten "Tomcat" Book
7d6f90f702
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
cb37e46dd2
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
ac8c6304a9
Use the same graphics device parameters across processes. (bug 1183910 part 7, r=mattwoodrow)
2015-08-02 13:59:33 -07:00
Bobby Holley
97b9240b34
Bug 1188696
- Hoist nsRefPtr.h into MFBT. r=froydnj
2015-07-29 10:44:59 -07:00
dimi
cb39e7d544
Bug 1186312 - Cache API should not accept system principals for child processes. r=bkelly
...
--HG--
extra : rebase_source : cae2763663eaf8d7fd27bc684f6ecc892690f64d
2015-07-23 17:42:02 +08:00
Birunthan Mohanathas
a8939590de
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
7ff47213f8
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
7d441b2d5c
Bug 1181577 Delay creation of QuotaInitRunnable until Cache Context actually started. r=ehsan
2015-07-09 11:19:50 -07:00
Ehsan Akhgari
54a5716d5e
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
687fb616be
Bug 1181259 Remove stray debugging printf from Cache API. r=froydnj
2015-07-08 12:55:36 -07:00
Dragana Damjanovic
7987d2203e
Bug 905127 - Part 2 - remove unnecessary nsNetUtil.h includes r=jduell
2015-07-06 07:55:00 +02:00
Emanuel Hoogeveen
7d1e52f2ff
Bug 905127 - Part 1 - Make some functions from nsNetUtil not inline. r=jduell
2015-07-07 04:17:00 +02:00
Ben Kelly
351585e29f
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
b56d917f3c
Bug 1172562 - Clear QuotaManager storage when uninstalling an app. Test. r=bkelly
2015-07-02 11:17:01 +02:00
Ben Kelly
e90a4f225d
Bug 1178196 Fix race in Cache API orphaned data tests. r=ehsan
2015-06-30 08:31:00 -07:00
Jan Varga
283acfefd3
Bug 1170021 - Part 2: Move DirectoryLock out of QuotaManager class; r=bent
2015-06-30 14:59:53 +02:00
Jan Varga
baba1643c1
Bug 1130775 - Convert synchronized ops and storage registration into unified directory locks; r=bent
...
--HG--
rename : dom/quota/OriginOrPatternString.h => dom/quota/OriginScope.h
2015-06-30 14:59:27 +02:00
Carsten "Tomcat" Book
a06a9d27a5
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
f62f7f9f4b
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
f78320762c
Bug 1177965 Remove browser.privatebrowing.autostart from browser_cache_pb_window.js r=ehsan
2015-06-29 11:45:26 -07:00
Ben Kelly
ccc0bf0860
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
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
d87aa736d6
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
d722c7d5fb
Bug 1173467
P3 Pass private browsing flag into CacheStorage factory methods. r=ehsan
2015-06-26 19:36:40 -07:00
Ben Kelly
299afbab05
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
65dcf79af7
Back out a bit more of bug 1173467
(changeset 30cefdf8d020) that I missed.
2015-06-27 12:21:05 +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
Ben Kelly
6862b4c402
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
73d7dcb1a3
Bug 1173467
P3 Pass private browsing flag into CacheStorage factory methods. r=ehsan
2015-06-26 17:42:56 -07:00
Ben Kelly
f1a1a443eb
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
1a7bf3eeb5
Bug 1110446 P4 Add a test that orphanes Cache API body files. r=ehsan
2015-06-25 22:22:47 -07:00
Ben Kelly
a46f5588ad
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
704bdbfb99
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
bbd2a20e5d
Bug 1110446 P1 Create marker files when Cache API context is open. r=ehsan
2015-06-25 22:22:46 -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
Ben Kelly
ce90b29484
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
72fd940fc3
Bug 1173439 P4 Remove Request url field from Cache API database. r=ehsan
2015-06-16 17:39:05 -07:00
Ben Kelly
0a4c003dd5
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
2a2c3fa17d
Bug 1173439 P2 Parse Response URL query as a separate field. r=ehsan
2015-06-16 17:39:05 -07:00
Ben Kelly
18e16a0fa2
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
b6487f1ac4
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
7018c8ba46
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
cd8eec31d9
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
fe838f3834
Bug 1174849 - Remove "serviceworker" from RequestContext; r=smaug,bkelly
2015-06-15 21:36:01 -04:00
Ben Kelly
a3be126ba9
Bug 1167808 P0 Cache.put() should use internal body of opaque Response. r=nsm
2015-06-12 18:59:01 -07:00
Ben Kelly
e440c549b6
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
be551239da
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
d9f5031529
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
Ben Kelly
7ea74752c9
Bug 1168152 P5 Follow-up to use 32kb growth size as intended in previous patches. r=me
2015-05-28 07:52:35 -07:00
Ben Kelly
da9b1ef1b9
Bug 1168152 P4 Add a test to verify Cache incremental vacuum works. r=ehsan
2015-05-28 07:46:48 -07:00
Ben Kelly
dbbf4fbc4a
Bug 1168152 P3 Perform incremental vacuum at tail end of Cache db connections. r=ehsan
2015-05-28 07:46:47 -07:00
Ben Kelly
6ea4923572
Bug 1168152 P2 Use a wrapper mozIStorageConnection for shared Cache connections. r=ehsan
2015-05-28 07:46:47 -07:00
Ben Kelly
aee2720d22
Bug 1168152 P1 Use a smaller sqlite page size and a growth increment in Cache. r=ehsan
2015-05-28 07:46:47 -07:00
Ben Kelly
ac3f20c81e
Bug 1168135 P3 Cache Context should pass shared Data container to init Action. r=ehsan
2015-05-28 07:46:47 -07:00
Ben Kelly
02392e2639
Bug 1168135 P2 Add Cache Context::Init() method. r=ehsan
2015-05-28 07:46:47 -07:00
Ben Kelly
47b8771d37
Bug 1168135 P1 Execute Cache init Action on same target thread used for other Actions. r=ehsan
2015-05-28 07:46:47 -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
805bc94273
Bug 858680 - Part 2: Add idle notifications to QuotaClient, r=janv.
...
--HG--
extra : rebase_source : d4ec5e860b885ab01e4e1c19e6aed057b78e5aaa
2015-04-30 13:46:51 -07:00
Ben Kelly
322b8ff03f
Bug 1166911
Modify Cache API sqlite code to use IS NULL literal when comparing an empty key. r=ehsan
2015-05-21 18:16:37 -07:00