Commit Graph

15843 Commits

Author SHA1 Message Date
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