Commit Graph

6464 Commits

Author SHA1 Message Date
Dragana Damjanovic
b7149c5d65 Bug 979359 - Add telemetry to to collect stats about how often Http Authentication occurs and how often it is for top-level doc, cross-origin, etc. r=jduell 2015-08-27 07:50:00 -04:00
Yoshi Huang
fd98ffd5d7 Bug 1165272 - Part 2: replace getNoAppCodebasePrincipal. r=bholley 2015-08-18 15:01:42 +08:00
Yoshi Huang
98f6ea7f6c Bug 1165272 - Part 1: remove getAppCodebasePrincipal. r=bholley 2015-08-17 17:03:19 +08:00
Fabrice Desré
5ca7b8c186 Bug 1196963 - Make extensions work without being in developer mode r=jduell 2015-08-26 18:40:05 -07:00
Ryan VanderMeulen
f6b184eae9 Backed out changesets 1620bf9f8f2a and 0d75db15b6ed (bug 1119692) for nsZipReaderCache::GetFd crashes.
CLOSED TREE
2015-08-26 11:20:54 -04:00
Cykesiopka
49c1e300ef Bug 1197644 - Remove the security.ssl.warn_missing_rfc5746 pref. r=keeler 2015-08-24 22:53:42 -07:00
Randell Jesup
ca21083638 Bug 1198730: fix simple bug in PMTUD disable that clears all other flags r=tuexen 2015-08-26 10:05:39 -04:00
Ting-Yu Chou
56ab6d10d4 Bug 1119692 - Part 2: Always use scheme jar:remoteopenfile: for out-of-process apps to ease sandboxing code. r=fabrice 2015-08-17 10:30:22 +08:00
Ting-Yu Chou
31436e9999 Bug 1119692 - Part 1: Get cached jar file fd if it exists instead of always openning it. r=smaug, r=jduell 2015-08-17 10:25:59 +08:00
Chris Peterson
40a65bd331 Bug 1198124 - Enable -Wshadow in directories that have no -Wshadow warnings. r=glandium 2015-08-25 09:14:38 -07:00
Ryan VanderMeulen
fc9915b0d0 Merge m-c to inbound. a=merge 2015-08-26 00:05:36 -04:00
Ryan VanderMeulen
cafda175d4 Bug 1197986 - Request a longer timeout for tests that started timing out after increasing the number of B2G debug xpcshell chunks from 2 to 4. 2015-08-25 20:56:16 -04:00
Ryan VanderMeulen
6bb271d1e0 Bug 1197986 - Request a longer timeout for tests that started timing out after increasing the number of B2G debug xpcshell chunks from 2 to 4. 2015-08-25 18:31:35 -04:00
Bobby Holley
28a3efa072 Backed out 3 changesets (bug 1165272) for b2g sanity blocker. 2015-08-25 11:16:21 -07:00
Valentin Gosu
8845f26921 Bug 1196021 - Pass requesting channel to PackagedAppService::GetResource r=ckerschb 2015-08-25 03:06:24 +02:00
Valentin Gosu
97f40ef942 Bug 1196021 - Use asyncOpen2 in PackagedAppService r=ckerschb 2015-08-25 03:06:18 +02:00
Yoshi Huang
053573a7c0 Bug 1165272 - Part 2: Replace getNoAppCodebasePrincipal. r=bholley 2015-08-24 01:18:00 -04:00
Yoshi Huang
25acbe867f Bug 1165272 - Part 1: Remove getAppCodebasePrincipal. r=bholley 2015-08-24 01:31:00 -04:00
Ehsan Akhgari
e4b46390f1 Bug 1194847 - Part 1: Make it possible to tell whether the response of a channel has been synthesized; r=michal 2015-08-25 21:26:14 -04:00
Patrick McManus
661b517bd9 Bug 1196237 - Relemetry after dns shutdown. r=dragana 2015-08-20 12:14:40 -04:00
Christoph Kerschbaumer
9d3911f687 Bug 1194519 - call AsyncOpen2 within child and parent if securityFlags are present (r=jduell) 2015-08-21 20:33:56 -07:00
Francois Marier
7789a2567f Bug 1197000 - Better debugging output for Safe Browsing list updates. r=gcp 2015-08-21 13:53:53 -07:00
Sylvestre Ledru
c83ed67fc5 Bug 1197215 - Remove now unnecessary uses of ok in the predictor. r=hurley 2015-08-21 20:38:58 +02:00
Randell Jesup
ec36cd7c76 Bug 1194817: disable PMTUD in DataChannels/SCTP, set initial MTU per spec r=tuexen 2015-08-21 14:19:26 -04:00
Cykesiopka
35e8cd70ba Bug 1195615 - Log a web console warning when a HPKP header is ignored due to a non-built in root cert. r=keeler 2015-08-20 14:33:29 -07:00
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