Commit Graph

6437 Commits

Author SHA1 Message Date
Michael Layzell
e7578d66be 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
ee2ebc37ea Bug 1194497 - Convert a few remaining PRUnichar to char16_t. r=roc 2015-08-18 08:09:14 +09:00
Honza Bambas
f559a5a5e2 Bug 1082735 - Don't use InsertElementSorted in HTTP cache, r=michal 2015-08-17 15:18:59 -07:00
Arnaud Bienner
5f922f1572 Bug 1190086 - Use new String::Contains(char) method more widely r=froydnj 2015-08-14 00:49:15 +02:00
Josh Matthews
eeded2cdf9 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é
0b57ddc6de Bug 1190995 - Support the new extension model in b2g r=billm 2015-08-14 16:55:09 -07:00
Fabrice Desré
a7621c2d80 Bug 1190995 - backout 0450f02a2b3b for M1 failures 2015-08-14 17:57:34 -07:00
Fabrice Desré
6c5bfd7cca Bug 1190995 - Support the new extension model in b2g r=billm 2015-08-14 16:55:09 -07:00
Christoph Kerschbaumer
86bc7eb389 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
2d7a5a79d3 Backed out changeset f99b27e40987 (bug 1193924) for B2G emulator bustage.
CLOSED TREE
2015-08-13 12:45:05 -04:00
Christoph Kerschbaumer
447af75903 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
ab4347a363 bug 1193541 - Revert Bug 1191253 - Start the Link Monitor r=backout 2015-08-12 15:57:59 -04:00
Valentin Gosu
a4669e475f 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
25353fa7f4 Bug 1192077 - Convert AndroidBridge JNIEnv calls; r=esawin 2015-08-13 00:53:39 -04:00
Henry Chang
f5137c494d Bug 1185439 - Add preamble to nsIMultiPartChannel for MIME type application/package. r=valentin 2015-08-03 11:17:01 +08:00
Valentin Gosu
c1eb318567 Bug 1172701 - Make GetSubresourceURI normalize the path for packaged resources r=mcmanus 2015-08-12 00:43:48 +02:00
Christoph Kerschbaumer
4f7e0bc85f Bug 1188644 - Use channel->ascynOpen2 in netwerk/test (r=mcmanus) 2015-08-10 10:20:40 -07:00
Kyle Huey
0a62d4d460 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
2ea95e750c 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
df9fddf22b Bug 1182961 (part 2, attempt 2) - Use nsTHashtable::Iterator in CacheIndex. r=michal. 2015-07-26 20:15:36 -07:00
Henry Chang
00d5a637d2 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
4a1d5074f3 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
9b0cc9dea3 Bug 1187159 - Add mochitest for loading packaged apps (iframe+fetch+mozapp) r=jduell 2015-08-10 11:21:59 +02:00
Valentin Gosu
74c5b794d1 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
512bf68d9c Bug 1182961 (part 1, attempt 2) - Use nsTHashtable::Iterator in CacheIndex. r=michal. 2015-07-28 21:14:39 -07:00
Nicholas Nethercote
3d89b3a826 Bug 1182961 (part 3, attempt 2) - Use nsTHashtable::Iterator in CacheIndex. r=michal. 2015-07-26 20:35:31 -07:00
Ehsan Akhgari
dcb8f56ac5 Backout the tests for bug 1187159 for leaks 2015-08-08 18:13:51 -04:00
Ehsan Akhgari
61fdb19818 Backout bug 1190502 for leaks 2015-08-08 18:13:02 -04:00
Sebastian Hengst
82de94b594 $ 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
ab841833ea 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
e681dbf3ed Bug 1187159 - Add mochitest for loading packaged apps (iframe+fetch+mozapp) r=jduell 2015-08-08 07:11:58 +02:00
Valentin Gosu
f67744e5d1 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
9724ee4047 Merge m-c to inbound. a=merge 2015-08-07 16:13:43 -04:00
Francois Marier
a0342a6842 Bug 1141352 - add a pairwise allowlist to tracking protection. r=gcp 2015-08-07 13:08:22 -07:00
Daniel Stenberg
7198d523e0 Bug 1191258 - check for IFF_RUNNING to detect online interfaces. r=mcmanus 2015-08-05 03:22:00 +02:00
Nicholas Nethercote
d1882b67c9 Bug 1182961 (part 5, attempt 2) - Use nsTHashtable::Iterator in nsCookieService. r=michal. 2015-07-26 23:40:51 -07:00
Nicholas Nethercote
1a5ac2af8f Bug 1182961 (part 4, attempt 2) - Use nsTHashtable::Iterator in CacheFileHandles. r=michal. 2015-07-26 23:31:22 -07:00
Nicholas Nethercote
126502630c 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
74dfb00024 Bug 1191253 - Start the "Link Monitor" thread appropriately. r=mcmanus 2015-08-05 03:13:00 -04:00
Cykesiopka
434f38e0f3 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
557c1ce0ff Merge m-c to inbound, a=merge 2015-08-05 16:47:52 -07:00
Wes Kocher
c82d08edb5 Merge b2ginbound to central, a=merge 2015-08-05 16:45:41 -07:00
Ehsan Akhgari
9873217f42 Bug 1191144 - Remove CACHE_SERVICE_LOCK_WAIT_MAINTHREAD_NSCACHESERVICE_LEAVEPRIVATEBROWSING; r=michal 2015-08-05 11:42:21 -04:00
Patrick McManus
89bb111f6c Bug 1191291 - convert nsHttpChannel::RetargetDeliveryTo warning to log r=michal.novotny 2015-08-05 09:09:48 -04:00
Carsten "Tomcat" Book
0448729dad Merge mozilla-central to b2g-inbound 2015-08-05 13:40:29 +02:00
Liang-Heng Chen
2fed1b160b Bug 1175387 - close file descriptor after detached from STS. r=mcmanus 2015-08-04 20:01:00 +02:00
Patrick McManus
f41c4e972f bug 1189692 - add telem for quic advertisements r=hurley 2015-07-31 05:43:24 -04:00
Patrick McManus
d7dfd8218c bug 1189645 - remove spdy telem r=hurley 2015-07-31 04:07:07 -04:00
Nicholas Nethercote
3a8eb37e87 Bug 1182961 (part 5) - Use nsTHashtable::Iterator in nsCookieService. r=michal. 2015-07-26 23:40:51 -07:00
Nicholas Nethercote
5c4088957b Bug 1182961 (part 4) - Use nsTHashtable::Iterator in CacheFileHandles. r=michal. 2015-07-26 23:31:22 -07:00