Commit Graph

2039 Commits

Author SHA1 Message Date
Christoph Kerschbaumer
5814f812b3 Bug 1199491 - Use channel->ascynOpen2 in netwerk/base/nsURIChecker (r=sicking,jduell) 2015-09-11 18:54:00 -07:00
Christoph Kerschbaumer
2767440adb Bug 1199491 - Use channel->ascynOpen2 in netwerk/base (r=sicking) 2015-09-11 18:52:08 -07:00
Dragana Damjanovic
ba5aa49ef6 Bug 1197791 - hide password for uri in error and web console. r=michal r=mrbkap 2015-09-11 08:44:00 +02:00
Nicholas Nethercote
c51f902839 Bug 1202526 (part 2) - Avoid PL_DHashTableRawRemove() in nsLoadGroup. r=mcmanus.
This assumes that it's safe to possibly shrink the table after the removal,
i.e. there are no surprising subtleties with how this table is managed.
2015-09-07 19:20:16 -07:00
Henry Chang
60df40e1eb Bug 1198669 - Add nsIMultiPartChannel.originalResponseHeader support. r=valentin 2015-09-08 10:53:27 +08:00
Henry Chang
c908a71f1a Bug 1178525 - Introduce PackagedAppVerifier and use it to control the timing we serve packaged content. r=valentin. 2015-09-07 19:12:02 +08:00
Masatoshi Kimura
90ba467266 Bug 1201024 - Disable unrestricted RC4 fallback and add RC4-only servers to the fallback whitelist. r=cykesiopka 2015-09-03 21:50:52 +09:00
Masatoshi Kimura
f15a1bf003 Bug 1201023 - Disable fallback whitelist in Nightly/DevEdition. r=cykesiopka 2015-09-03 21:50:51 +09:00
Nicholas Nethercote
69d088e45f Bug 1198334 (part 1) - Replace the opt-in FAIL_ON_WARNINGS with the opt-out ALLOW_COMPILER_WARNINGS. r=glandium.
The patch removes 455 occurrences of FAIL_ON_WARNINGS from moz.build files, and
adds 78 instances of ALLOW_COMPILER_WARNINGS. About half of those 78 are in
code we control and which should be removable with a little effort.
2015-08-27 20:44:53 -07:00
Cykesiopka
8cd8b4d197 Bug 1197644 - Remove the security.ssl.warn_missing_rfc5746 pref. r=keeler 2015-08-24 22:53:42 -07:00
Valentin Gosu
d72b6206c7 Bug 1196021 - Pass requesting channel to PackagedAppService::GetResource r=ckerschb 2015-08-25 03:06:24 +02:00
Valentin Gosu
bb64c34036 Bug 1196021 - Use asyncOpen2 in PackagedAppService r=ckerschb 2015-08-25 03:06:18 +02:00
Francois Marier
bc1fec3bc7 Bug 1197000 - Better debugging output for Safe Browsing list updates. r=gcp 2015-08-21 13:53:53 -07:00
Sylvestre Ledru
081521dd58 Bug 1197215 - Remove now unnecessary uses of ok in the predictor. r=hurley 2015-08-21 20:38:58 +02:00
Christoph Kerschbaumer
a12861eafc Bug 1193552 - Remove baseURI from LoadInfo (r=sicking,jkitch) 2015-08-19 10:43:30 -07:00
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
Arnaud Bienner
5f922f1572 Bug 1190086 - Use new String::Contains(char) method more widely r=froydnj 2015-08-14 00:49:15 +02: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
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
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
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
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
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
Francois Marier
a0342a6842 Bug 1141352 - add a pairwise allowlist to tracking protection. r=gcp 2015-08-07 13:08:22 -07:00
Nicholas Hurley
b8854de4b0 Bug 1190985 - Fix data race in DebugMutexAutoLock r=mcmanus 2015-08-04 14:16:49 -07:00
Birunthan Mohanathas
e1f0334d06 Bug 1191100 - Remove XPIDL signature comments in .cpp files. r=ehsan
Comment-only so DONTBUILD.
2015-08-04 16:17:36 -07:00
Ehsan Akhgari
1f87b6a550 Bug 1185982 - Remove the unused NotifyNetworkActivity::mObs member; r=bagder 2015-08-04 18:29:58 -04:00
Nicholas Hurley
ea6d236bfa Bug 1127618 - make push caches work in e10s. r=mcmanus r=froydnj IGNORE IDL 2015-07-31 13:50:08 -07:00
Nicholas Hurley
23ef32a1da Bug 1127618 (prereq) - Fix compile errors caused by files moving from one unified file to another. r=mcmanus 2015-07-31 13:48:26 -07:00
Valentin Gosu
8c5113ec82 Bug 1189852 - link broken when a line break is part of the hash r=mcmanus 2015-08-03 21:00:16 +02:00
Nicholas Hurley
643f67d3ef Bug 1152048 - Send wakeup notification asynchronously to avoid reentrancy issues. r=bagder 2015-07-31 13:39:48 -07:00
Nicholas Hurley
7cdde5b0a2 Bug 1152048 - Make the RELEASE_ASSERT on the sts lock a DIAGNOSTIC_ASSERT. r=bagder 2015-07-31 13:33:48 -07:00
Carsten "Tomcat" Book
3ab2f465e5 Backed out changeset fb2a27db76bc (bug 1032254) for OS X Static Build Bustage on a CLOSED TREE 2015-07-31 07:57:50 +02:00
Valentin Gosu
aefe552c95 Bug 1032254 - Provide a way to pin resources in the http cache r=honzab 2015-07-30 11:40:00 +02:00
Wes Kocher
9b80d96625 Backed out changeset 2bdaed564656 (bug 1125961) for b2g emulator mochitest-21 failures starting in test_fetch_event_client_postmessage.html 2015-07-30 14:53:38 -07:00
Josh Matthews
8d12a449ea Bug 1125961 - Allow sending null PBrowser actors when there's a triggering principal which can be used for security checks. r=bkelly,ddamjano 2015-06-03 15:07:42 -04:00
Wes Kocher
cb7dc67ce2 Merge b2ginbound to central, a=merge 2015-07-29 20:19:12 -07:00
Jessica Jong
1946d8f903 Bug 1167132 - Part 13: [NetworkManager] Move network information into a separate interface (Necko/NetStats). r=ethan 2015-07-29 02:14:00 -04:00
Bobby Holley
59c4d9cf6c Bug 1188696 - Hoist nsRefPtr.h into MFBT. r=froydnj 2015-07-29 10:44:59 -07:00
Bobby Holley
c03238a338 Bug 1186152 - Implement nsIProtocolHandlerWithDynamicFlags and use it for moz-extension. r=bz 2015-07-28 12:26:51 -07:00
Panos Astithas
28cdb7fa38 Bug 1145503 - TP exceptions added while in Private Browsing mode persist beyond the Private Browsing session. r=ehsan 2015-07-26 13:23:12 +03:00
Nicholas Hurley
ef17711f71 Bug 1181258 - Limit URI length the predictor keeps. r=honzab 2015-07-23 12:21:59 -07:00
Dragana Damjanovic
fe3a563f9c Bug 1183579 - Inline some function needed purplexpcom. r=jduell 2015-07-14 04:02:00 +02:00
Dragana Damjanovic
8d48b12acf Bug 1182066 - Enforce defaultLoadFlags for all requests. r=mayhemer 2015-07-21 09:23:00 -04:00
Franziskus Kiefer
f1c5f3d8c5 Bug 1174913 - remove unnecessary attribute parsing. r=bz 2015-07-13 18:04:42 -07:00
Franziskus Kiefer
6dd91e6e8a Bug 1174913 - anchor and area referrer attributes. r=ckerschb, r=bz 2015-06-05 15:25:24 -07:00