Commit Graph

11996 Commits

Author SHA1 Message Date
Henry Chang
479a6cdcaf Bug 1185439 - Add preamble to nsIMultiPartChannel for MIME type application/package. r=valentin 2015-08-03 11:17:01 +08:00
Valentin Gosu
b489e23bca Bug 1172701 - Make GetSubresourceURI normalize the path for packaged resources r=mcmanus 2015-08-12 00:43:48 +02:00
Christoph Kerschbaumer
a606a3d701 Bug 1188644 - Use channel->ascynOpen2 in netwerk/test (r=mcmanus) 2015-08-10 10:20:40 -07: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
Michal Novotny
a2ea01da63 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
fd1fcf1481 Bug 1182961 (part 2, attempt 2) - Use nsTHashtable::Iterator in CacheIndex. r=michal.
--HG--
extra : rebase_source : f1e111eee99e570c4766a55aefb2906dd12362d6
2015-07-26 20:15:36 -07:00
Henry Chang
5d76bd45e9 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
4f8b38c03b 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
edb231d431 Bug 1187159 - Add mochitest for loading packaged apps (iframe+fetch+mozapp) r=jduell 2015-08-10 11:21:59 +02: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
Nicholas Nethercote
bf4d4d1817 Bug 1182961 (part 1, attempt 2) - Use nsTHashtable::Iterator in CacheIndex. r=michal. 2015-07-28 21:14:39 -07:00
Nicholas Nethercote
cf3a9d61c8 Bug 1182961 (part 3, attempt 2) - Use nsTHashtable::Iterator in CacheIndex. r=michal.
--HG--
extra : rebase_source : 2cb02728091d14c08092325eb7c6da031676e1d7
2015-07-26 20:35:31 -07:00
Ehsan Akhgari
464bb68db3 Backout the tests for bug 1187159 for leaks 2015-08-08 18:13:51 -04:00
Ehsan Akhgari
2c853152f1 Backout bug 1190502 for leaks 2015-08-08 18:13:02 -04: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
7bab44bfcd 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-08 07:12:02 +02:00
Valentin Gosu
f9a1c98968 Bug 1187159 - Add mochitest for loading packaged apps (iframe+fetch+mozapp) r=jduell 2015-08-08 07:11:58 +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
Ryan VanderMeulen
60100a0722 Merge m-c to inbound. a=merge 2015-08-07 16:13:43 -04: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
Daniel Stenberg
f79456b39f Bug 1191258 - check for IFF_RUNNING to detect online interfaces. r=mcmanus 2015-08-05 03:22:00 +02:00
Nicholas Nethercote
01846026c1 Bug 1182961 (part 5, attempt 2) - Use nsTHashtable::Iterator in nsCookieService. r=michal. 2015-07-26 23:40:51 -07:00
Nicholas Nethercote
6eb030ce06 Bug 1182961 (part 4, attempt 2) - Use nsTHashtable::Iterator in CacheFileHandles. r=michal. 2015-07-26 23:31:22 -07:00
Nicholas Nethercote
daab3fdaf7 Backout bff74cecc67c, ffe0edb2aae7, b60b7c267cef, 6da154b43265, bcf6fd3ab9bb (bug 1182961 parts 1--5) for possible intermittent failures and performance problems.
--HG--
extra : rebase_source : 97ab1452e462b1ff24cc77bdadf2a6e82800690d
2015-08-06 16:30:47 -07:00
Daniel Stenberg
960cf2a463 Bug 1191253 - Start the "Link Monitor" thread appropriately. r=mcmanus 2015-08-05 03:13:00 -04:00
Cykesiopka
d93ee984a0 Bug 1124649 - Part 1 - Add specific error messages for various types of STS and PKP header failures. r=keeler,hurley
--HG--
extra : rebase_source : 8210ed5f89cec8c42d5a78b9101f1c54d91e04c6
2015-08-05 07:51:00 +02:00
Wes Kocher
de08e9e79c Merge m-c to inbound, a=merge 2015-08-05 16:47:52 -07:00
Wes Kocher
4d0e220d7f Merge b2ginbound to central, a=merge 2015-08-05 16:45:41 -07:00
Ehsan Akhgari
b71438b17e Bug 1191144 - Remove CACHE_SERVICE_LOCK_WAIT_MAINTHREAD_NSCACHESERVICE_LEAVEPRIVATEBROWSING; r=michal 2015-08-05 11:42:21 -04:00
Patrick McManus
94d981e0c3 Bug 1191291 - convert nsHttpChannel::RetargetDeliveryTo warning to log r=michal.novotny 2015-08-05 09:09:48 -04:00
Carsten "Tomcat" Book
dcc3c5d093 Merge mozilla-central to b2g-inbound 2015-08-05 13:40:29 +02:00
Liang-Heng Chen
a9c1e1a537 Bug 1175387 - close file descriptor after detached from STS. r=mcmanus 2015-08-04 20:01:00 +02:00
Patrick McManus
8f497598a6 bug 1189692 - add telem for quic advertisements r=hurley 2015-07-31 05:43:24 -04:00
Patrick McManus
ec93d8cde4 bug 1189645 - remove spdy telem r=hurley 2015-07-31 04:07:07 -04:00
Nicholas Nethercote
b32aa53dc2 Bug 1182961 (part 5) - Use nsTHashtable::Iterator in nsCookieService. r=michal.
--HG--
extra : rebase_source : a43f8ec3918bbdb226079f6d4503a0b117639863
2015-07-26 23:40:51 -07:00
Nicholas Nethercote
72530c51ab Bug 1182961 (part 4) - Use nsTHashtable::Iterator in CacheFileHandles. r=michal.
--HG--
extra : rebase_source : 35c5892e4fa4c754fade81846d2d1fcb75ced93d
2015-07-26 23:31:22 -07:00
Nicholas Nethercote
c9f9c763d3 Bug 1182961 (part 3) - Use nsTHashtable::Iterator in CacheIndex. r=michal.
--HG--
extra : rebase_source : b0011c4c261846bf314c867790b1315b6c2ca6d7
2015-07-26 20:35:31 -07:00
Nicholas Nethercote
68e8f70a14 Bug 1182961 (part 2) - Use nsTHashtable::Iterator in CacheIndex. r=michal.
--HG--
extra : rebase_source : d3f035201da0c526da3003f30f8719a2635a9a09
2015-07-26 20:15:36 -07:00
Nicholas Nethercote
4535e7d710 Bug 1182961 (part 1) - Use nsTHashtable::Iterator in CacheIndex. r=michal.
--HG--
extra : rebase_source : cc650176cc87916c6683705ca9aa1954d30d1c0d
2015-07-28 21:14:39 -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
65fb80c877 Bug 1190985 - Fix data race in DebugMutexAutoLock r=mcmanus
--HG--
extra : rebase_source : 27a37b0244ae734e39291ae298d65593c9c83f67
2015-08-04 14:16:49 -07:00
Nicholas Nethercote
d98d14fa1e Bug 1189156 (part 4) - Don't use enumeration style for nsBaseHashtable::SizeOf{In,Ex}cludingThis(). r=erahm,jfkthame.
After this change, we have ShallowSizeOf{In,Ex}cludingThis(), which don't do
anything to measure children. (They can be combined with iteration to measure
children.)

--HG--
extra : rebase_source : f98420176f50990bbc5a25e35788328154cfeb00
2015-07-30 21:19:57 -07:00
Nicholas Nethercote
1059c1de13 Bug 1189156 (part 2) - Don't use enumeration style for nsTHashtable::SizeOf{In,Ex}cludingThis(). r=erahm.
After this change, we have ShallowSizeOf{In,Ex}cludingThis(), which don't do
anything to measure children. (They can be combined with iteration to measure
children.)

And we still have the existing single-arg SizeOf{In,Ex}cluding() functions,
which work if the entry type itself defines SizeOfExcludingThis().

--HG--
extra : rebase_source : f93de9b789c21b1b148bed9de795f663f77c9dd9
2015-07-29 01:50:52 -07:00
Nicholas Hurley
fe87d76bdf No bug - Remove extra printf left over from bug 1127618. r=smaug
--HG--
extra : rebase_source : 54a59b88da1cf33d22e479e07ec7f9bcd8f98f65
2015-08-03 14:14:39 -07: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
David Keeler
59ef11f506 bug 1188100 - fold PSM's test_client_cert.js into necko's test_tls_server.js r=mcmanus
--HG--
rename : security/manager/ssl/tests/unit/test_client_cert/cert_dialog.js => netwerk/test/unit/client_cert_chooser.js
rename : security/manager/ssl/tests/unit/test_client_cert/cert_dialog.manifest => netwerk/test/unit/client_cert_chooser.manifest
extra : amend_source : 249efd8e1bc537cf14b3199865df18b8aba62d10
2015-07-29 14:27:54 -07:00
Muhsin Ali Steiman
0f8160d3da Bug 1190069 - Fix uninitialized variable in MDNSResponderOperator.cpp. r=xeonchen 2015-08-01 11:26:00 -04:00
Carsten "Tomcat" Book
19fce95294 Merge mozilla-central to fx-team 2015-08-07 13:21:30 +02:00
Liang-Heng Chen
71452409fa Bug 1188935 - Part 2: enable mDNS module on Android only if API level >= 21; r=mcmanus 2015-08-06 03:23:00 +02:00
Nicholas Nethercote
b84f026b64 Backout bff74cecc67c, ffe0edb2aae7, b60b7c267cef, 6da154b43265, bcf6fd3ab9bb (bug 1182961 parts 1--5) for possible intermittent failures and performance problems.
a=bustage

--HG--
extra : source : d7734e7adeb21c316cae38b88b83c411488e0563
extra : amend_source : 258c4320bbb4714c8ad592387eea9c43f931de0d
2015-08-06 16:30:47 -07:00
Nate Hughes
91f37a593a Bug 1188421 - Properly null memory reporter's compressor reference. r=hurley 2015-07-30 12:31:43 -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
Michal Novotny
bc18a9db2c Bug 1137008 - Implement missing parameters of WebSocket permessage compression extension, r=jduell 2015-07-31 07:12:53 +02:00
Nicholas Nethercote
2d56c1f52e Bug 1189156 (part 1) - Don't use enumeration style for PLDHashTable::SizeOf{In,Ex}cludingThis(). r=froydnj.
After this change, we have PLDHashTable::ShallowSizeOf{In,Ex}cludingThis(),
which don't do anything to measure children. (They can be combined with
iteration to measure children.)

This patch also removes the PL_DHashTableSizeOf{In,Ex}cludingThis() functions.
They're not necessary because the methods can be used instead.

Finally, the patch deliberately converts some SizeOfExcludingThis() calls to
SizeOfIncludingThis(). These are all done on heap pointers so this change is
valid.

--HG--
extra : rebase_source : b1d51096a8e7dcac29d7efd92e28938836ff5481
2015-07-29 22:28:20 -07: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
Gervase Markham
de49451fb3 Bug 1182042 - Update PSL to latest version from Github. r=gerv
--HG--
extra : source : 0ad329ed192e16cc7d021d3dc25887b5d9cff086
2015-07-30 09:48:00 -04:00
Ryan VanderMeulen
df8e16e16f Backed out changeset 0ad329ed192e for landing with the wrong bug number in the commit message. 2015-07-30 16:29:03 -04:00
Gervase Markham
a9599af255 Bug 1107311 - Update PSL to latest version from Github. r=gerv 2015-07-30 09:48:00 -04:00
Ryan VanderMeulen
4bd08c521b Merge m-c to inbound. a=merge 2015-07-30 16:09:17 -04:00
Ryan VanderMeulen
7c486ed4c2 Merge inbound to m-c. a=merge 2015-07-30 16:08:21 -04:00
Shian-Yow Wu
e696b31466 Bug 1069081 - Part 1: Always cache fd in JAR cache except Windows. r=mwu 2015-07-30 16:05:57 +08: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
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
Nicholas Nethercote
87b80f8c66 Bug 1188745 - Rename nsTArray::SizeOfExcludingThis() as ShallowSizeOfExcludingThis(). r=froydnj.
This makes it clearer that, unlike how SizeOf*() functions usually work, this
doesn't measure any children hanging off the array.

And do likewise for nsTObserverArray.

--HG--
extra : rebase_source : 6a8c8d8ffb53ad51b5773afea77126cdd767f149
2015-07-28 23:24:24 -07:00
Bobby Holley
97b9240b34 Bug 1188696 - Hoist nsRefPtr.h into MFBT. r=froydnj 2015-07-29 10:44:59 -07:00
Bobby Holley
5da44c2396 Bug 1186732 - Implement an about:blank page inside of moz-extension. r=billm 2015-07-28 17:18:05 -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
Ehsan Akhgari
b074e45de4 Bug 1188205 - Fix more constructors in netwerk; r=mcmanus 2015-07-28 08:53:24 -04:00
Valentin Gosu
5969831600 Bug 1182487 - Add test for opening the channel with nsIRequest::INHIBIT_CACHING flag set. r=michal 2015-07-10 16:31:43 +02:00
Honza Bambas
11537ba906 Bug 1182487 - Don't try to write to HTTP cache entry in nsHttpChannel when entry is open for reading only. r=michal 2015-07-15 13:30:00 +02:00
Bobby Holley
cbc518f4c3 Bug 1186155 - Use UNIFIED_SOURCES in netwerk/protocol/res. r=billm,sr=mcmanus 2015-07-27 16:30:43 -07:00
Ryan VanderMeulen
4f09769d88 Merge fx-team to m-c. a=merge 2015-07-27 10:39:37 -04:00
Jason Duell
e592f28662 Bug 1176073 - Missing mIPCClosed check in SendReportSecurityMessage. r=honza 2015-07-14 15:03:00 +02: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
Blake Kaplan
6555587480 Bug 1144631 - Make FTP with auth prompts work in e10s. r=billm/dragana 2015-07-21 17:15:00 +02:00
Nate Hughes
94f8966c4b Bug 986302 - Add memory reporting for HPACK tables r=hurley r=njn 2015-07-17 14:38:10 -07:00
Blake Kaplan
3b3a40486f Bug 1186920 - Fix b2g applications that use cookies. r=gwagner 2015-07-23 19:00:49 -07:00
Nicholas Hurley
b99d1f87cc Bug 1181258 - Limit URI length the predictor keeps. r=honzab 2015-07-23 12:21:59 -07:00
Eric Rahm
fb657a2076 Bug 1184275 - Remove warnings that URI is not a file URI. r=jduell
This error is handled properly and appears to happen due to legitimate usage.
The warnings are updated to just return the proper error code.
2015-07-23 11:03:25 -07:00
Valentin Gosu
31d2ce9ce4 Bug 1170837 - Provide way to update packaged apps r=honzab 2015-07-23 17:38:40 +02:00
Valentin Gosu
ca03b1a8ed Bug 1170837 - Add static GetPackageURI method to PackagedAppService r=honzab 2015-07-23 17:38:36 +02:00
Valentin Gosu
4bde5b5668 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 17:38:33 +02:00
Carsten "Tomcat" Book
90a478a751 Backed out changeset 86b2cd28a91b (bug 1170837) for bustage on a CLOSED TREE 2015-07-23 14:37:22 +02:00
Carsten "Tomcat" Book
00cdac9ed2 Backed out changeset 35e4460b0194 (bug 1170837) 2015-07-23 14:30:12 +02:00
Carsten "Tomcat" Book
c1bbed5a87 Backed out changeset 396674528152 (bug 1170837) 2015-07-23 14:25:37 +02:00
Valentin Gosu
86f7baba3d Bug 1170837 - Provide way to update packaged apps r=honzab 2015-07-23 14:07:09 +02:00
Valentin Gosu
1e27079066 Bug 1170837 - Add static GetPackageURI method to PackagedAppService r=honzab 2015-07-23 14:07:04 +02:00
Valentin Gosu
a376f7021a 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
52ef4c4dfb merge mozilla-inbound to mozilla-central a=merge 2015-07-23 12:02:27 +02:00
Ryan VanderMeulen
e7f4ed0f8b Backed out changeset 60d045b1c1a6 (bug 1183781) for causing bug 1186435. a=me 2015-07-22 22:12:29 -04:00
Ryan VanderMeulen
716f0d7045 Merge inbound to m-c. a=merge 2015-07-22 16:34:07 -04:00
Michal Novotny
cb267138f2 Bug 1177278 - Large OOMs in CacheFileMetadata::WriteMetadata, r=honzab 2015-07-22 15:23:16 +02:00
Magnus Melin
83519a856e 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
8bba083e85 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
f925835ed9 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
12ea1bf6fe Bug 1161831 - Factor the sharable bits out of nsIResProtocolHandler. r=billm 2015-07-21 12:57:21 -07:00
Bobby Holley
b089aa1676 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
c5dbe5ac93 Bug 1182066 - Enforce defaultLoadFlags for all requests. r=mayhemer
--HG--
extra : rebase_source : f2239d857000f4dab462fa043a18600919151816
2015-07-21 09:23:00 -04:00
Steven Michaud
2c1c21250c Bug 1186042 - "Undeclared identifier" errors building nsAboutBloat.cpp. r=jduell 2015-07-21 13:04:47 -05:00
Ehsan Akhgari
f3b065306e Bug 1185988 - Don't hold the observer service alive from nsHttpHandler; r=mcmanus 2015-07-21 13:40:33 -04:00
Michael Layzell
811eb00946 Bug 1184971 - Expose cookieBehavior and cookieLifetimePolicy preference variants from nsICookieService. r=ehsan
--HG--
extra : rebase_source : 7cfe37db0fe858f42aceda2ef90a5fa69560b86e
2015-07-17 08:01:00 +02:00
Carsten "Tomcat" Book
af1ca050c6 Backed out changeset 2f4b5acae553 (bug 1184971) for causing OS X Memory Leaks
--HG--
extra : rebase_source : 8a69fbfd8f30276036a80929e2f04b1e22d60341
2015-07-21 10:27:44 +02:00
Carsten "Tomcat" Book
f7531b86f7 Backed out changeset 8b90b21e0c64 (bug 986302) for static build failures 2015-07-21 08:53:37 +02:00
Franziskus Kiefer
b4e4b6d771 Bug 1174913 - remove unnecessary attribute parsing. r=bz 2015-07-13 18:04:42 -07:00
Carsten "Tomcat" Book
b59cdff650 Merge mozilla-central to fx-team 2015-07-22 14:09:48 +02:00
Blake Kaplan
e410cc63aa 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
e97220a88e Bug 1174913 - anchor and area referrer attributes. r=ckerschb, r=bz 2015-06-05 15:25:24 -07:00
Michael Layzell
30664f5e8d Bug 1184971 - Expose cookieBehavior and cookieLifetimePolicy preference variants from nsICookieService. r=ehsan 2015-07-17 08:01:00 +02:00
Nate Hughes
3f6e8d3da5 Bug 986302 - Add memory reporting for HPACK tables. r=hurley r=njn 2015-07-17 14:38:10 -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
Ehsan Akhgari
b0e48ef7eb Bug 1185515 - Don't hold the observer service alive from nsDNSService; r=mcmanus 2015-07-20 17:51:33 -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
35a8c1bb05 Bug 1175803 - Store redirect chain within loadInfo - part 3 e10s (r=mrbkap,mayhemer) 2015-07-19 19:11:38 -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
Ehsan Akhgari
605f42ffc0 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
94743edaf7 Bug 1183781 - Fix leak in nsHostResolver r=sworkman 2015-07-18 00:22:45 +02:00
Ryan VanderMeulen
e2dac14c42 Merge m-c to inbound. a=merge
CLOSED TREE
2015-07-17 10:27:24 -04:00
Ryan VanderMeulen
a33e05c88c Merge inbound to m-c. a=merge 2015-07-17 10:26:22 -04:00
Valentin Gosu
13a8848d29 Bug 1172233 - Allow web packaged apps to be served without a mimetype r=mcmanus 2015-07-17 14:25:43 +02:00
Valentin Gosu
1367b663ec 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
e5e20485f9 Merge m-c to fx-team. a=merge 2015-07-16 16:23:27 -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
Simon Montagu
04f33e7cf4 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
edcb7c1c44 Bug 1158029 - Part 2: mDNS XPCOM module using NsdManager. r=mcmanus 2015-07-16 02:43:00 -04: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
18a0810f4e 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
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
Wes Kocher
ab4dcf759a Merge m-c to fx-team, a=merge 2015-07-15 16:44:38 -07:00
Mike Taylor
78eb87174f Bug 1178760: Add ability to read ua-update.json from APK for Fennec. r=jchen
--HG--
extra : commitid : DFW0zxvv4FZ
extra : rebase_source : 84bcc3f5d494256727b2b9c5f2dbe1fe20cced23
2015-07-15 12:17:29 -07:00
Ryan VanderMeulen
127cb22d85 Merge m-c to inbound. a=merge
CLOSED TREE
2015-07-22 16:46:24 -04: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
Ryan VanderMeulen
e826c2bc72 Backed out changeset 00ec02ec876e (bug 1184395) for Android crashes.
CLOSED TREE
2015-07-16 15:18:35 -04:00
Michael Layzell
ec7f71eae3 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
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
Ehsan Akhgari
bbb4832c4e Bug 1184395 - Release the observer service when the cookie service shuts down; r=jdm 2015-07-16 13:39:27 -04: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
ISHIKAWA, Chiaki
55c4436e4b 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
dbe075d5b8 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
6863f098c6 Bug 1181319 - Correctly use NS_DECL_ISUPPORTS_INHERITED instead of NS_DECL_ISUPPORTS for DataChannelChild. r=mcmanus
--HG--
extra : rebase_source : 30551d2f0507de4bb4dab70b47eae7d53b9fe206
2015-07-07 14:06:00 +02:00
Honza Bambas
51e9d49814 Bug 572151 - Remove calls to SetCookies from HttpChannelChild. r=jduell
--HG--
extra : rebase_source : 2244015204f18e59c65641655c6458c2a3f483df
2015-03-05 11:05:00 +01: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
882b2a61ac Bug 1139297 - Implement CSP upgrade-insecure-requests directive - netwerk changes (r=sworkman)
--HG--
extra : rebase_source : 9c745c71b235541d53d3e9f8111808d3797c4b13
2015-07-10 09:15:17 -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
Ritu Kothari
533256ed4d Bug 1167410 - Removing an unused initialization. r=hurley 2015-06-26 15:33:00 +02:00
Randell Jesup
dfe450fe97 Bug 1155059: Patch 9 - Modify DataChannel.cpp to use updated API r=froydnj 2015-07-09 23:24:11 -04: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
Ehsan Akhgari
8fe0ce4a62 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
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
Nate Hughes
b7694c727c Bug 1136727 - Validate pseudo-header fields in HTTP/2. r=hurley
--HG--
extra : rebase_source : 344f5e5f5800b6ccf304e46125317d0937af8c0e
extra : histedit_source : acd01eef8686ea5d2c0f8f187d0a1c6582be867d
2015-07-08 13:24:07 -07:00
Patrick McManus
4988c8b53f Bug 1178991 - smartptr for http converter r=hurley
--HG--
extra : rebase_source : 26ae963839aaf0ad73ecdfd0b11c53e5b1c7ccac
2015-06-30 17:17:10 -04:00
Patrick McManus
58f89fd9e6 bug 1179560 - some 421 retries dont work r=hurley
--HG--
extra : rebase_source : 5a71917abb8159dab520848c53fb20b210b5a049
2015-07-02 10:34:01 -04:00
Valentin Gosu
56c4a26517 Bug 1177766 - Add logging to PackagedAppService r=honzab 2015-07-08 11:09:14 +02:00
Valentin Gosu
51c24368f8 Bug 1180637 - Packaged Apps do not apply CSP r=honzab 2015-07-08 11:09:04 +02:00
Valentin Gosu
b703d65ac5 Bug 1177465 - Web packaged app resources can't be loaded over https r=honzab 2015-07-08 11:08:51 +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
Nicholas Nethercote
f976bf5495 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
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
Carsten "Tomcat" Book
0b261976db Backed out changeset f83eddcbebbc (bug 1170646) for bustage
--HG--
extra : rebase_source : ac4ea592d4c280c2fe50212e4a8692fe10af0c6f
2015-07-07 11:20:03 +02:00
ISHIKAWA, Chiaki
24c23383c8 Bug 1170646 - Handle short read in (old) Cache code still used by C-C T.B. r=michal
--HG--
extra : rebase_source : 62162bada5175c319ce02e8a9a8ff8ac85970b48
2015-06-21 05:54: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
7fe7150c99 Bug 1177403 - Unable to load http package resources with fetch() or xhr r=mcmanus 2015-07-03 17:15:46 +02: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
85e3991f21 Bug 1170197 - Add test. r=mcmanus 2015-06-26 17:27:00 -04: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
Ehsan Akhgari
2ad9d6b396 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
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
Nicholas Nethercote
2599e0384d Bug 1175771 (part 3) - Replace nsCacheEntryHashable::VisitEntries() with iterators. r=michal.
Note that FreeCacheEntries was unused, and so could be removed as well.

--HG--
extra : rebase_source : 9b34399dc79479b47935b89c21c0525d010127c1
2015-06-17 22:31:08 -07:00
Nicholas Nethercote
4ce0a4d3ed Bug 1175771 (part 2) - Remove PL_DHashTableEnumerate() use from nsHostResolver. r=michal.
--HG--
extra : rebase_source : 28d252c83005b74c7106412a114fe7443f244ea4
2015-06-10 18:28:03 -07:00
Nicholas Nethercote
601e5edf97 Bug 1175771 (part 1) - Fix indentation in nsHostResolver::FlushCache(). r=michal.
--HG--
extra : rebase_source : e158de557cdf93c132627268c8dd2342d4c3de5f
2015-06-10 17:09:32 -07:00
Patrick McManus
57aa78c815 bug 1174152 - update test to be nsIObserver based r=hurley 2015-06-24 13:50:37 -04:00
Patrick McManus
cc04db5e46 bug 1174152 - crossorigin attribute for link rel=preconnect r=hsivonen 2015-06-19 17:11:42 -04: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
Michal Novotny
3ce10dc57a Bug 1171724 - Large OOMs in CacheFileMetadata, r=honzab 2015-06-24 06:33:37 +02:00
Valentin Gosu
d5df90e127 Bug 1142083 - Add test for IDN Unicode domain redirect. r=mcmanus 2015-06-20 00:03:57 +03:00
Michal Novotny
c6803255b7 Bug 1170645 - Intermittent crash in mozilla::net::nsWSAdmissionManager::RemoveFromQueue(mozilla::net::WebSocketChannel*), r=mcmanus 2015-06-21 14:37:36 +02:00
Ryan VanderMeulen
bbdd38fdde Merge inbound to m-c. a=merge
CLOSED TREE
2015-06-19 16:33:59 -04:00
Patrick McManus
8cfe4dc411 Bug 1175545 - Dont process alt-svc on 421 r=hurley 2015-06-19 08:32:05 -04:00
Mike Taylor
d22a598539 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
76297166d8 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
2288418a7a Bug 1142083 - IDN Unicode domain redirect is broken r=mcmanus 2015-06-18 16:05:21 +03:00
Carsten "Tomcat" Book
dc3312548b Backed out changeset b2c472fe14ca (bug 1175480) for crashes in serviceworkers/test_request_context.htm 2015-06-18 09:54:44 +02:00
Boris Zbarsky
53a0fc0478 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
cee6f01c68 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
40bbd6a80c Bug 1173860: Null check on sGlobalEntryTables. r=mcmanus 2015-06-17 11:23:43 -04:00
Carsten "Tomcat" Book
325cd7219a Backed out changeset feb7cd25aafb (bug 1174152) for mulet timeout in test_rel_preconnect.html
--HG--
extra : rebase_source : aabdc3669df5b252c4373b9fb6049565e6560a0c
2015-06-17 16:58:57 +02:00
Patrick McManus
78c4fb4975 bug 1174152 link rel=preconnect crossorigin=anonymous r=hsivonen 2015-05-06 10:09:27 -04: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
Michal Novotny
671167c884 Bug 1173378 - crash in mozilla::net::HttpBaseChannel::OverrideSecurityInfo(nsISupports*), r=ehsan 2015-06-17 13:16:33 +02:00
Fernando Jimenez
9d27d75942 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
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
Valentin Gosu
d8933c48f3 Bug 1171127 - Listeners are not released in OnStopRequest in e10s mode. r=jduell 2015-06-15 02:39:29 +03:00
Ryan VanderMeulen
350215c93f Backed out changeset 068df0223a6c (bug 1125961) for e10s crashes.
CLOSED TREE
2015-06-15 15:27:53 -04:00
Josh Matthews
e3e3f30ca2 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
0544e6bf2c Bug 1164714 - Move netwerk/test/TestSTSParser.cpp into security/manager/ssl/tests/. r=keeler
--HG--
rename : netwerk/test/TestSTSParser.cpp => security/manager/ssl/tests/compiled/TestSTSParser.cpp
2015-06-14 21:37:12 -07:00
Michal Novotny
075c39f3b9 Bug 1151812 - Add telemetry to find optimal cache entry hash size, r=honzab 2015-06-14 14:13:18 +02: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
Ted Mielczarek
67dc1eedaa bug 1170582 - Fix nsSocketTransport on iOS. r=mayhemer
--HG--
extra : commitid : 2DvDwkwMsaH
extra : rebase_source : c59dfe432e01e9dbedbeda8d5ea847311df19d26
2015-05-06 07:51:51 -04:00
Ben Kelly
c88bedc28b Bug 1172884 P1 Properly decode body when intercepted response redirects. r=jduell 2015-06-12 07:20:21 -07:00
Sanchit Kumar
8411afb4ae Bug 1171016 - Initialize the linelen variable at its declaration in ParseFTPList.cpp. r=mcmanus 2015-06-11 11:47:00 -04:00
Nicholas Nethercote
00d9c7daa3 Bug 1173247 (part 2) - Remove PL_DHashTableEnumerate() uses from nsDiskCacheBindery. r=michal. 2015-06-10 13:07:41 -07:00
Nicholas Nethercote
fc71ecdf27 Bug 1173247 (part 1) - Remove PL_DHashTableEnumerate() uses from nsDiskCacheBindery. r=michal. 2015-06-10 13:07:41 -07:00
Phil Ringnalda
26d25ec201 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
10246c32dc Bug 1171583 - Remove mutable warning from |nsSimpleURI::SetUserPass|. r=bz 2015-06-11 18:32:03 -07:00
Ben Kelly
9e311feb1c Bug 1172884 P1 Properly decode body when intercepted response redirects. r=jduell 2015-06-11 18:29:28 -07:00
Wes Kocher
6783fcf01d Backed out changeset 6231a72d0557 (bug 1172884) for being the wrong patches landed a=backout
--HG--
extra : amend_source : 0c9d908d7b413bcf054c85aa5db901651cdc06a3
2015-06-11 17:57:51 -07:00
Ben Kelly
2ce68bcbc9 Bug 1172884 P1 Properly decode body when intercepted response redirects. r=mayhemer a=kwierso 2015-06-11 17:52:01 -07:00
Nicholas Nethercote
b73bd8538c 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
8fb3be0911 Bug 1172789 (part 2) - Remove PL_DHashTableEnumerate() uses from nsLoadGroup. r=michal. 2015-06-10 13:07:40 -07:00
Nicholas Nethercote
9569f3b922 Bug 1172789 (part 1) - Remove PL_DHashTableEnumerate() uses from nsLoadGroup. r=michal. 2015-06-10 13:07:40 -07:00
Wes Kocher
cf559bd6b2 Merge m-c to inbound, a=merge CLOSED TREE 2015-06-10 18:38:28 -07:00
Wes Kocher
4eedce1509 Merge inbound to central, a=merge 2015-06-10 18:29:39 -07:00
Eric Rahm
0edf5974e9 Bug 1171716 - Part 5: Use NS_ReleaseOnMainThread in HttpBaseChannel dtor. r=froydnj 2015-06-10 08:33:32 -07:00
Eric Rahm
7cb6d37333 Bug 1171716 - Part 3: Use NS_ReleaseOnMainThread in WebSocketChannel dtor. r=froydnj 2015-06-10 08:33:30 -07:00
Eric Rahm
49cd162711 Bug 1171716 - Part 2: Use NS_ReleaseOnMainThread in nsBaseChannel. r=froydnj 2015-06-10 08:33:28 -07:00
Birunthan Mohanathas
68936083a8 Bug 1172584 - Avoid coping FallibleTArray in SendRequestRunnable constructor. r=dragana 2015-06-08 10:52:14 -07:00
Bill McCloskey
3d39da47b9 Bug 1163861 - Pass window IDs in nsILoadInfo (r=ckerschb) 2015-06-09 21:04:50 -07:00
Wes Kocher
54bccdc15f 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