Name Description Size
client-cert.p12 2509
data 13
head_cache.js 3378
head_cache2.js import-globals-from head_cache.js 12610
head_channels.js Read count bytes from stream and return as a String object 14367
head_cookies.js Any copyright is dedicated to the Public Domain. http://creativecommons.org/publicdomain/zero/1.0/ 33029
head_http3.js import-globals-from head_channels.js 3267
head_servers.js import-globals-from head_cache.js 12863
head_trr.js import-globals-from head_cache.js 19423
http2-ca.pem 1042
http2-ca.pem.certspec 103
perftest.ini 21
socks_client_subprocess.js global arguments 2378
test_1073747.js 895
test_304_headers.js 2516
test_304_responses.js 2719
test_307_redirect.js 2841
test_421.js 1545
test_about_networking.js -*- indent-tabs-mode: nil; js-indent-level: 2 -*- 3125
test_about_protocol.js 1360
test_aboutblank.js 864
test_addr_in_use_error.js 919
test_alt-data_closeWithStatus.js Test for the "alternative data stream" - closing the stream with an error. - we load a URL with preference for an alt data (check what we get is the raw data, since there was nothing previously cached) - we store something in alt data (using the asyncWait method) - then we abort the operation calling closeWithStatus() - we flush the HTTP cache - we reload the same URL using a new channel, again prefering the alt data be loaded - again we receive the data from the server. 4940
test_alt-data_cross_process.js Test for the "alternative data stream" stored withing a cache entry. - we load a URL with preference for an alt data (check what we get is the raw data, since there was nothing previously cached) - we store the alt data along the channel (to the cache entry) - we flush the HTTP cache - we reload the same URL using a new channel, again prefering the alt data be loaded - this time the alt data must arive 3970
test_alt-data_overwrite.js Test for overwriting the alternative data in a cache entry. - run_test loads a new channel - readServerContent checks the content, and saves alt-data - cacheFlushObserver creates a new channel with "text/binary" alt-data type - readAltContent checks that it gets back alt-data and creates a channel with the dummy/null alt-data type - readServerContent2 checks that it gets regular content, from the cache and tries to overwrite the alt-data with the same representation - cacheFlushObserver2 creates a new channel with "text/binary" alt-data type - readAltContent2 checks that it gets back alt-data, and tries to overwrite with a kind of alt-data - cacheFlushObserver3 creates a new channel with "text/binary2" alt-data type - readAltContent3 checks that it gets back the newly saved alt-data 6227
test_alt-data_simple.js Test for the "alternative data stream" stored withing a cache entry. - we load a URL with preference for an alt data (check what we get is the raw data, since there was nothing previously cached) - we store the alt data along the channel (to the cache entry) - we flush the HTTP cache - we reload the same URL using a new channel, again prefering the alt data be loaded - this time the alt data must arive 5779
test_alt-data_stream.js Test for the "alternative data stream" stored withing a cache entry. - we load a URL with preference for an alt data (check what we get is the raw data, since there was nothing previously cached) - we write a big chunk of alt-data to the output stream - we load the URL again, expecting to get alt-data - we check that the alt-data is streamed. We should get the first chunk, then the rest of the alt-data is written, and we check that it is received in the proper order. 4784
test_alt-data_too_big.js Test for handling too big alternative data - first we try to open an output stream for too big alt-data which must fail and leave original data intact - then we open the output stream without passing predicted data size which succeeds but writing must fail later at the size limit and the original data must be kept 2512
test_altsvc_http3.js 13716
test_altsvc_pref.js 3680
test_altsvc.js 16636
test_anonymous-coalescing.js - test to check we use only a single connection for both onymous and anonymous requests over an existing h2 session - request from a domain w/o LOAD_ANONYMOUS flag - request again from the same domain, but different URI, with LOAD_ANONYMOUS flag, check the client is using the same conn - close all and do it in the opposite way (do an anonymous req first) 4867
test_auth_dialog_permission.js 7216
test_auth_jar.js 1674
test_auth_multiple.js 13313
test_auth_proxy.js -*- indent-tabs-mode: nil; js-indent-level: 2 -*- 12585
test_authentication.js 33630
test_authpromptwrapper.js 5491
test_backgroundfilesaver.js -*- indent-tabs-mode: nil; js-indent-level: 2 -*- 24009
test_be_conservative_error_handling.js 6376
test_be_conservative.js 6422
test_blob_channelname.js Any copyright is dedicated to the Public Domain. http://creativecommons.org/publicdomain/zero/1.0/ 1042
test_brotli_decoding.js import-globals-from head_cache.js 6443
test_brotli_http.js 3404
test_bug1064258.js Check how nsICachingChannel.cacheOnlyMetadata works. - all channels involved in this test are set cacheOnlyMetadata = true - do a previously uncached request for a long living content - check we have downloaded the content from the server (channel provides it) - check the entry has metadata, but zero-length content - load the same URL again, now cached - check the channel is giving no content (no call to OnDataAvailable) but succeeds - repeat again, but for a different URL that is not cached (immediately expires) - only difference is that we get a newer version of the content from the server during the second request 4618
test_bug1177909.js 7615
test_bug1195415.js 5237
test_bug1218029.js Any copyright is dedicated to the Public Domain. http://creativecommons.org/publicdomain/zero/1.0/ 3085
test_bug1279246.js 2579
test_bug1312774_http1.js 4098
test_bug1312782_http1.js 5920
test_bug1355539_http1.js 5335
test_bug1378385_http1.js 5943
test_bug1411316_http1.js 2941
test_bug1527293.js 3957
test_bug1683176.js 2793
test_bug1725766.js -*- indent-tabs-mode: nil; js-indent-level: 2 -*- 2633
test_bug203271.js 5965
test_bug248970_cache.js 3706
test_bug248970_cookie.js 4281
test_bug261425.js 722
test_bug263127.js 1192
test_bug282432.js 912
test_bug321706.js 265
test_bug331825.js 1072
test_bug336501.js 570
test_bug337744.js verify that certain invalid URIs are not parsed by the resource protocol handler 3606
test_bug368702.js 4239
test_bug369787.js do nothing 1585
test_bug371473.js 830
test_bug376844.js 644
test_bug376865.js 567
test_bug379034.js 573
test_bug380994.js check resource: protocol for traversal problems 569
test_bug388281.js 844
test_bug396389.js 1962
test_bug401564.js -*- indent-tabs-mode: nil; js-indent-level: 2 -*- 1264
test_bug411952.js 1305
test_bug412457.js 2623
test_bug412945.js 973
test_bug414122.js 1642
test_bug427957.js Test for Bidi restrictions on IDNs from RFC 3454 3191
test_bug429347.js 1722
test_bug455311.js 3649
test_bug464591.js 2497
test_bug468426.js 3692
test_bug468594.js 4430
test_bug470716.js nonBlockingInput 4358
test_bug477578.js 810
test_bug479413.js Test for unassigned code points in IDNs (RFC 3454 section 7) 1446
test_bug479485.js 1818
test_bug482601.js 6915
test_bug482934.js 5405
test_bug490095.js 3819
test_bug504014.js 1872
test_bug510359.js 2471
test_bug526789.js Any copyright is dedicated to the Public Domain. http://creativecommons.org/publicdomain/zero/1.0/ 7765
test_bug528292.js 2642
test_bug536324_64bit_content_length.js Test to ensure our 64-bit content length implementation works, at least for a simple HTTP case 1639
test_bug540566.js Any copyright is dedicated to the Public Domain. http://creativecommons.org/publicdomain/zero/1.0/ 534
test_bug553970.js 2059
test_bug561042.js 1167
test_bug561276.js 1903
test_bug580508.js 1071
test_bug586908.js 2654
test_bug596443.js 2897
test_bug618835.js 3984
test_bug633743.js 5650
test_bug650522.js Any copyright is dedicated to the Public Domain. http://creativecommons.org/publicdomain/zero/1.0/ 943
test_bug650995.js 5173
test_bug652761.js 396
test_bug654926_doom_and_read.js 1705
test_bug654926_test_seek.js 1470
test_bug654926.js 1656
test_bug659569.js 1761
test_bug660066.js -*- indent-tabs-mode: nil; js-indent-level: 2 -*- 1367
test_bug667087.js Any copyright is dedicated to the Public Domain. http://creativecommons.org/publicdomain/zero/1.0/ 854
test_bug667818.js 1284
test_bug667907.js 2113
test_bug669001.js 3696
test_bug770243.js this test does the following: Always requests the same resource, while for each request getting: 1. 200 + ETag: "one" 2. 401 followed by 200 + ETag: "two" 3. 401 followed by 304 4. 407 followed by 200 + ETag: "three" 5. 407 followed by 304 6958
test_bug812167.js - get 302 with Cache-control: no-store - check cache entry for the 302 response is cached only in memory device - get 302 with Expires: -1 - check cache entry for the 302 response is not cached at all 4225
test_bug826063.js Any copyright is dedicated to the Public Domain. http://creativecommons.org/publicdomain/zero/1.0/ 2029
test_bug856978.js 3885
test_bug894586.js Tests for bug 894586: nsSyncLoadService::PushSyncStreamToListener should not fail for channels of unknown size 3734
test_bug935499.js 231
test_cache_204_response.js Test if 204 response is cached. 1. Make first http request and return a 204 response. 2. Check if the first response is not cached. 3. Make second http request and check if the response is cached. 1806
test_cache_jar.js 2716
test_cache-control_request.js 12117
test_cache-entry-id.js Test for the "CacheEntryId" under several cases. 5324
test_cache2-00-service-get.js 344
test_cache2-01-basic.js 1173
test_cache2-01a-basic-readonly.js 1177
test_cache2-01b-basic-datasize.js 1383
test_cache2-01c-basic-hasmeta-only.js 1185
test_cache2-01d-basic-not-wanted.js 1172
test_cache2-01e-basic-bypass-if-busy.js 995
test_cache2-01f-basic-openTruncate.js 584
test_cache2-02-open-non-existing.js 1200
test_cache2-02b-open-non-existing-and-doom.js 4461
test_cache2-03-oncacheentryavail-throws.js 825
test_cache2-04-oncacheentryavail-throws2x.js 1159
test_cache2-05-visit.js 2897
test_cache2-06-pb-mode.js 1310
test_cache2-07-visit-memory.js 2849
test_cache2-07a-open-memory.js 2775
test_cache2-08-evict-disk-by-memory-storage.js 494
test_cache2-09-evict-disk-by-uri.js 706
test_cache2-10-evict-direct.js 600
test_cache2-10b-evict-direct-immediate.js 384
test_cache2-11-evict-memory.js 2010
test_cache2-12-evict-disk.js 1840
test_cache2-13-evict-non-existing.js 279
test_cache2-14-concurent-readers.js 996
test_cache2-14b-concurent-readers-complete.js 1510
test_cache2-15-conditional-304.js 1462
test_cache2-16-conditional-200.js 2095
test_cache2-17-evict-all.js 275
test_cache2-18-not-valid.js 1144
test_cache2-19-range-206.js 1711
test_cache2-20-range-200.js 1774
test_cache2-21-anon-storage.js 1649
test_cache2-22-anon-visit.js 1061
test_cache2-23-read-over-chunk.js 819
test_cache2-24-exists.js 1071
test_cache2-25-chunk-memory-limit.js 1334
test_cache2-26-no-outputstream-open.js 837
test_cache2-27-force-valid-for.js 754
test_cache2-28-last-access-attrs.js 1179
test_cache2-28a-OPEN_SECRETLY.js 1014
test_cache2-29a-concurrent_read_resumable_entry_size_zero.js Checkes if the concurrent cache read/write works when the write is interrupted because of max-entry-size limits This test is using a resumable response. - with a profile, set max-entry-size to 0 - first channel makes a request for a resumable response - second channel makes a request for the same resource, concurrent read happens - first channel sets predicted data size on the entry, it's doomed - second channel now must engage interrupted concurrent write algorithm and read the content again from the network - both channels must deliver full content w/o errors 2487
test_cache2-29b-concurrent_read_non-resumable_entry_size_zero.js Checkes if the concurrent cache read/write works when the write is interrupted because of max-entry-size limits. This test is using a non-resumable response. - with a profile, set max-entry-size to 0 - first channel makes a request for a non-resumable (chunked) response - second channel makes a request for the same resource, concurrent read is bypassed (non-resumable response) - first channel writes first bytes to the cache output stream, but that fails because of the max-entry-size limit and entry is doomed - cache entry output stream is closed - second channel gets the entry, opening the input stream must fail - second channel must read the content again from the network - both channels must deliver full content w/o errors 2549
test_cache2-29c-concurrent_read_half-interrupted.js Checkes if the concurrent cache read/write works when the write is interrupted because of max-entry-size limits. This is enhancement of 29a test, this test checks that cocurrency is resumed when the first channel is interrupted in the middle of reading and the second channel already consumed some content from the cache entry. This test is using a resumable response. - with a profile, set max-entry-size to 1 (=1024 bytes) - first channel makes a request for a resumable response - second channel makes a request for the same resource, concurrent read happens - first channel sets predicted data size on the entry with every chunk, it's doomed on 1024 - second channel now must engage interrupted concurrent write algorithm and read the rest of the content from the network - both channels must deliver full content w/o errors 4371
test_cache2-29d-concurrent_read_half-corrupted-206.js Checkes if the concurrent cache read/write works when the write is interrupted because of max-entry-size limits. This is enhancement of 29c test, this test checks that a corrupted 206 response is correctly handled (no crashes or asserion failures) This test is using a resumable response. - with a profile, set max-entry-size to 1 (=1024 bytes) - first channel makes a request for a resumable response - second channel makes a request for the same resource, concurrent read happens - first channel sets predicted data size on the entry with every chunk, it's doomed on 1024 - second channel now must engage interrupted concurrent write algorithm and read the rest of the content from the network - the response to the range request is broken (bad Content-Range header) - the first must deliver full content w/o errors - the second channel must correctly fail 4436
test_cache2-29e-concurrent_read_half-non-206-response.js Checkes if the concurrent cache read/write works when the write is interrupted because of max-entry-size limits. This is enhancement of 29c test, this test checks that a corrupted 206 response is correctly handled (no crashes or asserion failures) This test is using a resumable response. - with a profile, set max-entry-size to 1 (=1024 bytes) - first channel makes a request for a resumable response - second channel makes a request for the same resource, concurrent read happens - first channel sets predicted data size on the entry with every chunk, it's doomed on 1024 - second channel now must engage interrupted concurrent write algorithm and read the rest of the content from the network - the response to the range request is plain 200 - the first must deliver full content w/o errors - the second channel must correctly fail 4144
test_cache2-30a-entry-pinning.js 1010
test_cache2-30b-pinning-storage-clear.js 1240
test_cache2-30c-pinning-deferred-doom.js This is a complex test checking the internal "deferred doom" functionality in both CacheEntry and CacheFileHandle. - We create a batch of 10 non-pinned and 10 pinned entries, write something to them. - Then we purge them from memory, so they have to reload from disk. - After that the IO thread is suspended not to process events on the READ (3) level. This forces opening operation and eviction sync operations happen before we know actual pinning status of already cached entries. - We async-open the same batch of the 10+10 entries again, all should open as existing with the expected, previously stored content - After all these entries are made to open, we clear the cache. This does some synchronous operations on the entries being open and also on the handles being in an already open state (but before the entry metadata has started to be read.) Expected is to leave the pinned entries only. - Now, we resume the IO thread, so it start reading. One could say this is a hack, but this can very well happen in reality on slow disk or when a large number of entries is about to be open at once. Suspending the IO thread is just doing this simulation is a fully deterministic way and actually very easily and elegantly. - After the resume we want to open all those 10+10 entries once again (no purgin involved this time.). It is expected to open all the pinning entries intact and loose all the non-pinned entries (get them as new and empty again.) 6214
test_cache2-30d-pinning-WasEvicted-API.js This test exercises the CacheFileContextEvictor::WasEvicted API and code using it. - We store 10+10 (pinned and non-pinned) entries to the cache, wait for them being written. - Then we purge the memory pools. - Now the IO thread is suspended on the EVICT (7) level to prevent actual deletion of the files. - Index is disabled. - We do clear() of the cache, this creates the "ce_*" file and posts to the EVICT level the eviction loop mechanics. - We open again those 10+10 entries previously stored. - IO is resumed - We expect to get all the pinned and loose all the non-pinned (common) entries. 4163
test_cache2-31-visit-all.js 2544
test_cache2-32-clear-origin.js 1973
test_cacheflags.js defaults to false 11116
test_captive_portal_service.js 9381
test_channel_close.js 1955
test_channel_long_domain.js 614
test_channel_priority.js -*- indent-tabs-mode: nil; js-indent-level: 2 -*- 2785
test_chunked_responses.js Test Chunked-Encoded response parsing. 5005
test_compareURIs.js 1741
test_compressappend.js 2075
test_content_encoding_gzip.js 4275
test_content_length_underrun.js Test Content-Length underrun behavior 9481
test_content_sniffer.js This object is both a factory and an nsIContentSniffer implementation (so, it is de-facto a service) 4048
test_cookie_blacklist.js 1286
test_cookie_header.js 2572
test_cookie_ipv6.js Test that channels with different LoadInfo are stored in separate namespaces ("cookie jars") 1497
test_cookiejars_safebrowsing.js Description of the test: We show that we can separate the safebrowsing cookie by creating a custom OriginAttributes using a unique safebrowsing first-party domain. Setting this custom OriginAttributes on the loadInfo of the channel allows us to query the first-party domain and therefore separate the safebrowsing cookie in its own cookie-jar. For testing safebrowsing update we do >> NOT << emulate a response in the body, rather we only set the cookies in the header of the response and confirm that cookies are separated in their own cookie-jar. 1) We init safebrowsing and simulate an update (cookies are set for localhost) 2) We open a channel that should send regular cookies, but not the safebrowsing cookie. 3) We open a channel with a custom callback, simulating a safebrowsing cookie that should send this simulated safebrowsing cookie as well as the real safebrowsing cookies. (Confirming that the safebrowsing cookies actually get stored in the correct jar). 7894
test_cookiejars.js Test that channels with different LoadInfo are stored in separate namespaces ("cookie jars") 4846
test_cookies_async_failure.js Any copyright is dedicated to the Public Domain. http://creativecommons.org/publicdomain/zero/1.0/ 16614
test_cookies_privatebrowsing.js Any copyright is dedicated to the Public Domain. http://creativecommons.org/publicdomain/zero/1.0/ 4941
test_cookies_profile_close.js Any copyright is dedicated to the Public Domain. http://creativecommons.org/publicdomain/zero/1.0/ 2982
test_cookies_read.js Any copyright is dedicated to the Public Domain. http://creativecommons.org/publicdomain/zero/1.0/ 3842
test_cookies_sync_failure.js Any copyright is dedicated to the Public Domain. http://creativecommons.org/publicdomain/zero/1.0/ 8789
test_cookies_thirdparty_session.js Any copyright is dedicated to the Public Domain. http://creativecommons.org/publicdomain/zero/1.0/ 2836
test_cookies_thirdparty.js Any copyright is dedicated to the Public Domain. http://creativecommons.org/publicdomain/zero/1.0/ 4993
test_cookies_upgrade_10.js 1750
test_data_protocol.js run some tests on the data: protocol handler 2848
test_defaultURI.js 5717
test_dns_by_type_resolve.js 2680
test_dns_cancel.js 3096
test_dns_disable_ipv4.js 1930
test_dns_disable_ipv6.js 1199
test_dns_disabled.js 2227
test_dns_localredirect.js 1379
test_dns_offline.js 2598
test_dns_onion.js 2030
test_dns_originAttributes.js 2440
test_dns_override_for_localhost.js 2309
test_dns_override.js 8239
test_dns_proxy_bypass.js 2636
test_dns_retry.js 9416
test_dns_service.js 3952
test_domain_eviction.js Any copyright is dedicated to the Public Domain. http://creativecommons.org/publicdomain/zero/1.0/ 5596
test_doomentry.js Test for nsICacheStorage.asyncDoomURI(). It tests dooming - an existent inactive entry - a non-existent inactive entry - an existent active entry 2391
test_duplicate_headers.js Tests bugs 597706, 655389: prevent duplicate headers with differing values for some headers like Content-Length, Location, etc. 17485
test_early_hint_listener_http2.js 3333
test_early_hint_listener.js 5018
test_event_sink.js This object is both a factory and an nsIChannelEventSink implementation (so, it is de-facto a service). It's also an interface requestor that gives out itself when asked for nsIChannelEventSink. 4694
test_eviction.js Any copyright is dedicated to the Public Domain. http://creativecommons.org/publicdomain/zero/1.0/ 6756
test_extract_charset_from_content_type.js 5805
test_file_protocol.js run some tests on the file:// protocol handler 7367
test_filestreams.js Any copyright is dedicated to the Public Domain. http://creativecommons.org/publicdomain/zero/1.0/ 8310
test_freshconnection.js 760
test_getHost.js 1777
test_gio_protocol.js run some tests on the gvfs/gio protocol handler 5482
test_gre_resources.js 787
test_gzipped_206.js 4136
test_head_request_no_response_body.js Test that a response to HEAD method should not have a body. 1. Create a GET request and write the response into cache. 2. Create the second GET request with the same URI and see if the response is from cache. 3. Create a HEAD request and test if we got a response with an empty body. 2378
test_head.js 5268
test_header_Accept-Language_case.js 1389
test_header_Accept-Language.js 2907
test_header_Server_Timing.js 2261
test_headers.js 5644
test_hostnameIsLocalIPAddress.js 1130
test_hostnameIsSharedIPAddress.js 432
test_http_408_retry.js 2559
test_http_headers.js 1649
test_http_server_timing.js -*- indent-tabs-mode: nil; js-indent-level: 2 -*- 4608
test_http_sfv.js 17519
test_http1-proxy.js -*- indent-tabs-mode: nil; js-indent-level: 2 -*- 7253
test_http2-proxy.js -*- indent-tabs-mode: nil; js-indent-level: 2 -*- 19632
test_http2.js Support for testing valid multiplexing of streams 45094
test_http3_0rtt.js 3204
test_http3_421.js 4592
test_http3_alt_svc.js 3892
test_http3_coalescing.js 4445
test_http3_direct_proxy.js 1625
test_http3_early_hint_listener.js 2708
test_http3_error_before_connect.js 3932
test_http3_fast_fallback.js 26640
test_http3_fatal_stream_error.js 4473
test_http3_large_post_telemetry.js 5096
test_http3_large_post.js aMerge = 5076
test_http3_perf.js 6624
test_http3_prio_disabled.js global inChildProcess, test_flag_priority 3157
test_http3_prio_enabled.js global inChildProcess, test_flag_priority 3297
test_http3_prio_helpers.js global inChildProcess, test_flag_priority 3365
test_http3_progress.js 3778
test_http3_server_not_existing.js 3827
test_http3_trans_close.js 2381
test_http3_version1.js 2768
test_http3.js 16829
test_httpauth.js 5030
test_httpcancel.js 7468
test_httpResponseTimeout.js ms 4865
test_https_rr_ech_prefs.js 14662
test_https_rr_sorted_alpn.js 4735
test_httpssvc_https_upgrade.js 9831
test_httpssvc_iphint.js 8947
test_httpssvc_priority.js 3581
test_httpssvc_retry_with_ech.js 11536
test_httpssvc_retry_without_ech.js 4054
test_httpsuspend.js 2048
test_idn_blacklist.js 4754
test_idn_urls.js Behaviour of this test changed in IDNA2008, replacing the non-XID character with U+FFFD replacement character - when all platforms use IDNA2008 it can be uncommented and the punycode URL changed to "xn--mgbl3eb85703a" // new non-XID character in Unicode 6.3 ["حلا\u061cل", "xn--bgbvr6gc", false, false, false], 12949
test_idna2008.js 1664
test_idnservice.js 1419
test_immutable.js 4648
test_inhibit_caching.js 2475
test_ioservice.js 413
test_large_port.js 1618
test_link.desktop 54
test_link.lnk 345
test_link.url 107
test_loadgroup_cancel.js 2900
test_localhost_offline.js 2201
test_localstreams.js 2580
test_MIME_params.js Tests for parsing header fields using the syntax used in Content-Disposition and Content-Type See also https://bugzilla.mozilla.org/show_bug.cgi?id=609667 21272
test_mismatch_last-modified.js 4618
test_mozTXTToHTMLConv.js Test that mozITXTToHTMLConv works properly. 10526
test_multipart_byteranges.js 3130
test_multipart_streamconv_empty.js 1794
test_multipart_streamconv_missing_boundary_lead_dashes.js 2203
test_multipart_streamconv_missing_lead_boundary.js 2217
test_multipart_streamconv-byte-by-byte.js 2806
test_multipart_streamconv.js 2578
test_nestedabout_serialize.js 1302
test_net_addr.js TestServer: A single instance of this is created as |serv|. When created, it starts listening on the loopback address on port |serv.port|. Tests will connect to it after setting |serv.acceptCallback|, which is invoked after it accepts a connection. Within |serv.acceptCallback|, various properties of |serv| can be used to run checks. After the callback, the connection is closed, but the server remains listening until |serv.stop| Note: TestServer can only handle a single connection at a time. Tests should use run_next_test at the end of |serv.acceptCallback| to start the following test which creates a connection. 5823
test_NetUtil.js This file tests the methods on NetUtil.jsm. 23029
test_network_activity.js 1576
test_network_connectivity_service.js Any copyright is dedicated to the Public Domain. http://creativecommons.org/publicdomain/zero/1.0/ 6362
test_networking_over_socket_process.js 4897
test_no_cookies_after_last_pb_exit.js globals ChromeUtils, Assert, add_task 3366
test_node_execute.js global my_defined_var 2810
test_nojsredir.js 1598
test_nsIBufferedOutputStream_writeFrom_block.js 7617
test_ntlm_authentication.js 7384
test_ntlm_proxy_and_web_auth.js 13652
test_ntlm_proxy_auth.js 12489
test_ntlm_web_auth.js 7969
test_obs-fold.js 2444
test_odoh.js Most of tests in this file are reused from test_trr.js, except tests listed below. Since ODoH doesn't support push and customerized DNS resolver, some related tests are skipped. test_trr_flags test_push test_clearCacheOnURIChange // TODO: Clear DNS cache when ODoH prefs changed. test_dnsSuffix test_async_resolve_with_trr_server test_content_encoding_gzip test_redirect test_confirmation test_detected_uri test_pref_changes test_dohrollout_mode test_purge_trr_cache_on_mode_change test_old_bootstrap_pref 7691
test_offline_status.js 415
test_origin.js 8561
test_original_sent_received_head.js 6843
test_parse_content_type.js ", charset, hadCharset); check("", "", false); type = netutil.parseResponseContentType( "text/html, 8979
test_partial_response_entry_size_smart_shrink.js This is only a crash test. We load a partial content, cache it. Then we change the limit for single cache entry size (shrink it) so that the next request for the rest of the content will hit that limit and doom/remove the entry. We change the size manually, but in reality it's being changed by cache smart size. 3191
test_permmgr.js 3761
test_ping_aboutnetworking.js -*- indent-tabs-mode: nil; js-indent-level: 2 -*- 2870
test_plaintext_sniff.js 5698
test_port_remapping.js 1597
test_post.js 3579
test_predictor.js 22353
test_private_cookie_changed.js Any copyright is dedicated to the Public Domain. http://creativecommons.org/publicdomain/zero/1.0/ 1311
test_private_necko_channel.js 1442
test_progress.js 3948
test_protocolproxyservice-async-filters.js -*- indent-tabs-mode: nil; js-indent-level: 2 -*- 11824
test_protocolproxyservice.js -*- indent-tabs-mode: nil; js-indent-level: 2 -*- 29128
test_proxy_pac.js globals dnsResolve, isInNet 3252
test_proxy-failover_canceled.js 1548
test_proxy-failover_passing.js 1226
test_proxy-replace_canceled.js 1725
test_proxy-replace_passing.js 1184
test_proxyconnect.js -*- indent-tabs-mode: nil; js-indent-level: 2 -*- 9760
test_psl.js 984
test_race_cache_with_network.js Any copyright is dedicated to the Public Domain. http://creativecommons.org/publicdomain/zero/1.0/ 10468
test_range_requests.js 15791
test_rcwn_always_cache_new_content.js Any copyright is dedicated to the Public Domain. http://creativecommons.org/publicdomain/zero/1.0/ 3388
test_readline.js 18854
test_redirect_baduri.js Test whether we fail bad URIs in HTTP redirect as CORRUPTED_CONTENT. 1220
test_redirect_canceled.js 1455
test_redirect_different-protocol.js 1442
test_redirect_failure.js The test is checking async redirect code path that is loading a redirect. But creation of the target channel fails before we even try to do async open on it. We force the creation error by forbidding the port number the URI contains. 1745
test_redirect_from_script_after-open_passing.js Test whether the rewrite-requests-from-script API implemented here: https://bugzilla.mozilla.org/show_bug.cgi?id=765934 is functioning correctly The test has the following components: testViaXHR() checks that internal redirects occur correctly for requests made with XMLHttpRequest objects. testViaAsyncOpen() checks that internal redirects occur correctly when made with nsIHTTPChannel.asyncOpen(). Both of the above functions tests four requests: Test 1: a simple case that redirects within a server; Test 2: a second that redirects to a second webserver; Test 3: internal script redirects in response to a server-side 302 redirect; Test 4: one internal script redirects in response to another's redirect. The successful redirects are confirmed by the presence of a custom response header. 7943
test_redirect_from_script.js Test whether the rewrite-requests-from-script API implemented here: https://bugzilla.mozilla.org/show_bug.cgi?id=765934 is functioning correctly The test has the following components: testViaXHR() checks that internal redirects occur correctly for requests made with XMLHttpRequest objects. testViaAsyncOpen() checks that internal redirects occur correctly when made with nsIHTTPChannel.asyncOpen(). Both of the above functions tests four requests: Test 1: a simple case that redirects within a server; Test 2: a second that redirects to a second webserver; Test 3: internal script redirects in response to a server-side 302 redirect; Test 4: one internal script redirects in response to another's redirect. The successful redirects are confirmed by the presence of a custom response header. 7941
test_redirect_history.js 2352
test_redirect_loop.js This xpcshell test checks whether we detect infinite HTTP redirect loops. We check loops with "Location:" set to 1) full URI, 2) relative URI, and 3) empty Location header (which resolves to a relative link to the original URI when the original URI ends in a slash). 2755
test_redirect_passing.js 1580
test_redirect_protocol_telemetry.js 2188
test_redirect-caching_canceled.js 1963
test_redirect-caching_failure.js The test is checking async redirect code path that is loading a cached redirect. But creation of the target channel fails before we even try to do async open on it. We force the creation error by forbidding the port number the URI contains. It must be done only after we have attempted to do the redirect (open the target URL) otherwise it's not cached. 2455
test_redirect-caching_passing.js 1631
test_reentrancy.js 2263
test_referrer_cross_origin.js Any copyright is dedicated to the Public Domain. http://creativecommons.org/publicdomain/zero/1.0/ 10182
test_referrer_policy.js 4513
test_referrer.js 9215
test_reopen.js 3403
test_reply_without_content_type.js 3351
test_resumable_channel.js Tests various aspects of nsIResumableChannel in combination with HTTP 14174
test_resumable_truncate.js 2621
test_safeoutputstream_append.js atomic-file-output-stream and safe-file-output-stream should throw and exception if PR_APPEND is explicity specified without PR_TRUNCATE. 1286
test_safeoutputstream.js -*- indent-tabs-mode: nil; js-indent-level: 4 -*- 1963
test_schema_10_migration.js Any copyright is dedicated to the Public Domain. http://creativecommons.org/publicdomain/zero/1.0/ 3743
test_schema_2_migration.js Any copyright is dedicated to the Public Domain. http://creativecommons.org/publicdomain/zero/1.0/ 7469
test_schema_3_migration.js Any copyright is dedicated to the Public Domain. http://creativecommons.org/publicdomain/zero/1.0/ 3606
test_separate_connections.js 3003
test_servers.js import-globals-from head_cache.js 8456
test_signature_extraction.js -*- indent-tabs-mode: nil; js-indent-level: 2 -*- 6152
test_simple.js 1612
test_sockettransportsvc_available.js 207
test_socks.js 11716
test_speculative_connect.js -*- indent-tabs-mode: nil; js-indent-level: 4 -*- 11282
test_stale-while-revalidate_loop.js Tests the Cache-control: stale-while-revalidate response directive. Loads a HTTPS resource with the stale-while-revalidate and tries to load it twice. 1175
test_stale-while-revalidate_max-age-0.js Tests the Cache-control: stale-while-revalidate response directive. Purpose is to check we perform the background revalidation when max-age=0 but the window is set and we hit it. Make request #1. - response is from the server and version=1 - max-age=0, stale-while-revalidate=9999 Switch version of the data on the server and prolong the max-age to not let req #3 do a bck reval at the end of the test (prevent leaks/shutdown races.) Make request #2 in 2 seconds (entry should be expired by that time, but fall into the reval window.) - response is from the cache, version=1 - a new background request should be made for the data Wait for "http-on-background-revalidation" notifying finish of the background reval. Make request #3. - response is from the cache, version=2 Done. 3158
test_stale-while-revalidate_negative.js Tests the Cache-control: stale-while-revalidate response directive. Purpose is to check we DON'T perform the background revalidation when we make the request past the reval window. Make request #1. - response is from the server and version=1 - max-age=1, stale-while-revalidate=1 Switch version of the data on the server. Make request #2 in 3 seconds (entry should be expired by that time and no longer fall into the reval window.) - response is from the server, version=2 Done. 2433
test_stale-while-revalidate_positive.js Tests the Cache-control: stale-while-revalidate response directive. Purpose is to check we perform the background revalidation when the window is set and we hit it. Make request #1. - response is from the server and version=1 - max-age=1, stale-while-revalidate=9999 Switch version of the data on the server and prolong the max-age to not let req #3 do a bck reval at the end of the test (prevent leaks/shutdown races.) Make request #2 in 2 seconds (entry should be expired by that time, but fall into the reval window.) - response is from the cache, version=1 - a new background request should be made for the data Wait for "http-on-background-revalidation" notifying finish of the background reval. Make request #3. - response is from the cache, version=2 Done. 3154
test_standardurl_default_port.js -*- Mode: javascript; indent-tabs-mode: nil; js-indent-level: 2 -*- 2038
test_standardurl_port.js 1842
test_standardurl.js Use if/else instead of |do_check_eq(expect, a.spec == b.spec)| so that we get the specs output on the console if the check fails. 33666
test_streamcopier.js 1553
test_substituting_protocol_handler.js 1819
test_SuperfluousAuth.js Create two http requests with the same URL in which has a user name. We allow first http request to be loaded and saved in the cache, so the second request will be served from the cache. However, we disallow loading by returning 1 in the prompt service. In the end, the second request will be failed. 2699
test_suspend_channel_before_connect.js 2658
test_suspend_channel_on_authRetry.js 6853
test_suspend_channel_on_examine_merged_response.js 5517
test_suspend_channel_on_examine.js 2130
test_suspend_channel_on_modified.js 5111
test_synthesized_response.js 8394
test_throttlechannel.js 1264
test_throttlequeue.js 591
test_throttling.js 1877
test_tldservice_nextsubdomain.js 669
test_tls_flags_separate_connections.js 3083
test_tls_flags.js 7090
test_tls_server_multiple_clients.js Any copyright is dedicated to the Public Domain. http://creativecommons.org/publicdomain/zero/1.0/ 3531
test_tls_server.js Any copyright is dedicated to the Public Domain. http://creativecommons.org/publicdomain/zero/1.0/ 9308
test_traceable_channel.js 4196
test_trackingProtection_annotateChannels.js 12152
test_trr_additional_section.js 7167
test_trr_af_fallback.js 3498
test_trr_blocklist.js 2593
test_trr_cancel.js 5170
test_trr_case_sensitivity.js 3933
test_trr_cname_chain.js 2729
test_trr_confirmation.js 12012
test_trr_domain.js 3629
test_trr_enterprise_policy.js 3008
test_trr_extended_error.js 7527
test_trr_https_fallback.js 28735
test_trr_httpssvc.js 16950
test_trr_nat64.js Waits for an observer notification to fire. @param {String} topic The notification topic. @returns {Promise} A promise that fulfills when the notification is fired. 3500
test_trr_proxy.js globals dnsResolve 4944
test_trr_strict_mode.js 1653
test_trr_ttl.js 1579
test_trr_with_proxy.js This test checks that a TRRServiceChannel can connect to the server with a proxy. Steps: - Setup the proxy (PAC, proxy filter, and system proxy settings) - Test when "network.trr.async_connInfo" is false. In this case, every TRRServicChannel waits for the proxy info to be resolved. - Test when "network.trr.async_connInfo" is true. In this case, every TRRServicChannel uses an already created connection info to connect. - The test test_trr_uri_change() is about checking if trr connection info is updated correctly when trr uri changed. 6499
test_trr.js import-globals-from trr_common.js 27248
test_udp_multicast.js 2823
test_udpsocket_offline.js -*- indent-tabs-mode: nil; js-indent-level: 2 -*- 3415
test_udpsocket.js -*- Mode: Javascript; indent-tabs-mode: nil; js-indent-level: 2 -*- 3063
test_unescapestring.js 1029
test_unix_domain.js 21636
test_uri_mutator.js -*- indent-tabs-mode: nil; js-indent-level: 2 -*- 1334
test_URIs.js -*- indent-tabs-mode: nil; js-indent-level: 2 -*- 28487
test_URIs2.js -*- indent-tabs-mode: nil; js-indent-level: 2 -*- 22354
test_use_httpssvc.js 7517
test_websocket_offline.js 1453
test_websocket_with_h3_active.js 2884
test_XHR_redirects.js 8073
test_xmlhttprequest.js 1338
trr_common.js import-globals-from head_cache.js 42695
xpcshell.ini 18394