Ehsan Akhgari
24fbc15619
Bug 1120715 - Part 6: Remove the dom.requestcache.enabled pref; r=bkelly
2016-03-11 14:40:53 -05:00
Ryan VanderMeulen
e98112b9bd
Backed out 8 changesets (bug 1120715) for Android dom/u2f/tests/test_no_token.html permafail.
...
Backed out changeset 043770204431 (bug 1120715)
Backed out changeset e10c375353f4 (bug 1120715)
Backed out changeset c2871dbeb7cc (bug 1120715)
Backed out changeset 79158f028ad3 (bug 1120715)
Backed out changeset c74866f52320 (bug 1120715)
Backed out changeset c731944ecc64 (bug 1120715)
Backed out changeset 44f346712a3a (bug 1120715)
Backed out changeset 60d6045125e2 (bug 1120715)
CLOSED TREE
2016-03-10 20:20:05 -05:00
Ehsan Akhgari
8508bae9bf
Bug 1120715 - Part 6: Remove the dom.requestcache.enabled pref; r=bkelly
2016-03-10 17:29:11 -05:00
Carsten "Tomcat" Book
25fbf67b66
Backed out changeset 878c54ec3954 (bug 1250453
)
2016-03-10 14:45:59 +01:00
Marco Castelluccio
1902f1c620
Bug 1250453
- Remove DOMApplicationRegistry.allAppsLaunchable property and related testing API. r=myk
2016-03-10 11:12:38 +00:00
Wes Kocher
53011a6a05
Backed out 6 changesets (bug 1120715) for wpt bustage in request-cache.html
...
Backed out changeset 2ee4b18f6b3a (bug 1120715)
Backed out changeset f87a25ade31e (bug 1120715)
Backed out changeset 9391f22c08c2 (bug 1120715)
Backed out changeset c5bf9f7bb86e (bug 1120715)
Backed out changeset 7e003fb64d41 (bug 1120715)
Backed out changeset ef66b64e9f8a (bug 1120715)
MozReview-Commit-ID: AI47IhtGWea
2016-03-09 15:57:43 -08:00
Ehsan Akhgari
017bf0f2b6
Bug 1120715 - Part 6: Remove the dom.requestcache.enabled pref; r=bkelly
2016-03-09 16:45:01 -05:00
Myk Melez
a6aff185d2
Bug 1238576 - disable mozApps API on desktop/Android; r=ehsan,ochameau,bz,mcmanus,jmaher,marco
2016-02-08 11:24:22 -08:00
Ben Kelly
a0dffad2f8
Bug 1244764 P2 Make dom/cache mochitests pass with new add()/addAll() behavior. r=ehsan
2016-02-04 07:59:52 -08:00
Jonathan Griffin
59f626fe96
Bug 1232780 - Disable mochitests which fail on e10s so we can get that suite running, a=test-only
2016-01-05 12:02:47 -08:00
Jan Varga
945dffa14f
Bug 961049 - Part 6: Quota Manager on PBackground cache changes; r=bkelly
2015-11-22 10:44:16 +01:00
Yoshi Huang
176a15f268
Bug 1196665 - Add originAttributes into SpecialPowers. r=bholley
...
From 7bb0fbba24f4f65d3fa83efe223b1431cd71fdb6 Mon Sep 17 00:00:00 2001
---
dom/apps/tests/test_third_party_homescreen.html | 8 +-
.../test/test_messagemanager_assertpermission.html | 4 +-
dom/base/test/test_messagemanager_targetchain.html | 16 +--
...rowserElement_AllowEmbedAppsInNestedOOIframe.js | 11 +-
.../mochitest/browserElement_CopyPaste.js | 9 +-
.../browserElement_DisallowEmbedAppsInOOP.js | 9 +-
.../mochitest/browserElement_Proxy.js | 10 +-
.../browserElement_SetInputMethodActive.js | 3 +-
.../mochitest/browserElement_SetVisibleFrames.js | 17 ++--
.../mochitest/browserElement_SetVisibleFrames2.js | 16 +--
.../priority/test_ExpectingSystemMessage2.html | 16 +--
.../mochitest/priority/test_NestedFrames.html | 16 +--
dom/cache/test/mochitest/driver.js | 11 +-
.../test/mochitest/test_cache_orphaned_body.html | 33 +-----
.../test/mochitest/test_cache_orphaned_cache.html | 33 +-----
dom/cache/test/mochitest/test_cache_restart.html | 11 +-
dom/cache/test/mochitest/test_cache_shrink.html | 33 +-----
dom/indexedDB/test/file.js | 12 +--
dom/indexedDB/test/helpers.js | 9 +-
dom/indexedDB/test/webapp_clearBrowserData.js | 6 +-
dom/inputmethod/mochitest/test_bug1043828.html | 5 +-
dom/inputmethod/mochitest/test_bug944397.html | 5 +-
.../mochitest/test_focus_blur_manage_events.html | 5 +-
.../mochitest/test_input_registry_events.html | 5 +-
.../mochitest/test_simple_manage_events.html | 5 +-
.../tests/test_permission_for_nested_oop_app.html | 3 +-
.../tests/test_permission_for_two_oop_apps.html | 3 +-
dom/ipc/tests/test_permission_helper.js | 21 ++--
.../test_permission_when_oop_app_crashes.html | 3 +-
dom/tv/test/mochitest/head.js | 5 +-
.../test_SpecialPowersPushAppPermissions.html | 14 ++-
.../tests/Harness_sanity/test_bug816847.html | 6 +-
.../components/SpecialPowersObserver.js | 4 +-
.../content/SpecialPowersObserverAPI.js | 24 +----
testing/specialpowers/content/specialpowersAPI.js | 111 ++++++++-------------
35 files changed, 173 insertions(+), 329 deletions(-)
2015-10-07 14:35:43 +08:00
Yoshi Huang
0f75eb4970
Backout e54c3b878993
2015-10-27 15:49:11 +08:00
Yoshi Huang
425b3272f5
Bug 1196665 - Add originAttributes into SpecialPowers. r=bholley
2015-10-07 14:35:43 +08:00
Ehsan Akhgari
9dbda26606
Bug 1216697 follow-up: enable the dom.requestcache.enabled pref in DOM Cache tests
2015-10-23 16:39:55 -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
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
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
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
Cameron McCormack
65dcf79af7
Back out a bit more of bug 1173467
(changeset 30cefdf8d020) that I missed.
2015-06-27 12:21:05 +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
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
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
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
4a673bf1ef
Bug 1166038 De-duplicate security info stored in the Cache API. r=ehsan
2015-05-21 18:16:36 -07:00
Ben Kelly
0241f41973
Bug 1165395 Test Cache API after QuotaManager reset. r=janv
2015-05-19 17:47:16 -07:00
Ryan VanderMeulen
a022f9015f
Backed out changeset f7054968c36b (bug 1165395) for B2G debug crashes.
...
CLOSED TREE
2015-05-19 11:42:01 -04:00
Ben Kelly
628c49aec7
Bug 1165395 Test Cache API after QuotaManager reset. r=janv
2015-05-19 06:50:20 -07:00
Nikhil Marathe
e91bba2a3a
Bug 1162411 - Fix Request CORS bug. r=bz
...
--HG--
extra : rebase_source : 5397f75a16865378949a4f30dd045f8c6a85b16e
2015-05-07 15:39:13 -07:00
Ehsan Akhgari
53964a12f9
Bug 1162487 - Enable the dom.caches.enabled pref in test_chrome_constructor.html; r=baku
2015-05-08 08:43:50 -04:00
Ben Kelly
ad6ba8a8b6
Bug 1160138 P3 Test Cache chrome-only Constructor. r=ehsan
2015-05-05 15:45:36 -07:00
Ben Kelly
a874312867
Bug 1120501 P2 Move Cache Add/AddAll logic to child process. r=ehsan,smaug
2015-04-29 08:59:43 -07:00
Tooru Fujisawa
0edbeb71c8
Bug 1102219 - Part 5: Replace more `String.prototype.contains` with `String.prototype.includes` in chrome code. r=till
2015-04-30 00:32:05 +09:00
Timur Valeev
789df89fb0
Bug 1150001 - Cache API should not return Response body when matching Request with HEAD method. r=bkelly
...
--HG--
extra : rebase_source : 5a380217b687de562c5b631c0ace973ee4af574f
2015-04-23 16:17:37 +03:00
Ehsan Akhgari
c6e94fa106
Bug 1155988 - Use the ready promise more often in service worker tests; r=nsm
2015-04-21 00:23:22 -04:00
Ehsan Akhgari
bbbc7baec8
Bug 1149987 - Part 8: Do not store or match Response objects with a Vary:* header; r=bkelly
2015-04-15 15:55:51 -04:00
Ehsan Akhgari
fa3e955d12
Bug 1153388 - Don't attempt to read a header that may not exist; r=bkelly
...
getHeader() throws an exception if the header doesn't exist. The checks
for hasHeader() below should prevent this exception from being raised.
2015-04-11 09:57:57 -04:00
Ehsan Akhgari
e69f6f626a
Bug 1141256 - Stop randomizing the URL for the service worker now that bug 931249 has been fixed
2015-04-09 11:11:14 -04:00
Ryan VanderMeulen
d8ade60200
Backed out 5 changesets (bug 1149987) for mochitest crashes.
...
Backed out changeset b62e371d6189 (bug 1149987)
Backed out changeset daa762fca8e6 (bug 1149987)
Backed out changeset bdb64d5befa5 (bug 1149987)
Backed out changeset 693901a4bcde (bug 1149987)
Backed out changeset e7c41c8653c4 (bug 1149987)
CLOSED TREE
2015-04-08 11:49:49 -04:00
Ehsan Akhgari
a68c1ffa1b
Bug 1149987 - Part 5: Do not store or match Response objects with a Vary:* header; r=bkelly
2015-04-08 10:27:40 -04:00
Ehsan Akhgari
bb4f610dac
Bug 1147184 - Extend the tests for Cache.put; r=bkelly
2015-03-25 21:22:18 -04:00
Ehsan Akhgari
fe1c309d02
Bug 1146612 - Add a test to ensure that Cache.put() with an existing request will reorder it in the DB; r=bkelly
2015-03-24 10:32:02 -04:00
Ehsan Akhgari
c65501f8bc
Bug 1146585 - Add a test for Cache.delete; r=bkelly
2015-03-24 10:32:01 -04:00
Ben Kelly
12af2a6a57
Bug 1110487 P2 Implement the nsIOfflineStorage interface in Cache. r=janv,ehsan
2015-03-16 07:10:36 -07:00
Ehsan Akhgari
f701f72fb3
Bug 1146202 - Add a test for the handling of ignoreVary in Cache.keys; r=bkelly
2015-03-23 15:46:58 -04:00
Ehsan Akhgari
1835ea57f2
Bug 1126819 - Part 2: Persist the Request.cache attribute in DOM Cache; r=bkelly
2015-03-23 15:46:58 -04:00
Ehsan Akhgari
9dbf30b541
Bug 1110814 follow-up: Fix a typo in order to fix the test failures
2015-03-22 10:35:29 -04:00
Ben Kelly
275609c516
Bug 1110814 P1 Implement Cache IPC actor for streaming data from child to parent. r=khuey
2015-03-22 02:52:12 -04:00
Ehsan Akhgari
f0bc72be6b
Bug 1145792 - Add a test for the Cache.keys method; r=bkelly
2015-03-21 20:13:33 -04:00
Ehsan Akhgari
d9a8b3d4a8
Bug 1145445
- Add a test for CacheStorage; r=bkelly
2015-03-21 20:11:24 -04:00
Ehsan Akhgari
0efffdf2eb
Bug 1144725 - Forcefully terminate the workers used in DOM cache tests once we're done with them; r=bkelly
2015-03-21 20:09:40 -04:00
Ehsan Akhgari
69cd0a74b8
Bug 1143894 - Part 5: Add a test for handling of the Vary header with multiple entries in the cache; r=bkelly
2015-03-21 19:45:14 -04:00
Ehsan Akhgari
734a1b3adf
Bug 1143894 - Part 4: Add tests for handling of the Vary header in DOM Cache; r=bkelly
2015-03-21 19:45:13 -04:00
Ehsan Akhgari
146e202730
Bug 1144337 - Add tests to ensure that cacheName is only honored on CacheStorage, and not Cache; r=bkelly
2015-03-20 16:05:49 -04:00
Ehsan Akhgari
1e0c4573e6
Bug 1143222 - Put the DOM Cache tests in sequential mode again until we fix the rest of the intermittent failures; a=RyanVM
2015-03-19 17:08:02 -04:00
Ehsan Akhgari
2515f140bb
Bug 1144236 - Add tests for the ignoreMethod match mode in DOM cache; r=bkelly
2015-03-17 10:58:00 +01:00
Nigel Babu
2e6821328d
Backed out changeset dd13fdf7b284 (bug 1144236) for bustage CLOSED TREE
...
--HG--
extra : amend_source : 3a70fa61052cbdaa1df2a1656880717965d1165e
2015-03-18 12:05:33 +05:30
Ehsan Akhgari
e73318de31
Bug 1144236 - Add tests for the ignoreMethod match mode in DOM cache; r=bkelly
2015-03-17 23:56:32 -04:00
Ehsan Akhgari
babb2a95d5
Bug 1143222 - Avoid dumping out extremely long response bodies to the mochitest log, and re-enable the newly added DOM cache tests to run both in seqential and parallel modes; r=bkelly
...
The test timeouts here are some form of bug 1141256, which causes the service
worker spawned in the parallel mode of the tests to never start up. It turns
out that avoiding sending this huge message to the mochitest logger avoids the
issue on the infrastructure, so let's re-enable these tests. Bug 1141256 still
needs to be investigated.
2015-03-17 16:51:57 -04:00
Ehsan Akhgari
eaf970dc6a
Bug 1143959 - Set the journal mode and foreign key pragmas for all DBActions; r=bkelly
...
Before this patch, we would only set these pragmas as part of CreateSchema
which runs in SetupAction. This meant that the connection used to perform
other DBActions would not have had these pragmas applied. As a result,
sqlite would not honor foreign keys on such connections, so the cascade
delete rules responsible for deleting rows from request_headers and
response_headers would not get executed when DBSchema::CachePut deleted the
old entry before adding a new one.
The test in the patch demonstrates how this could result in an observable
breakage. Before this patch, the response headers stored in the cache for
the overwritten entry would reflect both `Mirrored: `foo' and `Mirrored: bar'
headers, which means that attempting to get this header on the cached
response would return the first entry, `foo'.
2015-03-17 08:18:28 -04:00
Ehsan Akhgari
23214cf141
Bug 1143833 - Add tests for the ignoreSearch match mode in DOM cache; r=bkelly
2015-03-16 17:11:05 -04:00
Ehsan Akhgari
3355cc8ff3
Bug 1143820 - Add tests to ensure that the URL fragments are correctly ignored by the DOM Cache API; r=bkelly
2015-03-16 17:08:09 -04:00
Ehsan Akhgari
56026081c7
Bug 1143813 - Add tests for attempting to store a non-GET request in the DOM Cache; r=bkelly
2015-03-16 17:03:45 -04:00
Ehsan Akhgari
791ff66ebf
Bug 1143511 - Correct the usages of .catch() in DOM cache tests; r=bkelly
...
These tests used .catch() incorrectly, in a way that did not actually
guarantee that the promise is rejected, so in 3 cases the promise
resolved to known failure values (undefined or an empty array) and
this was not being caught as a test failure.
This patch fixes those three places, and also rewrites the .catch()
usage in another case to guarantee that the promise is indeed rejected.
2015-03-16 16:53:10 -04:00
Ehsan Akhgari
0046a6d6ef
Bug 1143219
- Add tests for passing an unknown request to match and matchAll; r=bkelly
2015-03-16 16:46:49 -04:00
Ehsan Akhgari
0ee6b70264
Bug 1143193 - Run the tests for match and matchAll on both Request objects and string URLs; r=bkelly
2015-03-16 16:29:22 -04:00
Ryan VanderMeulen
ba908a867f
Backed out changeset 734e81bff9f3 (bug 1110487) for intermittent e10s cache test crashes.
...
CLOSED TREE
2015-03-16 13:51:33 -04:00
Ben Kelly
30333a7a7d
Bug 1110487 P2 Implement the nsIOfflineStorage interface in Cache. r=janv,ehsan
2015-03-16 07:10:36 -07:00
Ehsan Akhgari
a95ed2c938
Bug 1143222 - Re-enable the newly added DOM cache test in sequential mode only for now
2015-03-15 17:53:50 -04:00
Ehsan Akhgari
ab42a2ec61
Bug 1143222 - Disable the newly added DOM cache tests for now because of intermittent failures
...
Landed on a CLOSED TREE
2015-03-13 19:23:34 -04:00
Ehsan Akhgari
47a098b474
Bug 1142790 - Add a test for passing Request objects to DOM cache matchAll method; r=bkelly
2015-03-13 19:21:16 -04:00
Wes Kocher
fe556f9355
Backed out changeset 1bd38b652695 (bug 1142790) for mochitest-1 timeouts CLOSED TREE
2015-03-13 16:02:08 -07:00
Ehsan Akhgari
230f9e920c
Bug 1142790 - Add a test for passing Request objects to DOM cache matchAll method; r=bkelly
2015-03-13 14:40:33 -04:00
Ehsan Akhgari
eed5a8dba4
Bug 1142772 - Interleave the DOM Cache tests run through the mini-framework; r=bkelly
...
Here are the changes needed to achieve this:
* We tag each message posted to the framework with a context argument.
context can be one of "Window", "Worker" or "ServiceWorker". In the
places where we handle messages, we only handle the ones corresponding
to the context that we expect.
* We use Promise.all in order to interleave the execution of the tests.
This has the nice property of actually getting the tests run
simultaneously on multi-core machines.
* For ease of debugging test failures, we print the context from which
each test message is coming from.
* In order for the tests that are run in parallel to not step on each
other's toes, we introduce a global `context' variable that the test
script can use to create names that do not clash with concurrent
test runs. For example, instead of `caches.open("foo")', one must now
use: `caches.open("foo" + context)'.
* The existing tests are modified based on the above.
* When running the tests in parallel, the service worker may end up
controlling both frame.html and message_receiver.html. The hunk at
the end of worker_wrapper.js is intended to ensure that we will
always be communicating with message_receiver.html.
* An order argument has been added to runTests which can be set to
"sequential" in order to run the tests in different contexts in
parallel. If the argument is omitted, the default is "parallel".
2015-03-13 14:32:02 -04:00
Ehsan Akhgari
43c73c2bcf
Bug 1142333 - Add a test for passing Request objects to DOM cache match methods; r=bkelly
2015-03-13 14:28:24 -04:00
Ehsan Akhgari
09a624cdf5
Bug 1140658 - Part 8: Disable the service worker part of these tests on b2g while bug 1137683 gets fixed; r=bkelly
2015-03-11 16:46:04 -04:00
Ehsan Akhgari
9a622be5a7
Bug 1140658 - Part 6: Randomize the URL of the ServiceWorker script in order to work around bug 1141256 for now
2015-03-11 16:45:08 -04:00
Ehsan Akhgari
233f23428c
Bug 1140658 - Part 5: Remove test_cache_quick_close.html because it makes no sense after bug 1131353; r=bkelly
2015-03-11 16:45:06 -04:00
Ehsan Akhgari
3933a8a97c
Bug 1140658 - Part 4: Port test_cache_add.html to the new mini-framework; r=bkelly
2015-03-11 16:45:05 -04:00
Ehsan Akhgari
9e4efd1206
Bug 1140658 - Part 3: Port test_cache.html to the new mini-framework; r=bkelly
2015-03-11 16:45:03 -04:00
Ehsan Akhgari
fc378c5b91
Bug 1140658 - Part 2: Merge test_cache.js and test_cache_frame.html; r=bkelly
2015-03-11 16:45:01 -04:00
Ehsan Akhgari
8ceef26b0c
Bug 1140658 - Part 1: Create a mini-framework for running tests in the worker, service worker and window contexts; r=bkelly
2015-03-11 16:45:00 -04:00
Carsten "Tomcat" Book
04343cce81
Backed out changeset c96b6474bdac (bug 1140658) for m1 crashes
2015-03-10 09:01:47 +01:00
Carsten "Tomcat" Book
6612a28f54
Backed out changeset 8827f51084f1 (bug 1140658)
2015-03-10 09:01:10 +01:00
Carsten "Tomcat" Book
0b428fa812
Backed out changeset 0438058b908a (bug 1140658)
2015-03-10 09:01:08 +01:00
Carsten "Tomcat" Book
7d7287fd90
Backed out changeset 2e62e8ce8c3e (bug 1140658)
2015-03-10 09:01:07 +01:00
Carsten "Tomcat" Book
223c72260c
Backed out changeset f646f28b05d6 (bug 1140658)
2015-03-10 09:01:05 +01:00
Carsten "Tomcat" Book
901f5a7991
Backed out changeset 7d91550919d2 (bug 1140658)
2015-03-10 09:01:00 +01:00
Ehsan Akhgari
962dac81fb
Bug 1140658 - Part 6: Randomize the URL of the ServiceWorker script in order to work around bug 1141256 for now
2015-03-09 22:03:27 -04:00
Ehsan Akhgari
13d5aa382c
Bug 1140658 - Part 5: Remove test_cache_quick_close.html because it makes no sense after bug 1131353; r=bkelly
2015-03-09 22:03:27 -04:00
Ehsan Akhgari
9312cb686c
Bug 1140658 - Part 4: Port test_cache_add.html to the new mini-framework; r=bkelly
2015-03-09 22:03:26 -04:00
Ehsan Akhgari
6c0dca71aa
Bug 1140658 - Part 3: Port test_cache.html to the new mini-framework; r=bkelly
2015-03-09 22:03:26 -04:00