Commit Graph

6229 Commits

Author SHA1 Message Date
Ehsan Akhgari
7fcb850267 Bug 1173069 - Don't accumulate the cache hit telemetry for intercepted channels; r=mayhemer,jdm
These channels will always have a fake cache entry associated with them,
so they can skew our telemetry results once we ship service workers.
2015-06-30 13:24:10 -04:00
Eric Rahm
861c456220 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
Nicholas Nethercote
19cc4a09b1 Bug 1175771 (part 3) - Replace nsCacheEntryHashable::VisitEntries() with iterators. r=michal.
Note that FreeCacheEntries was unused, and so could be removed as well.
2015-06-17 22:31:08 -07:00
Nicholas Nethercote
155971aab8 Bug 1175771 (part 2) - Remove PL_DHashTableEnumerate() use from nsHostResolver. r=michal. 2015-06-10 18:28:03 -07:00
Nicholas Nethercote
825147e76b Bug 1175771 (part 1) - Fix indentation in nsHostResolver::FlushCache(). r=michal. 2015-06-10 17:09:32 -07:00
Patrick McManus
4d69a75c45 bug 1174152 - update test to be nsIObserver based r=hurley 2015-06-24 13:50:37 -04:00
Patrick McManus
6d76c92cda bug 1174152 - crossorigin attribute for link rel=preconnect r=hsivonen 2015-06-19 17:11:42 -04:00
Ryan VanderMeulen
e6131fc8b8 Backed out changeset 8b4e4083639e (bug 1171931) for B2G debug emulator bustage. 2015-06-25 19:48:42 -04:00
Juan Gomez
2128198065 Bug 1171931 - Refactor duplicated code using XRE_IsParent/ContentProcess. r=froydnj 2015-06-24 14:11:00 -04:00
Ehsan Akhgari
0ef246620c 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
Michal Novotny
21731fe6f2 Bug 1171724 - Large OOMs in CacheFileMetadata, r=honzab 2015-06-24 06:33:37 +02:00
Valentin Gosu
2b28283f97 Bug 1142083 - Add test for IDN Unicode domain redirect. r=mcmanus 2015-06-20 00:03:57 +03:00
Michal Novotny
94f0543ee3 Bug 1170645 - Intermittent crash in mozilla::net::nsWSAdmissionManager::RemoveFromQueue(mozilla::net::WebSocketChannel*), r=mcmanus 2015-06-21 14:37:36 +02:00
Ryan VanderMeulen
9eb883195d Merge inbound to m-c. a=merge
CLOSED TREE
2015-06-19 16:33:59 -04:00
Patrick McManus
b7bd1a0688 Bug 1175545 - Dont process alt-svc on 421 r=hurley 2015-06-19 08:32:05 -04:00
Mike Taylor
a26c7a3942 Bug 1169772 - Add Android version to platform identifier of Fennec's UA string. r=mfinkle, r=gerv 2015-06-11 09:38:00 -04:00
Valentin Gosu
fafb48cd68 Bug 1172697 - URLs containing !// in the query or hash should not be handled as packaged app resources r=mcmanus 2015-06-09 02:20:02 +03:00
Valentin Gosu
1a59655402 Bug 1142083 - IDN Unicode domain redirect is broken r=mcmanus 2015-06-18 16:05:21 +03:00
Carsten "Tomcat" Book
55cddb9d45 Backed out changeset b2c472fe14ca (bug 1175480) for crashes in serviceworkers/test_request_context.htm 2015-06-18 09:54:44 +02:00
Boris Zbarsky
13b09c4461 Bug 1175600 followup. Add getRelativePath to ye othere nsIFile implementatione so as to de-bust ye olde CLOSED TREE 2015-06-17 16:46:19 -04:00
Ehsan Akhgari
76441964ee 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-17 15:09:06 -04:00
David Major
335553d3db Bug 1173860: Null check on sGlobalEntryTables. r=mcmanus 2015-06-17 11:23:43 -04:00
Carsten "Tomcat" Book
5ff4dca6c1 Backed out changeset feb7cd25aafb (bug 1174152) for mulet timeout in test_rel_preconnect.html 2015-06-17 16:58:57 +02:00
Patrick McManus
e2775676c4 bug 1174152 link rel=preconnect crossorigin=anonymous r=hsivonen 2015-05-06 10:09:27 -04:00
Andrea Marchesini
0bf63bcbef Bug 1170794 - Improve the length check of the input in nsUnicode*::GetMaxLength, r=dveditz 2015-06-17 12:21:39 +01:00
Michal Novotny
cd886ee3ff Bug 1173378 - crash in mozilla::net::HttpBaseChannel::OverrideSecurityInfo(nsISupports*), r=ehsan 2015-06-17 13:16:33 +02:00
Fernando Jimenez
d595c8facc Bug 1174078 - Calling "fetch" inside Service Worker's "onfetch" handler in b2g causes "onfetch" again that leads to an infinite loop. r=nsm 2015-06-17 11:50:07 +02:00
Nicholas Nethercote
b945b71cfa 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
2015-06-11 21:19:53 -07:00
Valentin Gosu
2a21e39ac8 Bug 1171127 - Listeners are not released in OnStopRequest in e10s mode. r=jduell 2015-06-15 02:39:29 +03:00
Ryan VanderMeulen
e6cc35b894 Backed out changeset 068df0223a6c (bug 1125961) for e10s crashes.
CLOSED TREE
2015-06-15 15:27:53 -04:00
Josh Matthews
ab5bfd065d Bug 1125961 - Allow sending null PBrowser actors when there's a triggering principal which can be used for security checks; r=dragana 2015-06-15 14:35:06 -04:00
Birunthan Mohanathas
a42b09b30a Bug 1164714 - Move netwerk/test/TestSTSParser.cpp into security/manager/ssl/tests/. r=keeler 2015-06-14 21:37:12 -07:00
Michal Novotny
4baf7e2945 Bug 1151812 - Add telemetry to find optimal cache entry hash size, r=honzab 2015-06-14 14:13:18 +02:00
Nicholas Hurley
8a95989b10 Bug 959752 - Make the network predictor work under e10s. r=mcmanus 2015-06-18 11:23:00 +02:00
Christoph Kerschbaumer
468c13161e Bug 1175352 - Refactor LoadInfo arguments to be more self contained (r=bent) 2015-06-18 15:37:20 -07:00
Ted Mielczarek
710aa679ec bug 1170582 - Fix nsSocketTransport on iOS. r=mayhemer 2015-05-06 07:51:51 -04:00
Ben Kelly
c111b5b1f8 Bug 1172884 P1 Properly decode body when intercepted response redirects. r=jduell 2015-06-12 07:20:21 -07:00
Sanchit Kumar
30621251ea Bug 1171016 - Initialize the linelen variable at its declaration in ParseFTPList.cpp. r=mcmanus 2015-06-11 11:47:00 -04:00
Nicholas Nethercote
2e939d0b85 Bug 1173247 (part 2) - Remove PL_DHashTableEnumerate() uses from nsDiskCacheBindery. r=michal. 2015-06-10 13:07:41 -07:00
Nicholas Nethercote
e9079256a2 Bug 1173247 (part 1) - Remove PL_DHashTableEnumerate() uses from nsDiskCacheBindery. r=michal. 2015-06-10 13:07:41 -07:00
Phil Ringnalda
5d85d7ca4c Backed out 3 changesets (bug 1172884, bug 1169819) for OS X timeouts in browser_force_refresh.js in bc3
CLOSED TREE

Backed out changeset 7b23ff6ac3a2 (bug 1169819)
Backed out changeset 1434730c0e19 (bug 1172884)
Backed out changeset 17d6ecf1b4ec (bug 1172884)
2015-06-11 20:57:24 -07:00
Eric Rahm
5535524b72 Bug 1171583 - Remove mutable warning from |nsSimpleURI::SetUserPass|. r=bz 2015-06-11 18:32:03 -07:00
Ben Kelly
8a20517c59 Bug 1172884 P1 Properly decode body when intercepted response redirects. r=jduell 2015-06-11 18:29:28 -07:00
Wes Kocher
05609173bf Backed out changeset 6231a72d0557 (bug 1172884) for being the wrong patches landed a=backout 2015-06-11 17:57:51 -07:00
Ben Kelly
622a0713e8 Bug 1172884 P1 Properly decode body when intercepted response redirects. r=mayhemer a=kwierso 2015-06-11 17:52:01 -07:00
Nicholas Nethercote
ddaf1cfb87 Bug 1172789 (part 3) - Remove PL_DHashTableEnumerate() uses from nsLoadGroup. r=michal.
This change also factors out some duplicated code.
2015-06-10 13:07:40 -07:00
Nicholas Nethercote
a74843307a Bug 1172789 (part 2) - Remove PL_DHashTableEnumerate() uses from nsLoadGroup. r=michal. 2015-06-10 13:07:40 -07:00
Nicholas Nethercote
a4bdd3f9a1 Bug 1172789 (part 1) - Remove PL_DHashTableEnumerate() uses from nsLoadGroup. r=michal. 2015-06-10 13:07:40 -07:00
Wes Kocher
6cc232193a Merge m-c to inbound, a=merge CLOSED TREE 2015-06-10 18:38:28 -07:00
Wes Kocher
97a8a40886 Merge inbound to central, a=merge 2015-06-10 18:29:39 -07:00