Граф коммитов

14888 Коммитов

Автор SHA1 Сообщение Дата
Patrick McManus 850582d8f3 Bug 772589 - Implement the secureConnectionStart property for the PerformanceTiming interface r=bkelly,dragana,francois,Honza
Implements PerformanceTiming, nsITimedChannel, and devtools 'tls setup'

Also captures telemetry on this as we do for all other attributes of timedChannel

Also propogates some null transaction timings onto first real
transaction of a connection

MozReview-Commit-ID: 47TQJYVHnKC

--HG--
extra : rebase_source : a7723962986de0c2ab00d479a22c3f5fd185c8b2
2017-07-10 15:01:35 -04:00
Ryan VanderMeulen 366f48ad7e Merge inbound to m-c. a=merge 2017-07-18 12:14:50 -04:00
Michal Novotny a565b2a018 Bug 1381766 - Remove wrong assertions from CacheFile::SetNetworkTimes, r=junior
kIndexTimeNotAvailable has a special meaning when reading the times from the index, but measured times are passed to CacheFile::SetNetworkTimes and 65535ms is a valid time.
2017-07-18 11:04:16 +02:00
Shih-Chiang Chien 0c4511b5ef Bug 1381311 - change main thread check to STS thread check. r=mayhemer
In Bug 1338493 I moved the operation thread of HttpBackgroundChannelChild from main thread to STS thread.
All the thread assertion shoudl be updated.

MozReview-Commit-ID: 307jBR48aYc

--HG--
extra : rebase_source : e9bc56d0c70a3a283cda07669e79a59ccf651b33
2017-07-17 09:51:54 +08:00
Dragana Damjanovic dd.mozilla@gmail.com 21aede7436 Bug 1381005 - Add some diagnostic assertions to figure out why mEnt is null. This is only temporary. r=mcmanus 2017-07-17 23:59:29 +02:00
Dragana Damjanovic dd.mozilla@gmail.com 3d59bf74c8 Bug 1363372 - Test tfo: send only small part of tfo data. r=mcmanus 2017-07-17 23:50:57 +02:00
Dragana Damjanovic 02da186004 Bug 1377004 - REVERT - TCP FastOpen trying to narrow down a bug search 2. r=mcmanus 2017-07-15 19:47:47 +02:00
Wes Kocher ee45f814bb Merge m-c to autoland, a=merge
MozReview-Commit-ID: GOb2bgdUd36
2017-07-14 17:27:36 -07:00
Wes Kocher e9fa5c772a Merge inbound to central, a=merge
MozReview-Commit-ID: 8nlqm5dHCUQ
2017-07-14 17:14:43 -07:00
Andrew McCreight cf00cf911b Bug 1379786, part 2 - Use nsContentUtils::GetSystemPrincipal in various places. r=mrbkap
MozReview-Commit-ID: KPXAqKeX4gI

--HG--
extra : rebase_source : 44fd734e7c5bbaba48bb25b882acc74cf0b81fb5
2017-07-10 14:24:54 -07:00
Michael Scott 81af72b128 Bug 251428 - Validate PAC isIsInet input before use r=valentin
In the PAC Javascript isInNet function validate the IP address pattern and
subnet mask before using them, using the same regular expression used to
validate the host input, and return false if the values are invalid.

MozReview-Commit-ID: 120fEVXgBAd

--HG--
extra : rebase_source : c6f8de52283fc1bfd6baf414a28f80030f9c5a17
2017-06-29 21:35:20 +03:00
Ryan VanderMeulen 019bd042fc Merge autoland to m-c. a=merge 2017-07-14 09:16:03 -04:00
Andrea Marchesini 50f9ea47a3 Bug 1350958 - Finish labeling ProxyReleaseEvent, r=billm 2017-07-14 08:49:22 +02:00
Shih-Chiang Chien 42e587bffb Bug 1357682 - Part 2, add telemetry for HTTPChannelChild OMT success/fail rate and reason. r=bsmedberg,mcmanus data-r=bsmedberg
In order to identify how HTTP OMT is used in user environment, I add a telemetry HTTP_CHILD_OMT_STATS
to record the success and fail reason for each HttpChannelChild.
- "success": OMT request is accepted and the target thread is not main thread.
- "successMainThread": OMT request is accepted but the target thread is still main thread.
- "failListener": OMT request is rejected by the direct listener of this channel.
- "failListenerChain": OMT request is rejected by one of the listener in the listener chain.
- "notRequested": HTTP OMT is not requested by the channel owner.

MozReview-Commit-ID: 1Gif1oteOOh

--HG--
extra : rebase_source : a46ea42f8d5cb58071dd9d31416423522f3e7c67
2017-07-11 14:52:35 +08:00
Carsten "Tomcat" Book e3195ceb5a Merge mozilla-central to inbound 2017-07-13 16:38:32 +02:00
Carsten "Tomcat" Book 260b5f956f merge mozilla-inbound to mozilla-central a=merge 2017-07-13 16:35:22 +02:00
Honza Bambas 2e5b8a7597 Bug 1380351 - Reschedule HTTP transaction when ClassOfService flags influencing its priority are changed, r=mcmanus 2017-07-12 08:42:00 +02:00
Junior Hsu e929a71def Bug 1373198 - Part 9: disable rcwn for xpcshell tests which require deterministic cache behavior, r=michal 2017-07-11 03:17:00 +02:00
Honza Bambas f3a8605374 Bug 1378760 - LoadInfo::CloneForNewRequest must not carry result principal URI, r=bz 2017-07-06 11:10:00 +02:00
Honza Bambas 903829e90e Bug 1371700 - Some added network logs for better tracking, r=mcmanus 2017-07-12 08:44:00 +02:00
Catalin Badea bd7f60e72e Bug 1344751 - Make nsStandardURL and nsIDNService available on worker threads. r=valentin 2017-07-13 12:17:19 +01:00
Cameron McCormack f96118fca4 Bug 1376964 - Part 5: Add OMT wrapper for nsIURIs useful for font stuff. r=jfkthame
MozReview-Commit-ID: FkBYOoqC6x6

--HG--
extra : rebase_source : c6e30a1b11d12c4d4e070f26a746162827b639a4
2017-07-07 17:29:44 +08:00
Junior Hsu 84e58e3864 Bug 1373198 - Part 4: disable rcwn for necko mochitest tests which require deterministic cache behavior, r=michal 2017-06-16 09:32:00 +02:00
Junior Hsu ca582441d7 Bug 1373198 - Part2: disable rcwn for xpcshell tests which require deterministic cache behavior, r=michal 2017-06-16 03:55:00 +02:00
Honza Bambas 481893c64a Bug 1378370 - Kill switch preference for HTTP urgent-start prioritization. r=valentin 2017-07-05 08:37:00 -04:00
Valentin Gosu 2a645b1ab7 Bug 945240 - Add unit test for new behaviour r=mcmanus,smaug
MozReview-Commit-ID: In47wgDKbhR

--HG--
extra : rebase_source : 8dc68e6e82152b232ffe13f985c65a014563a052
2017-07-11 19:10:37 +02:00
Valentin Gosu aef4546a8f Bug 945240 - Add a pref to be able to restore previous behaviour where nsIURI.host/.spec returned unicode instead of punycode r=mcmanus
This is to deal with possible bugs or web-compat issues that may arrise.
Also fixes GetDisplayHostPort which would not return the correct brackets for IPv6 addresses

MozReview-Commit-ID: 3OfiBDND5Cs
* * *
[mq]: fix_ipv6_hostport.patch

MozReview-Commit-ID: 3VYCwlt7IGT

--HG--
extra : rebase_source : a1e97b426de2ed7f5e00023407d1fcd81eb0df0e
2017-07-11 19:10:10 +02:00
Valentin Gosu 6e279c4bbe Bug 945240 - Add unimplemented GetDisplay* methods to RustURL r=mcmanus
MozReview-Commit-ID: EuUPLoIlXc4

--HG--
extra : rebase_source : 5c7b2fac7e1213a5dbaad0c4697fb6b1209b9d8f
2017-07-11 19:10:07 +02:00
Valentin Gosu f957fd9eef Bug 945240 - Make nsIURI.host & variants return ASCII strings r=mcmanus
* nsStandardURL::GetHost/GetHostPort/GetSpec contain an punycode encoded hostname.
* Added nsIURI::GetDisplayHost/GetDisplayHostPort/GetDisplaySpec which have unicode hostnames, depending on the hostname, character blacklist and the network.IDN_show_punycode pref
* remove mHostEncoding since it's not needed anymore (the hostname is always ASCII encoded)
* Add mCheckedIfHostA to know when GetDisplayHost can return the regular host, or when we need to use the cached mDisplayHost

MozReview-Commit-ID: 4qV9Ynhr2Jl
* * *
Bug 945240 - Make sure nsIURI.specIgnoringRef/.getSensitiveInfoHiddenSpec/.prePath contain unicode hosts when network.standard-url.punycode-host is set to false r=mcmanus

MozReview-Commit-ID: F6bZuHOWEsj

--HG--
extra : rebase_source : d8ae8bf774eb22b549370ca96565bafc930faf51
2017-07-11 19:09:10 +02:00
Carsten "Tomcat" Book b38c357c57 Backed out changeset 65e34c5fa167 (bug 1376964) 2017-07-12 12:41:33 +02:00
Cameron McCormack 440837d515 Bug 1376964 - Part 5: Add OMT wrapper for nsIURIs useful for font stuff. r=jfkthame
MozReview-Commit-ID: FkBYOoqC6x6

--HG--
extra : rebase_source : 28a6528ecd2e05d6d6f4e9863f74660bb4cdc6ba
2017-07-12 16:36:10 +08:00
Carsten "Tomcat" Book bf8ecdbf1a Merge mozilla-central to autoland 2017-07-12 11:18:59 +02:00
Carsten "Tomcat" Book 0edfa97e38 merge mozilla-inbound to mozilla-central a=merge 2017-07-12 11:07:09 +02:00
Yoshi Huang 94d1d69dc1 Bug 1373513 - Part 1: data:image, data:css, and data:fonts should be same origin. r=smaug
For font-face
https://drafts.csswg.org/css-fonts-3/#font-fetching-requirements

/* data url's with no redirects are treated as same origin */
src: url("data:application/font-woff;base64,...");

For image
https://html.spec.whatwg.org/multipage/images.html#updating-the-image-data
Step 12
 Fetch request. Let this instance of the fetching algorithm be
associated with image request.

This will go to Fetch spec then.

For <link rel="stylesheet" href="data:text/css" ...>
https://html.spec.whatwg.org/multipage/semantics.html#obtaining-a-resource-from-a-link-element
Step 10
Fetch request.

This will also go to Fetch spec then.

[Fetch] specification,
https://fetch.spec.whatwg.org/#main-fetch, step 12,
request’s current url’s scheme is "data"
1. Set request’s response tainting to "basic".

And from
https://html.spec.whatwg.org/multipage/urls-and-fetching.html#terminology-3
A response whose type is "basic", "cors", or "default" is
CORS-same-origin.

For subresource loading using data: URI, it should be treated as same
origin.
2017-07-12 11:00:13 +08:00
Shih-Chiang Chien 3ef9e80ef0 Bug 1379325 - only send DocumentChannelCleanup message if HTTPChannelChild is still opened. r=mayhemer
PHttpChannel might already be closed while processing OnStopRequestEvent. Need to check mIPCOpen flag
before sending DocumentChannelCleanup message.

MozReview-Commit-ID: 1EHgAAaRNKN

--HG--
extra : rebase_source : 1d9062c3af7379b07673e8a69fdd259cbf1281a4
2017-07-08 12:33:28 +08:00
Shih-Chiang Chien 5183d8c899 Bug 1377471 - disconnect mChannelChild directly if ActorDestroy is triggered by shutdown. r=mayhemer
HttpBackgroundChannelChild::ActorDestroy is always called on STS thread. However OnSocketThread will return wrong
result during shutdown phase. In this case we need to use gSocketTransportService->IsOnCurrentThreadInfallible()
to get correct result. In addition, we should disconnect mChannelChild immediately while ActorDestroy is not
triggered by normal IPDL deletion to release HTTP channel as soon as possible.

MozReview-Commit-ID: CD7v3efS4zf

--HG--
extra : rebase_source : 060536f2720e49be07b50d98d4aef9b4731624e7
2017-07-07 18:10:56 +08:00
Carsten "Tomcat" Book 0792b16120 Backed out changeset 0031a20388ac (bug 1376964) 2017-07-12 10:32:18 +02:00
Cameron McCormack 85781fe39c Bug 1376964 - Part 5: Add OMT wrapper for nsIURIs useful for font stuff. r=jfkthame
MozReview-Commit-ID: FkBYOoqC6x6

--HG--
extra : rebase_source : 84869946b3c243d9afebd8ca75c5c41f82db2699
2017-07-12 13:03:35 +08:00
Kris Maglione ad0c31080f Bug 1364768: Part 1 - Add NetUtil.readInputStream helper. r=aswan
MozReview-Commit-ID: IZRvdcIiV4z

--HG--
extra : rebase_source : e209f70d27f32ed0a073b7dc6c07bdcd1cfffdb7
2017-05-14 15:54:12 -07:00
Michal Novotny 4d93478959 Bug 1371890 - Normalize time returned by ParseFTPList. r=mcmanus 2017-07-11 09:45:15 -04:00
Valentin Gosu cde7f99f55 Bug 1378714 - [RCWN] Make sure we ReadFromCache even when OnCacheEntryAvailable is called before AsyncOpenURI is called. r=michal
MozReview-Commit-ID: KHUmZp8RuT8
2017-07-11 14:18:58 +02:00
Carsten "Tomcat" Book c8613bdc02 Backed out changeset aea5888a82ed (bug 1371890) for xpcshell failures
--HG--
extra : rebase_source : 2e813e1ab07dd18c3b26dee1f3827b4d6c834350
2017-07-11 08:25:28 +02:00
Michal Novotny 7dd0c75b98 Bug 1371890 - Normalize time returned by ParseFTPList. r=mcmanus 2017-07-10 21:34:11 -04:00
Wes Kocher b43f3b0d25 Backed out 2 changesets (bug 1344751) for frequent android crashes in test_fetch_cors_sw_reroute.html a=backout
Backed out changeset ec02a5ecb2b4 (bug 1344751)
Backed out changeset 10c975d4a8f9 (bug 1344751)

MozReview-Commit-ID: GauB18HNj15
2017-07-10 14:17:35 -07:00
Dragana Damjanovic 2c3c0ba057 Bug 1363716 - disable TFO if pmls64.dll and rlls64.dll are detected. r=mcmanus 2017-07-10 20:35:02 +02:00
Dragana Damjanovic a6dd35dede Bug 1377897 - If a HalfOpen can be Abndoned we need to check if mEnt is still present before setting mDoNotDestroy. r=mcmanus 2017-07-10 20:30:58 +02:00
Nicholas Nethercote c86dc10505 Bug 1380227 - Avoid many UTF16toUTF8 and UTF8toUTF16 conversions in nsStringBundle. r=emk.
Most of the names passed to nsIStringBundle::{Get,Format}StringFromUTF8Name
have one of the two following forms:

- a 16-bit C string literal, which is then converted to an 8-bit string in
  order for the lookup to occur;

- an 8-bit C string literal converted to a 16-bit string, which is then
  converted back to an 8-bit string in order for the lookup to occur.

This patch introduces and uses alternative methods that can take an 8-bit C
string literal, which requires changing some signatures in other methods and
functions. It replaces all C++ uses of the old methods.

The patch also changes the existing {Get,Format}StringFromName() methods so
they take an AUTF8String argument for the name instead of a wstring, because
that's nicer for JS code.

Even though there is a method for C++ code and a different one for JS code,
|binaryname| is used so that the existing method names can be used for the
common case in both languages.

The change reduces the number of NS_ConvertUTF8toUTF16 and
NS_ConvertUTF16toUTF8 conversions while running Speedometer v2 from ~270,000 to
~160,000. (Most of these conversions involved the string
"deprecatedReferrerDirective" in nsCSPParser.cpp.)

--HG--
extra : rebase_source : 3bee57a501035f76a81230d95186f8c3f460ff8e
2017-07-12 15:13:37 +10:00
Ryan VanderMeulen dec7bdc30e Merge m-c to inbound. a=merge 2017-07-14 09:52:26 -04:00
Junior Hsu 6875db6c1c Bug 1380909 - Try to solve crash: move GetElement out of lambda. r=michal 2017-07-14 00:13:00 -04:00
Will Wang 1c9d3566e7 Bug 1366213: Part 1 - Add a new observer notification 'session-cookie-changed'. r=jdm
--HG--
extra : rebase_source : 5495a601b463f59f1e39746c2069c6af042a9680
2017-07-07 17:47:53 +08:00