Commit Graph

2325 Commits

Author SHA1 Message Date
Honza Bambas
cd3ee4c951 Bug 1231565 - (Part 1) Basic test for alt-data representation in cache r=honzab 2016-03-22 11:42:00 +01:00
Carsten "Tomcat" Book
25a074d342 merge mozilla-inbound to mozilla-central a=merge 2016-09-15 11:59:50 +02:00
Patrick McManus
14f8754356 Bug 1302488 - Alt-Svc Hard Refresh Race r=hurley 2016-09-13 13:24:19 -04:00
Manish Goregaokar
65e072aa45 Bug 1301621 - Parse URL ports as 16 bit; r=valentin
MozReview-Commit-ID: 5FbRUsYzJdy

--HG--
extra : rebase_source : dba9575a3d3a56560f39a81c6a3431da4e21f3e9
2016-09-09 15:42:42 +08:00
Thomas Wisniewski
0748df2882 Bug 1302312 - Treat URLs with username or password but no host info as malformed. r=valentin
--HG--
extra : rebase_source : 24fdcd9682cbcc3bb6850bf7708ea859264f4661
2016-09-13 12:47:16 -04:00
Carsten "Tomcat" Book
d63d14dfed Backed out changeset fc9963bf6d98 (bug 1301621) for xpcshell bustage 2016-09-14 12:28:50 +02:00
Carsten "Tomcat" Book
6520e60ddb Merge mozilla-central to autoland 2016-09-14 12:17:20 +02:00
Manish Goregaokar
ce7df594c1 Bug 1301621 - Parse URL ports as 16 bit; r=valentin
MozReview-Commit-ID: 5FbRUsYzJdy

--HG--
extra : rebase_source : 4274433be9e6c7f76909e22dc79f7a2a41e5f455
2016-09-09 15:42:42 +08:00
Patrick McManus
1d5bcef263 Bug 1301117 - update opportunisitic encryption r=hurley 2016-08-16 15:51:18 -04:00
Carsten "Tomcat" Book
0f2c669a48 merge mozilla-inbound to mozilla-central a=merge 2016-09-09 12:02:43 +02:00
Iris Hsiao
f0bad41648 Backed out changeset bb033983fe8d (bug 1301344), this shouldn't be landed, it's for test 2016-09-09 15:33:19 +08:00
Junior Hsu
1b0b85b2fe Bug 1301344 - Add test. r=valentin 2016-09-08 02:36:00 -04:00
Shing Lyu
db11558e50 Bug 1288350 - Temporary reftest list for Stylo vs Gecko test r=heycam,manishearth
--HG--
extra : rebase_source : 4772418bd2813d4e79643a833eb09e47fe893d84
2016-09-05 11:45:39 +08:00
Nicholas Nethercote
37301e25ad Bug 1297300 - Add missing checks to GetSpec() calls in netwerk/. r=hurley,dragana.
--HG--
extra : rebase_source : 961a82fb6e723688837e5250f57121c14ca958cb
2016-08-26 16:40:57 +10:00
Sebastian Hengst
1ea3f17522 Bug 1280775 - null check in removePermission to prevent crash: add test. r=mystor
MozReview-Commit-ID: E94VCl0um3T

--HG--
extra : rebase_source : f7a94ab729a9d2e09731becde3afb75a19b43cbb
2016-06-22 21:16:46 +02:00
Nicholas Nethercote
742fc7eb48 Bug 1297961 (part 1) - Introduce nsURI::GetSpecOrDefault(). r=hurley.
This function is an infallible alternative to nsIURI::GetSpec(). It's useful
when it's appropriate to handle a GetSpec() failure with a failure string, e.g.
for log/warning/error messages. It allows code like this:

  nsAutoCString spec;
  uri->GetSpec(spec);
  printf("uri: %s", spec.get());

to be changed to this:

  printf("uri: %s", uri->GetSpecOrDefault().get());

This introduces a slight behavioural change. Previously, if GetSpec() failed,
an empty string would be used here. Now, "[nsIURI::GetSpec failed]" will be
produced instead. In most cases this failure string will make for a clearer
log/warning/error message than the empty string.
* * *
Bug 1297961 (part 1b) - More GetSpecOrDefault() additions. r=hurley.

I will fold this into part 1 before landing.

--HG--
extra : rebase_source : ddc19a5624354ac098be019ca13cc24b99b80ddc
2016-08-26 16:02:31 +10:00
James Andreou
4c787b8989 Bug 1282882 - Remove LoadContextInfo and LoadContext private browsing flags; r=jdm,mayhemer 2016-08-26 13:06:48 -04:00
Tim Huang
19e68da566 Bug 1291652 - Part 3: Update tests for fetching originAttributes from the nsILoadInfo, but not from the nsILoadContext. r=mayhemer
--HG--
extra : rebase_source : ebb2beb2c1c8cde1ecb1f04c151c37ff6705077c
2016-08-22 08:41:00 -04:00
Ryan VanderMeulen
69113163cf Merge m-c to inbound. a=merge 2016-08-24 09:09:05 -04:00
Ryan VanderMeulen
baeaac9b10 Merge m-c to fx-team. a=merge 2016-08-23 10:11:52 -04:00
Ryan VanderMeulen
82663d8710 Merge inbound to m-c. a=merge 2016-08-23 10:05:18 -04:00
Tom Tromey
ef548d271d Bug 1244227 - Add nsIThrottledInputChannel.idl and implement. r=mcmanus
MozReview-Commit-ID: JVIjxEO901W
2016-08-23 07:36:52 -06:00
Wes Kocher
730c59fce4 Backed out changeset e1f3ed984607 (bug 1261585) for causing bug 1292586 a=backout 2016-08-22 11:29:04 -07:00
Jonathan Hao
cc481ebca7 Bug 1283319 - Tests for connection info's hash key. r=mayhemer
--HG--
extra : rebase_source : 78cc39299d247146be49078976f1671a8bb89811
2016-08-17 19:57:00 -04:00
Junior Hsu
df4fd78a0e Bug 1190027 - Test setters for tab and newline. r=valentin
--HG--
extra : rebase_source : e76167e426468700c7cdda5d3abb64979ae8dd4b
2016-08-18 03:15:00 -04:00
amy
819f6f556d Bug 368964 - Cookie expires attribute should be absolute, not relative to server time. r=ehsan 2016-08-19 17:28:09 +08:00
Kan-Ru Chen
b6d880aca1 Bug 1297276 - Rename mfbt/unused.h to mfbt/Unused.h for consistency. r=froydnj
The patch is generated from following command:

  rgrep -l unused.h|xargs sed -i -e s,mozilla/unused.h,mozilla/Unused.h,

MozReview-Commit-ID: AtLcWApZfES


--HG--
rename : mfbt/unused.h => mfbt/Unused.h
2016-08-24 14:47:04 +08:00
Yoshi Huang
9895a88a2a Bug 1292450 - Check mPrivateBrowsingId is correct in LoadInfo and LoadContext. r=smaug, ehsan
Make sure the mPrivateBrowsingId of Origin Attributes is consistent
between LoadInfo and LoadContext.

For chrome docshell, its mPrivateBrowsingId remains 0 even if its
UserPrivateBrowsing() is true (bug 1278664). So we sync the
mPrivateBrowsingId field in LoadInfo in the same way.
2016-08-15 19:03:24 +08:00
Igor
175543fda8 Bug 1293384 - Part 2: Rename Snprintf.h header to Sprintf.h. r=froydnj 2016-08-14 23:43:21 -07:00
Igor
a57972337d Bug 1293384 - Part 1: Rename snprintf_literal to SprintfLiteral. r=froydnj 2016-08-14 23:44:00 -07:00
Nicholas Nethercote
3b0485fcdb Bug 1294645 - Don't use NS_CALLBACK for callbacks in nsI{Input,Output,UnicharInput},Stream.idl. r=froydnj.
Slightly less than half (93 / 210) of the NS_METHOD instances in the codebase
are because of the use of NS_CALLBACK in
nsI{Input,Output,UnicharInput},Stream.idl. The use of __stdcall on Win32 isn't
important for these callbacks because they are only used as arguments to
[noscript] methods.

This patch converts them to vanilla |nsresult| functions. It increases the size
of xul.dll by about ~600 bytes, which is about 0.001%.

--HG--
extra : rebase_source : c15d85298e0975fd030cd8f8f8e54501f453959b
2016-08-12 17:36:22 +10:00
Geoff Brown
f37628877e Bug 1285020 - Request longer timeout for xpcshell test_URIs/test_URIs2; r=michal 2016-08-11 14:14:19 -06:00
Junior Hsu
5536544c0b Bug 1288049 - Canonicalize IPv4 for nsStandardURL, r=valentin 2016-08-09 03:18:00 +02:00
Nicholas Nethercote
e7f10a07fd Bug 1293603 (part 2) - Make Run() declarations consistent. r=erahm.
This patch makes most Run() declarations in subclasses of nsIRunnable have the
same form: |NS_IMETHOD Run() override|.

As a result of these changes, I had to add |override| to a couple of other
functions to satisfy clang's -Winconsistent-missing-override warning.

--HG--
extra : rebase_source : 815d0018b0b13329bb5698c410f500dddcc3ee12
2016-08-08 12:18:10 +10:00
Henry Chang
019c6a51fd Bug 1274112 - Part 1: Make update request v4. r=francois
MozReview-Commit-ID: NgV4QYbDll

--HG--
extra : rebase_source : 0c6c000e81e73617c6616dfa39fa868e35a43f9c
2016-08-04 18:10:06 +08:00
Nicholas Hurley
c520425d6e Bug 1248197 - Remove spdy/3.1 support. r=mcmanus
MozReview-Commit-ID: 1RgzxOY00Le

--HG--
extra : rebase_source : 6b37c087fcffcea7e5dd56d1e6ad5d099e8f5e49
2016-07-15 15:13:49 -07:00
Valentin Gosu
c6165ca8ee Bug 1288482 - Backout bug 1042347. r=mcmanus
MozReview-Commit-ID: J3LmMfQ854V
2016-07-24 23:35:12 +02:00
Gijs Kruitbosch
61094e5a36 Bug 1280584 - implement cloneWithNewRef and thereby make hash/ref links use a simple unified codepath in the IO service, r=valentin
MozReview-Commit-ID: 8FIyclkJPDp

--HG--
extra : rebase_source : 49fb2b12488bd57a5417c7c3bff2211d651c5de7
extra : amend_source : d9940a1d9009930dc2f499417a7e1446d4601c20
2016-07-26 23:38:46 +01:00
aleth
d95b051079 Bug 1288327 - Disable some HTTP cache tests when the old backend is used, followup to fix remaining failures. r=mayhemer
--HG--
extra : rebase_source : a166395eebe14ca88e53ed03ffcb288a42e287f2
2016-07-26 14:14:54 +02:00
Valentin Gosu
59fdb38682 Bug 1288301 - Convert TestStandardURL to gtest r=mcmanus
MozReview-Commit-ID: FscilBXGhI2

--HG--
rename : netwerk/test/TestStandardURL.cpp => netwerk/test/gtest/TestStandardURL.cpp
2016-07-25 21:48:05 +02:00
Carsten "Tomcat" Book
b9a6c687fa merge mozilla-inbound to mozilla-central a=merge 2016-07-25 15:50:41 +02:00
Carsten "Tomcat" Book
8b6316ec5f Merge mozilla-central to mozilla-inbound 2016-07-22 11:59:06 +02:00
Carsten "Tomcat" Book
c7846e126c Backed out changeset 16aa7041c009 (bug 1287107) for causing xpcshell and mac tests 2016-07-22 11:30:23 +02:00
Fabrice Desré
f5b619fb28 Bug 1287107 - Making transition alive with gaia as chrome:// r=bholley,fabrice
MozReview-Commit-ID: 9uVUrmuVFXQ

--HG--
extra : rebase_source : d0c19fcda5c72ecdce3b0d0bbbafa5a7954d7a4c
2016-03-03 09:58:47 -08:00
Tom Tromey
5538d692d3 Bug 1286877 - do not set c-basic-offset for python-mode; r=gps
This removes the unnecessary setting of c-basic-offset from all
python-mode files.

This was automatically generated using

    perl -pi -e 's/; *c-basic-offset: *[0-9]+//'

... on the affected files.

The bulk of these files are moz.build files but there a few others as
well.

MozReview-Commit-ID: 2pPf3DEiZqx

--HG--
extra : rebase_source : 0a7dcac80b924174a2c429b093791148ea6ac204
2016-07-14 10:16:42 -06:00
Honza Bambas
908654ae93 Bug 1287487 - remove no longer relevant test_bug651100.js, r=jduell 2016-07-18 08:54:00 +02:00
Honza Bambas
9ce4e1672b Bug 913823 - enable some net xpcshell tests that have been disabled because of cache2, r=michal
--HG--
extra : rebase_source : fba8cea900333bee5ef026446fbf48ed56a518ae
2016-07-18 09:03:00 +02:00
Masatoshi Kimura
8f5ad0af70 Bug 1286694 - Part 1: Modify test_tls_server.js to test TLS 1.3. r=keeler
MozReview-Commit-ID: 5OhfwG1J1Hq

--HG--
extra : rebase_source : 7336296aa363f3eeedec64fb5ed5cfd79dbd99c0
extra : source : 7214c64cf4798f0622df13eebbfc3e4ddbe0c952
2016-07-20 04:59:28 +09:00
Fabrice Desré
7846da76d6 Bug 1287107 - Making transition alive with gaia as chrome:// r=bholley,fabrice
MozReview-Commit-ID: 9uVUrmuVFXQ

--HG--
extra : rebase_source : 20f6f0235667530c21aca4889b5d33e39c2d1a48
2016-03-03 09:58:47 -08:00
Dragana Damjanovic
56aa665f1b Bug 1274818 - Early return from nsHttpChannel::CallOnStartRequest on its second call, r=dragana 2016-07-15 12:14:00 +02:00
Jonathan Hao
198b01a6aa Bug 1270681 - Add a test to ensure that the HTTP Cache is respecting usercontextId. r=mayhemer 2016-07-18 02:21:00 +02:00
Dragana Damjanovic dd.mozilla@gmail.com
35cecae1b6 Bug 1261585 - Make nsITraceableChannel listener work with content encoding.r=jduell
--HG--
extra : rebase_source : 98c549ada53f64f66eb716801f0140da6b7252ef
2016-07-19 05:05:00 +02:00
Honza Bambas
fb60c43315 Bug 1288327 - Disable some HTTP cache tests when the old backend is used, r=dragana
--HG--
rename : netwerk/test/unit/test_cache2-29e-non-206-response.js => netwerk/test/unit/test_cache2-29e-concurrent_read_half-non-206-response.js
2016-07-21 02:00:00 +08:00
Andrew Sutherland
4d5d691957 Bug 1274250 - Referrer host should be IDN encoded when trimmed by policy. r=valentin
Since bug 822869 the referrer trimming has relied on using prePath when
trimming resulting in non-ASCII hosts being passed through in UTF-8 (or
whatever their encoding was.)

Prior to this patch, the logic when trimming was to generate the referrer
string using prePath and possibly nsIURL.filePath, then re-derive the
nsIURI from that string.

Concerned about the cost of introducing asciiPrePath just for this consumer,
I opted to have the code just combine the scheme and asciiHostPort to
approximate the prior use of prePath.  (userPass is explicitly cleared by
the code.)

Concerned about weirdness/loss of fidelity in the nsIURI, I replaced the
code that re-derived the URI from the spec string with manual clearing
of the parts of the URI/URL we were not including.  This may not be the
right thing to do.

I modified the existing Gecko-specific test coverage of SetReferrerPolicy.
The existing web platform tests and referrer policy didn't seem concerned
with this case, and the bug is indeed localized to a very small segment
of Gecko code.  Note that the userReferrerTrimmingPolicy=1 bug case can
only be triggered by explicit user preference setting and this is only
tested in test_referrer.js.  userReferrerTrimmingPolicy=2 need not be
set by preference if REFERRER_POLICY_ORIGIN or
REFERRER_POLICY_ORIGIN_WHEN_XORIGIN (when cross origin) is used.
2016-07-13 11:08:53 -04:00
Valentin Gosu
eaee61d467 Bug 1275746 - Don't allow empty host name for URLTYPE_AUTHORITY URLs r=mcmanus
* Return NS_ERROR_MALFORMED_URI if mURLType is URLTYPE_AUTHORITY and the hostname is empty.
* Make sure nsStandardURL::SetFile calls init with the correct arguments

MozReview-Commit-ID: 7t3mZtAbMF3
2016-07-13 15:19:33 +03:00
Michal Novotny
43bbac13b3 Bug 1279246 - Hang due to CacheFileInputStream deadlock, r=honzab 2016-07-12 17:58:38 +02:00
Valentin Gosu
b66ab9e6d5 Bug 1272381 - Use chromeScript.sendSyncMessage to initialize array and avoid race in test a=testonly
MozReview-Commit-ID: DxdsE6zwHqK
2016-07-12 15:06:25 +03:00
Valentin Gosu
34d8ec12f1 Bug 1272381 - Request complete log to diagnose intermittent failure a=testonly
MozReview-Commit-ID: LXg4ISeXOah
2016-07-11 14:49:31 +03:00
Valentin Gosu
5c5c34aba0 Bug 1250739 - test_user_agent_updates.html should use notification instead of flaky setTimeout r=nwgh
MozReview-Commit-ID: 9mA0pTRP6tV

--HG--
extra : rebase_source : 1fa17ecf6274a4dfcf156f4d16477c95279d80c7
2016-07-04 13:35:29 +02:00
Daniel Veditz
d6202de12b Bug 1283368 - Implement cookie prefixes spec, r=valentin r=amchung 2016-06-29 22:42:36 -07:00
Christoph Kerschbaumer
3262d009aa Bug 1283759 - Pass securityFlag to newChannel for packaged_app tests r=valentin 2016-07-01 09:27:37 +02:00
Christoph Kerschbaumer
f582942bd8 Bug 1240193 - Convert test_auth_dialog_permission.js to use asyncOpen2 (r=dragana) 2016-06-29 13:01:17 +02:00
Nicholas Hurley
f0f573815e Bug 1273882 - Don't prefetch on origin predictions. r=mayhemer
MozReview-Commit-ID: 13QQarCBaRr
2016-06-17 02:58:41 -07:00
Christoph Kerschbaumer
f674644360 Bug 1278641 - Remove SEC_NORMAL from test_authentication.js. r=dd 2016-06-07 20:38:48 +02:00
Christoph Kerschbaumer
0cfcbe16b4 Bug 1278271 - Use channel.asyncOpen2() within test_cache-control_request.js. r=honza 2016-06-06 17:21:17 +02:00
Dragana Damjanovic
1de3e688ca Bug 1230462 - Change the authentiation dialog message. r=mayhemer,dolske,margaret,tanvi
--HG--
rename : toolkit/components/prompts/test/test_bug625187.html => toolkit/components/prompts/test/test_subresources_prompts.html
2016-06-06 01:06:00 +02:00
Carsten "Tomcat" Book
e8d8c705a1 Backed out changeset 490d3460a197 (bug 1230462) for test failures in test_modal_prompts.html
--HG--
rename : toolkit/components/prompts/test/test_subresources_prompts.html => toolkit/components/prompts/test/test_bug625187.html
2016-06-05 11:26:57 +02:00
Dragana Damjanovic
8d4a3a8b49 Bug 1230462 - Change the authentiation dialog message. r=mayhemer,dolske,margaret,tanvi
--HG--
rename : toolkit/components/prompts/test/test_bug625187.html => toolkit/components/prompts/test/test_subresources_prompts.html
extra : rebase_source : f37ed50a558040dee1958c215ccc5559637d2f84
2016-06-03 09:09:00 +02:00
James Andreou
1d32e86b9c Bug 1269361 - Add mPrivateBrowsingId to OriginAttributes r=ehsan,jdm 2016-06-02 17:03:11 -04:00
aleth
e25e343c38 Bug 1277354 - Disable test_cache-control_request when the old cache API is used. r=mayhemer
--HG--
extra : rebase_source : 5cc9d22997c76086abc1dcd5fc88e2eda890938d
2016-06-02 16:11:36 +02:00
Jarda Snajdr
fd72aae3ac Bug 1274556 - Add a channelId attribute to nsIHttpChannel (unit test) r=hurley 2016-06-01 12:30:27 -07:00
Dragana Damjanovic dd.mozilla@gmail.com
15abb6f63e Bug 1274917 - Add net original headers to cache.r=mayhemer 2016-06-01 06:25:00 +02:00
Honza Bambas
97f671937b Bug 428916 - support Cache-control directives in HTTP requests, r=mcmanus+michal+froydnj 2016-05-20 08:33:00 +02:00
Valentin Gosu
7a53948e1e Bug 1276462 - Backout c18023d517ed (Bug 219157) a=backout 2016-05-30 16:05:14 +02:00
Tim Huang
8ec727cd19 Bug 1267910 - Part 2: Update all existing functions of add() and getCookiesFromHost() to make them origin attributes aware. r=jdm, r=mratcliffe
--HG--
extra : rebase_source : 288c9cab8340c5cc06861d4f2c7ee43ae4de608e
2016-05-25 11:54:21 +08:00
Tim Huang
cc903e433a Bug 1267910 - Part 1: Make the API getCookiesFromHost of the nsICookieManager2 OriginAttributes-aware. r=jdm
--HG--
extra : rebase_source : 18945a3aac4c331a1513ac402553d725cf334b76
2016-05-25 11:54:21 +08:00
Valentin Gosu
737056c72c Bug 219157 - Test that cookies are set only when domain has permission. r=mcmanus
MozReview-Commit-ID: 4TGEpvbJxUd
2016-05-20 02:40:50 +02:00
Valentin Gosu
fa4080a0a7 Bug 1272284 - Encode C0 controls in path, query and hash r=mcmanus
MozReview-Commit-ID: 1zGRjVmAWts
2016-05-25 16:23:38 +02:00
Valentin Gosu
78d21aba95 Bug 1271955 - Strip leading and trailing C0 controls and space for urls passed to new URL() r=mcmanus
MozReview-Commit-ID: B7BiKE6P7GA
2016-05-25 16:23:37 +02:00
David Keeler
e87f6f88e2 bug 1273677 - ensure session cache is properly configured and torn down for TLSServerSocket r=mcmanus
MozReview-Commit-ID: 6i7HxTdLcID

--HG--
extra : rebase_source : 3c1b4c0ed798c166cbc2bcad71de90543af176c1
2016-05-23 13:58:56 -07:00
Jorg K
85e809c570 Bug 1274242 - Linkify should not stop at |. r=valentin 2016-05-23 05:45:00 +02:00
Wes Kocher
2596f34110 Backed out 3 changesets (bug 1267910) for reports of it breaking session restore a=backout
Backed out changeset 5962f8e6d030 (bug 1267910)
Backed out changeset f8afc5cf9e0e (bug 1267910)
Backed out changeset cc202e0ac0dd (bug 1267910)
2016-05-20 21:15:17 -07:00
Daniel Holbert
b09bf9aef3 Bug 1274044: Relax assertion in nsStandardURL for case when mDefaultPort is -1. r=valentin
The assertion is trying to require that the caller should never pass in mDefaultPort; instead, the caller should pass -1. BUT, if mDefaultPort is itself -1 (i.e. there's no default port), then we need to allow the caller to pass in -1 without spamming an assertion.

MozReview-Commit-ID: GKxndkJoXcv

--HG--
extra : rebase_source : 3fcd7815ec3e64a71f0f34efd1a397be8f3dc9a2
2016-05-19 10:05:17 -07:00
Tim Huang
ad550d017f Bug 1267910 - Part 2: Update all existing functions of add() and getCookiesFromHost() to make them origin attributes aware. r=jdm, r=mratcliffe
--HG--
extra : rebase_source : 3d8b306dfa83363c01c4db5d018c55fddf6d1595
2016-05-18 20:42:00 -04:00
Tim Huang
589b71d649 Bug 1267910 - Part 1: Make the API getCookiesFromHost of the nsICookieManager2 OriginAttributes-aware. r=jdm
--HG--
extra : rebase_source : a36d46df6a43f2a1283bf4c2f55b0d2247c98673
2016-05-13 02:29:00 -04:00
Christoph Kerschbaumer
bfe260c7c0 Bug 1273458 - Use channel.asyncOpen2() in test_original_sent_received_head.js (r=dragana) 2016-05-17 12:26:06 +02:00
Chris Peterson
353ee65255 Bug 1272513 - Part 1: Suppress -Wshadow warnings-as-errors in some directories. r=glandium 2016-05-11 00:00:01 -07:00
Dragana Damjanovic
7cf5152088 Bug 669259 - Expose original header received from a peer. r=mcmanus 2016-05-12 14:33:00 -04:00
Patrick McManus
86ffca654a Bug 1267474 - cache-control: immutable tests 3/3 r=mayhemer
--HG--
extra : rebase_source : db44949e74498773f546be2e944194120ed4113f
2016-05-05 17:11:02 -04:00
Christoph Kerschbaumer
c1dec946da Bug 1206966 - Use channel->asyncOpen2() in netwerk/test/TestProtocols.cpp. r=mcmanus 2016-05-11 14:41:19 +02:00
Wes Kocher
1806870b06 Backed out 3 changesets (bug 1267474) foor test_immutable.js failures in xpcshell jobs
Backed out changeset 057f3f50441f (bug 1267474)
Backed out changeset 960d93f30c66 (bug 1267474)
Backed out changeset 0c059a0e87d7 (bug 1267474)
2016-05-11 10:32:33 -07:00
Patrick McManus
aa7218be51 Bug 1267474 - cache-control: immutable tests 3/3 r=mayhemer
--HG--
extra : rebase_source : 118675f869e1735d527697f30efa84205ad7fcd1
2016-05-05 17:11:02 -04:00
Carsten "Tomcat" Book
a283044b21 Backed out changeset 2ab63d0cea9f (bug 1267474) 2016-05-11 16:10:27 +02:00
Patrick McManus
242180be37 Bug 1267474 - cache-control: immutable tests 3/3 r=mayhemer 2016-05-05 17:11:02 -04:00
Valentin Gosu
0f0ddf9ef5 Bug 1250739 - Increase test_user_agent_updates.html timeout to be larger than update interval r=mcmanus
Since the tests sets the update interval to 1 second, we should wait for _more_ than 1 second to check that the update succeeded.
2016-05-11 12:58:26 +02:00
Valentin Gosu
9ce8e9d28c Bug 1269994 - Make test_user_agent_updates.html work in e10s r=nwgh 2016-05-09 18:38:40 +02:00
Jan Beich
3a9a9fa772 Bug 1269262 - Unbreak build without NO_EXPAND_LIBS in js/src/moz.build after bug 1239083. r=ted
MozReview-Commit-ID: LIOJ8HFhh2M

--HG--
extra : rebase_source : 4393b0845d15012e51d9fc74dddac4bd0268034b
2016-05-02 08:49:58 +00:00
Liang-Heng Chen
080c533edc Bug 1251332 - add PAC support for reversed ranges; r=bagder
MozReview-Commit-ID: HsbupdOORI6
2016-04-30 23:10:29 +08:00
Christoph Kerschbaumer
4c4ddfb8df Bug 1268044 - Remove SEC_NORMAL form test_predictor.js. r=mcmanus
--HG--
extra : rebase_source : ef0cc2ccf4fb568520668aed777234e7e1effbba
2016-04-27 16:59:30 +02:00
Valentin Gosu
c8a94789bb Bug 1262326 - Make test_user_agent_overrides.html work in e10s r=nwgh
* Rename SchedulingContext to RequestContext
* Move SetLoadGroupUserAgentOverride to nsHttpChannel
* Cache the userAgentOverride in RequestContext instead of LoadGroup

MozReview-Commit-ID: FQS9uSRR8kd

--HG--
rename : netwerk/base/SchedulingContextService.cpp => netwerk/base/RequestContextService.cpp
rename : netwerk/base/SchedulingContextService.h => netwerk/base/RequestContextService.h
rename : netwerk/base/nsISchedulingContext.idl => netwerk/base/nsIRequestContext.idl
2016-04-21 16:59:17 +02:00
Nicholas Hurley
fd7a5d97b5 Bug 1016628 - Add prefetch abilities to the predictor. r=mayhemer 2016-04-21 12:32:30 -07:00
Carsten "Tomcat" Book
9eb45808ae merge mozilla-inbound to mozilla-central a=merge 2016-04-20 11:50:29 +02:00
Tom Tromey
a03b12c9e4 Bug 1265076 - make ArrayBufferInputStream obey readSegments contract; r=mcmanus
MozReview-Commit-ID: 7RSzey2vdPL

--HG--
extra : transplant_source : %CF%C4%99%F8%04%E9s%D9%0A%D3%2AH%97%D2%C2%C9%1C%CA%93n
2016-04-15 14:43:14 -06:00
Kris Maglione
d229ba6403 Bug 719905: Fix resolution of resource: URLs containing : and / characters. r=valentin
MozReview-Commit-ID: Jetsp6LpT7L

--HG--
extra : rebase_source : bb712b53706922c81a17bba04b690994047bba30
extra : amend_source : 08c435f17b2ad243bd03bcb1b252874dd77f9c56
2016-02-04 20:19:24 -08:00
Dragana Damjanovic
645513565f Bug 1125916 - Fix code that miss proper flags and originAttributes in LoadInfo. Also fix some tests. r=sicking, r=jduell
--HG--
extra : rebase_source : 2a08f0208496671439ce62a576b5f8a728bbdf3c
extra : amend_source : 30412ab68cc0ee4469a88e41b6ce81c908a26535
extra : histedit_source : 1faae352f7fbf7c4c7a9e1e571ca395c853a1334
2016-04-13 15:34:36 +02:00
Tanvi Vyas
9c0a7ac154 Bug 1105556 - Add a hidden preference that is checked in debug mode to determine whether the main LoadInfo() constructor should assert that the ContentPolicyType is not TYPE_DOCUMENT.
Set the preference in xpcshell tests that create TYPE_DOCUMENT loads in javascript and hence end up using the main constructor. r=sicking, ckerschb
2016-04-13 16:30:36 -07:00
Henry Chang
ffee6a2e09 Bug 1260876 - Remove process switch code for signed package code (added by Bug 1186290). r=valentin. 2016-04-12 10:53:40 +08:00
Andrea Marchesini
83a08cd72e Bug 1259169 - nsICookieManager::remove() should be back-compatible, r=jdm 2016-04-10 05:46:07 +01:00
Ryan VanderMeulen
1c7872d0af Backed out changeset 7d5f1e9ce04c (bug 1259169) for various cookie-related crashes and test failures. 2016-04-09 15:36:07 -04:00
Andrea Marchesini
d09d8959fe Bug 1259169 - nsICookieManager::remove() should be back-compatible, r=jdm 2016-04-09 19:09:49 +01:00
Carsten "Tomcat" Book
78d9f80444 Backed out changeset 74330da56b82 (bug 1259169) for assertion failures in nsCookieService.cpp:2390 2016-04-08 14:47:39 +02:00
Andrea Marchesini
87827f2189 Bug 1259169 - nsICookieManager::remove() should be back-compatible, r=jdm 2016-04-08 12:38:15 +01:00
Nathan Froyd
3be1728969 Bug 1262397 - fix a few emacs modelines; r=me
DONTBUILD because comment fixes are always safe, right?
2015-10-12 23:45:30 -04:00
Felipe Gomes
cdcf664fb3 Bug 1126299 - Disable intermittent browser_child_resource.js on e10s linux64 debug. r=RyanVM DONTBUILD
Relanding this with correct bug number

MozReview-Commit-ID: 3nMM2FMydnR
2016-04-05 23:58:47 -03:00
Felipe Gomes
3a5671b0dc Backed out changeset 0944b6e52af6 (bug 1252738)
MozReview-Commit-ID: y6qLZ9daxt
2016-04-06 00:00:25 -03:00
Felipe Gomes
5146def2cc Bug 1252738 - Disable intermittent browser_permissionsPromptDeny.js on e10s linux64 debug. r=RyanVM
MozReview-Commit-ID: KaT8IVJ5wkp
2016-04-05 23:58:47 -03:00
Chris Manchester
f7a1b3fb60 Bug 1242051 - Add inter-directory test support file dependencies to ini manifests. r=gps
Previously, every test and support file would be synced to the objdir
when running any test. Now that only those support files and tests requested
are synced, we note support files required beyond those in a test's
directory in ini manifests.

MozReview-Commit-ID: EmlDz9d4lqt
2016-04-04 14:56:52 -07:00
Patrick McManus
9dc0d77cf0 Bug 1261833 - have test use .onion to guarantee dns fail r=bagder
MozReview-Commit-ID: AKySlS4uZbI

--HG--
extra : rebase_source : b62dea7b8191b74d05ceab02726981e37fa67044
extra : amend_source : d64b539c112e63412b974440c32a7aa34f9ea4ee
2016-04-04 10:08:46 -04:00
Nicholas Hurley
ccbf76c675 Bug 1260498 - Make test_rel_preconnect work in e10s mode. r=mcmanus
MozReview-Commit-ID: 3PGA2N73foH

--HG--
extra : rebase_source : b3837c38a8bf1847d207ebfc2d3ce60ddf826a01
2016-03-28 16:43:01 -07:00
Ted Mielczarek
815dd278b6 bug 1259753 - fix some C++ unittests to use ScopedXPCOM to init XPCOM. r=ms2ger
MozReview-Commit-ID: B6xdlB9Di0y

--HG--
extra : rebase_source : 182d29d677c77ae6780260f5fc9b0792bdd98f84
extra : amend_source : 1e4fa2453d6773bd1e63f52b7aa3bf61e61600ff
2016-03-25 10:04:37 -04:00
Valentin Gosu
b763fbe8d8 Bug 1057689 - Add xpcshell test checking correct notifications and app-offline state r=jduell
Changes NeckoParent to send the ipdl message if !UsingNeckoIPCSecurity() because xpcshell tests don't have TabParents.

MozReview-Commit-ID: F50WXzg3TIA
2014-09-01 17:29:28 +03:00
Franziskus Kiefer
1a47cfb77a Bug 1186072 - Add trailing slash to origin referer header when policy is set. r=sworkman
MozReview-Commit-ID: 3PYuODmqpbL

--HG--
extra : source : ac4148f22b2d6f76762dac3fd94a6452da80bdde
2016-02-24 10:51:54 +01:00
Christoph Kerschbaumer
830e36b012 Bug 1257339 - Bring back deprecated newChannel() API on nsIIOService. r=sicking, r=mcmanus CLOSED TREE
MozReview-Commit-ID: 8BVo3K0veND
2016-03-18 17:11:42 -07:00
Wes Kocher
756219c691 Backed out changeset e41e3bc842df (bug 1257339) because something from this push appears to have broken Windows mochitests CLOSED TREE
MozReview-Commit-ID: IQwq83Jat9O
2016-03-18 15:47:06 -07:00
Christoph Kerschbaumer
0b2caf41fe Bug 1257339 - Bring back deprecated newChannel() API on nsIIOService. r=sicking, r=mcmanus
--HG--
extra : rebase_source : 202c4d4462b39e0a5f1ece926d7c7a144f5125fa
2016-03-17 09:22:32 -07:00
Geoff Brown
f8b671c940 Bug 1251013 - Update AndroidVersion annotations in test manifests - xpcshell; r=jmaher 2016-03-17 10:00:50 -06:00
Marco Castelluccio
2fb9c40ec1 Bug 1250453 - Remove DOMApplicationRegistry.allAppsLaunchable property and related testing API. r=myk 2016-03-14 16:29:11 +00:00
Valentin Gosu
7cff2da47e Bug 1234575 - Empty fragment is ignored in URI of location header r=mcmanus
MozReview-Commit-ID: 9qhZfwgANRY
2016-03-10 00:41:17 +01:00
Valentin Gosu
1863d8b9cd Bug 652186 - Implement URL Standard's backslash replacement r=mcmanus
* * *
[mq]: test

MozReview-Commit-ID: JAZ36DstjFs

--HG--
extra : rebase_source : ccce437c84a15319fa05db4c14c5d784b66f6638
2016-03-03 15:50:16 +01:00
Carsten "Tomcat" Book
eb98199ac0 Backed out changeset ac4148f22b2d (bug 1186072) for referrer test failures
--HG--
extra : rebase_source : 124130bb041418eb97862a131ae6365df5cfbdc6
2016-03-03 09:23:59 +01:00
Franziskus Kiefer
55e0623947 Bug 1186072 - add trailing slash to origin referer header when policy is set, r=sworkman
MozReview-Commit-ID: 3PYuODmqpbL

--HG--
extra : transplant_source : %E5P%B1%1F%82%08%07%2A%1C%26%AF%C5%C8%29%B1y%97O%877
2016-02-24 10:51:54 +01:00
Nicholas Hurley
0b3b2a68db Bug 1246761 - Properly handle non-terminal 0-length DATA frames. r=mcmanus
--HG--
extra : rebase_source : 756e42ecea9646b5b0e2770060090437b06b9f9d
2016-03-01 16:28:39 -08:00
J. Ryan Stinnett
5bede71f0d Bug 1238160 - Rename nsILoadContext::GetIsInBrowserElement. r=smaug,mayhemer
This change renames nsILoadContext::GetIsInBrowserElement to
GetIsInIsolatedMozBrowserElement.  Other methods that pass these values around
also have name changes.

Tokens such as "isInBrowserElement" have previously been serialized into cache
keys, used as DB column names, stored in app registries, etc.  No changes are
made to any serialization formats.  Only runtime method and variable names are
updated.

No behavior changes are made in this patch, so some renamed methods may have
nonsensical implementations.  These are corrected in subsequent patches
focused on behavior.

MozReview-Commit-ID: CUttXANQjSv
2016-03-02 10:35:56 -06:00
J. Ryan Stinnett
2a55d065b7 Bug 1238160 - Rename OriginAttributes.mInBrowser and associated methods. r=bz,mayhemer
This change renames OriginAttributes.mInBrowser to mInIsolatedMozBrowser and
nsIPrincipal::GetIsInBrowserElement to GetIsInIsolatedMozBrowserElement.  Other
methods that pass these values around also have name changes.

Tokens such as "inBrowser" have previously been serialized into cache keys, used
as DB column names, stored in app registries, etc.  No changes are made to any
serialization formats.  Only runtime method and variable names are updated.

No behavior changes are made in this patch, so some renamed methods may have
nonsensical implementations.  These are corrected in subsequent patches
focused on behavior.

MozReview-Commit-ID: 66HfMlsXFLs
2016-03-02 10:35:56 -06:00
Ehsan Akhgari
baf9a67550 Bug 1251873 - Store the trimmed referrer URL on HTTP channel if a trimming referrer policy is in effect; r=mcmanus
Failure to do this will result in the consumers of
nsIHttpChannel::GetReferrer() observing the wrong referrer.  The test in this
patch shows the scenarios which would fail under such conditions.
2016-03-01 09:15:25 -05:00
Wes Kocher
e2f9524db9 Backed out changeset fc5cc380ddb3 (bug 1251873) for wpt cross-origin.swap-origin-redirect.http.html failures
MozReview-Commit-ID: Anr0ilrYczq
2016-02-29 13:34:55 -08:00
Ehsan Akhgari
befc43a124 Bug 1251873 - Store the trimmed referrer URL on HTTP channel if a trimming referrer policy is in effect; r=mcmanus
Failure to do this will result in the consumers of
nsIHttpChannel::GetReferrer() observing the wrong referrer.  The test in this
patch shows the scenarios which would fail under such conditions.
2016-02-29 14:51:16 -05:00
Dragana Damjanovic
5031bdb80e Bug 580313 - New resource hints for link. r=smaug
--HG--
extra : rebase_source : 5ce4ef05217f6d513052f83a7e18b00d1596417a
2016-02-26 02:41:00 +01:00
Andrea Marchesini
b1768e7ec3 Bug 1245184 - Update mochitests, r=me 2016-02-25 16:41:13 +01:00
Andrea Marchesini
8cd3c16e81 Bug 1245184 - nsICookieManager.removeNative for TestCookie cppunittest, r=smaug 2016-02-25 16:41:13 +01:00
Andrea Marchesini
ed31fee8d4 Bug 1245184 - nsICookieManager.remove should use the OriginAttributes, r=sicking 2016-02-25 16:41:13 +01:00
Dylan Roeh
30e72a8b98 Bug 1148544 - Update tests to work with new way of handling user agent overrides. r=jchen 2016-02-22 15:57:18 -06:00
Patrick McManus
529544b457 Bug 831450 - No Range Requests against weak Etag r=mayhemer 2016-02-19 16:09:16 -05:00
Patrick McManus
57205a2a42 Bug 1249379 - H2 Push WindowUpdate not written to network r=hurley 2016-02-18 15:00:46 -05:00
Carsten "Tomcat" Book
f2a98554ec Backed out changeset 27f3968ae8b2 (bug 1245184) 2016-02-19 15:55:23 +01:00
Andrea Marchesini
0a72c5e9e3 Bug 1245184 - CookieManager should remove cookies only if they match the userContextId, r=sicking 2016-02-19 14:49:50 +01:00
Daniel Holbert
cad2de7926 Bug 1247733 part 4: Add xpcshell test for nsIStandardURL setDefaultPort() API. r=valentin 2016-02-17 19:24:42 -08:00
Christoph Kerschbaumer
dcdf6d76c6 Bug 1246220: Update test_bug337744 (r=mcmanus) 2016-02-12 17:18:29 -08:00
Matt Wobensmith
26f0256436 Bug 1246220 - Remove SEC_NORMAL from netwerk/test (r=ckerschb,mcmanus) 2016-02-16 16:10:14 -08:00
ISHIKAWA, Chiaki
be2b50a7f8 Bug 1248252 - Improper outdated octal constant syntax in M-C tree. Use '0o' prefix. r=dao
Be warned. Do not attemp to change the .js "test" source code in ./js
They are meant to check

 - the outdated 0666 octal constant is still parsed correctly,
 - the outdated 0666 octal constant raises syntax error flag
   in strict mode, etc.

So leave them alone.
2016-02-15 08:57:00 +01:00
Carsten "Tomcat" Book
855c877f61 Merge mozilla-central to mozilla-inbound 2016-02-10 14:29:05 +01:00
Valentin Gosu
9980689593 Bug 1042347 - %2e entered in URL bar not normalized leading to denormalized request r=mcmanus 2016-02-10 13:13:23 +01:00
Valentin Gosu
ed608a9278 Bug 464591 - Add test to make sure percent encoded host name can't bypass IDN normalization r=mcmanus 2016-02-10 13:13:10 +01:00
Honza Bambas
403865b110 Bug 1231512 - Allow nsIHttpChannel.redirectTo() work also on an open channel, r=jduell
--HG--
rename : netwerk/test/unit/test_redirect_from_script.js => netwerk/test/unit/test_redirect_from_script_after-open_passing.js
2016-02-05 07:45:00 +01: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
Wes Kocher
807175f2a6 Backed out 2 changesets (bug 1148544) for failures in test_user_agent_overrides.html
Backed out changeset 5073d841f77d (bug 1148544)
Backed out changeset 64a2c41c6f20 (bug 1148544)

--HG--
extra : commitid : 3oP1hrXASC1
2016-02-09 16:58:54 -08:00
Dylan Roeh
07fb790f37 Bug 1148544 - Update tests to work with new way of handling user agent overrides. r=jchen 2016-02-09 16:51:43 -06:00
Wes Kocher
8320c4f055 Backed out changeset 448af29079c9 (bug 1231512) for being a possible cause of build bustage CLOSED TREE
--HG--
extra : commitid : 5eX9SsyDT40
2016-02-05 15:07:06 -08:00
Honza Bambas
77a7813385 Bug 1231512 - Allow nsIHttpChannel.redirectTo() work also on an open channel. r=jduell
--HG--
rename : netwerk/test/unit/test_redirect_from_script.js => netwerk/test/unit/test_redirect_from_script_after-open_passing.js
2016-02-05 07:45:00 -05:00
Nicholas Hurley
f375006202 Bug 1244505 - Ensure we allow spaces in cookie names and values. r=mcmanus
--HG--
extra : commitid : 6KkxhfCwUWz
extra : rebase_source : b9fdd10e45a1623d84471b573be5f3ef292c8153
2016-02-04 10:14:30 -08:00
Patrick McManus
c57196d7b9 Bug 1241906 - test for suspended spdy3.1 channel r=hurley
--HG--
extra : rebase_source : bcbeed89580d82472d751a6cc86108eb7f7d943b
2016-02-05 11:17:24 -05:00
Valentin Gosu
947cd3dfe3 Bug 241788 - Add missing run_next_test() to xpcshell-test a=testonly 2016-02-05 16:49:49 +01:00
Valentin Gosu
82a16a09cb Bug 241788 - net_FilterURIString should filter \r\n\t from the entire URL r=honzab
* net_ExtractURLScheme now uses mozilla::Tokenizer
* net_FilterURIString also filters characters in the scheme now
* removed startPos and endPos parameters for net_FilterURIString and introduced net_IsAbsoluteURL
2016-02-05 14:45:08 +01:00
Wes Kocher
86864105dc Merge m-c to fx-team, a=merge
--HG--
extra : commitid : 7MLK0J5XhL0
2016-01-29 13:44:12 -08:00
Marco Bonardo
c6747b6e30 Bug 1242961 - nsStandardURL still allows to build valid nsIURIs longer than network.standard-url.max-length. r=valentin
--HG--
extra : commitid : LhDNkRzmNnu
extra : rebase_source : ccd91b21929bf9a8ccc945c3a524d47eef98294f
2016-01-26 17:23:22 +01:00
Wes Kocher
84714308b8 Merge fx-team to central, a=merge
--HG--
extra : commitid : 2DZ63I10LcS
2016-01-28 17:47:33 -08:00
Tooru Fujisawa
9aa44e3b02 Bug 1241377 - Part 2: Add test for nsIFormPOSTActionChannel. r=mayhemer 2016-01-28 19:38:34 +09:00
Jeff Walden
1e1850242d Bug 1079844 - Change various non-js/ files/tests/etc. to refer to detaching of ArrayBuffers rather than neutering. (DOM references to "neutering" of DOM things remain as neutering.) r=bz
--HG--
rename : dom/media/webaudio/test/audioBufferSourceNodeNeutered_worker.js => dom/media/webaudio/test/audioBufferSourceNodeDetached_worker.js
rename : dom/media/webaudio/test/test_audioBufferSourceNodeNeutered.html => dom/media/webaudio/test/test_audioBufferSourceNodeDetached.html
extra : rebase_source : acc6f8336a3ffb084a0e95865710748edd9354d9
2016-01-25 18:10:22 -08:00
Gijs Kruitbosch
ef04fd0f90 Bug 1172165 - check all nested URI schemes in CAPS. Make view-source dangerous to load, and about: URIs use per-URI flags so they keep working, r=bz
Also, add an opt-out for crashtest/reftest for the view-source thing so they don't all break, r=bz

--HG--
extra : commitid : 8NqvmbphSgh
extra : rebase_source : bbe0b6f11a77d7e6241a5733931d9baa95bb3fed
2015-12-11 08:06:41 -05:00
Tooru Fujisawa
6897727763 Bug 1241100 - Part 2: Add testcase. r=mayhemer, a=abillings 2016-01-29 16:47:15 +09:00
Honza Bambas
d36e6cf36c Bug 1165256 - Make appcache fully work with OriginAttribues. r=jduell 2016-01-18 20:20:08 +01:00
Patrick McManus
db9baefb2d Bug 1240254 - necko tests assumed synchronous error reporting r=dragana 2016-01-15 22:56:06 -05:00
Honza Bambas
a170797259 Bug 1220272 - Fix signalling in HTTP cache test code suspender. r=michal 2016-01-14 11:24:00 +01:00
Henry Chang
24ab7ce66a Bug 1216443 - "moz-safe-about:blank" to signed content should switch process. r=kanru 2016-01-18 00:07:00 +01:00
Christoph Kerschbaumer
fb16dbdaa0 Bug 1234368 - Convert netwerk/test/unit/test_bug203271.js to use asyncOpen2 (r=mcmanus) 2016-01-15 11:38:21 -08:00
Christoph Kerschbaumer
27b7eb773f Bug 1234757 - Use channel.asyncOpen2 within netwerk/test/unit/test_protocolproxyservice.js (r=mcmanus) 2016-01-15 11:34:34 -08:00
Patrick McManus
68f2b290fd Bug 1234757 - test_protocolproxyservice does not need 2nd arg to asyncopen r=ckerschb 2016-01-15 11:01:20 -05:00
Eric Rahm
1828042c1f Bug 1174972 - Add basic mozilla logging backend. r=froydnj,r=bwc,r=jduell 2016-01-05 13:05:19 -08:00
Phil Ringnalda
52aade6b43 Back out 3e168e5a04bf (bug 1174972) for build bustage
CLOSED TREE
2016-01-11 20:04:40 -08:00
Eric Rahm
f8d0e8949c Bug 1174972 - Add basic mozilla logging backend. r=froydnj,r=bwc,r=jduell 2016-01-05 13:05:19 -08:00
Henry Chang
c69d84d994 Bug 1234739 - Disable test on all platforms other than linux. r=kchen 2015-12-23 23:42:00 +01:00
Honza Bambas
5b430fab1f Bug 996836 - Merge CLOSE and WRITE priority in cache2 I/O thread. r=michal
--HG--
extra : rebase_source : 2d16c6fb54061dfa87b338da22e019295e9c299f
2016-01-05 11:50:00 -05:00
Shu-yu Guo
1768759efb Bug 1220564 - Update chrome code uses of genexprs and legacy comprehensions. (r=billm) 2016-01-06 16:02:16 -08:00
Patrick McManus
061f13abb6 Bug 1121447 - trust cache less for error codes r=mayhemer 2015-12-22 16:06:07 -05:00
Patrick McManus
b28062758e Bug 299031 - heuristic cache rule for 410 should be longer r=mayhemer 2015-12-22 14:58:44 -05:00
Patrick McManus
736aaab8e3 Bug 1234591 - Use channel.asyncOpen2 within netwerk/test/unit/test_http2.js r=ckerschb 2015-12-23 17:46:31 -05:00
Patrick McManus
9f784d6ae1 Bug 1234366 - Convert netwerk/test/unit/test_spdy.js to use asyncOpen2 r=ckerschb 2015-12-23 17:36:33 -05:00
Christoph Kerschbaumer
0fb857d90b Bug 1234596 - Convert 20 tests within netwerk/test to use AsyncOpen2 (r=mcmanus) 2015-12-22 20:57:57 -08:00
Wes Kocher
c9ba10fdd9 Backed out changeset 7459e0c97939 (bug 1234596) for test_protocolproxyservice.js failures in xpcshell CLOSED TREE
--HG--
extra : commitid : FXbwzdhNjgj
2015-12-22 18:37:37 -08:00
Christoph Kerschbaumer
8adf739828 Bug 1234596 - Convert 20 tests within netwerk/test to use AsyncOpen2 (r=mcmanus) 2015-12-22 13:09:31 -08:00
Ben Kelly
aa9b3c6150 Bug 1233962 P2 Fix service worker xpcshell test to return a dispatcher from ChannelIntercepted(). r=jdm 2015-12-22 11:57:11 -08:00
Henry
f090013aed Bug 1223678 - Use package-identifier from argument to create principal. r=kanru. 2015-12-22 11:08:56 +08:00
Christoph Kerschbaumer
24a75dc0de Bug 1234369 - Convert 25 tests within netwerk/test to use AsyncOpen2 (r=mcmanus) 2015-12-21 16:29:26 -08:00
Christoph Kerschbaumer
9f4842f614 Bug 1233843 - Convert 30 tests within netwerk/test to use AsyncOpen2 (r=mcmanus) 2015-12-21 13:06:46 -08:00
Wes Kocher
a4bead1f65 Backed out changeset 28da91dbe6c5 (bug 1233843) for failures in test_bug203271.js in various test suites 2015-12-21 12:29:10 -08:00
Christoph Kerschbaumer
5ab4c2a41a Bug 1233843 - Convert 30 tests within netwerk/test to use AsyncOpen2 (r=mcmanus) 2015-12-18 14:56:57 -08:00
Nicholas Hurley
151ac66626 Bug 1233784 - Disallow illegal characters in cookie names. r=jduell 2015-12-17 14:41:38 -08:00
Dragana Damjanovic
c2d5cae269 Bug 664163 - Fix Get(Local|Remote)(Address|Port) in HttpChannelChild. r=jduell 2015-12-19 16:11:39 -05:00
Christoph Kerschbaumer
16f9142afe Bug 1233760 - Revert test_spdy.js to use AsyncOpen2 (r=mcmanus) 2015-12-18 15:23:36 -08:00
Christoph Kerschbaumer
c83699f25f Bug 1233760 - Convert 25 tests within netwerk/test to use AsyncOpen2 (r=mcmanus) 2015-12-18 13:31:16 -08:00
Christoph Kerschbaumer
a09beee411 Bug 1232899 - Convert JS callsites to use open2 within netwerk/test (r=mcmanus) 2015-12-17 12:47:01 -08:00
Christoph Kerschbaumer
55c5c7efa6 Bug 1232567 - Convert 10 tests within netwerk/test to use AsyncOpen2 (r=mcmanus) 2015-12-17 12:47:22 -08:00
Christoph Kerschbaumer
bd418a8bfe Bug 1232422 - Convert 5 tests within netwerk/test to use AsyncOpen2 (r=mcmanus) 2015-12-14 12:36:12 -08:00
Patrick McManus
653ee2068a Bug 1228457 create pref to allow blocking .onion at dns level rfc 7687 r=valentin.gosu 2015-12-11 14:28:21 -05:00
Patrick McManus
2c38f642a7 Bug 1228457 - backout 625248e1115c broke e10s xpcshell test CLOSED TREE r=backout 2015-12-09 13:12:19 -05:00
Patrick McManus
70d505ba42 Bug 1228457 create pref to allow blocking .onion at dns level rfc 7687 r=valentin.gosu 2015-12-04 06:20:15 -05:00
Yury Delendik
b984c50fec Bug 1218029 - Adds ScriptLoadHandler and implements OnIncrementalData callback. r=djvj
--HG--
extra : commitid : 7TyrlgQ2f2Z
2015-12-01 08:00:58 -06:00
Simon Montagu
6ca8e09bc1 Bug 1218179: move from transitional to non-transitional IDNA2008 processing, r=jfkthame 2015-10-25 23:53:21 -07:00
Yoshi Huang
4b500464f5 Bug 1209162 - Create OriginAttributes subtypes. IGNORE IDL r=sicking. 2015-11-03 09:50:54 +08:00
Jonathan Hao
7882aa6f0e Bug 1225422 - Update the PrivilegedPackageRoot certificate. r=keeler 2015-11-19 15:08:05 +08:00
Andrew McCreight
a29a644203 Bug 1226709 - Enable two mochitests that seem to work with e10s. r=bz
--HG--
extra : rebase_source : df2d5629f3e9f3d7cbef7cbbaa773a064d88856b
2015-11-20 11:19:00 +01:00
Ehsan Akhgari
9b27b6fe61 Bug 1210302 - Part 5: Add a unit test for parseRequestContentType; r=mcmanus 2015-11-20 16:32:54 -05:00
Valentin Gosu
b691ca8d67 Bug 1142083 - Add test for IDN Unicode domain redirect r=mcmanus 2015-06-20 00:03:57 +03:00
Valentin Gosu
67b179e6f9 Bug 412457 - should unescape hostname first, then perform IDNA r=mcmanus 2015-11-18 15:25:27 +01:00
Henry
c5b6b535ec Bug 1224508 - Use URI path without reference as the callback key. r=valentin. 2015-11-13 02:15:00 +01:00
Henry
daec939f23 Bug 1178526 - Create docshell with packageId from TabContext. r=sicking. 2015-10-29 00:52:40 +08:00
Magnus Melin
12d47d0d77 Bug 1221758 - don't run cache2 tests when cache2 isn't used. r=michal.novotny
Was causing test failures for Thunderbird where cache2 isn't in use yet.
2015-11-12 22:12:50 +02:00
Nigel Babu
9fdcc7ce00 Backed out changeset 80a79987da8b (bug 1221758) for xpcshell bustage on CLOSED TREE 2015-11-13 14:49:14 +05:30
Magnus Melin
95a949dd6a Bug 1221758 - don't run cache2 tests when cache2 isn't used. r=michal.novotny
Was causing test failures for Thunderbird where cache2 isn't in use yet.
2015-11-13 08:12:30 +02:00
Henry
ba8fe97d17 Bug 1214079 - Doom the package cache if the signature verification failed. r=valentin 2015-11-05 23:44:00 +01:00
Madhurima
a687733788 Bug 1197313 - remove PR_snprintf calls in netwerk/; r=froydnj 2015-10-29 16:07:44 -04:00
Valentin Gosu
f4d3791247 Bug 1163030 - URL: stop escaping ` in query r=mcmanus 2015-11-02 13:55:24 +01:00
Valentin Gosu
e96a491a5d Bug 1163028 - URL: stop escaping [ and ] in path r=mcmanus 2015-11-02 13:54:10 +01:00
Honza Bambas
844d2170f3 Bug 1213577 - Use OriginAttributes in nsHttpAuthManager, r=mcmanus 2015-10-29 10:43:00 +01:00
Birunthan Mohanathas
9985829ecc Bug 1219392 - Capitalize mozilla::unused to avoid conflicts. r=froydnj 2015-11-02 07:53:26 +02:00
Christoph Kerschbaumer
3b01811afd Bug 1194052 - LoadInfo redirectchain tests (r=mayhemer) 2015-10-31 15:22:31 -07:00
Phil Ringnalda
d8a1629175 Back out changeset ea8093d8be6a (bug 1197313) for Linux xpcshell bustage in test_offlinecache_custom-directory.js
CLOSED TREE
2015-10-31 12:14:38 -07:00
Madhurima
52b55c546f Bug 1197313 - remove PR_snprintf calls in netwerk/; r=froydnj 2015-10-29 16:07:44 -04:00
Jonathan Hao
b4855726e4 Bug 1217694 - Signed package should come from the moz-package-origin specified in its manifest. r=valentin 2015-10-28 19:16:08 +08:00
Honza Bambas
8f88fd6cdc Bug 1032254 - Generic way to pin reasource in the HTTP cache, r=michal
* * *
Bug NNNNNNN - message, r=reviewer

--HG--
rename : netwerk/test/unit/test_cache2-28-concurrent_read_resumable_entry_size_zero.js => netwerk/test/unit/test_cache2-29a-concurrent_read_resumable_entry_size_zero.js
rename : netwerk/test/unit/test_cache2-29-concurrent_read_non-resumable_entry_size_zero.js => netwerk/test/unit/test_cache2-29b-concurrent_read_non-resumable_entry_size_zero.js
2015-10-22 12:11:00 +02:00
Simon Montagu
f1dc624008 Bug 479520: Implement IDNA2008 standard for International Domain Names, patch 3: test for transitional processing and CONTEXTJ, r=jfkthame. 2015-10-28 07:05:32 -07:00
Simon Montagu
32a4df81ae Bug 479520: Implement IDNA2008 standard for International Domain Names, patch 2: changes to existing tests, r=jfkthame. 2015-10-28 07:05:32 -07:00
Carsten "Tomcat" Book
7602d3a792 Backed out changeset ce23fa9ffb16 (bug 479520) 2015-10-28 12:29:13 +01:00
Carsten "Tomcat" Book
d059dd57dc Backed out changeset 80f9778bb787 (bug 479520) 2015-10-28 12:29:11 +01:00
Simon Montagu
f738f2cd6c Bug 479520: Implement IDNA2008 standard for International Domain Names, patch 3: test for transitional processing and CONTEXTJ, r=jfkthame. 2015-10-28 03:46:44 -07:00
Simon Montagu
f56bc3c1bf Bug 479520: Implement IDNA2008 standard for International Domain Names, patch 2: changes to existing tests, r=jfkthame. 2015-10-28 03:46:44 -07:00
Jonathan Hao
92a67d9e5c Bug 1218284 - Match signed packages' with trust origin without suffix. r=valentin 2015-10-26 15:30:38 +08:00
Andrea Marchesini
8ec6671244 Bug 1203802 - Websocket Frame Listener API for devtool Network Inspector - part 1 - WindowID added into WebSocketChannel, r=michal 2015-10-26 15:29:28 +00:00
Jonathan Hao
3d02a2da65 Bug 1216469 - Bypass verification for signed packages from trust origins. r=valentin 2015-10-22 17:09:44 +08:00
Tooru Fujisawa
73cd2e9cab Bug 1217316 - Remove for-each from netwerk/. r=jduell
--HG--
extra : commitid : EIpillrRBad
2015-10-19 02:19:02 +09:00
Josh Matthews
d3726427db Bug 1173811 - Part 1: Propagate the response URL to intercepted channels when necessary (non-e10s). r=mayhemer,bkelly 2015-10-22 09:23:39 -04:00
Dragana Damjanovic
4233416b20 Bug 1175685 - Add special appId for SAFEBROWSING_APP_ID. r=ckerschb 2015-10-21 13:43:00 +02:00
Wes Kocher
ceefa2939a Merge b2ginbound to central, a=merge 2015-10-21 16:37:24 -07:00
J. Ryan Stinnett
7eceb8f4c5 Bug 1203159 - Clean up various tests after DevTools resource move. r=me 2015-10-21 14:18:29 -05:00
Jonathan Hao
e4b1f62b85 Bug 1178448 - Use imported CA in developer mode. r=keeler,valentin 2015-10-08 17:08:45 +08:00
Henry
fdaaf864d7 Bug 1216062 - Notify OnStartSignedPackagedRequest with package identifier. r=valentin. 2015-10-19 03:33:00 +02:00
Nathan Froyd
01583602a9 Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat
The bulk of this commit was generated with a script, executed at the top
level of a typical source code checkout.  The only non-machine-generated
part was modifying MFBT's moz.build to reflect the new naming.

CLOSED TREE makes big refactorings like this a piece of cake.

 # The main substitution.
find . -name '*.cpp' -o -name '*.cc' -o -name '*.h' -o -name '*.mm' -o -name '*.idl'| \
    xargs perl -p -i -e '
 s/nsRefPtr\.h/RefPtr\.h/g; # handle includes
 s/nsRefPtr ?</RefPtr</g;   # handle declarations and variables
'

 # Handle a special friend declaration in gfx/layers/AtomicRefCountedWithFinalize.h.
perl -p -i -e 's/::nsRefPtr;/::RefPtr;/' gfx/layers/AtomicRefCountedWithFinalize.h

 # Handle nsRefPtr.h itself, a couple places that define constructors
 # from nsRefPtr, and code generators specially.  We do this here, rather
 # than indiscriminantly s/nsRefPtr/RefPtr/, because that would rename
 # things like nsRefPtrHashtable.
perl -p -i -e 's/nsRefPtr/RefPtr/g' \
     mfbt/nsRefPtr.h \
     xpcom/glue/nsCOMPtr.h \
     xpcom/base/OwningNonNull.h \
     ipc/ipdl/ipdl/lower.py \
     ipc/ipdl/ipdl/builtin.py \
     dom/bindings/Codegen.py \
     python/lldbutils/lldbutils/utils.py

 # In our indiscriminate substitution above, we renamed
 # nsRefPtrGetterAddRefs, the class behind getter_AddRefs.  Fix that up.
find . -name '*.cpp' -o -name '*.h' -o -name '*.idl' | \
    xargs perl -p -i -e 's/nsRefPtrGetterAddRefs/RefPtrGetterAddRefs/g'

if [ -d .git ]; then
    git mv mfbt/nsRefPtr.h mfbt/RefPtr.h
else
    hg mv mfbt/nsRefPtr.h mfbt/RefPtr.h
fi

--HG--
rename : mfbt/nsRefPtr.h => mfbt/RefPtr.h
2015-10-18 01:24:48 -04:00
Carsten "Tomcat" Book
6ffd4fc09b Merge m-c to mozilla-inbound 2015-10-14 12:47:31 +02:00
Carsten "Tomcat" Book
0ecf764867 merge mozilla-inbound to mozilla-central a=merge 2015-10-14 12:46:09 +02:00
Henry
d0922cb7a4 Bug 1210235 - Skip package verification if pref out or no signature. The package would be treated unsigned. r=valentin
--HG--
extra : histedit_source : e3820fb54cfbab00bf8db377aec2bc8afcb0fb0e
2015-10-12 15:38:41 +08:00