Commit Graph

3926 Commits

Author SHA1 Message Date
Ehsan Akhgari
a9097bf0fb Bug 1213150 - Part 3: Remove nsIInterceptedChannel.isNavigation; r=jdm 2015-10-09 10:52:56 -04:00
Ehsan Akhgari
f303ed36f2 Bug 1213150 - Part 2: Rework ShouldPrepareForIntercept() in terms of subresource requests; r=jdm 2015-10-09 10:52:55 -04:00
Henry
4f83bb6af3 Bug 1210573 - Add attribute 'packageIdentifier' to nsIPackagedAppUtils. r=valentin. 2015-10-07 20:02:00 +02:00
Valentin Gosu
a83aaacc09 Bug 1199430 - Reject hostnames containing @. r=mcmanus
--HG--
extra : rebase_source : 12ab477ffb559055386f0705e0de37cb4a353410
2015-09-03 21:15:30 +02:00
Ehsan Akhgari
158253749d Bug 1210302 - Part 3: Add a NS_ParseRequestContentType API; r=mcmanus,sicking 2015-10-06 20:26:46 -04:00
Ehsan Akhgari
c3300a106e Bug 1210302 - Part 2: Rename NS_ParseContentType to NS_ParseResponseContentType; r=mcmanus,sicking 2015-10-06 20:24:51 -04:00
Ehsan Akhgari
b62b1c1bb8 Bug 1210302 - Part 1: Rename nsINetUtil.parseContentType() to parseResponseContentType(); r=mcmanus 2015-10-06 20:24:49 -04:00
Ben Kelly
d080cc4a26 Bug 1210941 P1 Create the LOAD_BYPASS_SERVICE_WORKER flag. r=jduell 2015-10-06 06:37:06 -07:00
Henry Chang
10017eda0f Bug 1186290 - Notify TabParent to switch process when loading a signed package. r=honzab, r=kanru. 2015-10-02 05:25:22 -07:00
Christoph Kerschbaumer
10581fce1b Bug 1206199 - Extend channelwrapper to mediate OnStartRequest, OnStopRequest, OnDataAvailable (r=sicking) 2015-10-05 19:01:35 -07:00
Ethan Tseng
583b7001e7 Bug 1165267 - Part 0: Add util functions NS_GetOriginAttributes. r=honzab 2015-09-03 10:46:03 +08:00
Dragana Damjanovic
e1927c0575 Bug 1152046 - move ClosingService::Start/Shutdown to nsIOService. r=mayhemer
--HG--
extra : rebase_source : 473295104e37947bcb6bd531b5c4eb00f7956b64
2015-10-04 13:43:00 +02:00
Bobby Holley
75a560dba5 Bug 1208756 - Introduce URI_FETCHABLE_BY_ANYONE and use it for moz-extension. r=bz
This matches the behavior described in
https://developer.chrome.com/extensions/manifest/web_accessible_resources
2015-10-02 15:02:07 -07:00
Cervantes Yu
ad24e39fa4 Bug 1204837, Part 1: Make ClosingService thread Nuwa-friedly. r=khuey 2015-09-16 18:55:44 +08:00
Seth Fowler
ee578a0619 Bug 1118926 (Part 1) - Remove remnants of -moz-resolution in C++ code. r=tn 2015-09-30 17:00:52 -07:00
Jason Orendorff
deb2270515 Bug 1054756, part 5 - Remove Class::convert.
--HG--
extra : commitid : 6KCxWrCseSZ
extra : rebase_source : 63f3cd6ec1ade43c732ffd9b661fe6f2dca9eb4b
2015-03-20 16:28:59 -05:00
Ehsan Akhgari
3414ffd758 Bug 1207556 - Part 1: Stop reusing the loadinfo in StartCORSPreflight; r=sicking 2015-09-26 12:34:16 -04:00
Francois Marier
04e5ed4966 Bug 1208285 - Improve TP debug logging. r=gcp 2015-09-25 20:39:49 -07:00
Wes Kocher
dab2db0590 Backed out 2 changesets (bug 1207556) for leaks in various mochitests
Backed out changeset bd1eed74e2ec (bug 1207556)
Backed out changeset 3260a147595a (bug 1207556)
2015-09-25 14:46:03 -07:00
Ehsan Akhgari
63ed1d6a3e Bug 1207556 - Part 1: Stop reusing the loadinfo in StartCORSPreflight; r=sicking 2015-09-25 16:09:28 -04:00
Jonathan Hao
ae5a452f5b Bug 1178518 - Packaged App Utils. r=valentin 2015-09-18 11:50:37 +08:00
Ehsan Akhgari
0bc360edc4 Bug 1204581 - Add a deprecation warning for the usage of AppCache when service worker fetch interception is enabled; r=mcmanus,baku 2015-09-24 10:09:10 -04:00
Carsten "Tomcat" Book
5a0ec4d078 Backed out 1 changesets (bug 1152046) for bustage again on a CLOSED TREE
Backed out changeset f579176f1c3e (bug 1152046)

--HG--
extra : rebase_source : b8ccc1b596438abfac81d230f49e821622b5c84b
extra : amend_source : a1e5fd53d07a690ae00794aa268973854a466b23
2015-09-24 08:31:34 +02:00
Dragana Damjanovic
5dbbbf93f4 Bug 1152046 - Disable ClosingService for Firefox OS. r=mcmanus
--HG--
extra : rebase_source : fc005bccf525a785e9b87d47236b738eb384c88e
2015-09-23 09:49:00 +02:00
Carsten "Tomcat" Book
8c6fb25f01 Merge mozilla-central to fx-team
--HG--
rename : ipc/chromium/src/third_party/libevent-avoid-empty-sighandler.patch => ipc/chromium/src/third_party/libevent/patches/avoid-empty-sighandler.patch
rename : ipc/chromium/src/third_party/libevent-dont-use-issetugid-on-android.patch => ipc/chromium/src/third_party/libevent/patches/dont-use-issetugid-on-android.patch
rename : ipc/chromium/src/third_party/libevent/mac-arc4random-buf.patch => ipc/chromium/src/third_party/libevent/patches/mac-arc4random-buf.patch
rename : ipc/chromium/src/third_party/libevent/openbsd-no-arc4random_addrandom.patch => ipc/chromium/src/third_party/libevent/patches/openbsd-no-arc4random_addrandom.patch
rename : ipc/chromium/src/third_party/libevent-use-non-deprecated-syscalls.patch => ipc/chromium/src/third_party/libevent/patches/use-non-deprecated-syscalls.patch
rename : testing/web-platform/mozilla/tests/service-workers/service-worker/getregistrations.sub.html => testing/web-platform/mozilla/tests/service-workers/service-worker/getregistrations.https.html
extra : rebase_source : 67b20330e6107d82c58c1fb0d90926d799380b54
2015-09-23 12:40:30 +02:00
Florian Quèze
239d577df1 Bug 862148 - remove the DATA_* and TYPE_* constants from nsISearchEngine, r=adw. 2015-09-23 12:05:37 +02:00
Florian Quèze
7f751627bc Bug 862148 - stop supporting installation of Sherlock plugins through Services.search.addEngine, r=adw. 2015-09-23 12:05:36 +02:00
Nathan Froyd
3eae8069d0 Bug 1202497 - part 7 - make nsEventQueue use external locking; r=gerald
We want to ensure that nsThread's use of nsEventQueue uses locking done
in nsThread instead of nsEventQueue, for efficiency's sake: we only need
to lock once in nsThread, rather than the current situation of locking
in nsThread and additionally in nsEventQueue.  With the current
structure of nsEventQueue, that would mean that nsThread should be using
a Monitor internally, rather than a Mutex.

Which would be well and good, except that DOM workers use nsThread's
mutex to protect their own, internal CondVar.  Switching nsThread to use
a Monitor would mean that either:

- DOM workers drop their internal CondVar in favor of nsThread's
  Monitor-owned CondVar.  This change seems unlikely to work out well,
  because now the Monitor-owned CondVar is performing double duty:
  tracking availability of events in nsThread's event queue and
  additionally whatever DOM workers were using a CondVar for.  Having a
  single CondVar track two things in such a fashion is for Experts Only.

- DOM workers grow their own Mutex to protect their own CondVar.  Adding
  a mutex like this would change locking in subtle ways and seems
  unlikely to lead to success.

Using a Monitor in nsThread is therefore untenable, and we would like to
retain the current Mutex that lives in nsThread.  Therefore, we need to
have nsEventQueue manage its own condition variable and push the
required (Mutex) locking to the client of nsEventQueue.  This scheme
also seems more fitting: external clients merely need synchronized
access to the event queue; the details of managing notifications about
events in the event queue should be left up to the event queue itself.

Doing so also forces us to merge nsEventQueueBase and nsEventQueue:
there's no way to have nsEventQueueBase require an externally-defined
Mutex and then have nsEventQueue subclass nsEventQueueBase and provide
its own Mutex to the superclass.  C++ initialization rules (and the way
things like CondVar are constructed) simply forbid it.  But that's OK,
because we want a world where nsEventQueue is externally locked anyway,
so there's no reason to have separate classes here.

One casualty of this work is removing ChaosMode support from
nsEventQueue.  nsEventQueue had support to delay placing events into the
queue, theoretically giving other threads the chance to put events there
first.  Unfortunately, since the thread would have been holding a lock
(as is evident from the MutexAutoLock& parameter required), sleeping in
PutEvent accomplishes nothing but delaying the thread from getting
useful work done.  We should support this, but it's complicated to
figure out how to reasonably support this right now.

A wrinkle in this overall pleasant refactoring is that nsThreadPool's
threads wait for limited amounts of time for new events to be placed in
the event queue, so that they can shut themselves down if no new events
are appearing.  Setting limits on the number of threads also needs to be
able to wake up all threads, so threads can shut themselves down if
necessary.

Unfortunately, with the transition to nsEventQueue managing its own
condition variable, there's no way for nsThreadPool to perform these
functions, since there's no Monitor to wait on.  Therefore, we add a
private API for accessing the condition variable and performing the
tasks nsThreadPool needs.

Prior to all the previous patches, placing items in an nsThread's event
queue required three lock/unlock pairs: one for nsThread's Mutex, one to
enter nsEventQueue's ReentrantMonitor, and one to exit nsEventQueue's
ReentrantMonitor.  The upshot of all this work is that we now only
require one lock/unlock pair in nsThread itself, as things should be.
2015-09-20 05:13:09 -04:00
Nathan Froyd
c6238d0d96 Bug 1202497 - part 6 - make the locking requirements of nsEventQueue explicit; r=gerald
Like the previous patch, this patch is a no-op change in terms of
functionality.  It does, however, pave part of the way for forcing
clients of nsEventQueue to provide their own locking.
2015-09-21 04:34:51 -04:00
Nikhil Marathe
48d53f38df Bug 1184798 - Ensure workers loads are treated as non-subresource fetches. r=jdm
--HG--
extra : commitid : KSrA2sDx3MI
extra : rebase_source : c28988811316aa40e38752669a928d27750001b6
2015-09-17 11:56:41 -07:00
Ehsan Akhgari
5d40efa578 Bug 1206894 - Enable asynchronous dispatching of fetch events; r=jdm
This refactoring patch separates the preparation of the fetch event
object from its dispatching, so that consumers would be able to
dispatch the event asynchronously.
2015-09-21 20:59:27 -04:00
Patrick McManus
53b6eb3848 bug 1187239 - ontransportstatus SENDING_TO should not use request stream re-entrantly r=hurley r=bz 2015-09-15 18:12:37 -04:00
Nicholas Hurley
3054507124 Bug 1198058 - Fix crashes inspecting loadGroups in browser toolbox. r=mcmanus 2015-09-16 09:31:19 -07:00
Dragana Damjanovic
b77e0cb62b Bug 1204529 - mMaxTimePerPollIter should be atomic. r=mcmanus 2015-09-16 10:23:00 +02:00
Lee Salzman
da5fa47c15 Bug 1205016: double ClosingService thread stack size to avoid stack overflow r=glandium 2015-09-16 20:31:43 -04:00
Nicholas Nethercote
647b520991 Bug 1201135 - Rename pldhash.{h,cpp} to PLDHashTable.{h,cpp}. r=mccr8.
--HG--
rename : xpcom/glue/pldhash.cpp => xpcom/glue/PLDHashTable.cpp
rename : xpcom/glue/pldhash.h => xpcom/glue/PLDHashTable.h
extra : rebase_source : 06b9d30db96ed78500fd44d9c0b51609103508a3
2015-09-15 20:49:53 -07:00
Francois Marier
b0afa1e0fc Bug 1205138 - Cleanup tracking protection warnings and logs. r=gcp 2015-09-16 16:42:08 -07:00
Nigel Babu
1d36e1a565 Backed out changeset d5d0b5994149 (bug 1152046) for b2g debug hustdown hangs
CLOSED TREE
2015-09-16 11:44:12 +05:30
Patrick McManus
daaeed9ec1 bug 1152046 - Revert Make separate thread only for PRClose. r=backout
This reverts commit 760a84e7cf.
2015-09-15 21:40:28 -04:00
Nicholas Nethercote
2ee4fd783b Bug 1121760 (part 6) - Move all remaining PL_DHash*() functions into PLDHashTable. r=poiru.
--HG--
extra : rebase_source : 3cdc975507170d783b02d70f7c7d95c6bf2e1bcd
2015-09-14 14:23:47 -07:00
Nicholas Nethercote
59683492e5 Bug 1121760 (part 3) - Remove PL_DHashTableRemove(). r=poiru.
--HG--
extra : rebase_source : c34d693de4aca45f2ea05c2767c8b1007c89df29
2015-09-14 14:23:24 -07:00
Nicholas Nethercote
479244f7c9 Bug 1121760 (part 2) - Remove PL_DHashTableAdd(). r=poiru.
--HG--
extra : rebase_source : 41eb939bfb5c925cba58b1af57abce9a4e5fdb30
2015-09-14 14:23:12 -07:00
Nicholas Nethercote
fcfdd8f54b Bug 1121760 (part 1) - Remove PL_DHashTableSearch(). r=poiru.
--HG--
extra : rebase_source : 770e1f49a451ecbadd778e071b204611e27cf701
2015-05-21 00:34:25 -07:00
Shu-yu Guo
64db2267cf Bug 1202902 - Mass replace toplevel 'let' with 'var' in preparation for global lexical scope. (rs=jorendorff) 2015-09-15 11:19:45 -07:00
Ben Kelly
6195e9f02c Bug 1203680 P3 Add a method to ensure an http upload stream is directly cloneable. r=mcmanus 2015-09-15 10:15:45 -07:00
Dragana Damjanovic
09970df1f7 Bug 1204043 - remove mServeMultipleEventsPerPollIter pref. r=mcmanus 2015-09-15 05:10:00 +02:00
Christoph Kerschbaumer
36d3d42c2b Bug 1204648 - Support AsyncOpen2,Open2,nsIUploadChannel and nsIUploadChannel2 on nsSecCheckWrapChannelBase. r=sicking 2015-09-14 14:21:03 -07:00
Christoph Kerschbaumer
1e5ee64415 Bug 1195162 - Use channel->ascynOpen2 dom/xbl/nsXBLService.cpp (r=sicking) 2015-09-14 18:59:35 -07:00
Wes Kocher
a336f83a0a Backed out 9 changesets (bug 1203680) for mochitest bustage CLOSED TREE
Backed out changeset e4733b9eb53c (bug 1203680)
Backed out changeset fb33eb2a55b0
Backed out changeset eb42e21bbb96 (bug 1203680)
Backed out changeset 86642d84e604 (bug 1203680)
Backed out changeset 1026da4b02fb (bug 1203680)
Backed out changeset 311f9810e0b3 (bug 1203680)
Backed out changeset 6fedc85dc0d9 (bug 1203680)
Backed out changeset b25230c0a193 (bug 1093357)
Backed out changeset 2369d63ef14a (bug 1203680)
2015-09-14 14:27:57 -07:00
Ben Kelly
35d27caaa0 Bug 1203680 P3 Add a method to ensure an http upload stream is directly cloneable. r=mcmanus 2015-09-14 12:04:56 -07:00
Nathan Froyd
fd7eb3b17b Bug 1204042 - make nsSocketTransportService::mTelemetryEnabledPref an atomic variable; r=mcmanus
This variable is written on the main thread (where we can access prefs),
but read on the socket thread on every poll iteration to decide whether
we should record telemetry information.  Making it atomic communicates
our intent to read/write the value on multiple threads without any
locking.  Using relaxed memory consistency is just as efficient as what
we have today, and it does not seem terribly crucial whether the *very
next* poll iteration records telemetry once the pref is updated, or
whether we can eventually get the correct value on the socket thread.
2015-09-11 21:03:53 -04:00
Dragana Damjanovic
760a84e7cf Bug 1152046 - Make separate thread only for PRClose. r=mcmanus r=mayhemer
--HG--
extra : rebase_source : a4f4845023d6cebdd56d75b1ff7afd29447d2167
2015-09-10 19:07:00 +02:00
Christoph Kerschbaumer
485f77a94c Bug 1199491 - Use channel->ascynOpen2 in netwerk/base/nsURIChecker (r=sicking,jduell) 2015-09-11 18:54:00 -07:00
Christoph Kerschbaumer
c62acea869 Bug 1199491 - Use channel->ascynOpen2 in netwerk/base (r=sicking) 2015-09-11 18:52:08 -07:00
Dragana Damjanovic
4504f5f395 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
f2ac4f7d13 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
a524fde346 Bug 1198669 - Add nsIMultiPartChannel.originalResponseHeader support. r=valentin 2015-09-08 10:53:27 +08:00
Henry Chang
d0d222b8de 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
dbfc3317da 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
f54d2601ee Bug 1201023 - Disable fallback whitelist in Nightly/DevEdition. r=cykesiopka 2015-09-03 21:50:51 +09:00
Nicholas Nethercote
f44287005f 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.

--HG--
extra : rebase_source : 82e3387abfbd5f1471e953961d301d3d97ed2973
2015-08-27 20:44:53 -07:00
Cykesiopka
0d6549c972 Bug 1197644 - Remove the security.ssl.warn_missing_rfc5746 pref. r=keeler
--HG--
extra : transplant_source : %90%28%11%DB%E53%93%7C%F2%D6%5Ek%CC%DC%BE%FAe%F2%896
2015-08-24 22:53:42 -07:00
Valentin Gosu
7833654240 Bug 1196021 - Pass requesting channel to PackagedAppService::GetResource r=ckerschb 2015-08-25 03:06:24 +02:00
Valentin Gosu
ac53c9a29f Bug 1196021 - Use asyncOpen2 in PackagedAppService r=ckerschb 2015-08-25 03:06:18 +02:00
Francois Marier
186536664b Bug 1197000 - Better debugging output for Safe Browsing list updates. r=gcp 2015-08-21 13:53:53 -07:00
Sylvestre Ledru
e12068b89d Bug 1197215 - Remove now unnecessary uses of ok in the predictor. r=hurley 2015-08-21 20:38:58 +02:00
Christoph Kerschbaumer
3e6c68863f Bug 1193552 - Remove baseURI from LoadInfo (r=sicking,jkitch) 2015-08-19 10:43:30 -07:00
Michael Layzell
945c9a35f4 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
2755fa9a57 Bug 1190086 - Use new String::Contains(char) method more widely r=froydnj
--HG--
extra : rebase_source : 81df1495200d3734ea1c4c13818ae764a445f4b3
2015-08-14 00:49:15 +02:00
Christoph Kerschbaumer
a2927d618d 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
ec552557f5 Backed out changeset f99b27e40987 (bug 1193924) for B2G emulator bustage.
CLOSED TREE
2015-08-13 12:45:05 -04:00
Christoph Kerschbaumer
ecdc701ca0 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
66e6a2979d 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
d1f529698f Bug 1192077 - Convert AndroidBridge JNIEnv calls; r=esawin 2015-08-13 00:53:39 -04:00
Henry Chang
479a6cdcaf Bug 1185439 - Add preamble to nsIMultiPartChannel for MIME type application/package. r=valentin 2015-08-03 11:17:01 +08:00
Kyle Huey
76e3009ab8 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
e188358d0d 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
14eb00afeb $ 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
1e73e39a9d 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
e5ccece7d7 Bug 1141352 - add a pairwise allowlist to tracking protection. r=gcp
--HG--
rename : toolkit/components/url-classifier/tests/mochitest/test_privatebrowsing_trackingprotection.html => toolkit/components/url-classifier/tests/mochitest/test_trackingprotection_whitelist.html
rename : toolkit/components/url-classifier/tests/mochitest/classifiedAnnotatedPBFrame.html => toolkit/components/url-classifier/tests/mochitest/whitelistFrame.html
2015-08-07 13:08:22 -07:00
Nicholas Hurley
65fb80c877 Bug 1190985 - Fix data race in DebugMutexAutoLock r=mcmanus
--HG--
extra : rebase_source : 27a37b0244ae734e39291ae298d65593c9c83f67
2015-08-04 14:16:49 -07:00
Birunthan Mohanathas
7315345693 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
ec6c2f89ae Bug 1185982 - Remove the unused NotifyNetworkActivity::mObs member; r=bagder 2015-08-04 18:29:58 -04:00
Nicholas Hurley
16407ea724 Bug 1127618 - make push caches work in e10s. r=mcmanus r=froydnj IGNORE IDL
--HG--
extra : rebase_source : 24dd37c6eaec83a1776d77632b97106e8abb8015
2015-07-31 13:50:08 -07:00
Nicholas Hurley
d61d6f4984 Bug 1127618 (prereq) - Fix compile errors caused by files moving from one unified file to another. r=mcmanus
--HG--
extra : rebase_source : b4f3b2487e5a7393114067ffd632c9df6c767b73
2015-07-31 13:48:26 -07:00
Valentin Gosu
089141cbff 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
abb4485542 Bug 1152048 - Send wakeup notification asynchronously to avoid reentrancy issues. r=bagder
--HG--
extra : rebase_source : 059c2292f443c972e144256298987e05f22c58f3
extra : histedit_source : 1ff8d3674fc3c911f83b80d920ee57f7d00def1a
2015-07-31 13:39:48 -07:00
Nicholas Hurley
e3cddeaf6a Bug 1152048 - Make the RELEASE_ASSERT on the sts lock a DIAGNOSTIC_ASSERT. r=bagder
--HG--
extra : rebase_source : ad174342a2ed85229611a848314776d8c5568287
extra : histedit_source : dea062e08393566ab0b00c8afa2ff3d1f3d302fe
2015-07-31 13:33:48 -07:00
Carsten "Tomcat" Book
9fcb673926 Backed out changeset fb2a27db76bc (bug 1032254) for OS X Static Build Bustage on a CLOSED TREE
--HG--
rename : netwerk/test/unit/test_cache2-29a-concurrent_read_resumable_entry_size_zero.js => netwerk/test/unit/test_cache2-28-concurrent_read_resumable_entry_size_zero.js
rename : netwerk/test/unit/test_cache2-29b-concurrent_read_non-resumable_entry_size_zero.js => netwerk/test/unit/test_cache2-29-concurrent_read_non-resumable_entry_size_zero.js
2015-07-31 07:57:50 +02:00
Valentin Gosu
30be843b5b Bug 1032254 - Provide a way to pin resources in the http cache r=honzab
--HG--
rename : netwerk/test/unit/test_cache2-28-concurrent_read_resumable_entry_size_zero.js => netwerk/test/unit/test_cache2-29a-concurrent_read_resumable_entry_size_zero.js
rename : netwerk/test/unit/test_cache2-29-concurrent_read_non-resumable_entry_size_zero.js => netwerk/test/unit/test_cache2-29b-concurrent_read_non-resumable_entry_size_zero.js
2015-07-30 11:40:00 +02:00
Wes Kocher
98e5242831 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
77fd3928cf 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
1ca8b1de87 Merge b2ginbound to central, a=merge 2015-07-29 20:19:12 -07:00
Jessica Jong
3d60b78a00 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
97b9240b34 Bug 1188696 - Hoist nsRefPtr.h into MFBT. r=froydnj 2015-07-29 10:44:59 -07:00
Bobby Holley
4fefff8e42 Bug 1186152 - Implement nsIProtocolHandlerWithDynamicFlags and use it for moz-extension. r=bz 2015-07-28 12:26:51 -07:00
Panos Astithas
398e652b24 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
b99d1f87cc Bug 1181258 - Limit URI length the predictor keeps. r=honzab 2015-07-23 12:21:59 -07:00
Dragana Damjanovic
d2a76a0465 Bug 1183579 - Inline some function needed purplexpcom. r=jduell
--HG--
extra : rebase_source : 600a10f2b1d8731534d0e6eedeed6ff4744a86e7
2015-07-14 04:02:00 +02:00
Dragana Damjanovic
c5dbe5ac93 Bug 1182066 - Enforce defaultLoadFlags for all requests. r=mayhemer
--HG--
extra : rebase_source : f2239d857000f4dab462fa043a18600919151816
2015-07-21 09:23:00 -04:00
Franziskus Kiefer
b4e4b6d771 Bug 1174913 - remove unnecessary attribute parsing. r=bz 2015-07-13 18:04:42 -07:00
Franziskus Kiefer
e97220a88e Bug 1174913 - anchor and area referrer attributes. r=ckerschb, r=bz 2015-06-05 15:25:24 -07:00
Ehsan Akhgari
f2b409b6c9 Bug 1185515 follow-up: Include nsProxyRelease.h in nsUDPSocket.h, landed on a CLOSED TREE 2015-07-20 18:17:54 -04:00
Christoph Kerschbaumer
2ddb4064ec Bug 1143922 - Add AsyncOpen2 to nsIChannel and perform security checks when opening a channel - channel changes (r=mcmanus,sicking) 2015-05-15 13:21:20 -07:00
Christoph Kerschbaumer
bf53f62d80 Bug 1143922 - Add AsyncOpen2 to nsIChannel and perform security checks when opening a channel - loadinfo changes (r=sicking,tanvi,sworkman) 2015-07-19 19:11:57 -07:00
Christoph Kerschbaumer
bcc6bfffb4 Bug 1175803 - Store redirect chain within loadInfo - part 2 (r=sicking,mayhemer) 2015-07-19 19:43:09 -07:00
Christoph Kerschbaumer
c0cc3c5614 Bug 1175803 - Store redirect chain within loadInfo - part 1 (r=sicking,mayhemer) 2015-07-19 19:11:03 -07:00
Michael Layzell
9d564ec2dd Bug 1173523 - Part 1: Expose an nsIPrincipal from nsIPermission rather than a host string, appId, and isInBrowserElement, r=ehsan 2015-07-16 14:49:22 -04:00
Benoit Girard
fe3dfcf5b2 Bug 1182516 - Add Chaos Mode environment variable MOZ_CHAOSMODE. r=roc
--HG--
extra : commitid : qfYBMvxZ7k
extra : rebase_source : 4c7098464712d7e5fa88ba1d8fba7c044772b0d6
2015-07-14 17:29:23 -04:00
Francois Marier
741f8fa206 Bug 1180323 - Only look at TP table before cancelling speculative connections. r=gcp
--HG--
extra : transplant_source : w/%18%F8VL%0B%F4%D2%2ApY%03%D8%26%B2%26A%A1%13
2015-07-11 19:19:29 +02:00
Wes Kocher
ff2f0d32cf Backed out 24 changesets (bug 1173523, bug 1172080, bug 817007, bug 1165263) for android reftest bustage CLOSED TREE
Backed out changeset 84fe04b2e7d1 (bug 1172080)
Backed out changeset 0ff004760a1f (bug 1172080)
Backed out changeset af147585ad55 (bug 1165263)
Backed out changeset c3af8ebb6db0 (bug 1165263)
Backed out changeset cd3f33a888fe (bug 1165263)
Backed out changeset e5db39044a1e (bug 1165263)
Backed out changeset c01c9ed77061 (bug 1165263)
Backed out changeset fb723aaa4267 (bug 1165263)
Backed out changeset f754e52e74dc (bug 1165263)
Backed out changeset c6bda3a0afd6 (bug 817007)
Backed out changeset bfa100253349 (bug 817007)
Backed out changeset b787b3f9aadc (bug 1173523)
Backed out changeset 4a0676b73f77 (bug 1173523)
Backed out changeset 82034a4560c5 (bug 1173523)
Backed out changeset 4bdb91114c7a (bug 1173523)
Backed out changeset 72406261eccc (bug 1173523)
Backed out changeset 541b6faf7196 (bug 1173523)
Backed out changeset 1caac4569616 (bug 1173523)
Backed out changeset 0d4f9f9e1b4e (bug 1173523)
Backed out changeset 2d5661eb966c (bug 1173523)
Backed out changeset 89833c0bb0cd (bug 1173523)
Backed out changeset ea64d70eacfe (bug 1173523)
Backed out changeset a8e4f1c0c445 (bug 1173523)
Backed out changeset cf498d466b85 (bug 1173523)
2015-07-14 14:00:32 -07:00
Ben Kelly
e2321797dc Bug 1173934 Show a message if a docshell fails to load due to SW intercept failure. r=ehsan r=jdm 2015-07-14 13:11:26 -07:00
Michael Layzell
56a5f8273e Bug 1173523 - Part 1: Expose an nsIPrincipal from nsIPermission rather than a host string, appId, and isInBrowserElement, r=ehsan 2015-07-14 15:06:15 -04:00
Valentin Gosu
9d522729df Bug 1182515 - Clear reference to captive portal service when observing xpcom-shutdown. r=mcmanus 2015-07-13 15:50:58 +02:00
Christoph Kerschbaumer
2bd129394d Bug 1180964 - Provide a C++ friendly version of LoadInfo on nsIChannel - IGNORE IDL (r=sicking,sworkman) 2015-07-13 22:50:34 -07:00
Christoph Kerschbaumer
c255f4187b Bug 1179505 - Make LoadInfo arguments optional in ipdl (r=bent,sicking) 2015-07-13 22:43:13 -07:00
Birunthan Mohanathas
a8939590de Bug 1182996 - Fix and add missing namespace comments. rs=ehsan
The bulk of this commit was generated by running:

  run-clang-tidy.py \
    -checks='-*,llvm-namespace-comment' \
    -header-filter=^/.../mozilla-central/.* \
    -fix
2015-07-13 08:25:42 -07:00
Valentin Gosu
ee3e5e80ec Bug 1179779 - Neither XRE_START_OFFLINE nor -offline work any more. r=mayhemer 2015-07-08 15:56:12 +02:00
Wes Kocher
aec62d3dc0 Backed out changeset adf95d1cd0aa (bug 1173934) for fetch-frame-resource.https.html WPT orange and test_synthesized_response.js S4 orange CLOSED TREE
--HG--
extra : amend_source : 82d7af13e11137e614b0b1bd12f5af3108551bfc
2015-07-10 15:59:01 -07:00
Ben Kelly
2a31a01e4b Bug 1173934 Show a message if a docshell fails to load due to SW intercept failure. r=ehsan r=jdm 2015-07-10 14:28:32 -07:00
Christoph Kerschbaumer
7685654149 Bug 1139297 - Implement CSP upgrade-insecure-requests directive - loadinfo changes (r=sicking,sworkman)
--HG--
extra : rebase_source : 3582ac42bcd0cc0dee332505880c2a65d87964eb
2015-07-10 13:57:55 -07:00
Randell Jesup
c87c478f4f Bug 1155059: Patch 1&2 - Convert Dispatch() and friends to already_AddRefed<> r=froydnj
Modify Dispatch IDL and code to deal with MSVC issues with overloaded templates r=froydnj
2015-07-09 23:21:46 -04:00
Julian Seward
522ddb2178 Bug 1180195 - Uninitialised value use in Predictor::SpaceCleaner::OnMetaDataElement. r=hurley@todesschaf.org.
--HG--
extra : rebase_source : 80764bcd5cedd114c57af335dbc11a559a0f379b
2015-07-09 00:18:54 +02:00
Dragana Damjanovic
4900e9e338 Bug 1152046 - add telemetry for time spent in connect/close. r=mayhemer
--HG--
extra : rebase_source : 1166706f2360016b020aa5de8ab9a1c4f431b9b7
2015-07-07 11:13:00 +02:00
Dragana Damjanovic
7987d2203e Bug 905127 - Part 2 - remove unnecessary nsNetUtil.h includes r=jduell 2015-07-06 07:55:00 +02:00
Emanuel Hoogeveen
7d1e52f2ff Bug 905127 - Part 1 - Make some functions from nsNetUtil not inline. r=jduell 2015-07-07 04:17:00 +02:00
Dragana Damjanovic
8ac07f817c Bug 905127 - Make some functions from nsNetUtil not inline. r=jduell 2015-05-20 04:48:00 +02:00
Juan Gomez
258ad59e3f Bug 1171931 - Refactor duplicated code using XRE_IsParent/ContentProcess. r=froydnj 2015-07-03 18:29:00 -07:00
Michael Layzell
3eb46d5372 Bug 1170200 - Part 1: Change the API for nsIPermissionManager::Remove() to accept a URI instead of a string; r=ehsan 2015-07-03 17:12:17 -04:00
Ehsan Akhgari
4484832cb5 Backout bug 1170200 because of test failures on a CLOSED TREE 2015-07-03 16:43:47 -04:00
Michael Layzell
0e9fa18ac8 Bug 1170200 - Part 1: Change the API for nsIPermissionManager::Remove() to accept a URI instead of a string; r=ehsan 2015-07-03 14:17:11 -04:00
Valentin Gosu
754aea4980 Bug 1048131 - Make some network events trigger a captive portal recheck r=mcmanus 2014-10-14 00:35:51 +03:00
Valentin Gosu
e869aebc27 Bug 1048131 - Implement CaptivePortalService using nsICaptivePortalDetector r=mcmanus 2014-10-14 00:34:03 +03:00
Carsten "Tomcat" Book
148c5433eb Backed out changeset ddd6b2e3aead (bug 1048131) 2015-07-03 14:26:03 +02:00
Carsten "Tomcat" Book
7cda123145 Backed out changeset 49f72333b407 (bug 1048131) 2015-07-03 14:25:56 +02:00
Valentin Gosu
fb74912cb6 Bug 1048131 - Make some network events trigger a captive portal recheck r=mcmanus 2014-10-14 00:35:51 +03:00
Valentin Gosu
95e62eb914 Bug 1048131 - Implement CaptivePortalService using nsICaptivePortalDetector r=mcmanus 2014-10-14 00:34:03 +03:00
Franziskus Kiefer
2ae91f6891 Bug 1166910 - Referrer attribute for img tag. r=ckerschb, r=hsivonen, r=bz
--HG--
extra : rebase_source : ceb3a3d18acf7deb9d13cfae499b7e112db8ffce
2015-06-05 15:25:24 -07:00
Dragana Damjanovic
71de884cdc Bug 1177848 - Add telemetry to measure ipv6 miss and hits. r=mcmanus 2015-07-01 13:51:00 +02:00
Dragana Damjanovic
b5075f0de3 Bug 1170197 - If a channel is suspended in http-on-modify-request, it should not send any trafic untill resumed. r=mayhemer 2015-06-18 10:57:00 -04:00
Carsten "Tomcat" Book
8bc87efb1e Backed out changeset f5f3827ffcf1 (bug 1166910) for bustage 2015-07-01 08:19:28 +02:00
Franziskus Kiefer
91b0523177 Bug 1166910 - referrer attribute for img tag. r=hsivonen 2015-06-05 15:25:24 -07:00
Eric Rahm
c7c7afa9ce Bug 1177541 - Remove warning if file is not found during deferred open. r=mcmanus
When doing a deferred open we should not emit a warning if the file is not
found. The proper return code is still returned.
2015-06-30 09:33:37 -07:00
Ryan VanderMeulen
5f5c327690 Backed out changeset 8b4e4083639e (bug 1171931) for B2G debug emulator bustage. 2015-06-25 19:48:42 -04:00
Juan Gomez
702a59d135 Bug 1171931 - Refactor duplicated code using XRE_IsParent/ContentProcess. r=froydnj
--HG--
extra : rebase_source : 2ecbe6c1dd8a7ad8dc529b53349ad431cf1116c9
2015-06-24 14:11:00 -04:00
Ehsan Akhgari
60626aff92 Bug 1175480 - Expose the external content policy type from the load info objects; r=smaug
Consumers of this type need to deal with the external content policy
types.  One example is HttpObserverManager.runChannelListener in
WebRequest.jsm.
2015-06-24 08:52:45 -07:00
Nicholas Hurley
ff91c700ee Bug 959752 - Make the network predictor work under e10s. r=mcmanus 2015-06-18 11:23:00 +02:00
Christoph Kerschbaumer
4e803ed392 Bug 1175352 - Refactor LoadInfo arguments to be more self contained (r=bent) 2015-06-18 15:37:20 -07:00
Andrea Marchesini
45578e03fa Bug 1170794 - Improve the length check of the input in nsUnicode*::GetMaxLength, r=dveditz 2015-06-17 12:21:39 +01:00
Nicholas Nethercote
a1b715b5df Bug 1174625 - Overhaul PLDHashTable's iterator. r=froydnj.
This change splits PLDHashTable::Iterator::NextEntry() into two separate
functions, which allow you to get the current element and advance the iterator
separately, which means you can use a for-loop to iterate instead of a
while-loop.

As part of this change, the internals of PLDHashTable::Iterator were
significantly changed and simplified (and modelled after js::HashTable's
equivalent code). It's no longer duplicating code from PL_DHashTableEnumerator.
The chaos mode code was a casualty of this, but given how unreliable that code
has proven to be (see bug 1173212, bug 1174046) this is for the best. (We can
reimplement chaos mode once PLDHashTable::Iterator is back on more solid
footing again, if we think it's important.)

All these changes will make it much easier to add an alternative Iterator that
removes elements, which was turning out to be difficult with the prior code.

In order to make the for-loop header usually fit on a single line, I
deliberately renamed a bunch of things to have shorter names.

In summary, you used to write this:

  PLDHashTable::Iterator iter(&table);
  while (iter.HasMoreEntries()) {
    auto entry = static_cast<FooEntry*>(iter.NextEntry());
    // ... do stuff with |entry| ...
  }
  // iter's scope extends beyond here

and now you write this:

  for (auto iter = table.Iter(); !iter.Done(); iter.Next()) {
    auto entry = static_cast<FooEntry*>(iter.Get());
    // ... do stuff with |entry| ...
  }
  // iter's scope doesn't reach here

--HG--
extra : rebase_source : fa5cac2fc50b1ab7624030bced4763131280f4d8
2015-06-11 21:19:53 -07:00