Honza Bambas
ee49bea9fc
Bug 1447566 - Remove all remaning MOZ_ASSERT(!mSynTimer) checks from nsHalfOpenSocket, since we no longer enforce it null under certain conditions. r=valentin
2018-03-21 08:28:00 -04:00
Miko Mynttinen
65c6bee9d6
Bug 1445302 - Replace TArray.RemoveElementAt(TArray.Length() - 1) pattern with TArray.RemoveLastElement() or TArray.PopLastElement() r=froydnj
...
MozReview-Commit-ID: rGjabnP2iz
--HG--
extra : rebase_source : 1ef6c5ce028ac9ebd9f3176d57835c43fe46bada
2018-03-13 14:51:33 +01:00
Valentin Gosu
eccc344c51
Bug 1442242 - Make the constuctors of URI implementations private r=mayhemer
...
MozReview-Commit-ID: LonNnZyJjVO
--HG--
extra : rebase_source : ceefc81a669b17f68f193fce5f172f9f2268a998
2018-03-20 23:23:31 +01:00
Valentin Gosu
d4bfa7921c
Bug 1442242 - Add nsIURIMutator method to mark when the URI implementation should support nsIFileURL r=mayhemer
...
* This is needed in order to make the constructors of URI implementations private
MozReview-Commit-ID: 8dddDXbmrfF
--HG--
extra : rebase_source : b8e471d228617ae4bd07c5ed6317951c06ce8d56
2018-03-20 12:52:43 +01:00
Valentin Gosu
ba3f9989ec
Bug 1426353 - Do not allow the parent process to consume alt-data generated in the content process. r=michal
...
MozReview-Commit-ID: htQ28muaBI
--HG--
rename : netwerk/test/unit/test_alt-data_simple.js => netwerk/test/unit/test_alt-data_cross_process.js
rename : netwerk/test/unit_ipc/test_alt-data_simple_wrap.js => netwerk/test/unit_ipc/test_alt-data_cross_process_wrap.js
2018-03-06 02:44:51 +01:00
Andreea Pavel
d9d9517a78
Merge mozilla-central to autoland. a=merge on a CLOSED TREE
2018-03-20 00:42:18 +02:00
Honza Bambas
e5943f18e9
Bug 1445796 - Add logging of a calling JS script to more http channel methods. r=valentin
2018-03-16 09:28:00 -04:00
Honza Bambas
c940bbdf06
Bug 1430659 - Network requests in "blocked" state for long time (1+ minute) when ipv6 hosts are no longer available. r=valentin
2018-03-16 09:06:00 -04:00
Valentin Gosu
af5eeff2e3
Bug 1442239 - Make URI deserialization (nsISerializable.read) happen via nsIURIMutator only r=mayhemer
...
* Deserialization now only happens via a mutator
* The CID for URI implementations actually returns the nsIURIMutator for each class
* The QueryInterface of mutators implementing nsISerializable will now act as a finalizer if passed the IID of an interface implemented by the URI it holds
MozReview-Commit-ID: H5MUJOEkpia
--HG--
extra : rebase_source : 01c8d16f7d31977eda6ca061e7889cedbf6940c2
2018-03-19 20:22:32 +01:00
Honza Bambas
55a95407a1
Bug 1395760 - In offline mode, fail HTTP load when a cache entry is partial, r=michal
2018-03-02 13:42:00 +02:00
Andreea Pavel
e5950c0d39
Backed out 2 changesets (bug 1442239) for xpcshell failures at widget/tests/unit/test_taskbar_jumplistitems.js on a CLOSED TREE
...
Backed out changeset 513cd669aca1 (bug 1442239)
Backed out changeset aef4c73f736f (bug 1442239)
2018-03-19 21:19:26 +02:00
Valentin Gosu
f0c7a1ae13
Bug 1442239 - Make URI deserialization (nsISerializable.read) happen via nsIURIMutator only r=mayhemer
...
* Deserialization now only happens via a mutator
* The CID for URI implementations actually returns the nsIURIMutator for each class
* The QueryInterface of mutators implementing nsISerializable will now act as a finalizer if passed the IID of an interface implemented by the URI it holds
MozReview-Commit-ID: H5MUJOEkpia
--HG--
extra : rebase_source : 8ebb459445cab23288a6c4c86e4e00c6ee611e34
2018-03-08 13:35:10 +01:00
David Keeler
394c8f01a3
bug 1444532 - fix a leak in SHA256 in nsHttpConnectionInfo.cpp r=mayhemer
...
The original code (from bug 1200802) declared an XPCOM object as a static bare
pointer, which for future reference is probably never the right thing to do. It
might have worked if it was cleared before shutdown but it never was.
MozReview-Commit-ID: EMe7wgzm6zv
--HG--
extra : rebase_source : 572ce6822e297692bab3311a65e1143785b913c4
2018-03-09 14:16:57 -08:00
Jonathan Kingston
10ebc30d5d
Bug 1440701 - Adding in telemetry for upgrading display content. r=ckerschb,valentin
...
MozReview-Commit-ID: 7oEIith4Ehv
--HG--
extra : rebase_source : 454d56277aa5dc08bf8cfd7cd9c1e24d31014838
2018-03-04 14:33:33 +00:00
Tom Ritter
9c3d32ebab
Bug 1444490 Declare classses (and one method) in network/ final to reduce virtual function calls r=nwgh
...
MozReview-Commit-ID: 4oaazbPhpbc
--HG--
extra : rebase_source : 7c01066363605c64fc76332686b2c4d9c2af6518
2018-03-09 08:37:18 -06:00
Andrea Marchesini
5784769019
Bug 1443079 - nsScriptError.isFromPrivateWindow must match the correct value also in e10s mode, r=smaug
2018-03-13 06:40:38 +01:00
Nathan Froyd
edc7498b90
Bug 1444472 - fix incorrect clang warning in nsCORSListenerProxy; r=valentin
...
Older versions of clang complain about this code, with:
netwerk/protocol/http/nsCORSListenerProxy.cpp:230:5: error: default initialization of an object of const type 'const struct CheckHeaderToken' without a user-provided default constructor
Later versions of the standard were amended to make this not an error,
but clang still warns. Pacify clang by making the object not const.
2018-03-12 16:46:33 -04:00
Patrick McManus
aebf4bd069
Bug 1444453 - require version >= 10.13.4 for tfo on mac r=bagder
...
MozReview-Commit-ID: 6jYWQtcxRuA
--HG--
extra : rebase_source : 522fc28a04b951063c1c199f8017836c4f5f9e6a
2018-03-09 12:26:06 -05:00
Eric Rahm
cc1509e530
Bug 1442756 - Switch nsHttpAuthCache::mDB to nsClassHashtable. r=mayhemer
...
--HG--
extra : rebase_source : 398e2105ea78c26f14419179fb0387c771384858
2018-03-02 15:04:25 -08:00
Honza Bambas
ecd9c51e6f
Bug 1440567 - Add non-null checks around assignment of warning report to preflight HTTP channel in nsCORSListenerProxy::StartCORSPreflight. r=dveditz
2018-03-07 08:03:00 -05:00
Nathan Froyd
72e140cbf6
Bug 1443316 - part 3 - make cache entry request checking more readable; r=ckerschb
...
What we're really doing in CacheEntry::CheckRequest is checking:
a) Whether the method is contained in our allowed methods; and
b) Whether all of the headers are contained in our allowed headers.
nsTArray lets us check directly for containing elements, so let's use
that facility rather than rolling our own.
2018-03-07 13:39:54 -05:00
Nathan Froyd
4e5f97268e
Bug 1443316 - part 2 - don't repeatedly construct comparators when checking cache entries; r=ckerschb
...
nsCaseInsensitiveCStringComparator ought to be cheap to construct, but
the object actually has a vtable to install and whatnot. So it's
beneficial to pull the construction of it outside of the headers loop.
2018-03-07 13:39:54 -05:00
Nathan Froyd
4e03eee08a
Bug 1443316 - part 1 - micro-optimize purging expired preflight cache entries; r=ckerschb
...
The entries in mMethods and mHeaders aren't sorted in any special way,
so we can remove expired entries using UnorderedRemoveElementAt, which
is faster than RemoveElementAt.
2018-03-07 13:39:54 -05:00
Honza Bambas
8aaa7351b0
Bug 1438935 - Serialize selected LoadInfo properties from HTTPChannelParent to HTTPChannelChild through OnStartRequest and Redirect1Begin, r=asuth
...
--HG--
extra : rebase_source : 6d93112fbd0bcd9562094a05c70cb02e0c3bb4b9
2018-03-06 08:07:00 +02:00
Nika Layzell
7f7a76ec67
Bug 1440771 - Part 4: Use nsCOMPtr<nsIInputStream> directly in PNecko, r=baku
...
MozReview-Commit-ID: COnMiadbCjn
2018-03-05 16:00:06 -05:00
Valentin Gosu
f102a081b2
Bug 1434163 - Make all nsIURI attributes readonly r=mayhemer
...
MozReview-Commit-ID: KtjO8VWjPF5
--HG--
extra : rebase_source : 061a6db73e36b3a0b3732d44379bbc10e8268f9a
2018-02-27 00:07:48 +01:00
Ben Kelly
6a92d27239
Bug 1440775 Make fetch API force-cache and only-if-cached use VALIDATE_NEVER instead of LOAD_FROM_CACHE. r=mayhemer
2018-03-01 07:37:31 -08:00
Ben Kelly
251a6dfaf4
Bug 1440565 P1 Make sure to clear any existing cache related load flags when setting the default fetch() RequestCache value. r=asuth
2018-02-28 10:34:13 -08:00
Sebastian Hengst
769222fadf
merge mozilla-inbound to mozilla-central. a=merge
...
--HG--
rename : browser/base/content/tabbrowser.xml => browser/base/content/tabbrowser.js
2018-02-28 12:54:12 +02:00
Nathan Froyd
b5d5605a54
Bug 1441584 - part 2 - declare some URI classes final; r=valentin
2018-02-27 20:13:57 -05:00
Nathan Froyd
c821ec9351
Bug 1441584 - part 1 - declare inner URI Mutator classes final; r=valentin
...
For documentation purposes and to assist the compiler.
2018-02-27 20:13:57 -05:00
Honza Bambas
281502cac6
Bug 1363284 - HTTP/2 anonymous/onymous session (connection) coalescing, r=mayhemer
...
--HG--
extra : rebase_source : 66192a32668de8a9cd99722d1e0860cce2f84030
2018-02-15 09:10:00 +02:00
Valentin Gosu
823bcbf677
Bug 1434766 - Make nsIFileURL attributes readonly r=mayhemer
...
MozReview-Commit-ID: AN5EzyuuKuJ
--HG--
extra : rebase_source : 20794ce1c867915b4cae71b7abb9dcdca27fd290
2018-02-26 05:24:09 +01:00
arthur.iakab
17cd218519
Backed out changeset 56336c4873fe (bug 1434766) for build bustages on a CLOSED TREE
2018-02-27 17:14:15 +02:00
Valentin Gosu
f77fba2c4c
Bug 1434766 - Make nsIFileURL attributes readonly r=mayhemer
...
MozReview-Commit-ID: AN5EzyuuKuJ
--HG--
extra : rebase_source : 2d986fa39930469472f24a208d9b06650ddb78f4
2018-02-26 05:24:09 +01:00
Valentin Gosu
ed218f0a19
Bug 1433958 - Change code that sets nsIURI.scheme to use nsIURIMutator r=mayhemer
...
MozReview-Commit-ID: GgyIkZSG2y3
--HG--
extra : rebase_source : 5398a29d8cb910c909ed88e1a6cbd9fd63e6b745
2018-02-26 20:43:47 +01:00
Valentin Gosu
ec9082b60a
Bug 1433958 - Change code that sets nsIURI.query to use nsIURIMutator r=mayhemer
...
MozReview-Commit-ID: JKW8IsaFY10
--HG--
extra : rebase_source : 45ffa07c34739adf4de681fec1370645b0f74985
2018-02-26 20:43:46 +01:00
Valentin Gosu
4c1c2d2005
Bug 1433958 - Change code that sets nsIURI.ref to use nsIURIMutator r=mayhemer
...
MozReview-Commit-ID: 4caicZFBkcQ
--HG--
extra : rebase_source : fe32f156392a9e0ce69fa6030278eaca43a69482
2018-02-26 20:43:46 +01:00
Valentin Gosu
84b854ce2c
Bug 1433958 - Change code that sets nsIURI.userPass to use nsIURIMutator r=mayhemer
...
* Code in XMLHttpRequestMainThread is converted to set the username and password individually. This is because when the parameters are empty, it ended up calling SetUserPass(":") which always returns an error.
MozReview-Commit-ID: 3cK5HeyzjFE
--HG--
extra : rebase_source : f34400c11245d88648b0ae9c196637628afa9517
2018-02-26 20:43:46 +01:00
Valentin Gosu
710c2e2fc9
Bug 1433958 - Change code that sets nsIURI.filePath to use nsIURIMutator r=mayhemer
...
MozReview-Commit-ID: GYHpakKPEbe
--HG--
extra : rebase_source : 521966b446284fbe215dfc8518acafc5de9ded5c
2018-02-26 20:43:45 +01:00
Valentin Gosu
7bd0336d01
Bug 1433958 - Change code that sets nsIURI.pathQueryRef to use nsIURIMutator r=mayhemer
...
MozReview-Commit-ID: HVyZ3E1XuLN
--HG--
extra : rebase_source : fd122b3122e0f3eb371d429bd86ad35d09dcfbf6
2018-02-26 20:43:45 +01:00
Valentin Gosu
a60ce32b46
Bug 1439931 - nsIIOService.extractScheme/net_ExtractURLScheme should lowercase its output r=mayhemer
...
MozReview-Commit-ID: LZ2rqIdIoXQ
--HG--
extra : rebase_source : 3d9973f0001ddc2d98cad0ddddb646cedac489c7
2018-02-26 16:42:27 +01:00
Patrick McManus
4ece6279ba
Bug 1439105 - Ban H2 Client Certs Post Handshake r=bagder,keeler
...
MozReview-Commit-ID: Dfx5bB5NOBp
--HG--
extra : rebase_source : ec0984aec6625950b139c06a4ae3da69f49afdf3
2018-02-17 08:10:13 -05:00
Sebastian Hengst
e6ed14057b
merge mozilla-central to autoland on a CLOSED TREE
...
--HG--
extra : amend_source : d88824ea9bbe5e0298f0d64fd0e4cdedcbee342c
2018-02-24 03:07:44 +02:00
Florian Quèze
682b1ec3b2
Bug 1440284 - change this.EXPORTED_SYMBOLS back to var EXPORTED_SYMBOLS in JS modules, r=mccr8.
2018-02-23 20:50:01 +01:00
Ben Kelly
0d2b3d9277
Bug 1439879 Add some more SW preference checks to e10s http channel code. r=asuth
2018-02-23 11:15:25 -08:00
Gurzau Raul
2a77281049
Merge mozilla-central to autoland. a=merge CLOSED TREE
2018-02-21 19:30:44 +02:00
Christoph Kerschbaumer
a6c1ffb498
Bug 1434357: Exempt Web Extensions from insecure redirects to data: URIs. r=kmag,mayhemer
2018-02-18 19:52:52 +01:00
Jonathan Kingston
8afc412494
Bug 1435733 - Upgrade mixed display content pref. r=baku,ckerschb,francois,mayhemer
...
MozReview-Commit-ID: ETIgVF3zhRu
--HG--
extra : rebase_source : e4c59f50584158f4b31527347b10424b56692fa1
2018-02-05 15:37:27 +00:00
Gurzau Raul
082f8e6d89
Merge inbound to mozilla-central. a=merge
2018-02-21 12:01:33 +02:00