Commit Graph

6439 Commits

Author SHA1 Message Date
Honza Bambas
3b5af1496d Bug 1172992 - Send security info override from HttpChildChannel to the parent, r=jduell 2015-08-19 14:50:34 -07:00
Christoph Kerschbaumer
3d815cc0ed Bug 1193552 - Remove baseURI from LoadInfo (r=sicking,jkitch) 2015-08-19 10:43:30 -07:00
Michael Layzell
9ff696fed2 Bug 1195415 - Add asciiHostPort field to nsIURI, and use it in the implementation of nsPrincipal::GetOriginForURI, r=bholley 2015-08-18 14:52:24 -04:00
Mike Hommey
71dfb17528 Bug 1194497 - Convert a few remaining PRUnichar to char16_t. r=roc 2015-08-18 08:09:14 +09:00
Honza Bambas
a3ee1eaac2 Bug 1082735 - Don't use InsertElementSorted in HTTP cache, r=michal 2015-08-17 15:18:59 -07:00
Arnaud Bienner
d99c4429a7 Bug 1190086 - Use new String::Contains(char) method more widely r=froydnj 2015-08-14 00:49:15 +02:00
Josh Matthews
bc2ef57e8e Bug 1179399 - Add a flag to HttpBaseChannel indicating whether interception is occurring. r=mayhemer
Landed on a CLOSED TREE
2015-08-17 16:42:46 -04:00
Fabrice Desré
206881257c Bug 1190995 - Support the new extension model in b2g r=billm 2015-08-14 16:55:09 -07:00
Fabrice Desré
c9d85dd2ae Bug 1190995 - backout 0450f02a2b3b for M1 failures 2015-08-14 17:57:34 -07:00
Fabrice Desré
f3ad899ef4 Bug 1190995 - Support the new extension model in b2g r=billm 2015-08-14 16:55:09 -07:00
Christoph Kerschbaumer
18543664bb Bug 1193924 - Add assertion to AsyncOpen to make sure asyncOpen2() was called first when securityflags in loadInfo are set (r=sicking) 2015-08-12 21:36:33 -07:00
Ryan VanderMeulen
7bacf85e8a Backed out changeset f99b27e40987 (bug 1193924) for B2G emulator bustage.
CLOSED TREE
2015-08-13 12:45:05 -04:00
Christoph Kerschbaumer
1da578e09c Bug 1193924 - Add assertion to AsyncOpen to make sure asyncOpen2() was called first when securityflags in loadInfo are set (r=sicking) 2015-08-12 21:36:33 -07:00
Patrick McManus
7dbcbcfb17 bug 1193541 - Revert Bug 1191253 - Start the Link Monitor r=backout 2015-08-12 15:57:59 -04:00
Valentin Gosu
bb24a72a2f Bug 1190450 - TP shield shows up incorrectly when pressing back while loading a page with tracking elements r=mcmanus 2015-08-13 11:14:36 +02:00
Jim Chen
ef8b0d7d2a Bug 1192077 - Convert AndroidBridge JNIEnv calls; r=esawin 2015-08-13 00:53:39 -04:00
Henry Chang
a6ff1eccfc Bug 1185439 - Add preamble to nsIMultiPartChannel for MIME type application/package. r=valentin 2015-08-03 11:17:01 +08:00
Valentin Gosu
682bde7281 Bug 1172701 - Make GetSubresourceURI normalize the path for packaged resources r=mcmanus 2015-08-12 00:43:48 +02:00
Christoph Kerschbaumer
d0e2fd6fe9 Bug 1188644 - Use channel->ascynOpen2 in netwerk/test (r=mcmanus) 2015-08-10 10:20:40 -07:00
Kyle Huey
1ffb03e8dc Bug 1179909: Refactor stable state handling. r=smaug
This is motivated by three separate but related problems:

1. Our concept of recursion depth is broken for things that run from AfterProcessNextEvent observers (e.g. Promises). We decrement the recursionDepth counter before firing observers, so a Promise callback running at the lowest event loop depth has a recursion depth of 0 (whereas a regular nsIRunnable would be 1). This is a problem because it's impossible to distinguish a Promise running after a sync XHR's onreadystatechange handler from a top-level event (since the former runs with depth 2 - 1 = 1, and the latter runs with just 1).

2. The nsIThreadObserver mechanism that is used by a lot of code to run "after" the current event is a poor fit for anything that runs script. First, the order the observers fire in is the order they were added, not anything fixed by spec. Additionally, running script can cause the event loop to spin, which is a big source of pain here (bholley has some nasty bug caused by this).

3. We run Promises from different points in the code for workers and main thread. The latter runs from XPConnect's nsIThreadObserver callbacks, while the former runs from a hardcoded call to run Promises in the worker event loop. What workers do is particularly problematic because it means we can't get the right recursion depth no matter what we do to nsThread.

The solve this, this patch does the following:

1. Consolidate some handling of microtasks and all handling of stable state from appshell and WorkerPrivate into CycleCollectedJSRuntime.
2. Make the recursionDepth counter only available to CycleCollectedJSRuntime (and its consumers) and remove it from the nsIThreadInternal and nsIThreadObserver APIs.
3. Adjust the recursionDepth counter so that microtasks run with the recursionDepth of the task they are associated with.
4. Introduce the concept of metastable state to replace appshell's RunBeforeNextEvent. Metastable state is reached after every microtask or task is completed. This provides the semantics that bent and I want for IndexedDB, where transactions autocommit at the end of a microtask and do not "spill" from one microtask into a subsequent microtask. This differs from appshell's RunBeforeNextEvent in two ways:
a) It fires between microtasks, which was the motivation for starting this.
b) It no longer ensures that we're at the same event loop depth in the native event queue. bent decided we don't care about this.
5. Reorder stable state to happen after microtasks such as Promises, per HTML. Right now we call the regular thread observers, including appshell, before the main thread observer (XPConnect), so stable state tasks happen before microtasks.
2015-08-11 06:10:46 -07:00
Michal Novotny
6099a60346 Bug 1179255 - (fatal) Assertion failure: aRequest == mCancelable, at netwerk/protocol/websocket/WebSocketChannel.cpp:2766, r=mcmanus 2015-08-11 14:50:08 +02:00
Nicholas Nethercote
0739f752c2 Bug 1182961 (part 2, attempt 2) - Use nsTHashtable::Iterator in CacheIndex. r=michal. 2015-07-26 20:15:36 -07:00
Henry Chang
6aabe8a2a8 Bug 1181137 - Copy all headers from base channel to subresources in the packaged app. r=honzab 2015-07-28 15:34:35 +08:00
Valentin Gosu
f2b9551796 Bug 1190502 - RESOLVE_DISABLE_IPV4 returns A records r=mcmanus
nsHostResolver::ThreadFunc should not override addressFamily with PR_AF_UNSPEC
for IPv6 since GetAddrInfo.cpp::GetAddrInfo() can handle PR_AF_INET6.
_GetAddrInfo_Portable does this before calling PR_GetAddrInfoByName and
creates the AddrInfo with a disableIPv4 flag if necessary.
2015-08-10 11:22:02 +02:00
Valentin Gosu
3b4b717fee Bug 1187159 - Add mochitest for loading packaged apps (iframe+fetch+mozapp) r=jduell 2015-08-10 11:21:59 +02:00
Valentin Gosu
ae94cb7e8f Bug 1187159 - Pass principal and flags from the requesting channel to the packaged app channel r=honzab 2015-08-10 11:21:57 +02:00
Nicholas Nethercote
c024ae64aa Bug 1182961 (part 1, attempt 2) - Use nsTHashtable::Iterator in CacheIndex. r=michal. 2015-07-28 21:14:39 -07:00
Nicholas Nethercote
0d395d3e8d Bug 1182961 (part 3, attempt 2) - Use nsTHashtable::Iterator in CacheIndex. r=michal. 2015-07-26 20:35:31 -07:00
Ehsan Akhgari
39065a06f3 Backout the tests for bug 1187159 for leaks 2015-08-08 18:13:51 -04:00
Ehsan Akhgari
d20f7d0fda Backout bug 1190502 for leaks 2015-08-08 18:13:02 -04:00
Sebastian Hengst
fb625099fe $ hg backout -r 618c213ed8db -r 78a61d56adae -r ca1510a96cc6 -m "Backed out 618c213ed8db (bug 1190502) and 78a61d56adae, ca1510a96cc6 (bug 1187159) for Linux x64 asan M5 fail: LeakSanitizer | leak at mozilla::net::GetLoadContextInfo, mozilla::net::nsHttpChannel::BeginConnect, mozilla::net::nsHttpChannel::OnProxyAvailable. r=backout" 2015-08-08 11:08:13 +02:00
Valentin Gosu
a50d1bd03a Bug 1190502 - RESOLVE_DISABLE_IPV4 returns A records r=mcmanus
nsHostResolver::ThreadFunc should not override addressFamily with PR_AF_UNSPEC
for IPv6 since GetAddrInfo.cpp::GetAddrInfo() can handle PR_AF_INET6.
_GetAddrInfo_Portable does this before calling PR_GetAddrInfoByName and
creates the AddrInfo with a disableIPv4 flag if necessary.
2015-08-08 07:12:02 +02:00
Valentin Gosu
3d6e670981 Bug 1187159 - Add mochitest for loading packaged apps (iframe+fetch+mozapp) r=jduell 2015-08-08 07:11:58 +02:00
Valentin Gosu
427c216cd0 Bug 1187159 - Pass principal and flags from the requesting channel to the packaged app channel r=honzab 2015-08-08 07:11:56 +02:00
Ryan VanderMeulen
e8fc55d44e Merge m-c to inbound. a=merge 2015-08-07 16:13:43 -04:00
Francois Marier
b923a46aed Bug 1141352 - add a pairwise allowlist to tracking protection. r=gcp 2015-08-07 13:08:22 -07:00
Daniel Stenberg
0992be658a Bug 1191258 - check for IFF_RUNNING to detect online interfaces. r=mcmanus 2015-08-05 03:22:00 +02:00
Nicholas Nethercote
b17cb99731 Bug 1182961 (part 5, attempt 2) - Use nsTHashtable::Iterator in nsCookieService. r=michal. 2015-07-26 23:40:51 -07:00
Nicholas Nethercote
17cc4710e3 Bug 1182961 (part 4, attempt 2) - Use nsTHashtable::Iterator in CacheFileHandles. r=michal. 2015-07-26 23:31:22 -07:00
Nicholas Nethercote
0f02e2d073 Backout bff74cecc67c, ffe0edb2aae7, b60b7c267cef, 6da154b43265, bcf6fd3ab9bb (bug 1182961 parts 1--5) for possible intermittent failures and performance problems. 2015-08-06 16:30:47 -07:00
Daniel Stenberg
825ec93fa4 Bug 1191253 - Start the "Link Monitor" thread appropriately. r=mcmanus 2015-08-05 03:13:00 -04:00
Cykesiopka
eb30e6e4e1 Bug 1124649 - Part 1 - Add specific error messages for various types of STS and PKP header failures. r=keeler,hurley 2015-08-05 07:51:00 +02:00
Wes Kocher
a183d75efd Merge m-c to inbound, a=merge 2015-08-05 16:47:52 -07:00
Wes Kocher
34351583f5 Merge b2ginbound to central, a=merge 2015-08-05 16:45:41 -07:00
Ehsan Akhgari
006a0e5932 Bug 1191144 - Remove CACHE_SERVICE_LOCK_WAIT_MAINTHREAD_NSCACHESERVICE_LEAVEPRIVATEBROWSING; r=michal 2015-08-05 11:42:21 -04:00
Patrick McManus
9d4fd83116 Bug 1191291 - convert nsHttpChannel::RetargetDeliveryTo warning to log r=michal.novotny 2015-08-05 09:09:48 -04:00
Carsten "Tomcat" Book
bab4897aec Merge mozilla-central to b2g-inbound 2015-08-05 13:40:29 +02:00
Liang-Heng Chen
63711789ff Bug 1175387 - close file descriptor after detached from STS. r=mcmanus 2015-08-04 20:01:00 +02:00
Patrick McManus
a0738754cd bug 1189692 - add telem for quic advertisements r=hurley 2015-07-31 05:43:24 -04:00
Patrick McManus
38acce4a2d bug 1189645 - remove spdy telem r=hurley 2015-07-31 04:07:07 -04:00