Commit Graph

14905 Commits

Author SHA1 Message Date
Carsten "Tomcat" Book
bdf7db3d13 Merge mozilla-central to mozilla-inbound
--HG--
rename : dom/tests/mochitest/chrome/test_window_getAppLocales.html => dom/tests/mochitest/chrome/test_window_getRegionalPrefsLocales.html
rename : mobile/android/app/src/main/res/drawable/as_contextmenu_divider.xml => mobile/android/app/src/main/res/drawable/as_contextmenu_divider_helper.xml
rename : testing/tools/autotry/autotry.py => tools/tryselect/selectors/syntax.py
extra : rebase_source : d74c74a654cd977d35e35de2768ada4ebe659ae4
2017-07-25 14:38:43 +02:00
Carsten "Tomcat" Book
679210723b merge mozilla-inbound to mozilla-central a=merge 2017-07-25 14:27:17 +02:00
Kershaw Chang
55bb698ac1 Bug 1377544 - Labeling in ExtensionProtocolHandler, r=mayhemer
1. Get rid off AbstractThread
2. Use nsContentUtils::GetEventTargetByLoadInfo to get an event target for dispatching
2017-07-24 23:50:00 +02:00
Wes Kocher
a1eadef812 Merge m-c to autoland, a=merge
MozReview-Commit-ID: B7oWq7qfpJ0
2017-07-24 18:13:05 -07:00
Dragana Damjanovic dd.mozilla@gmail.com
bfaf919c95 Bug 1382555 - Add more diagnostic asserts to nsHtttpConnectionMgr. r=mcmanus 2017-07-24 16:24:33 +02:00
Michal Novotny
9370303ce3 Bug 1377223 - RCWN - Should we revalidate when racing and the cache wins, r=valentin, data-r=bsmedberg
This patch adds telemetry probes to find out how often the cache wins the race but the entry cannot be used because it needs to be revalidated and we cannot send a conditional request.
2017-07-24 20:35:36 +02:00
Christoph Kerschbaumer
9c97294062 Bug 1331351: Block toplevel window data: URI navigations. r=smaug,francois 2017-07-24 18:51:21 +02:00
Tristan Bourvon
05742206d8 Bug 1383002 - Fix UAF in nsMIMEHeaderParamImpl::DecodeRFC5987Param. r=mcmanus
MozReview-Commit-ID: 2tk9WwUCpsw
2017-07-21 15:23:38 +02:00
Sebastian Hengst
f16a7f8371 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 4EWdTlEncz7
2017-07-22 11:38:42 +02:00
Shih-Chiang Chien
8ee3df7d5c Bug 1382103 - ensure thread-safe access to HttpBackgroundChannelParent::mBackgroundThread. r=mayhemer
mBackgroundThread is an nsCOMPtr write on PBackground thread but read on main thread. We need to use
Mutex to ensure memory sync between multiple threads.

MozReview-Commit-ID: 2CJ359ivhQh

--HG--
extra : rebase_source : 53c9087220a15d225d07272815cc1bdd6f75859e
2017-07-17 16:36:30 +08:00
Sylvestre Ledru
7c0ae251cd Bug 1381253 - Remove redundant control flow declarations rs=ehsan
MozReview-Commit-ID: FFxP4aMCbOL

--HG--
extra : amend_source : 3aec108430b11048f47ffe19d5da7ac5034770a9
2017-07-15 19:03:04 +02:00
Michal Novotny
7904597e99 Bug 1382852 - Wrong value is reported for NETWORK_RACE_CACHE_WITH_NETWORK_USAGE_2 probe when cache wins in delayed race, r=valentin 2017-07-21 02:29:24 +02:00
Valentin Gosu
5c26b3aa77 Bug 1382845 - We should cancel mNetworkTriggerTimer when we start reading data from the cache. r=michal
MozReview-Commit-ID: HOnWemy2YCY
2017-07-21 01:25:02 +03:00
Shane Caraveo
64c2485f68 Bug 1380426 - Make nsStreamListenerWrapper use NS_DECL_THREADSAFE_ISUPPORTS. r=dragana
--HG--
extra : rebase_source : fdcfe1dcce0dd4c4f5c554685afcdc995b680cae
2017-07-19 19:25:43 -04:00
Kershaw Chang
7a39230fb2 Bug 1378385 - Test case. r=mayhemer
Add a test to see when "network.http.active_tab_priority" is false, the http requests should be sent by their priority. That means the transaction with the highest priority will be dispatched  first.

--HG--
extra : rebase_source : dc05145834d93077a4742aa57b1becc3996f074a
2017-07-18 21:47:00 -04:00
Kershaw Chang
b62593bf12 Bug 1378385 - Add a pref for switching off giving more priority to active tab. r=mayhemer
This patch introduce new pref "network.http.active_tab_priority" which indicate whether or not we dispatch transactions from active tab before others from background tab.

--HG--
extra : rebase_source : 093ab372d392eec285889f307d4540012e7aac9f
2017-07-18 21:47:00 -04:00
Haik Aftandilian
ef16b0fcf8 Bug 1380690 - Part 2 - Whitelist repo and object dirs using paths from the Info.plist files. r=Alex_Gaynor,spohl
On Mac developer builds, read the repo path and object dir path from the
Info.plist files in the application bundle instead of the
MOZ_DEVELOPER_REPO_DIR and MOZ_DEVELOPER_OBJ_DIR environment variables.

MozReview-Commit-ID: 8UtjkNPGUM1

--HG--
extra : rebase_source : 3e4ce32f2e2c40f8d899bc9190e48298081458d9
2017-07-19 09:16:09 -07:00
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