Граф коммитов

16106 Коммитов

Автор SHA1 Сообщение Дата
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
L. David Baron ed8327b354 Bug 1446079 - Remove test_predictor.js setting of new-cache preferences that are no longer needed. r=hurley
These are the only occurrences of "browser.cache.use_new_backend" in the tree.

MozReview-Commit-ID: IOSw0uUD5FW

--HG--
extra : rebase_source : c6c7e6abfdf2c3ff23c1f18e36110781f6b5580b
2018-03-16 08:45:08 -07:00
Ryan VanderMeulen 5383105dd9 Bug 1086964 - Remove uses of no_pgo that are no longer needed. r=dmajor 2018-03-14 18:18:32 -04: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
Coroiu Cristina 0f6841e0d2 Backed out 2 changesets (bug 1443080) for spidermonkey build bustage at build/src/js/src/jit/BaselineCacheIRCompiler.cpp
Backed out changeset 7d509bb8a35d (bug 1443080)
Backed out changeset 53bdcd5937cd (bug 1443080)

--HG--
extra : rebase_source : 59b5350d2959c0b065aedd34bfe8337216c0ea4b
2018-03-14 11:13:21 +02:00
Sylvestre Ledru c07eb73986 Bug 1443080 - Use the static call for static methods (not instance) r=Ehsan
MozReview-Commit-ID: JwHh4bzxuTR

--HG--
extra : rebase_source : 17c91bfd7241e3e522b1413b6e544df74f5361a0
2018-03-05 13:43:54 +01: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
Andreea Pavel 8fa0b32c84 Merge mozilla-inbound to mozilla-cenral. a=merge 2018-03-13 19:01:32 +02:00
Narcis Beleuzu 298d1d55b5 Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-03-13 12:36:54 +02:00
Daniel Stenberg c999b36f90 bug 1441131 - TRR: proxy storage removal to the mainthread r=valentin
MozReview-Commit-ID: K4Ar0RbSRzS

--HG--
extra : rebase_source : 6cefcc668f6004a59c09b065f2152250dbc83879
2018-03-12 15:57:13 +01:00
Daniel Stenberg cc208144a3 bug 1445183 store TRR duration when the response is used r=valentin
Previously it would store the time even for early AAAA responses that
weren't used until the A response came in, thus getting the timing
wrong.

MozReview-Commit-ID: KctUjMjH5FR

--HG--
extra : rebase_source : fafd7ad25cd1b7a43d4b4a5653600cad830b471d
2018-03-13 10:37:50 +01:00
Daniel Stenberg de5b0bf154 bug 1444887 TRR: get captive portal state in init r=valentin
To prevent it from sitting waiting for an event that was sent before the
TRRService started.

MozReview-Commit-ID: 9F0IlWGdA9O

--HG--
extra : rebase_source : 6a70210a4e538d8a1b240684a0b3ed5fed38e6ad
2018-03-12 14:48:49 +01:00
Noemi Erli ac0a30f58c Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-03-13 01:16:04 +02:00
Daniel Stenberg 51e2dbf071 bug 1444858 - TRR: respect network.dns.disableIPv6 r=valentin
MozReview-Commit-ID: 18STac9ASIB

--HG--
extra : rebase_source : e3e8956feee2ec9e4dfe438e1b6c20dc0c478ab9
2018-03-12 13:19:22 +01:00
Honza Bambas ea33c31195 Bug 1444160 - Fix calculation of network socket timeout logic. r=valentin, mayhemer 2018-03-12 07:00:00 +02: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
Daniel Stenberg f0caae2f7c bug 1441391 - TRR: restart failed NS confirms in TRR-only mode r=valentin
MozReview-Commit-ID: FHw3Zx07iFG

--HG--
extra : rebase_source : 55a09920127aa54e542ed736b92ca6fda63f889c
2018-03-09 09:05:48 +01:00
Dorel Luca 150521bb4b Backed out changeset 798a47cd74d5 (bug 1441391) for build bustages. CLOSED TREE 2018-03-09 14:49:02 +02:00
Daniel Stenberg fd2336dfd3 bug 1441391 - TRR: restart failed NS confirms in TRR-only mode r=valentin
MozReview-Commit-ID: FHw3Zx07iFG

--HG--
extra : rebase_source : baa674f1a488c6ee5383a4f72c66bb595285db60
2018-03-09 09:05:48 +01:00
Brindusan Cristian eb51abf4fb Merge inbound to mozilla-central. a=merge 2018-03-08 20:00:36 +02:00
Nathan Froyd d260382328 Bug 1443900 - don't allocate nsCStrings when doing integer parsing; r=michal
There's no need to allocate a completely new nsCString when all we want
to do is parse a character string into an integer.  We can allocate a
dependent string instead, which will avoid some memory churn.
2018-03-08 09:43:00 -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
Daniel Stenberg 20d398643b bug 1441256 - bypass cache when retrying connection without TRR r=mcmanus,valentin
Otherwise it will just load back the same (problematic) addresses from the
cache again the second time. This introduces a new resolver bit
(REFRESH_CACHE) that also invalidates the existing cache entry while doing the
new resolve.

MozReview-Commit-ID: 5Bc2KiAGYYA

--HG--
extra : rebase_source : ae368c88a5db27f0980b9928439d27588bc84815
2018-03-06 14:50:21 +01: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
Nathan Froyd 19a0b532bc Bug 1443613 - don't allocate temporary strings for DNSRequestChild; r=mayhemer
DNSRequestChild's constructor takes `const nsCString&` parameters.  If
you have a `const nsACString&` argument to pass in to the constructor,
you're forced to construct a temporary nsCString object to satisfy the
prototype.  But the temporary string will just get copied inside the
constructor and you'll have to destroy the temporary string object you
created.

Let's skip all this, and just have DNSRequestChild take `const
nsACString&` arguments instead, and avoid the temporary object.
2018-03-07 12:22:03 -05:00
Bogdan Tara f93e407658 Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-03-07 12:06:25 +02:00
Daniel Stenberg 80c6547919 bug 1443489 - TRR: require a pref set to allow early AAAA responses r=valentin
Early AAAA responses might cause issues on hosts without working native
IPv6 connectivity, of course especially notable in TRR-only mode.

MozReview-Commit-ID: 6ZqE6AKnucH

--HG--
extra : rebase_source : ff42cb8daf941a3fa1f7e783c76d823e879024c3
2018-03-06 16:07:29 +01: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
Cosmin Sabou c17d867e25 Merge inbound to mozilla-central. a=merge
--HG--
rename : browser/base/content/tabbrowser.js => browser/modules/AsyncTabSwitcher.jsm
2018-03-06 06:27:48 +02:00
Cosmin Sabou ed1b2a8736 Backed out 4 changesets (bug 1437167) for build bustages on nsUpdateDriver.cpp and WindowsMessageLoop.cpp on a CLOSED TREE.
Backed out changeset b98740e7c639 (bug 1437167)
Backed out changeset 4476e8f51fa6 (bug 1437167)
Backed out changeset c79dc40faa41 (bug 1437167)
Backed out changeset b608d2dcbb86 (bug 1437167)
2018-03-06 00:09:46 +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
Nika Layzell 19803dc200 Bug 1440511 - Part 1: Correctly namespace nsHttpResponseHead in NeckoChannelParams.ipdlh, r=froydnj
MozReview-Commit-ID: DVkTwAmqmkc
2018-03-05 16:00:01 -05:00
Nika Layzell 262be91f75 Bug 1437167 - Part 1: Stop using PRIntervalTime as the argument to CondVar::Wait and Monitor::Wait, r=mstange, r=froydnj
MozReview-Commit-ID: BN18I8Q6c7S
2018-03-05 16:00:00 -05:00
Valentin Gosu 34872b6d20 Bug 1441688 - Remove nsIIPCSerializableURI.Deserialize r=mayhemer
MozReview-Commit-ID: 8gwX3vSKWNX

--HG--
extra : rebase_source : a2c21a7e66aa8be3c2e345ca64feea967b380491
2018-03-05 04:14:44 +01: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
Kirk Steuber 06cca893ea Bug 1442429 - Correct the documentation for nsIBrowserSearchService::addEngineWithDetails r=mkaply
MozReview-Commit-ID: EryCTRT5t5I

--HG--
extra : rebase_source : c771bebb9fe894390ea272ca4259a9847aeaaa8a
2018-03-01 14:13:51 -08: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
Nicholas Nethercote 439e258873 Bug 1438433 - Make network.predictor.cleaned-up a non-VarCache pref. r=hurley.
mCleanedUp is a VarCache variable, which mirrors the canonical value of the
network.predictor.cleaned-up pref. When the canonical pref value is modified,
e.g. by SetBool(), then mCleanedUp is also updated.

But the updating relationship is one-way -- if mCleanedUp is modified, the
canonical value of the pref is not updated. Such an inconsistency is bad! For
example, Predictor.cpp will use mCleanedUp's value, but about:config will show
the canonical value.

(For this reason, VarCache prefs are meant to be read-only outside of libpref.
Bug 1436655 will enforce this.)

This patch changes mCleanedUp so it's not a VarCache variable, avoiding the
mirroring issue.

MozReview-Commit-ID: LIG02gMkRjF

--HG--
extra : rebase_source : 273b2372ce718b0f346695a0dc96a189cd3ba233
2018-03-13 13:06:30 +11:00
Nicholas Nethercote f87fadb9cb Bug 1438433 - Remove the network.predictor.redirect-likely-confidence pref. r=hurley.
It's unused.

MozReview-Commit-ID: DmHwJ3oW3Vq

--HG--
extra : rebase_source : 89d49a7d680e07383de82c2b4cb3a74a13f09c1e
2018-03-07 15:50:14 +11: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
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
Florian Quèze f3ee8dd20b Bug 1433175 - more aggressive scripted patch to replace remaining Components.classes, Components.interfaces, Components.utils and Components.results uses with Cc, Ci, Cu and Cr, r=Mossop. 2018-02-28 18:51:35 +01:00
Florian Quèze 6df7549a3e Bug 1433175 - semi-automated indent fix, r=Mossop. 2018-02-28 18:51:34 +01:00
Florian Quèze c714053d73 Bug 1433175 - scripted patch to replace Components.classes[, Components.interfaces.nsI, Components.utils. and Components.results. with Cc, Ci, Cu and Cr, r=Mossop. 2018-02-28 18:51:33 +01: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
Andrea Marchesini 18cabbba7b Bug 1431646 - Adding a completed boolean to know if the operation is completed in NS_ReadInputStreamToBuffer(), r=smaug 2018-02-28 07:14:41 +01:00
Andrea Marchesini 4ce2708b72 Bug 1441502 - nsBufferedInputStream should not change the exposed interfaces, r=smaug 2018-02-28 07:14:41 +01: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 2a78b51a84 Bug 1433958 - If setting the host succeeds, SetHostPort should not return an error code r=mayhemer
WebPlatformTests expect that when calling
url.host = "host:" // port missing
url.host = "host:65536" // port too big
url.host = "host:bla" // invalid port
that the hostname will be set, but the port will be left unchanged.
Since DOM APIs are the only consumers for SetHostPort it means we can change this behaviour to match the WPT expectations.
As such, SetHostPort will return NS_OK if setting the host succeded, and will ignore if setting the port failed.

MozReview-Commit-ID: LoMw8hCWlCv

--HG--
extra : rebase_source : db28b73d98060c2f66f899afe1a4ae26f4db85db
2018-02-26 20:43:47 +01:00
Valentin Gosu 27e9e0be9f Bug 1433958 - Change code that sets nsIURI.host to use nsIURIMutator r=mayhemer
MozReview-Commit-ID: 7T5gCu8WOfa

--HG--
extra : rebase_source : 752c34e5f9dde2e16fc9243c11860b987acbcb93
2018-02-26 20:43:47 +01:00
Valentin Gosu 7f3b09b694 Bug 1433958 - Change code that sets nsIURI.port to use nsIURIMutator r=mayhemer
MozReview-Commit-ID: 7Lu7JJvDUGF

--HG--
extra : rebase_source : 8d5a9bb1c4a5a525f7c5bc8d07c1e7029d2029a3
2018-02-26 20:43:46 +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 139db586dc Bug 1433958 - Don't fail when setting an empty password if the username is already empty r=mayhemer
We normally fail in nsStandardURL::SetPassword if the username is empty.
But if the password we are trying to set is also empty, we should't really fail.

MozReview-Commit-ID: FIDqkPrb1gp

--HG--
extra : rebase_source : 9080c44e91e27acd210f3ace3a234528513928c3
2018-02-26 20:43:46 +01:00
Valentin Gosu 55537212a8 Bug 1433958 - Change code that sets nsIURI.password to use nsIURIMutator r=mayhemer
MozReview-Commit-ID: I8igxClMM5L

--HG--
extra : rebase_source : edca02a7b10ab2e9f5f5498a1164890b9aa75985
2018-02-26 20:43:46 +01:00
Valentin Gosu 8617010c5f Bug 1433958 - Change code that sets nsIURI.username to use nsIURIMutator r=mayhemer
MozReview-Commit-ID: 7E63pAIOZCs

--HG--
extra : rebase_source : 54164efbc967146f4811552498aea5e5db1edfc2
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 a49f1ae73b Bug 1433958 - Make NS_MutateURI methods warn immediately after calling method that fails r=mayhemer
Calling NS_ENSURE_SUCCESS at the begining of the methods shows the error in the console, but what we really care about is where the error code comes from. So it is best to use if (NS_FAILED(mStatus) {} at the begining of the methods, and NS_ENSURE_SUCCESS right after calling the appropriate method on mMutator.

MozReview-Commit-ID: 5vVuHk3N4FU

--HG--
extra : rebase_source : f477f0f87b3303422a595f27d9b39ac25335d701
2018-02-26 20:43:45 +01:00
Valentin Gosu 76fe90c6ed Bug 1433958 - Change code that uses nsIURI.setHostAndPort() to use nsIURIMutator r=mayhemer
* Removes setHostAndPort from nsIURIMutator as it only has one use
* Instead, the consumer sets the port to -1 before calling setHostPort()

MozReview-Commit-ID: Jx9UMW440hq

--HG--
extra : rebase_source : cb60e76c905db6bb308ddfd8fa548cc13d3afe06
2018-02-26 20:43:45 +01:00
Valentin Gosu b563071323 Bug 1433958 - Change code that uses nsIURI.hostPort to use nsIURIMutator r=mayhemer
MozReview-Commit-ID: IuUurzUP5Rw

--HG--
extra : rebase_source : 5c1fd0938613247b6bb24ef11b57307f3bf24fae
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
Daniel Stenberg 76003c2ab0 bug 1440563 - set the RD bit in DOH requests r=valentin
RFC 1035 section 4.1.1 documents this bit as:

RD - Recursion Desired - this bit may be set in a query and is copied
into the response.  If RD is set, it directs the name server to pursue
the query recursively.  Recursive query support is optional.

MozReview-Commit-ID: 8iHDgNtA1L1

--HG--
extra : rebase_source : a29010a2894fd00ebfbfb869f5938cf507345a2f
2018-03-05 08:47:52 +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
Ciure Andrei 852a0c8890 Merge inbound to mozilla-central. a=merge 2018-02-22 23:55:25 +02:00
Daniel Stenberg 14fc881f71 bug 1438947 - mutex nsHostRecord::mTrrA[AAA] accesses r=valentin
... and remove Cancel() from nsHostRecord::RemoveOrRefresh since we
don't need to cancel TRR resolves due to network changes.

MozReview-Commit-ID: Akuhpzgg4N5
2018-02-22 04:22:00 +02:00
Daniel Stenberg 9165893084 bug 1440234 - show TRR column in about:networking for DNS names r=baku,valentin
MozReview-Commit-ID: LtAHJj4BMqQ

--HG--
extra : rebase_source : 089544e53e652aa8d43f0927e6d140568f68e93f
2018-02-22 09:57:22 +01: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
Valentin Gosu 55a7a824c6 Bug 1435671 - Reduce binary size by making NS_MutateURI.Apply not be a templated method r=mayhemer
We instead add a templated method NS_MutatorMethod that returns a std::function<nsresult(nsIURIMutator*)> which Apply then calls with mMutator as an argument.
The function returned by NS_MutatorMethod performs a QueryInterface, then calls the passed method with arguments on the result.

MozReview-Commit-ID: Jjqp7gGLG1D

--HG--
extra : rebase_source : f2a17aee7bb66a7ba8652817d43b9aa7ec7ef710
2018-02-21 01:00:54 +01:00
Valentin Gosu 98e8686b20 Bug 1439538 - Convert nsHostResolver::m{High,Medium,Low,Eviction}Q to LinkedList<RefPtr<nsHostRecord>> r=bagder
MozReview-Commit-ID: CDMadOtmDHQ

--HG--
extra : rebase_source : aa366237886c7d07cb3d83a15c50a54c08606848
2018-02-20 17:41:50 +01:00
nbeleuzu@mozilla.com 01eef6aff1 Backed out changeset c9dcce0a1068 (bug 1435671) for build bustages on nsIURIMutator.h. CLOSED TREE 2018-02-21 00:06:46 +02:00
Valentin Gosu f1850e9354 Bug 1435671 - Reduce binary size by making NS_MutateURI.Apply not be a templated method r=mayhemer
We instead add a templated method NS_MutatorMethod that returns a std::function<nsresult(nsIURIMutator*)> which Apply then calls with mMutator as an argument.
The function returned by NS_MutatorMethod performs a QueryInterface, then calls the passed method with arguments on the result.

MozReview-Commit-ID: Jjqp7gGLG1D

--HG--
extra : rebase_source : 592d13349a8c4627c7ce3146ec592f577b39f3cc
2018-02-20 22:39:40 +01:00
Josh Matthews 91522ab384 Bug 1437140 - Replace some uses of NS_DispatchToMainThread/NS_DispatchToCurrentThread with more specific event targets. r=mystor 2018-02-20 09:52:32 -05:00
Honza Bambas df2fd1d44c Bug 1434609 - Add TFO_DISABLED as one of possible states after finishing TCP Fast Open (TFO) connection, r=valentin 2018-02-20 05:41:00 +02:00
Daniel Stenberg 27d3309d96 bug 1439067 - let TRR access TRRService through the null-checked global. r=valentin
... and also store allow-rfc1918 bool locally to remove later accesses
to TRRservice.

MozReview-Commit-ID: KkO4u2N9gfE

--HG--
extra : rebase_source : 2fdfecb127987cdbfdccd0e77f7b4bb65f6f5f5d
2018-02-19 22:54:14 +01:00
Daniel Stenberg 30ccb2d14c bug 1439302 - repair the *RESOLVEAGAIN logic in nsHostResolver::CompleteLookup r=valentin
When the native resolve needs to run again, the rec->mResolving counter
must not be decreased, as otherwise it triggers an assert when the next
resolve completes.

MozReview-Commit-ID: 3UQGkDSOmGi

--HG--
extra : rebase_source : 1caf047070a95b451acf0ddca6b5986f4e4d7c69
2018-02-19 23:33:40 +01:00
Valentin Gosu 6c4f65bdab Bug 1438332 - Change RCWN test to expect the to account for very fast code execution r=michal
The test would set a timer for 200ms then expect to be called back more than 200ms later (as in 201ms or more)
This change makes sure that we don't fail if the callback comes back exactly 200ms later.

MozReview-Commit-ID: 1OCyO3juAdZ

--HG--
extra : rebase_source : 5e123337f73e6b95f5f0afa7d63604d5558dfd94
2018-02-17 00:25:51 +01:00
Csoregi Natalia c11e63682b Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-02-19 18:46:41 +02:00
Nathan Froyd a51fed2b98 Bug 1439362 - make nsBase64Encoder slightly less malloc-happy; r=valentin
nsBase64Encoder::Finish currently works by calling PL_Base64Encode to
allocate a base64-encoded string, then Assign()'ing that to the result
string, another allocation.  mozilla::Base64Encode enables us to base64
encode directly into the result string with a single allocation, saving
an allocation.  (Base64Encode is also slightly more efficient, because
we don't have to do a strlen() on the string being Assign()'d.)  Let's
use Base64Encode instead.
2018-02-19 10:28:00 -05:00
Tom Schuster db56d2ee65 Bug 1431095 - Change Content-Type-Options: nosniff allowed script MIME types to match the spec. r=ckerschb
--HG--
extra : rebase_source : e4047e619b88bbb025f3eab27e8e1a826a9429b7
2018-02-16 19:32:11 +01:00
Christoph Kerschbaumer 494f074b53 Bug 1432358: Allow certain top-level pages to be agnostic to CSP. r=smaug
--HG--
extra : source : 27527f95cccca4927d4fee56b0dab9af11c5733f
extra : intermediate-source : 2fa11c525da3d0c7ca58a593241c1902f2849528
2018-02-01 14:07:01 +01:00
Honza Bambas 83162dfc6a Bug 1433557 - Add a null-check for transaction when setting TCP Fast Open state on an associated connection, r=valentin 2018-02-16 07:48:00 +02:00
Chris Peterson 0129d900f3 Bug 1436263 - Part 2: Replace `override final` virtual function specifiers with just `final`. r=froydnj
MozReview-Commit-ID: 70gt5SUu4Dv

--HG--
extra : rebase_source : 71912c6bde22aaed01e70615a4ee794a36e70d0e
extra : source : 1c22d4c65d70b797ee3e963ec426c90e1f89b5e3
2018-02-05 22:50:00 -08:00
Chris Peterson d09123f248 Bug 1436263 - Part 1: Replace `final override` virtual function specifiers with just `final`. r=froydnj
MozReview-Commit-ID: DE5HkIhsZ6D

--HG--
extra : rebase_source : 94831c1e13a840dd2ea0600f64bcf70c2bf938d9
extra : source : cf9283bf1b0bca3a6311c98e227329d451f80ecb
2018-02-05 22:46:57 -08:00
Daniel Stenberg 74167930bd bug 1438947 - avoid unnecessary timer cancels + clears r=valentin
To avoid race risk.

MozReview-Commit-ID: 2h8xkmgjPP7

--HG--
extra : rebase_source : 31e0fef119862343467049347b012cc6e3056f2c
2018-02-17 00:35:14 +01:00
Gurzau Raul 0fbbd0fd8e Merge inbound to mozilla-central. a=merge 2018-02-17 00:09:28 +02:00
Nathan Froyd 8cb82739a9 Bug 1438673 - avoid some refcounting when initializing URIs from mutators; r=valentin
We only eliminate one refcount, but less refcounting is less refcounting.
2018-02-16 10:31:43 -05:00
vinoth 2d87cc24f5 Bug 1399990 - Files added for New Categorical telemetry SCRIPT_BLOCK_INCORRECT_MIME_2 and same origin check done r=ckerschb,mayhemer
Summary: MozReview-Commit-ID: JKHxmIdtzIN

Reviewers: mayhemer, ckerschb

Reviewed By: mayhemer, ckerschb

Subscribers: ckerschb, mayhemer

Bug #: 1399990

Differential Revision: https://phabricator.services.mozilla.com/D569

--HG--
extra : rebase_source : 4f8e476b33ca0b862ca2d828d3e3d2a1eba5d725
extra : amend_source : 406cb5349e0c8e29af8a7d0cfbceedc580b2463e
2018-02-16 16:53:46 +02:00
Daniel Stenberg c8bcf8f7e5 bug 1439340 - lock addr_info in nsHostRecord::RemoveOrRefresh r=valentin
MozReview-Commit-ID: 6h4Sk1NjAJT

--HG--
extra : rebase_source : a8d54768f7493d8e2e1f435fe5a1e5c6e245ffb7
2018-02-19 09:03:09 +01:00
Thomas Wisniewski 1e7a2879c3 Bug 792808 - Change netwerk/ to import and instantiate XHRs from global properties rather than using Cc.createInstance(Ci.nsIXMLHttpRequest); r=valentin
MozReview-Commit-ID: LHiYPIkG0i2

--HG--
extra : rebase_source : 25368b1edad92a6c4aa5ca4242427fd18b578db8
2017-09-19 11:36:43 -04:00
Gurzau Raul 6ef84d63ec Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-04-20 12:15:48 +03:00
Randell Jesup 77b8bbfbe2 Bug 1453387: Add network load status reports to gecko-profiler markers r=mstange 2018-04-19 23:32:17 -04:00
Nicholas Hurley c8b7ecd0d4 Bug 1429973 part 3 - Remove hidden pref to allow plaintext server-timing. r=bagder
MozReview-Commit-ID: 2MfcvRXq7We

--HG--
extra : rebase_source : adf042cba94eecd6c56ba359a68b23d0867f1f8f
2018-02-15 10:30:44 -08:00
Nicholas Hurley d69ca172be Bug 1429973 part 2 - Move server-timing tests into http/2. r=bagder
MozReview-Commit-ID: JuQUUAOnW4g

--HG--
extra : rebase_source : 83b5ae0580d2332956ad2930bcb76ad388fa1448
2018-02-15 10:11:37 -08:00
Nicholas Hurley be1b7537f2 Bug 1429973 part 1 - plumb through trailers in h2 to support server-timing. r=bagder
MozReview-Commit-ID: JV1Ikb9cYCV

--HG--
extra : rebase_source : fa67fef606fc02355579dae42f8e66c4754d60a0
2018-02-01 15:14:23 -08:00
Kirk Steuber 04e4231688 Bug 1421707 - Implement a system for disabling about: pages via Policy r=bz,Felipe
Additionally adds the enterprise policy for disabling about:config.

MozReview-Commit-ID: 7bT8eV3tRnN

--HG--
extra : rebase_source : a54cc94ea9dbecdfd37a17c96e5048a5d20c6411
2018-02-06 10:00:56 -08:00
Margareta Eliza Balazs bb7afb1c0b Merge mozilla-central to autoland. a=merge CLOSED TREE
--HG--
rename : dom/webidl/DataChannel.webidl => dom/webidl/RTCDataChannel.webidl
2018-02-15 22:41:28 +02:00
Valentin Gosu f4c1136d9d Bug 1334465 - Set mIPCClosed to true before calling SendDeleteSelf in order to avoid race r=bagder
In the previous code, a race condition could cause us to call SendSetPriority() after calling SendDeleteSelf.

For example:
T1: SendDeleteSelf()
T2: if (!mIPCClosed) SendSetPriority()
T1: mIPCClosed = true

MozReview-Commit-ID: 3XOwCaphb2o

--HG--
extra : source : 4ebdab0e332892378558817e30d0138c95199ce5
2018-02-11 03:51:09 +01:00
Valentin Gosu da17e84fb1 Bug 1334465 - Make HttpChannelParent::mIPCClosed atomic r=bagder
MozReview-Commit-ID: 6irCJMAjzjW

--HG--
extra : source : bd315ae86709c3459a3dbf0778022ff3b1908723
2018-02-09 13:20:04 +01:00
Daniel Stenberg e5d3226694 bug 1434852 - introducing TRR (DOH); r=mcmanus,valentin
Provides an optional resolver mechanism for Firefox that allows running
together with or instead of the native resolver.

TRR offers resolving of host names using a dedicated DNS-over-HTTPS server
(HTTPS is required, HTTP/2 is preferable).

DNS-over-HTTPS (DOH) allows DNS resolves with enhanced privacy, secure
transfers and improved performance.

To keep the failure rate at a minimum, the TRR system manages a dynamic
persistent blacklist for host names that can't be resolved with DOH but works
with the native resolver. Blacklisted entries will not be retried over DOH for
a couple of days. "localhost" and names in the ".local" TLD will not be
resolved via DOH.

TRR is preffed OFF by default and you need to set a URI for an available DOH
server to be able to use it. Since the URI for DOH is set with a name itself,
it may have to use the native resolver for bootstrapping. (Optionally, the
user can set the IP address of the DOH server in a pref to avoid the required
initial native resolve.)

When TRR starts up, it will first verify that it works by checking a
"confirmation" domain name. This confirmation domain is a pref by default set
to "example.com". TRR will also by default await the captive-portal detection
to raise its green flag before getting activated.

All prefs for TRR are under the "network.trr" hierarchy.

The DNS-over-HTTPS spec: https://tools.ietf.org/html/draft-ietf-doh-dns-over-https-03

MozReview-Commit-ID: GuuU6vjTjlm

--HG--
extra : rebase_source : 53fcca757334090ac05fec540ef29d109d5ceed3
2018-02-01 10:20:49 +01:00
Gijs Kruitbosch 1d8cd72e69 Bug 1429379, r=aswan,bz
--HG--
extra : rebase_source : 534aa354afa7d23484a6b1d8aabef36c14784df7
2018-02-06 15:00:25 +00:00
Arthur Edelstein 70174dcbfb Bug 1344613 - Avoid possibility of null pointer crash in nsSOCKSIOLayer.cpp r=mayhemer 2018-02-09 19:10:00 +02:00
Boris Zbarsky 9bdcffc985 Bug 1436902 part 3. Replace usage of NS_IMPL_ISUPPORTS_INHERITED0 with NS_INLINE_DECL_REFCOUNTING_INHERITED when possible. r=mccr8
The change to RootAccessible.cpp fixes an obvious bug introduced in bug 741707.

The visibility changes in gfx/thebes are because NS_DECL_ISUPPORTS has a
trailing "public:" that those classes were relying on to have public
constructors.

MozReview-Commit-ID: IeB8KIJCGhU
2018-02-12 15:44:40 -05:00
Ciure Andrei 3f00808b55 Merge mozilla-central to mozilla-inbound. a=merge CLOSED TREE 2018-02-13 00:14:29 +02:00
Ciure Andrei 72080bd73c Merge inbound to mozilla-central. a=merge 2018-02-13 00:08:37 +02:00
Nathan Froyd 0f56acaf26 Bug 1437604 - remove NS_INTERFACE_MAP_END_THREADSAFE; r=mystor
This macro is identical to NS_INTERFACE_MAP_END and encourages the
reader to think that there's something extra-special threadsafe about QI
implementations that use the macro, when in reality there's nothing of
the sort.
2018-02-12 14:36:46 -05:00
Tom Ritter c4edd2fe5c Bug 1435296 Address xpcshell test failures from increasing timer precision r=baku
See the comment on "Address test failures caused by bumping timer precision to 2 ms"
for more details.

MozReview-Commit-ID: LrsucEPdZIo

--HG--
extra : rebase_source : 8147c034f7dc93f678eebc80b0afabf55729d804
2018-02-12 11:41:38 -06:00
Eric Rahm 1828d1aec0 Bug 1384638 - Remove another NS_ENSURE warning from ShouldEnableTracking. r=gcp
--HG--
extra : rebase_source : 2d97a2279e6f5927b884b21158e91d31216c5626
2018-02-09 16:32:41 -08:00
Eric Rahm f2d02c278e Bug 1293375 - Annotate sql index warnings in nsDiskCacheDeviceSQL. r=mayhemer
This annotates two SQL statements that are responsible for a large amount of
warning spam due to "suboptimal indexes." Given we no longer wish to update
appcache code we can just disable the warning with a commment instead.

--HG--
extra : rebase_source : 519678e38f69cfa2aab75161a058bcdaf548fad0
2018-02-09 16:19:31 -08:00
Sebastian Hengst a6cab8c4e8 Backed out 4 changesets (bug 1432358) for failing xpcshell's test_ext_contentscript_triggeringPrincipal.js
Backed out changeset ef7b8eef07c1 (bug 1432358)
Backed out changeset 2fa11c525da3 (bug 1432358)
Backed out changeset a67e95bd0ccf (bug 1432358)
Backed out changeset 91c948c94506 (bug 1432358)
2018-02-12 19:58:28 +02:00
Andrea Marchesini 012ea0dbf2 Bug 1437152 - NS_ReadInputStreamToString doesn't reallocate the string if the size is passed, r=me 2018-02-12 18:49:36 +01:00
Sebastian Hengst 27ccdab4ac Backed out 2 changesets (bug 1334465) for frequently failing marionette\test_refresh_firefox.py
Backed out changeset fc4ad53516e0 (bug 1334465)
Backed out changeset bd315ae86709 (bug 1334465)
2018-02-12 18:52:25 +02:00
Andrea Marchesini fd3aec925b Bug 1437152 - NS_ReadInputStreamToString doesn't reallocate the string if the size is passed, r=froydnj 2018-02-12 17:40:17 +01:00
Valentin Gosu e4bb1bbe71 Bug 1334465 - Set mIPCClosed to true before calling SendDeleteSelf in order to avoid race r=bagder
In the previous code, a race condition could cause us to call SendSetPriority() after calling SendDeleteSelf.

For example:
T1: SendDeleteSelf()
T2: if (!mIPCClosed) SendSetPriority()
T1: mIPCClosed = true

MozReview-Commit-ID: 3XOwCaphb2o

--HG--
extra : source : 4ebdab0e332892378558817e30d0138c95199ce5
2018-02-11 03:51:09 +01:00
Honza Bambas cf147a770a Bug 1437058 - Add LOG for CacheEntryHandle::~CacheEntryHandle to track its lifetime correctly, r=michal 2018-02-09 07:19:00 +02:00
Sebastian Hengst fad4d039ef merge mozilla-central to mozilla-inbound 2018-02-12 14:21:30 +02:00
arthur.iakab 650430f45c Backed out changeset 4ebdab0e3328 (bug 1334465) for frequently failing marionette\test_refresh_firefox.py a=backout 2018-02-12 12:00:40 +02:00
Valentin Gosu b7deca6e95 Bug 1334465 - Set mIPCClosed to true before calling SendDeleteSelf in order to avoid race r=bagder
In the previous code, a race condition could cause us to call SendSetPriority() after calling SendDeleteSelf.

For example:
T1: SendDeleteSelf()
T2: if (!mIPCClosed) SendSetPriority()
T1: mIPCClosed = true

MozReview-Commit-ID: 3XOwCaphb2o

--HG--
extra : rebase_source : 609b9d111d97a8e4a60117dd79ecd741725ec611
2018-02-11 03:51:09 +01:00
Christoph Kerschbaumer 8c6aa97797 Bug 1432358: Allow certain top-level pages to be agnostic to CSP. r=smaug
--HG--
extra : source : 27527f95cccca4927d4fee56b0dab9af11c5733f
2018-02-01 14:07:01 +01:00
Bogdan Tara 5bbbbe17bc Merge inbound to mozilla-central. a=merge 2018-02-10 11:57:47 +02:00
Valentin Gosu 6782014750 Bug 1334465 - Make HttpChannelParent::mIPCClosed atomic r=bagder
MozReview-Commit-ID: 6irCJMAjzjW

--HG--
extra : rebase_source : 7b49738d4ca1d58f90d2563a6367743fd0e2663f
2018-02-09 13:20:04 +01:00
Georg Koppen e2cc84ce65 Bug 1433507 - Forbid GIO supported protocols by default with --proxy-bypass-protection r=mayhemer
--HG--
extra : rebase_source : 3b6badbc1b56c09b74d5be3ddbf9ac157f4891c3
2018-02-06 15:07:00 +02:00
Kathy Brade e072bef056 Bug 1432907 - Disable network tickler with proxy bypass protection r=mayhemer
--HG--
extra : rebase_source : 179446335cd78ad5dc7b5b821696a7245aeef4f1
2018-02-06 22:07:00 +02:00
Sebastian Hengst 2e7425adfb Backed out 3 changesets (bug 1432358) for failing xpcshell's test_ext_contentscript_triggeringPrincipal.js on Windows debug. CLOSED TREE
Backed out changeset 27527f95cccc (bug 1432358)
Backed out changeset 6840396ed6ec (bug 1432358)
Backed out changeset 60852dec9e04 (bug 1432358)

--HG--
extra : amend_source : 3308e1d9a98220fc71027f18e5c69105e8d75d20
2018-02-09 23:46:29 +02:00
Ben Kelly 4a261ee476 Bug 1437080 P3 Make SetFetchCacheMode() to clear other cache flags and assert the final value. r=valentin 2018-02-09 13:17:14 -08:00
Ben Kelly f114de487f Bug 1437080 P2 Remove the HttpBaseChannel::mFetchCacheMode override to avoid possibility it can get out of sync with load flags. r=valentin 2018-02-09 13:17:14 -08:00
Ben Kelly 482f2c3a30 Bug 1437080 P1 Correctly check cache related bit flags on HttpBaseChannel::mLoadFlags. r=valentin 2018-02-09 13:17:14 -08:00
Honza Bambas 7c8e2fe79d Bug 1152332 - Let connection proxy filters return the result asynchronously - core changes, r=michal 2018-02-08 07:18:00 +02:00
Honza Bambas e68b22643e Bug 1152332 - Let connection proxy filters return the result asynchronously - update/introduce tests, r=michal
--HG--
rename : netwerk/test/unit/test_protocolproxyservice.js => netwerk/test/unit/test_protocolproxyservice-async-filters.js
2018-02-08 05:49:00 +02:00
Christoph Kerschbaumer 1a2da7cf6b Bug 1432358: Allow certain top-level pages to be agnostic to CSP. r=smaug 2018-02-01 14:07:01 +01:00
Nicholas Hurley 036c8b605d Bug 1416529 r=mcmanus
MozReview-Commit-ID: CD1l5vLB4yy
2018-02-09 09:22:18 -08:00
Cosmin Sabou bc9a975314 Merge mozilla-central to autoland. a=merge on a CLOSED TREE 2018-02-09 02:32:28 +02:00
Cosmin Sabou 2400be0754 Merge inbound to mozilla-central. a=merge 2018-02-09 02:29:56 +02:00
Joel Maher 7fe5c38bad Bug 1436721 - Turn off TestStandardURL * tests on automation. r=rwood 2018-02-08 13:50:12 -05:00
Andrew McCreight b7bb86d0d4 Bug 1436184 - Remove definitions of Ci, Cr, Cc, and Cu from httpd.js and .sjs files. r=florian
MozReview-Commit-ID: IKKb9zr2OSf

--HG--
extra : rebase_source : 72d949405c18e6d421422e7865182352eee0c407
2018-02-06 15:03:13 -08:00
Narcis Beleuzu a167feb192 Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-02-08 21:34:52 +02:00
Andrea Marchesini 1126b00aed Bug 1405974 - NonBlockingAsyncInputStream must take the ownership of the underlying stream, r=qdot 2018-01-31 16:45:20 +01:00
Andrea Marchesini 67fac604a1 Bug 1371699 - Use of NonBlockingAsyncInputStream in our code base, r=froydnj 2018-01-31 16:45:20 +01:00
Nicholas Hurley 8b3c3ef6cf Bug 1436517 - Limit access to the server-timing header to HTTPS contexts. r=mcmanus
This also introduces a hidden pref to allow server-timing access from
HTTP contexts for the purposes of our xpcshell tests. We'll remove that
once we get h2 (and therefore tls test) support for server-timing
trailers (https://bugzilla.mozilla.org/show_bug.cgi?id=1436601).

This does not reject or otherwise error when receiving server-timing
headers or trailers on non-HTTPS contexts, it just makes it unavailable
outside the channel.

MozReview-Commit-ID: qi4h0VQknE

--HG--
extra : rebase_source : 6e6f139cff04f224878ecbf2bcbc84963221cfb6
2018-02-07 16:05:38 -08:00
Andrew McCreight 754a4bcd3c Bug 1432992, part 2 - Manually remove some empty blocks. r=florian
Also, remove a now-obsolete comment from placesOverlay.xul and remove
some now-empty XPCShell test head files.

MozReview-Commit-ID: 6kKVQu8FAL3

--HG--
extra : rebase_source : 7dd05818d68a15bd170af734078db4ba45029d80
2018-01-25 16:52:25 -08:00
Andrew McCreight 5dec0e0beb Bug 1432992, part 1 - Remove definitions of Ci, Cr, Cc, and Cu. r=florian
This patch was autogenerated by my decomponents.py

It covers almost every file with the extension js, jsm, html, py,
xhtml, or xul.

It removes blank lines after removed lines, when the removed lines are
preceded by either blank lines or the start of a new block. The "start
of a new block" is defined fairly hackily: either the line starts with
//, ends with */, ends with {, <![CDATA[, """ or '''. The first two
cover comments, the third one covers JS, the fourth covers JS embedded
in XUL, and the final two cover JS embedded in Python. This also
applies if the removed line was the first line of the file.

It covers the pattern matching cases like "var {classes: Cc,
interfaces: Ci, utils: Cu, results: Cr} = Components;". It'll remove
the entire thing if they are all either Ci, Cr, Cc or Cu, or it will
remove the appropriate ones and leave the residue behind. If there's
only one behind, then it will turn it into a normal, non-pattern
matching variable definition. (For instance, "const { classes: Cc,
Constructor: CC, interfaces: Ci, utils: Cu } = Components" becomes
"const CC = Components.Constructor".)

MozReview-Commit-ID: DeSHcClQ7cG

--HG--
extra : rebase_source : d9c41878036c1ef7766ef5e91a7005025bc1d72b
2018-02-06 09:36:57 -08:00
Patrick McManus 0206b90cc2 Bug 1436134 - disable rcwn for non-safe http methods r=valentin
MozReview-Commit-ID: 3Ip1M7L3gUl

--HG--
extra : rebase_source : b6afff75bc0d151efd4e89e80b59b8a41a42124d
2018-02-06 14:16:03 -05:00
Narcis Beleuzu 84cea84b12 Merge inbound to mozilla-central. a=merge 2018-02-06 11:54:42 +02:00
Eric Rahm bb9b0ac27e Bug 1333899 - Part 3: Avoid extra copies in nsDataChannel::OpenContentStream. r=bz
This switches over to cloning the URI without it's ref which will most likely
avoid a copy. The new |ParsePathWithoutRef| is used, again to avoid needing a
copy of the path substring.

--HG--
extra : rebase_source : 7ed0eded8a9f5b9df1857bfa8004dac0dfe5ff78
2018-02-02 12:59:38 -08:00
Eric Rahm de1fa46cb6 Bug 1333899 - Part 2: Add nsDataHandler::ParsePathWithoutRef. r=valentin
This adds a version of |ParseURI| that only deals with the path portion of the
URI and expects the ref not to be present. It's mainly copy and pasted from
|ParseURI| but updated to use nsString methods rather than NSPR.

Additionaly it only returns a substring to the path passed in for the data
buffer if requested.

|ParseURI| is updated to advance past the scheme and trim the ref, then it
just uses |ParseURIWithoutRef|.

--HG--
extra : rebase_source : 10f02c8d32a15cd520d943e0231459dce75366c5
2018-02-02 12:50:10 -08:00
Valentin Gosu 3c233e8b30 Bug 1432519 - Make nsIURL attributes readonly r=mayhemer
MozReview-Commit-ID: KuPILT7rX6N

--HG--
extra : rebase_source : 75b84d74d74539ed3b178480cfa0aa37cfc9d947
2018-01-31 03:06:58 +01:00
Valentin Gosu 2cf8889195 Bug 1432257 - Remove nsIStandardURL setter methods r=mayhemer
* Removes nsIStandardURL.{init,setDefaultPort} as these have been migrated to nsIStandardURLMutator

MozReview-Commit-ID: 7JPZmyEr65h

--HG--
extra : rebase_source : 5c40f1ff8eff0f73b54fb148923bab7b8b2270a7
2018-01-22 20:20:18 +01:00
Jonathan Kingston 53c9c480b7 Bug 1354175 - Disable AppCache in insecure contexts. r=baku,bkelly,mayhemer
MozReview-Commit-ID: wYWHkGlV8h

--HG--
extra : rebase_source : 9a600559a9d61c42baf9e3e5fde6e35d5adeaf90
2018-01-12 19:09:30 +00:00
Gurzau Raul 1315ffda06 Merge inbound to mozilla-central. a=merge 2018-02-02 00:22:39 +02:00
Florian Quèze 2b1c8dccb6 Bug 1339461 - script-generated patch to convert foo.indexOf(...) == -1 to foo.includes(), r=Mossop. 2018-02-01 20:45:22 +01:00
David Keeler 087f092867 bug 1421084 - part 4/4 - remove nsNSSShutDown.h and (hopefully) all references to it r=mt,ttaubert
MozReview-Commit-ID: 2mhvHsC5Nil

--HG--
extra : rebase_source : 651c2bcf8655f75756ea2bac788eb8c0781dc90a
2018-01-24 14:44:01 -08:00
David Keeler ad5cec4768 bug 1421084 - part 3/4 - remove nsNSSShutDownObject::shutdown and virtualDestroyNSSReference r=mt,ttaubert
MozReview-Commit-ID: ErL7ZjAGVVC

--HG--
extra : rebase_source : 2869aafaef729f0ad190f957919e8b9c40700477
2018-01-24 14:29:08 -08:00
David Keeler a0e34baf27 bug 1421084 - part 2/4 - remove nsNSSShutDownObject::isAlreadyShutDown() r=mt,ttaubert
MozReview-Commit-ID: DlS16pHE0Ik

--HG--
extra : rebase_source : d7596a3571478adefae4ffa5d446ff5234ba9ed7
2018-01-23 12:22:56 -08:00
David Keeler e8cc0ba1ce bug 1421084 - part 1/4 - remove now-unnecessary nsNSSShutDownPreventionLock r=mt,ttaubert
As of bug 1417680, the NSS shutdown tracking infrastructure is unnecessary (and
does nothing anyway). This series of changesets removes the remaining pieces in
a way that is hopefully easy to confirm is correct.

MozReview-Commit-ID: 8Y5wpsyNlGc

--HG--
extra : rebase_source : ef6b481510d949e404a4ef5615097d66e566c947
2018-01-23 10:37:47 -08:00
Valentin Gosu 033570496c Bug 1432602 - Add nsIFileURLMutator.setFile() r=mayhemer
MozReview-Commit-ID: EF2vVYoN8bg

--HG--
extra : rebase_source : 5d2b6fa353f0a0eb189fd08f9fda2bbf1ced30bb
2018-01-31 22:40:45 +01:00
hemant 64d45d0cb9 Bug 1417937 - Remove unnecessary LoadContextInfo.jsm r=standard8
MozReview-Commit-ID: EnY0uKD4UD1

--HG--
extra : rebase_source : c968b273a8a05fb211e0fb1e1601ac1b968ca045
2018-01-31 23:16:46 +05:30
shindli f0168929ca Backed out changeset e401076359c6 (bug 1354175) for M(8) failures on a CLOSED TREE 2018-01-31 21:26:42 +02:00
Jonathan Kingston 8e24b20ae1 Bug 1354175 - Disable AppCache in insecure contexts. r=baku,bkelly,mayhemer
MozReview-Commit-ID: wYWHkGlV8h

--HG--
extra : rebase_source : 19e2663304c582fdb20a45efc3e9b55fd43fa286
2018-01-12 19:09:30 +00:00
Jan Henning faa05c4265 Bug 1433715 - Make fallback folder icon content-accessible. r=Gijs
The skin used on Firefox for Android doesn't style directory listing, hence we
fall back to using the default icon from gre/res/html. As of bug 863246, this
location is no longer accessible from content as a resource://, hence the file
needs moving into the special content-accessible directory.

MozReview-Commit-ID: obtefafqul

--HG--
extra : rebase_source : 0227487abb4914a11f5749c493d215a1fec45e46
2018-01-28 23:01:42 +01:00
Bogdan Tara 1a6614b8b5 Merge inbound to mozilla-central. a=merge 2018-01-31 12:00:14 +02:00
Nicholas Nethercote 5c975c03b1 Bug 1433982 - Make nsAtomicFileOutputStream::DoOpen() fail if the file is read-only. r=glandium
This means we don't leave behind prefs-<n>.js files when prefs.js is read-only.

MozReview-Commit-ID: H6KKnoYGdhH

--HG--
extra : rebase_source : 263dd6fb75204a4565c8af89e7b21fc37a10d52e
2018-01-31 10:01:26 +11:00
Valentin Gosu 7183e543b2 Bug 1432320 - (Part 2) Change calls to nsIURL.{fileName,fileBaseName,fileExtension} setters to use nsIURLMutator r=mayhemer
MozReview-Commit-ID: D5aTl1i14gI

--HG--
extra : rebase_source : 6d4a8606da971426c554c31d188567cf1e6c8741
2018-01-31 02:33:06 +01:00
Valentin Gosu d4c640e9f7 Bug 1432320 - (Part 1) Add nsIURLMutator r=mayhemer
MozReview-Commit-ID: 8GYru46kFQE

--HG--
extra : rebase_source : 064fae8d2e31db071da524b1946f135dda01cc1a
2018-01-31 02:32:27 +01:00
Alfred Peters a5c14a463b Bug 1412213 - Content-Type MIME-header - Skipping a parameter without an '='. r=mayhemer 2018-01-29 14:36:00 -05:00
Kris Maglione 918ed6c474 Bug 1431533: Part 5a - Auto-rewrite code to use ChromeUtils import methods. r=florian
This was done using the following script:
37e3803c7a/processors/chromeutils-import.jsm

MozReview-Commit-ID: 1Nc3XDu0wGl

--HG--
extra : source : 12fc4dee861c812fd2bd032c63ef17af61800c70
extra : intermediate-source : 34c999fa006bffe8705cf50c54708aa21a962e62
extra : histedit_source : b2be2c5e5d226e6c347312456a6ae339c1e634b0
2018-01-29 15:20:18 -08:00
Dragana Damjanovic dd.mozilla@gmail.com bb6ba73484 Bug 1432254 - In SetFastOpenConnected, mFastOpenStatus may be TFO_DATA_COOKIE_NOT_ACCEPTED as well. r=mayhemer 2018-01-23 02:20:00 -05:00
Amy Chung a0e6c2af00 Bug 1425031 - Don't broadcast to content processes cookie updates that initiated in content processes. r=jdm 2018-01-12 12:53:00 -05:00
Cosmin Sabou 9a65a40178 Backed out 3 changesets (bug 1431533) for Android mochitest failures on testEventDispatcher on a CLOSED TREE
Backed out changeset a1eca62826a1 (bug 1431533)
Backed out changeset 34c999fa006b (bug 1431533)
Backed out changeset e2674287e57f (bug 1431533)
2018-01-30 07:17:48 +02:00
Kris Maglione 6476f95b13 Bug 1431533: Part 5a - Auto-rewrite code to use ChromeUtils import methods. r=florian
This was done using the following script:
37e3803c7a/processors/chromeutils-import.jsm

MozReview-Commit-ID: 1Nc3XDu0wGl

--HG--
extra : source : 12fc4dee861c812fd2bd032c63ef17af61800c70
2018-01-29 15:20:18 -08:00
Brindusan Cristian af8879d1eb Backed out 2 changesets (bug 1431533) for ESlint failures on a CLOSED TREE
Backed out changeset 6e56f4c8843e (bug 1431533)
Backed out changeset 12fc4dee861c (bug 1431533)
2018-01-30 02:32:43 +02:00
Kris Maglione c276bb9375 Bug 1431533: Part 5a - Auto-rewrite code to use ChromeUtils import methods. r=florian
This was done using the following script:
37e3803c7a/processors/chromeutils-import.jsm

MozReview-Commit-ID: 1Nc3XDu0wGl

--HG--
extra : rebase_source : c004a023389f1f6bf3d2f3efe93c13d423b23ccd
2018-01-29 15:20:18 -08:00
Brindusan Cristian dbf026ac00 Backed out changeset 1a64ce266ba5 (bug 1425031) for mochitest failures on test_1425031.html on a CLOSED TREE 2018-01-30 00:20:25 +02:00
Amy Chung 6c7cd2d790 Bug 1425031 - Don't broadcast to content processes cookie updates that initiated in content processes. r=jdm 2018-01-12 12:53:00 -05:00
vinoth 7b23ba9165 Bug 1397740 - Removed security.xcto_nosniff_block_images from about:config r=ckerschb,fkiefer
MozReview-Commit-ID: HTalMWq694W

--HG--
extra : rebase_source : 0ce03ae0ed6bb754791f7aadb52bc6c55aa6c7cd
2018-01-05 10:43:17 +01:00
Masatoshi Kimura 32bbccbd78 Bug 685236 - Stop using GetNativePath in netwerk/. r=mayhemer
MozReview-Commit-ID: JdHhXPiS0fv

--HG--
extra : source : ef77ec8c110852b74e251c28753467a79bad7d2a
extra : intermediate-source : 7e5b9d09196916daac73b23c58c6fe870f223970
2017-12-15 20:21:19 +09:00
Coroiu Cristina d99b5855c8 Merge mozilla-central to autoland a=merge on a CLOSED TREE 2018-02-12 20:02:58 +02:00
Sebastian Hengst 9d47b5fb14 Backed out 2 changesets (bug 1334465) for frequently failing marionette\test_refresh_firefox.py a=Aryx
Backed out changeset fc4ad53516e0 (bug 1334465)
Backed out changeset bd315ae86709 (bug 1334465)

--HG--
extra : source : f49cf3d147dee2eb1fd2b726cfbae6d01b719d55
2018-02-12 18:52:25 +02:00
Valentin Gosu 427838fddc Bug 1334465 - Set mIPCClosed to true before calling SendDeleteSelf in order to avoid race r=bagder a=Aryx
In the previous code, a race condition could cause us to call SendSetPriority() after calling SendDeleteSelf.

For example:
T1: SendDeleteSelf()
T2: if (!mIPCClosed) SendSetPriority()
T1: mIPCClosed = true

MozReview-Commit-ID: 3XOwCaphb2o

--HG--
extra : source : 4ebdab0e332892378558817e30d0138c95199ce5
extra : intermediate-source : fc4ad53516e01095be35542fd979c9e16d6e6b16
2018-02-11 03:51:09 +01:00
Daniel Stenberg 15940df95a bug 1437513 - do not require push cache for ::OnPush enabled transactions r=mcmanus
MozReview-Commit-ID: CLFh8bQW5WT

--HG--
extra : rebase_source : d232313f040371a9fe716e248d48be00cb992c3b
2018-02-10 17:00:45 +01:00
Ben Kelly e71d8db226 Bug 1430139 P3 Remove workers namespace from service worker code. r=asuth 2018-01-26 13:08:59 -08:00
Nils Ohlmeier [:drno] a4947c8ed5 Bug 1426831: don't overwrite MaxMessageSize with default values. r=lennart.grahl+594092
MozReview-Commit-ID: CiqoGUYbPR2

--HG--
extra : rebase_source : 907c562a5022510841df12dbf419233514597f7e
2018-01-09 17:30:19 -08:00
arthur.iakab 94ab855658 Merge inbound to mozilla-central. a=merge 2018-01-26 02:21:47 +02:00