Commit Graph

7019 Commits

Author SHA1 Message Date
Dragana Damjanovic
81b7d74f4a Bug 1520260 - Collect *_KBREAD_PER_CONN on release as well. r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D16616

--HG--
extra : moz-landing-system : lando
2019-01-16 09:21:53 +00:00
Razvan Maries
4c67bec411 Merge mozilla-inbound to mozilla-central a=merge 2019-01-16 19:00:15 +02:00
Junior Hsu
0575720a12 Bug 1514065 - resume the bp-suspension if the divsersion starts r=dragana
Differential Revision: https://phabricator.services.mozilla.com/D14361

--HG--
extra : moz-landing-system : lando
2019-01-16 00:57:11 +00:00
Kershaw Chang
8711ee817e Bug 1407384 - P3: Handle the case if the channel is suspended or canceled by "http-on-examine-merged-response" observer r=mayhemer
1. This patch somehow sets a "breakpoint" in ProcessPartialContent() and ProcessNotModified() to really stop doing things after ProcessPartialContent() and ProcessNotModified(), when the channel is suspended.
2. Add a test for this.

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

--HG--
extra : moz-landing-system : lando
2019-01-15 16:17:48 +00:00
Kershaw Chang
b5b9e5d5c3 Bug 1407384 - P1: Notify "http-on-before-connect" and "http-on-modify-request" observers in DoAuthRetry r=mayhemer
The goal in this patch is to notify "http-on-before-connect" and "http-on-modify-request" observers in DoAuthRetry and also handle the case when the channel is canceled or suspended by observer.

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

--HG--
extra : moz-landing-system : lando
2019-01-15 16:04:44 +00:00
Kershaw Chang
0b336d5545 Bug 1513057 - P1: Start the new socket process basics (prefs, full xpcom init, logging, no sandboxing) r=mayhemer,dragana
Differential Revision: https://phabricator.services.mozilla.com/D14148

--HG--
extra : moz-landing-system : lando
2019-01-11 18:57:23 +00:00
Andreea Pavel
21ad33d612 Backed out 10 changesets (bug 1513057) for build bustages on a CLOSED TREE
Backed out changeset 56329b5f1844 (bug 1513057)
Backed out changeset 46411c5de3da (bug 1513057)
Backed out changeset de65c456aad6 (bug 1513057)
Backed out changeset f648b5f1a7c2 (bug 1513057)
Backed out changeset 460bbf0849e1 (bug 1513057)
Backed out changeset 86032a14d26f (bug 1513057)
Backed out changeset a81f83df08d5 (bug 1513057)
Backed out changeset edbda5ee5fd5 (bug 1513057)
Backed out changeset c900ac2519f5 (bug 1513057)
Backed out changeset 4e94bbb90315 (bug 1513057)
2019-01-11 17:02:44 +02:00
Kershaw Chang
0c2943008a Bug 1513057 - P1: Start the new socket process basics (prefs, full xpcom init, logging, no sandboxing) r=mayhemer,dragana
Differential Revision: https://phabricator.services.mozilla.com/D14148

--HG--
extra : moz-landing-system : lando
2019-01-11 14:07:47 +00:00
Tom Ritter
ba7c4014b7 Bug 1509829 - Spoof OS in HTTP User-Agent header for desktop platforms r=timhuang,baku
In 1404608, the OS was revealed in both the HTTP User-Agent
header and to JavaScript code via navigator.userAgent. To avoid
leaking the OS inside each HTTP request (which many web servers
log), always use the Windows 7 OS value in the desktop User-Agent
header. We continue to allow access to the actual OS via JavaScript,
since doing so improves compatibility with web applications such
as GitHub and Google Docs.

This is an uplift of Tor's 26146
2019-01-09 12:53:30 -06:00
Randell Jesup
77966ce209 Bug 1514359: create network marker for end-of-load in correct spot r=mayhemer 2019-01-15 21:29:45 -05:00
Dragana Damjanovic
2a013cc260 Bug 1515459 - Check if we reenter CreateShimError. r=mayhemer
Differential Revision: https://phabricator.services.mozilla.com/D15297

--HG--
extra : moz-landing-system : lando
2019-01-08 20:40:35 +00:00
Paolo Amadini
ffa6503244 Bug 983187 - Test that downloads fail when an RST packet is received. r=mayhemer
This adds a way to simulate failed network connections, allowing the addition of test coverage that would otherwise not be available. This is used in the Downloads tests to ensure that failures at the network level are handled correctly.

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

--HG--
extra : rebase_source : 2597b27de5213b0322520cefafe10a197d0d3b83
2019-01-09 11:48:23 +00:00
Andrea Marchesini
5752cef527 Bug 1417463 - Default accept header should follow the fetch spec, r=mayhemer
For navigation: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
For images: image/png,image/svg+xml,image/*;q=0.8,*/*;q=0.5
for style: text/css,*/*;q=0.1
Anything else: */*
2019-01-08 23:36:16 +01:00
Tom Schuster
82d1aa2207 Bug 1510223 - Test for MIME type warning. r=ckerschb,nchevobbe
Turns out we also produced an error instead of a warnings.
Good that we added those test \o/

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

--HG--
extra : moz-landing-system : lando
2019-01-08 12:28:32 +00:00
Dragana Damjanovic
7bdd6628ba Bug 1514688 - In case we already have a h2 connection and it does not support websockets, we should not try again to use websockets over h2. r=michal
There are 2 parts of the patch:
1) we should not try to use websockets over h2 if we already know that they are not supported.
2) make sure that we clean up websockets waiting for the settings frame when we close a h2 connection. (the part 1) will fix the issue, this part is only to be 100% that we some how do not retrigger the issue)

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

--HG--
extra : moz-landing-system : lando
2019-01-07 23:09:35 +00:00
Andrea Marchesini
e34612e16e Bug 1514202 - Port flash url-classifier to nsIUrlClassifierFeature - part 1 - Flash feature, r=dimi, r=edgar, r=valentin 2019-01-04 14:45:42 +01:00
Emilio Cobos Álvarez
d2ed260822 Bug 1517241 - Rename nsIDocument to mozilla::dom::Document. r=smaug
Summary: Really sorry for the size of the patch. It's mostly automatic
s/nsIDocument/Document/ but I had to fix up in a bunch of places manually to
add the right namespacing and such.

Overall it's not a very interesting patch I think.

nsDocument.cpp turns into Document.cpp, nsIDocument.h into Document.h and
nsIDocumentInlines.h into DocumentInlines.h.

I also changed a bunch of nsCOMPtr usage to RefPtr, but not all of it.

While fixing up some of the bits I also removed some unneeded OwnerDoc() null
checks and such, but I didn't do anything riskier than that.
2019-01-03 17:48:33 +01:00
Tom Schuster
008b6d8204 Bug 1510223 - Warn about scripts with wrong MIME type. r=ckerschb,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D14859

--HG--
extra : moz-landing-system : lando
2019-01-03 08:58:48 +00:00
Sylvestre Ledru
cccdda3c2a Bug 1516555 - Reformat everything to the Google coding style r=Ehsan
# ignore-this-changeset

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

--HG--
extra : moz-landing-system : lando
2018-12-28 15:48:06 +00:00
Tom Schuster
8c3a7f7d61 Bug 1510241 - Proxy HttpChannel MIME blocking message to the child process. r=flod,dragana
Differential Revision: https://phabricator.services.mozilla.com/D14858

--HG--
extra : moz-landing-system : lando
2018-12-27 06:25:51 +00:00
Kris Maglione
39ae97e234 Bug 1515884: Remove unused XPCWrappedJS nsIPropertyBag implementation. r=bholley
This helper code is currently unused, and presents a pretty significant
footgun for any JS object which implements nsIPropertyBag itself.

When those objects are first queried to nsIWritablePropertyBag, they behave as
expected, returning the JS-implemented nsIPropertyBag methods. But when
they're first queried to nsIPropertyBag, they use the XPCWrappedNative stubs,
which don't behave as expected.

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

--HG--
extra : rebase_source : 02942592dc8c4efcc1190610448a46593faa5703
2018-12-21 15:03:13 -08:00
Tom Schuster
02af40ca25 Bug 1510225 - Refresh script MIME type telemetry again. r=dveditz datareview=chutten
Differential Revision: https://phabricator.services.mozilla.com/D14762

--HG--
extra : rebase_source : 7263d071a281c518cd2220fe2fe938f52265249b
2018-12-17 17:59:48 +01:00
Dragana Damjanovic
2ebce46fd8 Bug 1415625 - Use Telemetry::CanRecordPreReleaseData instead of toolkit.telemetry.enabled. Remove network.allow-experiments because it is not used. r=michal
Differential Revision: https://phabricator.services.mozilla.com/D12745

--HG--
extra : moz-landing-system : lando
2018-12-18 17:19:29 +00:00
Honza Bambas
25a593d03e Bug 1506821 - Redirect content is shown when redirecting to a blacklisted port. r=dragana 2018-12-14 09:25:00 -05:00
Andrea Marchesini
6b9fe3a6cf Bug 1511436 - Cleanup URL-Classifier code - part 3 - AsyncUrlChannelClassifier, r=dimi 2018-12-14 12:40:17 +01:00
Andrea Marchesini
69926deea6 Bug 1511436 - Cleanup URL-Classifier code - part 1 - nsIUrlClassifierFeature, r=dimi
--HG--
rename : netwerk/base/nsChannelClassifier.cpp => netwerk/url-classifier/nsChannelClassifier.cpp
rename : netwerk/base/nsChannelClassifier.h => netwerk/url-classifier/nsChannelClassifier.h
rename : netwerk/base/nsIURIClassifier.idl => netwerk/url-classifier/nsIURIClassifier.idl
2018-12-14 12:40:16 +01:00
Andrea Marchesini
cdd5a7b12c Bug 1511436 - Cleanup URL-Classifier code - part 0 - use of StaticPrefs, r=dimi 2018-12-14 12:40:16 +01:00
Bogdan Tara
724c256428 Merge mozilla-central to mozilla-inbound. a=merge CLOSED TREE 2018-12-14 07:45:04 +02:00
Jean-Yves Avenard
95d598e69b Bug 1513677 - only initialize UserAgentOverrides.jsm once. r=dragana
Differential Revision: https://phabricator.services.mozilla.com/D14305

--HG--
extra : moz-landing-system : lando
2018-12-13 15:19:33 +00:00
Cosmin Sabou
0bb1749356 Bug 1507467 - Make sure mAfterOnStartRequestBegun is true for channels loaded with LOAD_ONLY_IF_MODIFIED, r=valentin
This patch ensures that mAfterOnStartRequestBegun is set to true before notifying stream listener.
2018-12-12 21:02:18 +02:00
Honza Bambas
7c45d38957 Bug 1513470 - Block redirect content from being shown when target data URL is broken, r=dragana 2018-12-12 11:10:00 +02:00
Jean-Yves Avenard
a73ddb5ad2 Bug 1512456 - P5. Refactor WaitForBgParent. r=gerald
Differential Revision: https://phabricator.services.mozilla.com/D14028

--HG--
extra : moz-landing-system : lando
2018-12-11 10:46:29 +00:00
Valentin Gosu
ec72bc563e Bug 1380148 - Assert if securityInfo deserialization fails r=mayhemer
Differential Revision: https://phabricator.services.mozilla.com/D14056

--HG--
extra : moz-landing-system : lando
2018-12-10 21:20:02 +00:00
Valentin Gosu
4a2272c90f Bug 1506965 - Add assertions that members in bitfields are only used on the main thread r=mayhemer
Differential Revision: https://phabricator.services.mozilla.com/D13245

--HG--
extra : moz-landing-system : lando
2018-12-05 15:58:46 +00:00
Valentin Gosu
bf8dd3ab51 Bug 1506965 - Make variables atomic to avoid data race r=mayhemer
Differential Revision: https://phabricator.services.mozilla.com/D13243

--HG--
extra : moz-landing-system : lando
2018-12-05 15:58:21 +00:00
Valentin Gosu
e9a56d9090 Bug 1502025 - Add NS_HTTP_DISABLE_IPV4 and NS_HTTP_DISABLE_IPV6 flags r=dragana
Differential Revision: https://phabricator.services.mozilla.com/D13332

--HG--
extra : moz-landing-system : lando
2018-12-02 23:28:52 +00:00
Tooru Fujisawa
7983faeb5d Bug 1511393 - Use c-basic-offset: 2 in Emacs mode line for C/C++ code. r=nbp 2018-12-01 04:52:05 +09:00
Benjamin Bouvier
a7f1d173a0 Bug 1511383: Update vim modelines after clang-format; r=sylvestre
- modify line wrap up to 80 chars; (tw=80)
- modify size of tab to 2 chars everywhere; (sts=2, sw=2)

--HG--
extra : rebase_source : 7eedce0311b340c9a5a1265dc42d3121cc0f32a0
extra : amend_source : 9cb4ffdd5005f5c4c14172390dd00b04b2066cd7
2018-11-30 16:39:55 +01:00
Sylvestre Ledru
265e672179 Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format
# ignore-this-changeset

--HG--
extra : amend_source : 4d301d3b0b8711c4692392aa76088ba7fd7d1022
2018-11-30 11:46:48 +01:00
Dragana Damjanovic
f4cda9e92e Bug 1502462 - The altSrv checker does not build a uri correctly if origin is ipv6 address. r=valentin
AltSvcMapping::ProcessHeader should use GetAsciiHost instead of GetHost.

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

--HG--
extra : moz-landing-system : lando
2018-11-29 10:15:13 +00:00
Ehsan Akhgari
490e611801 Bug 1508472 - Part 5: Fifth batch of comment fix-ups in preparation for the tree reformat r=sylvestre
This is a best effort attempt at ensuring that the adverse impact of
reformatting the entire tree over the comments would be minimal. I've used a
combination of strategies including disabling of formatting, some manual
formatting and some changes to formatting to work around some clang-format
limitations.

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

--HG--
extra : moz-landing-system : lando
2018-11-29 10:30:46 +00:00
Valentin Gosu
8e3e7b2a3e Bug 1510715 - Backed out changeset d15f0ac561d9 (bug 1260527) a=backout 2018-11-28 21:40:35 +01:00
Andrea Marchesini
a91ebb7cd1 Bug 1510580 - Use nsIURIFixup in netwerk/protocol/http, r=valentin 2018-11-28 18:05:52 +01:00
Dragana Damjanovic
71d81618b1 Bug 1497868 - In nsFtp, close data pipe as well. r=mayhemer
Differential Revision: https://phabricator.services.mozilla.com/D12740

--HG--
extra : moz-landing-system : lando
2018-11-27 19:48:20 +00:00
Ehsan Akhgari
e8df714b7c Bug 1509555 - Part 3: Remove reporting of tracker statistics to docshell which was added for fastblock r=valentin,baku
Depends on D12829

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

--HG--
extra : moz-landing-system : lando
2018-11-27 08:55:36 +00:00
Ehsan Akhgari
b0af8bcf40 Bug 1509555 - Part 2: Remove the core fastblock code r=valentin
Depends on D12828

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

--HG--
extra : moz-landing-system : lando
2018-11-26 11:37:01 +00:00
Ehsan Akhgari
15bf246249 Bug 1509555 - Part 1: Remove the telemetry probe for measuring the rate at which popular analytics providers get blocked by fastblock r=baku,valentin
Differential Revision: https://phabricator.services.mozilla.com/D12828

--HG--
extra : moz-landing-system : lando
2018-11-27 08:50:36 +00:00
Gabriele Svelto
566f669d07 Bug 1509450 - Remove unnecessary inclusions of ContentParent.h and ContentChild.h r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D12728

--HG--
extra : moz-landing-system : lando
2018-11-26 14:49:44 +00:00
Dragana Damjanovic
2e0854b645 Bug 1481947 - When getting eTLD+1 fails, check if uri is an ip literal or localhost. r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D12739

--HG--
extra : moz-landing-system : lando
2018-11-26 19:43:57 +00:00
Valentin Gosu
a6efc6d0af Bug 1260527 - Change HttpChannelChild to open IPDL earlier than AsyncOpen r=kershaw,dragana
Since we need the loadInfo to set up the IPDL connection, we move the logic to
do so from HttpChannelChild::AsyncOpen to HttpChannelChild::SetLoadInfo
via InitIPCChannel.
It would have been nicer to do so in HttpChannelChild::Init, but
I ran into issues with view-source channels, which required an ugly hack.

Also note that RemoteChannelExists() preserves the existing contract - it is
true between asyncOpen and onStopRequest - but the name is slightly off, as
the channel has already been open by the time we call asyncOpen. We will fix
this in a follow-up.

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

--HG--
extra : moz-landing-system : lando
2018-11-26 17:38:42 +00:00