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

15032 Коммитов

Автор SHA1 Сообщение Дата
Shih-Chiang Chien da2e0b2b35 Bug 1382380 - ensure mListener/mListenerContext/mCompressListener is released on main thread. r=dragana
During abnormal shutdown, HttpChannelChild might be released on STS thread. However, not all stream listener
that attached to the HTTP channel is thread-safe to be released on non-main thread. By following
HttpBaseChannel::ReleaseListener, we should ensure mListener/mListenerContext/mCompressListener is released on
main thread for both normal channel close and abnormal shutdown scenario.

MozReview-Commit-ID: Gqbk7dUOIcI

--HG--
extra : rebase_source : 1ce6eb1333b05c375469c2fef6284c11fda24f3e
2017-07-21 09:51:04 +08:00
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
Honza Bambas 9a90f230ca Bug 1351462 - Don't reuse a connection that has not finished an NTLM authentication. r=mcmanus 2017-07-12 09:21:00 -04: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
Shih-Chiang Chien b13d8ee1d2 Bug 1369571 - break reference cycle between HttpChannelChild and HttpBackgroundChannelChild while PHttpChannel is destroyed. r=mayhemer
The reference cycle is supposed to be removed when HttpBackgroundChannelChild::ActorDestroyed, however this operation
is pending due until HttpChannelChild receives OnStartRequest IPC message. Unfortunately the OnStartRequest IPC message
is dropped because of PContent shutdown procedure. So, the reference removal is never executed, which leaks memory
until content process is terminated.

MozReview-Commit-ID: 7R6nt7W690o

--HG--
extra : rebase_source : b7e218d0ff242d5be291007c93833782b2400846
2017-07-18 19:03:14 +08:00
Carsten "Tomcat" Book 740c6ff791 Merge mozilla-central to autoland 2017-07-28 15:27:47 +02:00
Shih-Chiang Chien 72cfd0cddb Bug 1384294 - replace GetMainThreadEventTarget with GetNeckoTarget in HttpChannelChild. r=mayhemer
GetMainThreadEventTarget doesn't label runnable with correct doc group or tab group.
In HttpChannelChild we should replace it with |GetNeckoTarget| in general.
By making mIsTrackingResource atomic, HttpChannelChild::ProcessNotifyTrackingResource can be
further changed to do direct function call without dispatching additional runnable on main thread.

MozReview-Commit-ID: LVvoiljHElX

--HG--
extra : rebase_source : 35e85c8afed1411cd60cf2c7ae5cb01cc05f80b2
2017-07-26 15:55:18 +08:00
Wes Kocher 316fd8283a Merge m-c to inbound, a=merge
MozReview-Commit-ID: KcxntLtRalL

--HG--
rename : taskcluster/actions/__init__.py => taskcluster/taskgraph/actions/__init__.py
rename : taskcluster/actions/add-new-jobs.py => taskcluster/taskgraph/actions/add-new-jobs.py
rename : taskcluster/actions/registry.py => taskcluster/taskgraph/actions/registry.py
rename : taskcluster/actions/retrigger.py => taskcluster/taskgraph/actions/retrigger.py
rename : taskcluster/actions/run_missing_tests.py => taskcluster/taskgraph/actions/run_missing_tests.py
rename : taskcluster/actions/test-retrigger-action.py => taskcluster/taskgraph/actions/test-retrigger-action.py
rename : taskcluster/actions/util.py => taskcluster/taskgraph/actions/util.py
2017-07-28 17:54:59 -07:00
Bill McCloskey c6c1f4bbc9 Bug 1385413 - Remove thread parameter from onDispatchedEvent (r=erahm)
This parameter isn't used by any implementation of onDispatchedEvent,
and keeping the parameter makes later refactorings in this bug more difficult.

MozReview-Commit-ID: 90VY2vYtwCW
2017-07-28 13:09:06 -07: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
ISHIKAWA, Chiaki 3705f09fcf Bug 1385816 - nsFileStreamBase::DoOpen() should call directory creation with 0755 permission instead of 0644. r=bz
--HG--
extra : amend_source : 81a593608d104845afef23ff3efc4cf1c6cf3d32
2017-07-31 11:00:00 -04:00
Dragana Damjanovic 179c0c7461 Bug 1382555 - Remove diagnostic asserts.r=mcmanus 2017-07-31 19:20:08 +02:00
Bevis Tseng 95b18d794e Bug 1382172 - Name nsITimerCallback instances in native implementation. r=billm
--HG--
extra : rebase_source : 84de1abfcc30a6964144c2e6718a508c71027b65
2017-07-27 02:18:20 +08:00
Bevis Tseng a7505864a8 Bug 1378930 - Part 2: Remove the aName parameter from SchedulerGroup/DocGroup/DispatcherTrait. r=billm
--HG--
extra : rebase_source : 11319e568a51d16754a6a9990f76c35c86c2bda7
2017-07-26 16:13:35 +08:00
Bevis Tseng d935b29e72 Bug 1378930 - Part 1: Remove nsINamed::SetName(). r=billm
MozReview-Commit-ID: 7aM1yJRsfPH

--HG--
extra : rebase_source : f207a37be835ac4e6c431af56737cebacf5c566d
2017-07-21 11:50:43 +08:00
Nathan Froyd a985746261 Bug 1347963 - part 5 - make ChannelEventQueue use RecursiveMutex; r=mcmanus
Making ChannelEventQueue slightly faster with RecursiveMutex is a good thing.
2017-07-04 13:43:47 -04:00
Nicholas Hurley 17f1c3bcb9 Bug 1367551 - Cancel pushes when we already have the item in cache. r=mayhemer,mcmanus
MozReview-Commit-ID: 24N0Jm85wcC

--HG--
extra : rebase_source : e3babc6e569ce723c1f35bd587bb5f0b59f79cfd
2017-06-28 10:34:55 -07:00
Andrew Halberstadt ef2417d716 Bug 1385356 - Skip browser_tabicon_after_bg_tab_crash.js and browser_child_resources.js if crashreporter is disabled, r=mccr8
These tests use BrowserTestUtils.crashBrowser() and fail with ASan enabled.

MozReview-Commit-ID: CpkldaKouzD

--HG--
extra : rebase_source : 02c4c0c13e7ab3ba144b2922b0cc54913daa6ab9
2017-07-28 14:47:00 -04:00
Wei-Cheng Pan c435f8afcb Bug 1383748 - Fix SPDY while using proxy. r=mcmanus
The SPDY status variable was overwrited by other function. Giving it a new
meaningful name to prevent possible regression again.

MozReview-Commit-ID: 4A98mKXXg7P

--HG--
extra : rebase_source : d88777169320f123c12d985f636c507b893b4b8c
2017-07-27 19:45:36 +08:00
Kartikaya Gupta ba4b3b9101 Bug 1384233 - Remove SizePrintfMacros.h. r=froydnj
We have a minimum requirement of VS 2015 for Windows builds, which supports
the z length modifier for format specifiers. So we don't need SizePrintfMacros.h
any more, and can just use %zu and friends directly everywhere.

MozReview-Commit-ID: 6s78RvPFMzv

--HG--
extra : rebase_source : 009ea39eb4dac1c927aa03e4f97d8ab673de8a0e
2017-07-26 16:03:57 -04:00
Haik Aftandilian d8e4797b60 Bug 1380156 - Loading temporary unpacked extension breaks extension page's CSS in OOP Extensions. r=jimm
MozReview-Commit-ID: 3SskOcpAI5Z

--HG--
extra : rebase_source : 2ca3e48c66b3e2765a2a41882ddb4b01a83dd3fe
2017-07-25 22:27:30 -07:00
Haik Aftandilian 9ab2f249f0 Bug 1376496 - Part 5 - Don't send child nsILoadInfo's to the parent for requests. r=ckerschb
MozReview-Commit-ID: G8fCPL7aLT0

--HG--
extra : rebase_source : 3c49008eaedf65befffc2f0327529817d9879cd5
2017-07-20 11:49:29 -07:00
Haik Aftandilian 13d42e4e9a Bug 1376496 - Part 3 - MOZ_LOG JAR cache hits/misses in DEBUG. r=mayhemer
MozReview-Commit-ID: IhiNxvt7vY

--HG--
extra : rebase_source : 15f727760ab8e37dea2db5024bca6f5dde8ef81b
2017-07-21 16:14:16 -07:00
Haik Aftandilian 97420c053a Bug 1376496 - Part 2 - Don't request FD from parent when JAR file is cached. r=mayhemer
MozReview-Commit-ID: 6xooCVnBehj

--HG--
extra : rebase_source : e8045206d5b5196d26109967966d91476470b058
2017-07-21 15:19:09 -07:00
Haik Aftandilian d25dbbf9d1 Bug 1376496 - Part 1 - Resolve Windows symlinks in unpacked load security check. r=jimm
Add Windows-specific calls to normalize symlinks and junction points for unpacked child extension requests.

MozReview-Commit-ID: F7bYk1WOGcU

--HG--
extra : rebase_source : c45070e38ce6582f3743bfb4c61f7398d1617e73
2017-07-07 16:44:50 -07: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
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
Masatoshi Kimura 8ed4a80a4e Bug 1322874 - Get rid of nsIURI.originCharset. r=valentin.gosu
nsIURI.originCharset had two use cases:
 1) Dealing with the spec-incompliant feature of escapes in the hash
    (reference) part of the URL.
 2) For UI display of non-UTF-8 URLs.

For hash part handling, we use the document charset instead. For pretty
display of query strings on legacy-encoded pages, we no longer care to them
(see bug 817374 comment 18).

Also, the URL Standard has no concept of "origin charset". This patch
removes nsIURI.originCharset for reducing complexity and spec compliance.

MozReview-Commit-ID: 3tHd0VCWSqF

--HG--
extra : rebase_source : b2caa01f75e5dd26078a7679fd7caa319a65af14
2017-08-02 20:43:30 +09:00
Nathan Froyd a69f167818 Bug 1347963 - part 4 - make nsInputStreamPump use RecursiveMutex; r=mcmanus
Making nsInputStreamPump slightly faster with RecursiveMutex is a good thing.
2017-04-18 12:20:04 -04:00
Nathan Froyd 84f6b5acb3 Bug 1347963 - part 3 - make nsHttpResponseHead use RecursiveMutex; r=mcmanus
Making nsHttpResponseHead slightly faster with RecursiveMutex is a good thing.
2017-04-18 12:00:58 -04:00
Nathan Froyd e8f7c87eed Bug 1347963 - part 2 - make nsHttpRequestHead use RecursiveMutex; r=mcmanus
Making nsHttpRequestHead slightly faster with RecursiveMutex is a good thing.
2017-04-18 11:05:16 -04: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
Kate McKinley 84d5adef43 Bug 1331730 - Log CORS messages from the content process r=bz,mayhemer
In e10s, a channel created by parent does not have a reliable reference
to the inner window ID that initiated the request. Without that, the
channel must request that the content process log and blocked messages
to the web console. This patch creates a new ipdl interface to pass the
message from the parent to the child process. The nsCORSListenerProxy
also needs to keep a reference to the nsIHttpChannel that created it so
it can find its way back to the child. Additionally, the
HttpChannelParent needs to be propagated when creating a new channel for
CORS.

MozReview-Commit-ID: 8CUhlVCTWxt

--HG--
extra : rebase_source : 350f39ad6f7ada39e88dfcc69c4f2c470e2be0de
2017-02-15 12:40:41 +09: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
Catalin Badea f23d657af0 Bug 1344751 - Make nsStandardURL and nsIDNService available on worker threads. r=valentin 2017-07-10 13:09:52 +01:00
Wes Kocher 5dd57ee395 Merge m-c to inbound, a=merge
MozReview-Commit-ID: IVwrN2VivZT
2017-07-07 17:30:32 -07:00
Michal Novotny c82ef87eb1 Bug 1377681 - Crash in mozilla::net::CacheFile::Truncate: MOZ_RELEASE_ASSERT(maxInputChunk <= newLastChunk + 1), r=jduell 2017-07-08 01:27:30 +02:00
Michal Novotny 19234a5698 Bug 1377340 - NETWORK_RACE_CACHE_WITH_NETWORK_USAGE should separate delayed and non-delayed racing. r=valentin, data-r=bsmedberg 2017-07-07 09:42:00 -04:00
Shih-Chiang Chien f892d2204e Bug 1379095 - add nsIRequest in nsAboutCacheEntry::Channel QI. r=mayhemer
nsAboutCacheEntry::Channel is introduced by Bug 1266196. Assert_NoQueryNeeded() check is failed
due to nsAboutCacheEntry::Channel return nullptr while QI into a nsCOMPtr<nsIRequest> pointer.

MozReview-Commit-ID: 4lYeN4lNtTm

--HG--
extra : rebase_source : 633bcd0911cc9e9703e9137a398db02fdd1f5aa4
2017-07-07 15:32:33 +08:00
Wes Kocher 19d135c982 Merge m-c to autoland, a=merge
MozReview-Commit-ID: 4R4GFHPiij
2017-07-06 16:19:38 -07:00
Sylvestre Ledru 4e9cf83ee8 Bug 1378712 - Remove all trailing whitespaces r=Ehsan
MozReview-Commit-ID: Kdz2xtTF9EG

--HG--
extra : rebase_source : 7235b3802f25bab29a8c6ba40a181a722f3df0ce
2017-07-06 14:00:35 +02:00
Michal Novotny 39de30297b Bug 1378308 - nsHttpChannel::GetAlternativeDataType returns alt-data type when delivering data from network, r=valentin
When racing cache with network and the network wins, we don't reset mAvailableCachedAltDataType. So when the cache entry has been opened and has alt-data then nsHttpChannel::GetAlternativeDataType returns alt-data type, but we're delivering raw response (no conversion are applied) from the network.
2017-07-06 13:38:10 +02:00
Carsten "Tomcat" Book 7857fa0a5e merge mozilla-inbound to mozilla-central a=merge 2017-07-06 11:18:05 +02:00
Haik Aftandilian 5d3493e27d Bug 1377614 - Part 2 - System extensions fail to load on Mac and Linux local builds. r=jimm
On Mac and Linux, allow unpacked extension resources to load from outside the extension directory if they're in the repo.

MozReview-Commit-ID: 1xsKV72aUJx

--HG--
extra : rebase_source : 1adefb0977e63935366a45dbf7c471d868655838
2017-07-05 14:11:48 -07:00
Wes Kocher 414ea49c45 Merge m-c to autoland, a=merge
MozReview-Commit-ID: 7DxSsYpFh3X
2017-07-05 17:19:40 -07:00
Haik Aftandilian edadc69735 Bug 1377128 - Screenshots overlay button icons are not displayed on latest Nightly build. r=jimm
Set the content type on remote channels in the moz-extension protocol handler.

MozReview-Commit-ID: H6XtYHjhS1Q

--HG--
extra : rebase_source : 48684ab78458b6723f1fd2c9860a5d36e7f5cc8e
2017-07-03 22:41:53 -07:00
Sebastian Hengst 6e0962c211 Backed out changeset 0de6a6316120 (bug 1377614) 2017-07-05 22:51:21 +02:00
Haik Aftandilian 34860a1e9c Bug 1377614 - Part 2 - System extensions fail to load on Mac and Linux local builds. r=jimm
On Mac and Linux, allow unpacked extension resources to load from outside the extension directory if they're in the repo.

MozReview-Commit-ID: 1xsKV72aUJx

--HG--
extra : rebase_source : 5537a3dc2c5e924bd5bc2a242819bed9f4c6c8a6
2017-07-05 13:02:19 -07:00
Michal Novotny d44fea7350 Bug 1377340 - NETWORK_RACE_CACHE_WITH_NETWORK_USAGE should separate delayed and non-delayed racing. r=valentin
--HG--
extra : rebase_source : bd96482954958c4aaeb5ebdb4f13cabe3c0043c1
2017-07-05 09:21:00 -04:00
Mats Palmgren 977a9e5f89 Bug 1376498 part 4 - Make all nsClassHashtable::RemoveAndForget() consumers use Remove() instead. r=froydnj
MozReview-Commit-ID: G64YQLlgm6r
2017-07-05 02:01:45 +02:00
Michal Novotny 6d0266b61b Bug 1377369 - Crash in memcpy | mozilla::net::CacheFileChunkBuffer::FillInvalidRanges, r=valentin 2017-07-03 20:41:15 +02:00
Wes Kocher a68d99e200 Backed out changeset 25b411a687da (bug 1377004) for quantum_pageload_google failures on win10 a=backout
MozReview-Commit-ID: IYlC0BWMxC7
2017-07-03 11:05:59 -07:00
Dragana Damjanovic dd.mozilla@gmail.com 605fc07348 Bug 1377004 - TCP FastOpen trying to narrow down a bug search 2. r=mcmanus 2017-07-03 12:50:03 +02:00
Sebastian Hengst 274770803e Backed out changeset 8597b133717f (bug 1377004) for crashing many tests with mozilla::net::nsHttpConnectionMgr::nsHalfOpenSocket::SetFastOpenConnected. r=backout on a CLOSED TREE 2017-07-03 11:31:16 +02:00
Dragana Damjanovic dd.mozilla@gmail.com 1f4bf966d7 Bug 1376914 - Make nsConnecionEntry weak reference in nsHalfOpenSock. r=mcmanus 2017-07-03 10:52:46 +02:00
Dragana Damjanovic dd.mozilla@gmail.com 2d08e4a243 Bug 1377004 - TCP FastOpen trying to narrow down a bug search 2. r=mcmanus 2017-07-03 10:48:48 +02:00
Nicholas Nethercote 3e439bb4f8 Bug 1376638 - Minimize uses of prmem.h. r=glandium.
It's silly to use prmem.h within Firefox code given that in our configuration
its functions are just wrappers for malloc() et al. (Indeed, in some places we
mix PR_Malloc() with free(), or malloc() with PR_Free().)

This patch removes all uses, except for the places where we need to use
PR_Free() to free something allocated by another NSPR function; in those cases
I've added a comment explaining which function did the allocation.

--HG--
extra : rebase_source : 0f781bca68b5bf3c4c191e09e277dfc8becffa09
2017-06-30 19:05:41 -07:00
Andreas Farre f1473c65d1 Bug 1377215 - Add WebSocketEventService::Get. r=mcmanus 2017-07-02 18:02:37 +02:00
Phil Ringnalda 915412e692 Merge m-i to m-c, a=merge
MozReview-Commit-ID: HINQtggBLDr
2017-07-01 17:36:09 -07:00
Jonathan Kew 7be1139537 Bug 1376834 - Update data tables to Unicode 10.0 release. r=m_kato 2017-06-30 14:16:02 -07:00
Dragana Damjanovic 7a7b9b7e0a hg qrefresh -m "Bug 1372897 - REVERT test of the necko part of TFO. r=mcmanus" 2017-06-30 10:53:21 -07:00
Carsten "Tomcat" Book daa67cc9e3 merge mozilla-inbound to mozilla-central a=merge 2017-06-30 12:59:45 +02:00
Michal Novotny 17b723ab2d Bug 1376403 - CacheFileUtils.cpp - call of overloaded 'sqrt(uint64_t&)' is ambiguous. r=valentin
--HG--
extra : amend_source : bae4013388419afec407966ff8bb2f251665e6df
2017-06-29 13:39:00 -04:00
Valentin Gosu 6a3a8fb80f Bug 1376970 - Make sure mRaceCacheWithNetwork is only set when we are actually racing. r=michal
--HG--
extra : amend_source : d965a8c6e2ce9422835083d6514a0203358d6305
2017-06-28 15:57:00 -04:00
Dragana Damjanovic bb07f1d63b Bug 1372897 - Test only the necko part of TFO, i.e. disable the nspr part. r=mcmanus 2017-06-29 09:54:56 -07:00
Dragana Damjanovic dd.mozilla@gmail.com 0a63aed875 Bug 1373582 - Do not apply HSTS to non http. r=mcmanus 2017-06-29 09:51:09 -07:00
Evelyn Hung c4f9bd4426 Bug 1348275 - speculative connect to an autocomplete url. r=mak
When we get the usre's frequent visting site from UnifiedComplete.js,
and then open a network connection for it before the user hits
the enter key.

MozReview-Commit-ID: 36moBeeUnyZ

--HG--
extra : rebase_source : 4122534b2d21d2a959fd8dbb8533dd3e0ef75621
2017-06-26 00:24:42 +08:00
Haik Aftandilian b9fe95e890 Bug 1377355 - Unable to load unpacked web extensions in about:debugging; content script cannot be loaded; r=jimm
Remove the system principal check for unpacked (development) moz-extension loads
and rely on the existing host, scheme, and filesystem checks.

MozReview-Commit-ID: 7aI6dJsRJtP

--HG--
extra : rebase_source : 545de6efa0efb3935a22dd6e5375f0b6fe0d3d57
2017-06-30 12:36:00 -07:00
Nicholas Hurley df3233b549 Bug 1368080 - Only remove pushed streams from cache when canceling the stream if the ids match. r=mcmanus
MozReview-Commit-ID: 5y0Aj6Bgk9u

--HG--
extra : rebase_source : 015352a4b0a87734afce856fcd7b424e96c6ede8
2017-06-28 10:29:34 -07:00
Nicholas Hurley 2c463b64a5 Bug 1368080 - Use REFUSED_STREAM instead of INTERNAL_ERROR on duplicate push key. r=mcmanus
MozReview-Commit-ID: BEUo6YpcyZj

--HG--
extra : rebase_source : 7733620d2149bac35201c74ab451ebb292268442
2017-06-28 10:28:54 -07:00
Honza Bambas 6c67bff8a5 Bug 1368110 - Create child redirect target (new) channel using parent target channel's original URI. r=jduell, r=bz 2017-07-05 11:24:00 -04:00
Shih-Chiang Chien 0f8c26e1d3 Bug 1338493 - Part 2, move HttpBackgroundChannelChild to socket transport thread. r=mayhemer
Move HttpBackgroundChannelChild from main thread to socket transport thread.
Allow HttpChannelChild.mBgChild to be used on both main thread and STS thread under mutex protection.

MozReview-Commit-ID: 9WAXmJLr8HT

--HG--
extra : rebase_source : 774c71cec9d36412e2101719f5ca930a214f6472
2017-06-28 22:04:17 +08:00
Sebastian Hengst 3f2eed7cfa Backed out changeset 08fdd3066fde (bug 1344751) 2017-07-05 15:32:05 +02:00
Sebastian Hengst 9418e5844e Backed out changeset dee772828d50 (bug 1344751) 2017-07-05 15:32:00 +02:00
Catalin Badea 79777e9787 Bug 1344751 - nsStandardURL::SetSpec should return error on empty scheme. r=valentin 2017-07-05 13:40:55 +01:00
Catalin Badea fc6d212ec7 Bug 1344751 - Make nsStandardURL and nsIDNService available on worker threads. r=valentin 2017-07-05 13:40:49 +01:00
Michal Novotny 7916983099 Bug 1377568 - Show cache performance data in about:networking, r=valentin, r=ehsan 2017-07-05 01:41:00 +02:00
Kershaw Chang 1239057218 Bug 1343741 - Part4: Label the timer in PACResolver, r=mayhemer 2017-07-05 00:48:00 +02:00
Kershaw Chang 5279c25aa6 Bug 1343741 - Part3: Pass labelled event target to nsIProtocolProxyService::AsyncResolve, r=mayhemer
For dispatching runnable in nsPACMan, this patch sends a labelled event target via nsIProtocolProxyService::AsyncResolve.
2017-07-05 00:48:00 +02:00
Kershaw Chang 4cbb89d09b Bug 1343741 - Part2: Label nsAsyncRedirectVerifyHelper, r=mayhemer
1. Pass a labeled main thread event target to nsAsyncRedirectVerifyHelper::Init.
2. Use mainThreadEventTarget to dispatch runnables
2017-07-05 00:47:00 +02:00
Kershaw Chang 41b2aa45b7 Bug 1343741 - Label runnables in nsBaseChannel, r=mayhemer
This patch includes changes below:
1. Make nsBaseChannel inherit from NeckoTargetHolder.
2. Change FtpChannelChild due to (1) and also don't use SystemGroup to dispatch nsFtpChildAsyncAlert runnable since nsIPrompt may touch js script.
3. Use NeckoTargetHolder::Dispatch to dispatch runnables in nsBaseChannel.
   Note that RedirectRunnable should be on main thread, so I changed the code from NS_DispatchToCurrentThread to NeckoTargetHolder::Dispatch.
2017-07-05 00:47:00 +02:00
Michal Novotny f4d299e123 Bug 1378083 - Assertion failure: !mListener in CacheFileChunk::Hash(), r=valentin 2017-07-04 03:07:00 +02:00
Dragana Damjanovic d470b7b072 Bug 1369509 - Do not destroy nsHttpConnectionEntry if HalfOpenSock needs it. r=mcmanus 2017-06-28 06:38:28 -07:00
Carsten "Tomcat" Book 7918eeee02 merge mozilla-inbound to mozilla-central a=merge 2017-06-28 13:23:29 +02:00
Kershaw Chang c168ba5421 Bug 1343755 - Label runnables in DataChannelConnection. r=jesup 2017-06-27 10:39:00 -04:00
Kershaw Chang 63c003e040 Bug 1343755 - Part 1: Add a helper function in NeckoTargetHolder for dispatching runnable. r=mayhemer, r=jesup 2017-06-20 01:56:00 -04:00
Mats Palmgren b3981c5e09 Bug 1376469 - Use LookupForAdd instead of Get+Put to avoid unnecessary hashtable lookups. r=froydnj
MozReview-Commit-ID: BPEFZeLkNp
2017-06-28 01:03:17 +02:00
Sebastian Hengst 344e75f556 Backed out changeset 976a4789deea (bug 1344751) 2017-06-28 00:00:30 +02:00
Sebastian Hengst 33f5b754de Backed out changeset 040e1c1c53dc (bug 1344751) 2017-06-28 00:00:22 +02:00
Catalin Badea 627e1873d5 Bug 1344751 - nsStandardURL::SetSpec should return error on empty scheme. r=valentin 2017-06-27 14:45:09 -07:00