Commit Graph

6481 Commits

Author SHA1 Message Date
Valentin Gosu
3c7b12f33b Bug 1170837 - Provide way to update packaged apps r=honzab 2015-07-23 14:07:09 +02:00
Valentin Gosu
d3cb36b78f Bug 1170837 - Add static GetPackageURI method to PackagedAppService r=honzab 2015-07-23 14:07:04 +02:00
Valentin Gosu
e44f2007c1 Bug 1170837 - Make nsMultiMixedConv not return an error when served only a package's metadata from the cache r=honzab
Make the stream converter aware of the "application/package" mimetype.
2015-07-23 14:07:00 +02:00
Carsten "Tomcat" Book
f1fda3e36e merge mozilla-inbound to mozilla-central a=merge 2015-07-23 12:02:27 +02:00
Ryan VanderMeulen
52064e622b Backed out changeset 60d045b1c1a6 (bug 1183781) for causing bug 1186435. a=me 2015-07-22 22:12:29 -04:00
Ryan VanderMeulen
17e59e21b1 Merge inbound to m-c. a=merge 2015-07-22 16:34:07 -04:00
Michal Novotny
4ef74fc900 Bug 1177278 - Large OOMs in CacheFileMetadata::WriteMetadata, r=honzab 2015-07-22 15:23:16 +02:00
Magnus Melin
0466f8b50e Bug 1176612 - the browser.cache prefs must be set before the predictor is created. r=hurley
Was causing comm-central failures:
 TEST-UNEXPECTED-TIMEOUT | netwerk/test/unit/test_predictor.js | Test timed out
 TEST-UNEXPECTED-TIMEOUT | netwerk/test/unit_ipc/test_predictor_wrap.js | Test timed out
2015-07-21 23:20:20 +03:00
Bobby Holley
f694ec0a43 Bug 1161831 - Forbid mapping to anything but file:// and jar:// URIs. r=billm,sr=bz 2015-07-21 12:57:23 -07:00
Bobby Holley
511cc8c18f Bug 1161831 - Implement moz-extension protocol. r=bz,r=billm,sr=mcmanus
The heavy lifting all happened in the previous patch, so this is easy now.
2015-07-21 12:57:22 -07:00
Bobby Holley
c9b2b450bb Bug 1161831 - Factor the sharable bits out of nsIResProtocolHandler. r=billm 2015-07-21 12:57:21 -07:00
Bobby Holley
7c93dba236 Bug 1161831 - Stop using threaddsafe ISupports for nsResProtocolHandler. r=billm
As far as I can tell, this thing isn't threadsafe at all.
2015-07-21 12:57:21 -07:00
Dragana Damjanovic
78df4240e2 Bug 1182066 - Enforce defaultLoadFlags for all requests. r=mayhemer 2015-07-21 09:23:00 -04:00
Steven Michaud
67d9952134 Bug 1186042 - "Undeclared identifier" errors building nsAboutBloat.cpp. r=jduell 2015-07-21 13:04:47 -05:00
Ehsan Akhgari
ca66733e18 Bug 1185988 - Don't hold the observer service alive from nsHttpHandler; r=mcmanus 2015-07-21 13:40:33 -04:00
Michael Layzell
ea769d03ae Bug 1184971 - Expose cookieBehavior and cookieLifetimePolicy preference variants from nsICookieService. r=ehsan 2015-07-17 08:01:00 +02:00
Carsten "Tomcat" Book
946afe94d0 Backed out changeset 2f4b5acae553 (bug 1184971) for causing OS X Memory Leaks 2015-07-21 10:27:44 +02:00
Carsten "Tomcat" Book
c70f141ba4 Backed out changeset 8b90b21e0c64 (bug 986302) for static build failures 2015-07-21 08:53:37 +02:00
Franziskus Kiefer
5282901ef0 Bug 1174913 - remove unnecessary attribute parsing. r=bz 2015-07-13 18:04:42 -07:00
Carsten "Tomcat" Book
bb0928ae59 Merge mozilla-central to fx-team 2015-07-22 14:09:48 +02:00
Blake Kaplan
a0d50ea7d2 Bug 1139953 - Pass a dummy channel into the cookie service so that nsICookiePermission can compute private browsing mode correctly. r=jdm 2015-07-17 14:52:00 +02:00
Franziskus Kiefer
2c70bcc951 Bug 1174913 - anchor and area referrer attributes. r=ckerschb, r=bz 2015-06-05 15:25:24 -07:00
Michael Layzell
a0830685a4 Bug 1184971 - Expose cookieBehavior and cookieLifetimePolicy preference variants from nsICookieService. r=ehsan 2015-07-17 08:01:00 +02:00
Nate Hughes
0e64d8f9c5 Bug 986302 - Add memory reporting for HPACK tables. r=hurley r=njn 2015-07-17 14:38:10 -07:00
Ehsan Akhgari
f42e7565ae Bug 1185515 follow-up: Include nsProxyRelease.h in nsUDPSocket.h, landed on a CLOSED TREE 2015-07-20 18:17:54 -04:00
Ehsan Akhgari
3171e4a984 Bug 1185515 - Don't hold the observer service alive from nsDNSService; r=mcmanus 2015-07-20 17:51:33 -04:00
Christoph Kerschbaumer
f99130c81b 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
c12c53450c 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
897b9bccb9 Bug 1175803 - Store redirect chain within loadInfo - part 3 e10s (r=mrbkap,mayhemer) 2015-07-19 19:11:38 -07:00
Christoph Kerschbaumer
e4978b4cc9 Bug 1175803 - Store redirect chain within loadInfo - part 2 (r=sicking,mayhemer) 2015-07-19 19:43:09 -07:00
Christoph Kerschbaumer
a1adafb4ba Bug 1175803 - Store redirect chain within loadInfo - part 1 (r=sicking,mayhemer) 2015-07-19 19:11:03 -07:00
Ehsan Akhgari
82a433cdd6 Bug 1184395 - Remove nsCookieService::mObserverService; r=jdm
This is done to ensure that the cookie service cannot hold the observer
service alive.
2015-07-17 21:09:04 -04:00
Valentin Gosu
47295c09f9 Bug 1183781 - Fix leak in nsHostResolver r=sworkman 2015-07-18 00:22:45 +02:00
Ryan VanderMeulen
d15decc3a7 Merge m-c to inbound. a=merge
CLOSED TREE
2015-07-17 10:27:24 -04:00
Ryan VanderMeulen
078d2ab402 Merge inbound to m-c. a=merge 2015-07-17 10:26:22 -04:00
Valentin Gosu
5b77d96fef Bug 1172233 - Allow web packaged apps to be served without a mimetype r=mcmanus 2015-07-17 14:25:43 +02:00
Valentin Gosu
273814e79e Bug 1153929 - Add diagnostic asserts to check vtable is still present for mPipeOut r=mcmanus 2015-07-17 14:15:56 +02:00
Ryan VanderMeulen
4f75be6ece Merge m-c to fx-team. a=merge 2015-07-16 16:23:27 -04:00
Benoit Girard
2e648924e7 Bug 1182516 - Add Chaos Mode environment variable MOZ_CHAOSMODE. r=roc 2015-07-14 17:29:23 -04:00
Francois Marier
0e3e4adfee Bug 1180323 - Only look at TP table before cancelling speculative connections. r=gcp 2015-07-11 19:19:29 +02:00
Simon Montagu
9f32d87101 Bug 1183209 patch 3: update generated data files to Unicode 8, and adapt internal XIDMOD types to the new types in Unicode's xidmodifications.txt, r=jfkthame 2015-07-15 05:55:24 -07:00
Liang-Heng Chen
a54f60519d Bug 1158029 - Part 2: mDNS XPCOM module using NsdManager. r=mcmanus 2015-07-16 02:43:00 -04:00
Wes Kocher
d1fecb8032 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
a8c12eb83d 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
dc2a5d91c9 Bug 1173523 - Part 10: Update nsIPermission and nsIPermissionManager tests to use new API for nsIPermission, r=ehsan 2015-07-14 15:06:26 -04:00
Michael Layzell
a71129398e 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
73d0b6340e Bug 1182515 - Clear reference to captive portal service when observing xpcom-shutdown. r=mcmanus 2015-07-13 15:50:58 +02:00
Christoph Kerschbaumer
1a14842258 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
52f20142b8 Bug 1179505 - Make LoadInfo arguments optional in ipdl (r=bent,sicking) 2015-07-13 22:43:13 -07:00
Wes Kocher
f1f60449ff Merge m-c to fx-team, a=merge 2015-07-15 16:44:38 -07:00
Mike Taylor
2312f12263 Bug 1178760: Add ability to read ua-update.json from APK for Fennec. r=jchen 2015-07-15 12:17:29 -07:00
Ryan VanderMeulen
cea372feb9 Merge m-c to inbound. a=merge
CLOSED TREE
2015-07-22 16:46:24 -04:00
Dragana Damjanovic
b4dccf6745 Bug 1183579 - Inline some function needed purplexpcom. r=jduell 2015-07-14 04:02:00 +02:00
Ryan VanderMeulen
e25f29c619 Backed out changeset 00ec02ec876e (bug 1184395) for Android crashes.
CLOSED TREE
2015-07-16 15:18:35 -04:00
Michael Layzell
09303db7d4 Bug 1173523 - Part 10: Update nsIPermission and nsIPermissionManager tests to use new API for nsIPermission, r=ehsan 2015-07-16 14:49:39 -04:00
Michael Layzell
9795afcffe 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
Ehsan Akhgari
5d2efab883 Bug 1184395 - Release the observer service when the cookie service shuts down; r=jdm 2015-07-16 13:39:27 -04:00
Birunthan Mohanathas
e52329c788 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
d881889081 Bug 1179779 - Neither XRE_START_OFFLINE nor -offline work any more. r=mayhemer 2015-07-08 15:56:12 +02:00
ISHIKAWA, Chiaki
142ba44329 Bug 1170646 - Handle short read in (old) Cache code still used by C-C TB. r=michal 2015-07-07 11:34:00 -04:00
Michael Layzell
c1d10743ff Bug 1180993 - Part 3: Correct use sites of functions which return already_AddRefed. r=ehsan 2015-07-10 08:36:00 -04:00
Michael Layzell
24f5535c05 Bug 1181319 - Correctly use NS_DECL_ISUPPORTS_INHERITED instead of NS_DECL_ISUPPORTS for DataChannelChild. r=mcmanus 2015-07-07 14:06:00 +02:00
Honza Bambas
1182a74615 Bug 572151 - Remove calls to SetCookies from HttpChannelChild. r=jduell 2015-03-05 11:05:00 +01:00
Wes Kocher
9c30d6953d Backed out changeset adf95d1cd0aa (bug 1173934) for fetch-frame-resource.https.html WPT orange and test_synthesized_response.js S4 orange CLOSED TREE 2015-07-10 15:59:01 -07:00
Ben Kelly
6a200d95d9 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
1716e04b1e Bug 1139297 - Implement CSP upgrade-insecure-requests directive - netwerk changes (r=sworkman) 2015-07-10 09:15:17 -07:00
Christoph Kerschbaumer
2a74f97730 Bug 1139297 - Implement CSP upgrade-insecure-requests directive - loadinfo changes (r=sicking,sworkman) 2015-07-10 13:57:55 -07:00
Ritu Kothari
8e158e83a7 Bug 1167410 - Removing an unused initialization. r=hurley 2015-06-26 15:33:00 +02:00
Randell Jesup
ab15650767 Bug 1155059: Patch 9 - Modify DataChannel.cpp to use updated API r=froydnj 2015-07-09 23:24:11 -04:00
Randell Jesup
37ad9bc8b6 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
Ehsan Akhgari
0f240e312a Bug 1155169 - Avoid restoring the same cookie twice if the previous version of the cookie is not stale; r=jdm 2015-07-09 08:54:25 -04:00
Julian Seward
be511c244c Bug 1180195 - Uninitialised value use in Predictor::SpaceCleaner::OnMetaDataElement. r=hurley@todesschaf.org. 2015-07-09 00:18:54 +02:00
Nate Hughes
475f3612b1 Bug 1136727 - Validate pseudo-header fields in HTTP/2. r=hurley 2015-07-08 13:24:07 -07:00
Patrick McManus
0b9162dcb4 Bug 1178991 - smartptr for http converter r=hurley 2015-06-30 17:17:10 -04:00
Patrick McManus
31b1901b98 bug 1179560 - some 421 retries dont work r=hurley 2015-07-02 10:34:01 -04:00
Valentin Gosu
76371c9787 Bug 1177766 - Add logging to PackagedAppService r=honzab 2015-07-08 11:09:14 +02:00
Valentin Gosu
ca6fa67794 Bug 1180637 - Packaged Apps do not apply CSP r=honzab 2015-07-08 11:09:04 +02:00
Valentin Gosu
95f1f32c6b Bug 1177465 - Web packaged app resources can't be loaded over https r=honzab 2015-07-08 11:08:51 +02:00
Dragana Damjanovic
7f67cdd44d Bug 1152046 - add telemetry for time spent in connect/close. r=mayhemer 2015-07-07 11:13:00 +02:00
Nicholas Nethercote
24ab7bcdca Bug 1179071 - Merge RemovingIterator into Iterator. r=froydnj.
The original motivation for the Iterator/RemovingIterator split was that
PLDHashTable Checker class would treat them differently. But that didn't end up
happening (see bug 1131308). So this patch merges them. This is a small code
size win now but it will become bigger when I add iterators to nsTHashTable and
nsBaseHashtable.

The only complication is that PLDHashTable::Iter() is now non-const, which is
a problem if you use it in a const method. So I added PLDHashTable::ConstIter()
which is used in just two places. It's a bit of a hack -- effectively a
const_cast -- but I don't think it's too bad.
2015-07-06 22:02:26 -07:00
Dragana Damjanovic
c7fc0a288e Bug 905127 - Part 2 - remove unnecessary nsNetUtil.h includes r=jduell 2015-07-06 07:55:00 +02:00
Emanuel Hoogeveen
31c0c961cd Bug 905127 - Part 1 - Make some functions from nsNetUtil not inline. r=jduell 2015-07-07 04:17:00 +02:00
Dragana Damjanovic
80a5fa9c3e Bug 905127 - Make some functions from nsNetUtil not inline. r=jduell 2015-05-20 04:48:00 +02:00
Carsten "Tomcat" Book
a19e987873 Backed out changeset f83eddcbebbc (bug 1170646) for bustage 2015-07-07 11:20:03 +02:00
ISHIKAWA, Chiaki
65f07df840 Bug 1170646 - Handle short read in (old) Cache code still used by C-C T.B. r=michal 2015-06-21 05:54:00 +02:00
Juan Gomez
21d73728f3 Bug 1171931 - Refactor duplicated code using XRE_IsParent/ContentProcess. r=froydnj 2015-07-03 18:29:00 -07:00
Michael Layzell
c44c2cadd0 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
c6abaf9f02 Backout bug 1170200 because of test failures on a CLOSED TREE 2015-07-03 16:43:47 -04:00
Michael Layzell
eb908c6aa5 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
82b8743948 Bug 1177403 - Unable to load http package resources with fetch() or xhr r=mcmanus 2015-07-03 17:15:46 +02:00
Valentin Gosu
3a7fa0b6db Bug 1048131 - Make some network events trigger a captive portal recheck r=mcmanus 2014-10-14 00:35:51 +03:00
Valentin Gosu
44bbf8da8c Bug 1048131 - Implement CaptivePortalService using nsICaptivePortalDetector r=mcmanus 2014-10-14 00:34:03 +03:00
Carsten "Tomcat" Book
632b372728 Backed out changeset ddd6b2e3aead (bug 1048131) 2015-07-03 14:26:03 +02:00
Carsten "Tomcat" Book
92c4eafbda Backed out changeset 49f72333b407 (bug 1048131) 2015-07-03 14:25:56 +02:00
Valentin Gosu
877227f9de Bug 1048131 - Make some network events trigger a captive portal recheck r=mcmanus 2014-10-14 00:35:51 +03:00
Valentin Gosu
18bc502322 Bug 1048131 - Implement CaptivePortalService using nsICaptivePortalDetector r=mcmanus 2014-10-14 00:34:03 +03:00
Franziskus Kiefer
a71ec1e171 Bug 1166910 - Referrer attribute for img tag. r=ckerschb, r=hsivonen, r=bz 2015-06-05 15:25:24 -07:00
Dragana Damjanovic
bf311c8448 Bug 1177848 - Add telemetry to measure ipv6 miss and hits. r=mcmanus 2015-07-01 13:51:00 +02:00
Dragana Damjanovic
7cef3cbfe8 Bug 1170197 - Add test. r=mcmanus 2015-06-26 17:27:00 -04:00
Dragana Damjanovic
9ff1155ef3 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
d4735903b0 Backed out changeset f5f3827ffcf1 (bug 1166910) for bustage 2015-07-01 08:19:28 +02:00
Franziskus Kiefer
381fbf5475 Bug 1166910 - referrer attribute for img tag. r=hsivonen 2015-06-05 15:25:24 -07:00
Ehsan Akhgari
f4684ecd6d 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
65b068e988 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
52c7443b67 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
7e7e83f233 Bug 1175771 (part 2) - Remove PL_DHashTableEnumerate() use from nsHostResolver. r=michal. 2015-06-10 18:28:03 -07:00
Nicholas Nethercote
483d84252e Bug 1175771 (part 1) - Fix indentation in nsHostResolver::FlushCache(). r=michal. 2015-06-10 17:09:32 -07:00
Patrick McManus
0efa098ec7 bug 1174152 - update test to be nsIObserver based r=hurley 2015-06-24 13:50:37 -04:00
Patrick McManus
2cbbb281b8 bug 1174152 - crossorigin attribute for link rel=preconnect r=hsivonen 2015-06-19 17:11:42 -04:00
Ryan VanderMeulen
55b2086097 Backed out changeset 8b4e4083639e (bug 1171931) for B2G debug emulator bustage. 2015-06-25 19:48:42 -04:00
Juan Gomez
98461fc4a4 Bug 1171931 - Refactor duplicated code using XRE_IsParent/ContentProcess. r=froydnj 2015-06-24 14:11:00 -04:00
Ehsan Akhgari
29eec391b3 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
e8ddbe69ec Bug 1171724 - Large OOMs in CacheFileMetadata, r=honzab 2015-06-24 06:33:37 +02:00
Valentin Gosu
daae534dcc Bug 1142083 - Add test for IDN Unicode domain redirect. r=mcmanus 2015-06-20 00:03:57 +03:00
Michal Novotny
fc9a10ba31 Bug 1170645 - Intermittent crash in mozilla::net::nsWSAdmissionManager::RemoveFromQueue(mozilla::net::WebSocketChannel*), r=mcmanus 2015-06-21 14:37:36 +02:00
Ryan VanderMeulen
2cc08b4a01 Merge inbound to m-c. a=merge
CLOSED TREE
2015-06-19 16:33:59 -04:00
Patrick McManus
a49b09d019 Bug 1175545 - Dont process alt-svc on 421 r=hurley 2015-06-19 08:32:05 -04:00
Mike Taylor
7771e2164c 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
f36e291a84 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
fdaf9a8a79 Bug 1142083 - IDN Unicode domain redirect is broken r=mcmanus 2015-06-18 16:05:21 +03:00
Carsten "Tomcat" Book
ab1e849c45 Backed out changeset b2c472fe14ca (bug 1175480) for crashes in serviceworkers/test_request_context.htm 2015-06-18 09:54:44 +02:00
Boris Zbarsky
17fd391fc4 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
a85a263993 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
1a4267dc0e Bug 1173860: Null check on sGlobalEntryTables. r=mcmanus 2015-06-17 11:23:43 -04:00
Carsten "Tomcat" Book
7c76048c28 Backed out changeset feb7cd25aafb (bug 1174152) for mulet timeout in test_rel_preconnect.html 2015-06-17 16:58:57 +02:00
Patrick McManus
1cd7ac366a bug 1174152 link rel=preconnect crossorigin=anonymous r=hsivonen 2015-05-06 10:09:27 -04:00
Andrea Marchesini
5acececf92 Bug 1170794 - Improve the length check of the input in nsUnicode*::GetMaxLength, r=dveditz 2015-06-17 12:21:39 +01:00
Michal Novotny
7baf38bba5 Bug 1173378 - crash in mozilla::net::HttpBaseChannel::OverrideSecurityInfo(nsISupports*), r=ehsan 2015-06-17 13:16:33 +02:00
Fernando Jimenez
a44aea896f 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
c2df231328 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
0ead07ca71 Bug 1171127 - Listeners are not released in OnStopRequest in e10s mode. r=jduell 2015-06-15 02:39:29 +03:00
Ryan VanderMeulen
36854cb900 Backed out changeset 068df0223a6c (bug 1125961) for e10s crashes.
CLOSED TREE
2015-06-15 15:27:53 -04:00
Josh Matthews
c630379743 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
334f1e22e7 Bug 1164714 - Move netwerk/test/TestSTSParser.cpp into security/manager/ssl/tests/. r=keeler 2015-06-14 21:37:12 -07:00
Michal Novotny
a7afc6299b Bug 1151812 - Add telemetry to find optimal cache entry hash size, r=honzab 2015-06-14 14:13:18 +02:00
Nicholas Hurley
9aa1575b2e Bug 959752 - Make the network predictor work under e10s. r=mcmanus 2015-06-18 11:23:00 +02:00
Christoph Kerschbaumer
49f2bed566 Bug 1175352 - Refactor LoadInfo arguments to be more self contained (r=bent) 2015-06-18 15:37:20 -07:00
Ted Mielczarek
673b54b136 bug 1170582 - Fix nsSocketTransport on iOS. r=mayhemer 2015-05-06 07:51:51 -04:00
Ben Kelly
dd7b85c548 Bug 1172884 P1 Properly decode body when intercepted response redirects. r=jduell 2015-06-12 07:20:21 -07:00
Sanchit Kumar
fbea751f5a Bug 1171016 - Initialize the linelen variable at its declaration in ParseFTPList.cpp. r=mcmanus 2015-06-11 11:47:00 -04:00
Nicholas Nethercote
5fd8a164f0 Bug 1173247 (part 2) - Remove PL_DHashTableEnumerate() uses from nsDiskCacheBindery. r=michal. 2015-06-10 13:07:41 -07:00
Nicholas Nethercote
2fb0de75cb Bug 1173247 (part 1) - Remove PL_DHashTableEnumerate() uses from nsDiskCacheBindery. r=michal. 2015-06-10 13:07:41 -07:00
Phil Ringnalda
de099ff5ab 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
91a52e1515 Bug 1171583 - Remove mutable warning from |nsSimpleURI::SetUserPass|. r=bz 2015-06-11 18:32:03 -07:00
Ben Kelly
091887b3a5 Bug 1172884 P1 Properly decode body when intercepted response redirects. r=jduell 2015-06-11 18:29:28 -07:00
Wes Kocher
be0c4421e7 Backed out changeset 6231a72d0557 (bug 1172884) for being the wrong patches landed a=backout 2015-06-11 17:57:51 -07:00
Ben Kelly
04d782d8b6 Bug 1172884 P1 Properly decode body when intercepted response redirects. r=mayhemer a=kwierso 2015-06-11 17:52:01 -07:00
Nicholas Nethercote
a2918dedd5 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
04ffb1b067 Bug 1172789 (part 2) - Remove PL_DHashTableEnumerate() uses from nsLoadGroup. r=michal. 2015-06-10 13:07:40 -07:00
Nicholas Nethercote
40538a51ed Bug 1172789 (part 1) - Remove PL_DHashTableEnumerate() uses from nsLoadGroup. r=michal. 2015-06-10 13:07:40 -07:00
Wes Kocher
45aceb23fe Merge m-c to inbound, a=merge CLOSED TREE 2015-06-10 18:38:28 -07:00
Wes Kocher
a557d0fae7 Merge inbound to central, a=merge 2015-06-10 18:29:39 -07:00
Eric Rahm
bc06e84465 Bug 1171716 - Part 5: Use NS_ReleaseOnMainThread in HttpBaseChannel dtor. r=froydnj 2015-06-10 08:33:32 -07:00
Eric Rahm
140a93168c Bug 1171716 - Part 3: Use NS_ReleaseOnMainThread in WebSocketChannel dtor. r=froydnj 2015-06-10 08:33:30 -07:00
Eric Rahm
7b1380739b Bug 1171716 - Part 2: Use NS_ReleaseOnMainThread in nsBaseChannel. r=froydnj 2015-06-10 08:33:28 -07:00
Birunthan Mohanathas
7e88cdb307 Bug 1172584 - Avoid coping FallibleTArray in SendRequestRunnable constructor. r=dragana 2015-06-08 10:52:14 -07:00
Bill McCloskey
f2a5afc22a Bug 1163861 - Pass window IDs in nsILoadInfo (r=ckerschb) 2015-06-09 21:04:50 -07:00
Wes Kocher
4517da5efb Backed out 5 changesets (bug 1171716) for android bustage
Backed out changeset 4986f8464f9c (bug 1171716)
Backed out changeset bc8405b07d10 (bug 1171716)
Backed out changeset 10e18e494630 (bug 1171716)
Backed out changeset be499a3cae5d (bug 1171716)
Backed out changeset f75717d3eba0 (bug 1171716)
2015-06-09 18:48:37 -07:00
Eric Rahm
6ed22c7711 Bug 1171716 - Part 5: Use NS_ReleaseOnMainThread in HttpBaseChannel dtor. r=froydnj 2015-06-09 18:25:48 -07:00
Eric Rahm
7995e25a19 Bug 1171716 - Part 3: Use NS_ReleaseOnMainThread in WebSocketChannel dtor. r=froydnj 2015-06-09 18:25:46 -07:00
Eric Rahm
51f5ebf26e Bug 1171716 - Part 2: Use NS_ReleaseOnMainThread in nsBaseChannel. r=froydnj 2015-06-09 18:25:44 -07:00
Birunthan Mohanathas
7c2ce9d8f9 Bug 968520 - Add mozilla::fallible to more FallibleTArray::InsertElementsAt calls. r=froydnj 2015-06-09 17:27:35 -07:00
Carsten "Tomcat" Book
8bd8e55f0c Merge mozilla-central to fx-team 2015-06-10 15:25:21 +02:00
Florian Quèze
42133a901c Bug 1164159 - Stop using a wrappedJSObject hack to access nsIBrowserSearchService.getDefaultEngineInfo, r=markh. 2015-06-10 11:18:08 +02:00
Wes Kocher
de4a71ed75 Merge m-c to fx-team, a=merge 2015-06-09 19:30:16 -07:00
Tim Taubert
50426635ff Bug 1167508 - Fix tests that expect a sync remoteness change after calling .loadURI() r=billm 2015-06-09 22:11:58 +02:00
Ehsan Akhgari
bdff52a2da Bug 1172139 - Convert nsIHttpChannel to builtinclass; r=mcmanus 2015-06-08 11:27:35 -04:00
Dragana Damjanovic
a862c886ad Bug 1172885 - nsHttpChannel::BeginConnect must call AsyncAbort in the case of an error. r=valentin 2015-06-09 04:07:00 -04:00
Ryan VanderMeulen
21d4a3a8e0 Backed out changeset e1a0969cbc53 (bug 1171020) for bustage.
CLOSED TREE
2015-06-09 12:05:36 -04:00
Sanchit Kumar
420ece70b6 Bug 1171020 - Value stored to aLen is never read fixes in nsMultiMixedConv.cpp. r=mcmanus
CLOSED TREE
2015-06-08 20:44:00 -04:00
Ehsan Akhgari
a10a01cc25 Bug 1164397 - Part 2: Add an API for overriding the original URI on HttpChannelBase; r=mcmanus 2015-06-05 15:57:37 -04:00
Ehsan Akhgari
40398a184b Bug 1164397 - Part 1: Use the original channel URI for constructing the cache entry key when we're dealing with an intercepted channel; r=mcmanus 2015-06-05 15:57:35 -04:00
Geoff Brown
d62194e6af Bug 995686 - Request longer timeout for test_backgroundfilesaver.js; r=paolo 2015-06-04 10:51:14 -06:00
Ryan VanderMeulen
e36f86f464 Backed out changeset e95a9e8e7650 (bug 1170795) for e10s test_fetch_event.html faliures. 2015-06-04 11:09:07 -04:00
Josh Matthews
4a125f5dd2 Bug 1170795 - Ignore redirect errors for synthesized cache entries. r=mayhemer 2015-06-04 10:06:33 -04:00
Eric Rahm
d1d059548e Bug 1165515 - Part 14: Undef PR_LOG macros when using mozilla/Logging.h. r=froydnj
Make it harder for users to accidentally reintroduce usage of the PR_LOG macros
when using 'mozilla/Logging.h'. This can still be worked around by directly
including 'prlog.h' (and not 'mozilla/Logging.h') if absolutely necessary.
2015-06-03 15:26:07 -07:00
Eric Rahm
29f00ac208 Bug 1165515 - Part 13-2: Replace usage of PRLogModuleLevel and PR_LOG_*. rs=froydnj
This is straightforward mapping of PR_LOG levels to their LogLevel
counterparts:
  PR_LOG_ERROR   -> LogLevel::Error
  PR_LOG_WARNING -> LogLevel::Warning
  PR_LOG_WARN    -> LogLevel::Warning
  PR_LOG_INFO    -> LogLevel::Info
  PR_LOG_DEBUG   -> LogLevel::Debug
  PR_LOG_NOTICE  -> LogLevel::Debug
  PR_LOG_VERBOSE -> LogLevel::Verbose

Instances of PRLogModuleLevel were mapped to a fully qualified
mozilla::LogLevel, instances of PR_LOG levels in #defines were mapped to a
fully qualified mozilla::LogLevel::* level, and all other instances were
mapped to us a shorter format of LogLevel::*.

Bustage for usage of the non-fully qualified LogLevel were fixed by adding
|using mozilla::LogLevel;| where appropriate.
2015-06-03 15:25:57 -07:00
Eric Rahm
f2c51f1dd9 Bug 1165515 - Part 9: Remove instances of using numeric log levels 1-5. rs=froydnj 2015-06-03 15:22:35 -07:00
Eric Rahm
243447023a Bug 1165515 - Part 5: Convert instances of PR_LOG_ALWAYS. r=froydnj
Most instances were converted to PR_LOG_INFO, some to PR_LOG_DEBUG, and some
to PR_LOG_ERROR.
2015-06-03 15:22:30 -07:00
Eric Rahm
f3d0db1203 Bug 1165515 - Part 3: Convert PR_LOG_TEST to MOZ_LOG_TEST. r=froydnj 2015-06-03 15:22:28 -07:00
Ryan VanderMeulen
e7e473d305 Merge inbound to m-c. a=merge 2015-06-03 15:55:09 -04:00
Liang-Heng Chen
0f95d0e95a Bug 1115480 - Part 1: Implement XPCOM module for mDNSProvider. r=mcmanus 2015-05-20 23:06:00 -04:00
Dragana Damjanovic
cfc9cc408e Bug 1169554 - Do not reconnect on shutdown. r=mayhemer 2015-05-29 02:06:00 -04:00
Honza Bambas
661df2bbc8 Bug 1170534 - Remove Visual Event Tracer. r=dougt 2015-06-02 11:44:00 -04:00
Garvan Keeley
90226d78ba Bug 1157400 - Part1: port chromium XP wifi scanning code. r=mcmanus 2015-06-03 08:26:47 -04:00
Garvan Keeley
42a45ccb26 Bug 1157400 - Port Chromium WinXP wifi scanner to gecko. r=mcmanus 2015-06-03 08:26:47 -04:00
Nicholas Nethercote
265569e6b8 Bug 1170416 (part 3) - Remove the PLDHashTable2 typedef. r=froydnj. 2015-05-19 16:46:17 -07:00
Wes Kocher
315a009cb0 Merge m-c to inbound, a=merge 2015-06-02 18:43:25 -07:00
Wes Kocher
dd975b7704 Merge inbound to central, a=merge 2015-06-02 18:20:12 -07:00
Carsten "Tomcat" Book
8bd207cde7 Merge mozilla-central to fx-team 2015-06-02 13:17:21 +02:00
Wes Kocher
bd796581dc Backed out 14 changesets (bug 1165515) for b2g mochitest-6 permafail CLOSED TREE
Backed out changeset 9b97e2aa2ed9 (bug 1165515)
Backed out changeset 150606c022a2 (bug 1165515)
Backed out changeset 4e875a488349 (bug 1165515)
Backed out changeset 467e7feeb546 (bug 1165515)
Backed out changeset d6b6cc373197 (bug 1165515)
Backed out changeset 0615265b593c (bug 1165515)
Backed out changeset fafd1dce9f08 (bug 1165515)
Backed out changeset d1df869245f9 (bug 1165515)
Backed out changeset 6876a7c63611 (bug 1165515)
Backed out changeset b7841c94a9a3 (bug 1165515)
Backed out changeset e5e3617f7c73 (bug 1165515)
Backed out changeset 39be3db95978 (bug 1165515)
Backed out changeset 0ec74176f8de (bug 1165515)
Backed out changeset 5b928dd10d71 (bug 1165515)
2015-06-01 17:57:58 -07:00
Tim Taubert
f6731fe5be Bug 1156065 - Send cloneable messages from SiteSpecificUserAgent.js to fix UA overrides r=billm 2015-05-30 09:07:59 +02:00
Valentin Gosu
2ab85a163b Bug 1036275 - Add Packaged App Service r=honzab 2015-06-03 01:46:15 +03:00
Valentin Gosu
5aeb4dfde2 Bug 1036275 - Change nsHttpChannel to call into PackagedAppService for urls containing !// r=honzab 2015-06-03 01:46:02 +03:00
Eric Rahm
b9f1aae339 Bug 1165515 - Part 14: Undef PR_LOG macros when using mozilla/Logging.h. r=froydnj
Make it harder for users to accidentally reintroduce usage of the PR_LOG macros
when using 'mozilla/Logging.h'. This can still be worked around by directly
including 'prlog.h' (and not 'mozilla/Logging.h') if absolutely necessary.
2015-06-01 14:31:01 -07:00
Eric Rahm
ae32743ed2 Bug 1165515 - Part 13-2: Replace usage of PRLogModuleLevel and PR_LOG_*. rs=froydnj
This is straightforward mapping of PR_LOG levels to their LogLevel
counterparts:
  PR_LOG_ERROR   -> LogLevel::Error
  PR_LOG_WARNING -> LogLevel::Warning
  PR_LOG_WARN    -> LogLevel::Warning
  PR_LOG_INFO    -> LogLevel::Info
  PR_LOG_DEBUG   -> LogLevel::Debug
  PR_LOG_NOTICE  -> LogLevel::Debug
  PR_LOG_VERBOSE -> LogLevel::Verbose

Instances of PRLogModuleLevel were mapped to a fully qualified
mozilla::LogLevel, instances of PR_LOG levels in #defines were mapped to a
fully qualified mozilla::LogLevel::* level, and all other instances were
mapped to us a shorter format of LogLevel::*.

Bustage for usage of the non-fully qualified LogLevel were fixed by adding
|using mozilla::LogLevel;| where appropriate.
2015-06-01 14:31:01 -07:00
Eric Rahm
d27d4cb5f1 Bug 1165515 - Part 9: Remove instances of using numeric log levels 1-5. rs=froydnj 2015-06-01 14:31:00 -07:00
Eric Rahm
db180ff7c4 Bug 1165515 - Part 5: Convert instances of PR_LOG_ALWAYS. r=froydnj
Most instances were converted to PR_LOG_INFO, some to PR_LOG_DEBUG, and some
to PR_LOG_ERROR.
2015-06-01 14:31:00 -07:00
Eric Rahm
aa2c33e0cf Bug 1165515 - Part 3: Convert PR_LOG_TEST to MOZ_LOG_TEST. r=froydnj 2015-06-01 14:31:00 -07:00
Michal Novotny
d803bb8c92 Bug 1157322 - TSan: data race netwerk/cache2/CacheIOThread.cpp:315 OnDispatchedEvent, r=honzab 2015-06-01 15:59:17 +02:00