Commit Graph

15277 Commits

Author SHA1 Message Date
Alex Gaynor
b0f90f5b09 Bug 1406997 - Fix a comment typo in HttpChannelParent.cpp. r=billm
MozReview-Commit-ID: 7RoCfaOXf3C

--HG--
extra : rebase_source : 757bcd4f11b0426b1ba056550bd534377d56fc91
2017-10-11 10:13:56 -04:00
Junior Hsu
db2853b001 Bug 870460 - Part 2: Close syncconn for edge cases. r=nwgh 2017-10-09 00:19:00 -04:00
Junior Hsu
b92cc07390 Bug 870460 - Part 1: Let cookie db startup-read off-main-thread. r=nwgh, r=jdm, data-r=francois 2017-08-29 18:16:27 +08:00
Randell Jesup
dd84234b15 Bug 1400563: clean up SCTP shutdown r=drno 2017-10-11 00:40:21 -04:00
Sebastian Hengst
044775ad49 merge mozilla-central to mozilla-inbound. r=merge a=merge 2017-10-11 00:01:28 +02:00
evilpies@gmail.com
06beef32ba Bug 1305237 LoadInfo changes to include all ancestors principals and window IDs, r=bz,mystor
MozReview-Commit-ID: 1IMi5MqTx7o

--HG--
extra : rebase_source : 373f1928987718fe3bc22306e0dd3ae13fc0cd9f
2017-10-10 09:54:00 -07:00
Dragana Damjanovic
262c361ad5 Bug 1400554 - Cancel a time in TLSFilterTransaction if transaction is canceled. r=mcmanus
--HG--
extra : amend_source : f5ede6ac54301e636e122bf6e2dc98057633b436
2017-10-09 14:59:32 -04:00
Andrew McCreight
d49d38778b Bug 1371891 - Use CheckedInt to compute guess for the location of -> in FTP parser. r=michal 2017-10-09 13:50:02 -04:00
Ben Kelly
6097f72d6a Bug 1391693 P12 Propagate creation and start times to InterceptedHttpChannel from original channel. r=valentin 2017-10-09 10:03:42 -07:00
Ben Kelly
4d2d40a639 Bug 1391693 P11 Remove old nsHttpChannel interception bits. r=valentin 2017-10-09 10:03:42 -07:00
Ben Kelly
f3f0b978e0 Bug 1391693 P9 Make nsHttpChannel redirect to InterceptedHttpChannel to fire a ServiceWorker FetchEvent. r=asuth r=valentin 2017-10-09 10:03:41 -07:00
Ben Kelly
b27e98a26d Bug 1391693 P8 Add new InterceptedHttpChannel class to represent parent-side channel with a ServiceWorker FetchEvent. r=asuth r=valentin 2017-10-09 10:03:41 -07:00
Ben Kelly
df180af556 Bug 1391693 P7 Make HttpChannelParent and HttpChannelParentListener allow an internal redirect during service worker interception. r=jdm 2017-10-09 10:03:41 -07:00
Ben Kelly
91eddc52d4 Bug 1391693 P6 Make HttpChannelParent operate on HttpBaseChannel objects instead of nsHttpChannel directly. r=valentin 2017-10-09 10:03:41 -07:00
Ben Kelly
b4550ab09a Bug 1391693 P5 Move some helper methods from nsHttpChannel to HttpBaseChannel. r=valentin 2017-10-09 10:03:40 -07:00
Ben Kelly
20f23200cd Bug 1391693 P1 Rename nsIInterceptedChannel.cancel() to cancelInterception() r=jdm 2017-10-09 10:03:40 -07:00
Honza Bambas
3a7ab1ab78 Bug 1405199 - Update result principal URI on the new channel when nsBaseChannel redirects. r=bz 2017-10-09 07:50:00 -04:00
Jonathan Kew
597f9d1021 Bug 1404349 - Extend check from bug 1370497 to apply to marks with a specific Script property, as well as those with Script=Inherited. r=valentin 2017-10-09 13:23:18 +01:00
Sebastian Hengst
aa78440a09 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: EE6DcCgHufi
2017-10-09 11:19:20 +02:00
Nicholas Nethercote
8a68e6fb83 Bug 1403868 (part 4) - Reduce tools/profiler/public/*.h to almost nothing in non-MOZ_GECKO_PROFILER builds. r=mstange.
Currently the Gecko Profiler defines a moderate amount of stuff when
MOZ_GECKO_PROFILER is undefined. It also #includes various headers, including
JS ones. This is making it difficult to separate Gecko's media stack for
inclusion in Servo.

This patch greatly simplifies how things are exposed. The starting point is:

- GeckoProfiler.h can be #included unconditionally;

- everything else from the profiler must be guarded by MOZ_GECKO_PROFILER.

In practice this introduces way too many #ifdefs, so the patch loosens it by
adding no-op macros for a number of the most common operations.

The net result is that #ifdefs and macros are used a bit more, but almost
nothing is exposed in non-MOZ_GECKO_PROFILER builds (including
ProfilerMarkerPayload.h and GeckoProfiler.h), and understanding what is exposed
is much simpler than before.

Note also that in BHR, ThreadStackHelper is now entirely absent in
non-MOZ_GECKO_PROFILER builds.
2017-10-04 09:11:18 +11:00
Nicholas Nethercote
d225f7151b Bug 1400460 - Rename nsIAtom as nsAtom. r=hiro.
(Path is actually r=froydnj.)

Bug 1400459 devirtualized nsIAtom so that it is no longer a subclass of
nsISupports. This means that nsAtom is now a better name for it than nsIAtom.

MozReview-Commit-ID: 91U22X2NydP

--HG--
rename : xpcom/ds/nsIAtom.h => xpcom/ds/nsAtom.h
extra : rebase_source : ac3e904a21b8b48e74534fff964f1623ee937c67
2017-10-03 09:05:19 +11:00
Valentin Gosu
af25740183 Bug 1394906 - Implement immutable, threadsafe MozURL r=mayhemer
Also adds the necessary methods to rust-url-capi and fixes a bug in rusturl_set_username
MozReview-Commit-ID: 9rsPIQAbWBJ

--HG--
extra : rebase_source : a1dee0b0e26a5c816f47a7c7c779c2454f87f51f
2017-10-07 15:51:03 +03:00
Sebastian Hengst
ba7d7feb7d Backed out changeset 125125b32aaa (bug 1394906) for static failures. r=backout 2017-10-07 13:10:28 +02:00
Valentin Gosu
c8f704a21e Bug 1394906 - Implement immutable, threadsafe MozURL r=mayhemer
Also adds the necessary methods to rust-url-capi and fixes a bug in rusturl_set_username
MozReview-Commit-ID: 9rsPIQAbWBJ

--HG--
extra : rebase_source : 550aafbfb1d57257db49897a7506ebb9f038021f
2017-10-07 01:15:59 +02:00
Sebastian Hengst
b834f0d177 merge autoland to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 7Ez95T2ivfR
2017-10-07 10:37:39 +02:00
Ben Kelly
31b2e31df3 Bug 1351521 P1 Add intercepted HttpChannelChild channels to the performance timeline. r=asuth 2017-10-06 09:04:55 -07:00
Ben Kelly
cc9c9dd739 Bug 1191943 P2 Copy service worker timing information across redirects. r=asuth 2017-10-06 09:04:54 -07:00
Ben Kelly
b4b2a21adc Bug 1405739 P1 Don't expose internal redirect start/end/count through performance timing API. r=valentin 2017-10-06 09:04:54 -07:00
David Keeler
ac3f580c91 bug 1404824 - add a test for the BE_CONSERVATIVE flag if TLS is restricted to 1.3 only r=mayhemer
MozReview-Commit-ID: 736DS5zf5yp

--HG--
rename : netwerk/test/unit/test_be_conservative.js => netwerk/test/unit/test_be_conservative_error_handling.js
extra : rebase_source : 61c39efc8f86fc65723ec65f125be4493c8210a0
2017-10-03 14:35:27 -07:00
Sebastian Hengst
6782409d2b merge mozilla-central to autoland. r=merge a=merge on a CLOSED TREE 2017-10-05 11:45:17 +02:00
Sebastian Hengst
cade0f0bf3 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: CsjtXJM2vcs
2017-10-05 10:55:31 +02:00
Liang-Heng Chen
ef46bde5d2 Bug 1405496 - remove unnecessary assertion; r=bagder
The assertion does not have to be true.

MozReview-Commit-ID: HrXpPsO0rQd

--HG--
extra : rebase_source : 31cb1a715f5487ed32f9e3b31442904a185896d7
2017-10-05 10:59:11 +08:00
Kris Maglione
3676137220 Bug 1404172: Remove MatchPattern.jsm. r=aswan
MozReview-Commit-ID: ItGMuChHS3z

--HG--
rename : toolkit/modules/addons/MatchPattern.jsm => toolkit/modules/addons/MatchURLFilters.jsm
extra : rebase_source : 986542ba4270799ca1d213d5b4807d12ab7ac148
2017-09-28 18:27:44 -07:00
Tom Ritter
26f1bc6cd8 Bug 1404147 Cast constants to the type they are compared to r=smaug
MozReview-Commit-ID: JQDZTBOALZm

--HG--
extra : rebase_source : 5cb3ed5da7f99defd524247ff798c9c501ef851a
2017-09-28 17:47:43 -05:00
Ben Kelly
0279ba6a21 Bug 1407225 Make InterceptedHttpChannel abort if the channel has been canceled during a redirect. r=asuth 2017-10-10 08:45:54 -07:00
Sebastian Hengst
99c7358944 Backed out changeset 0e5484914609 (bug 1395202) for build bustage at netwerk/protocol/http/HttpChannelParent.cpp:1523: 'class mozilla::net::HttpBaseChannel' has no member named 'GetCacheEntryId'. r=backout on a CLOSED TREE 2017-10-10 15:43:13 +02:00
Sebastian Hengst
b6ccfad07b Backed out changeset 92e3c67a3872 (bug 1395202) 2017-10-10 15:42:13 +02:00
Sebastian Hengst
44b9915533 Backed out changeset 7598b4ed02f6 (bug 1395202) 2017-10-10 15:42:07 +02:00
Mike Hommey
3af63f59c0 Bug 1403366 - When NS_XPCOM_INIT_CURRENT_PROCESS_DIR is not already set, fallback to BinaryPath's parent. r=froydnj
The Windows and OSX code paths were essentially doing the same thing,
and the Unix fallback was using an old convention that is pretty much
outdated.

Under normal conditions (XPCOM initialized by Firefox),
NS_XPCOM_INIT_CURRENT_PROCESS_DIR is set from BinaryPath anyways, so
this only really affects adhoc XPCOM initialization from e.g. C++ unit
tests.

--HG--
extra : rebase_source : b3151fffd4c82159b633a48dead86f2c3b0a03d6
2017-09-28 10:49:48 +09:00
Mike Hommey
d43f368c0d Bug 1405174 - Fix resolution of resource: URLs when the target of the substitution doesn't end with a /. r=valentin
When for some reason the target of a resource: substitution doesn't end
with a / (which can happen when e.g. building a FileURI with a path
that doesn't exist), relative path resolution of the resource URLs end
up rooted under the parent of the non-existing directory.

e.g
  resource://foo/bar is substituted with /path/for/bar if
  resource://foo/ is registered for file:///path/for/foo (instead of
  file:///path/for/foo/)

--HG--
extra : rebase_source : b59dae0337a707a96adfc1c89c27235a856ec58e
2017-09-30 08:49:28 +09:00
Sebastian Hengst
5057df5497 Backed out changeset 8aeb6541520a (bug 1405174) for landing wrong version of patch. r=backout 2017-10-05 01:06:56 +02:00
Mike Hommey
155c57e385 Bug 1405174 - Fix resolution of resource: URLs when the target of the substitution doesn't end with a /. r=valentin
When for some reason the target of a resource: substitution doesn't end
with a / (which can happen when e.g. building a FileURI with a path
that doesn't exist), relative path resolution of the resource URLs end
up rooted under the parent of the non-existing directory.

e.g
  resource://foo/bar is substituted with /path/for/bar if
  resource://foo/ is registered for file:///path/for/foo (instead of
  file:///path/for/foo/)

--HG--
extra : rebase_source : 9907f7c54f43851ba1a956a5d278d301013204d2
2017-09-30 08:49:28 +09:00
Sebastian Hengst
2d086eadde Backed out changeset 207925bbf88d (bug 1403366) 2017-10-04 01:27:02 +02:00
Sebastian Hengst
ebd4a79eb5 Backed out changeset 9c05226e2248 (bug 1405174) for failing browser-chrome's toolkit/components/addoncompat/tests/browser/browser_addonShims.js and netwerk/test/browser/browser_child_resource.js. r=backout 2017-10-04 01:19:30 +02:00
Mike Hommey
863d6e0695 Bug 1403366 - When NS_XPCOM_INIT_CURRENT_PROCESS_DIR is not already set, fallback to BinaryPath's parent. r=froydnj
The Windows and OSX code paths were essentially doing the same thing,
and the Unix fallback was using an old convention that is pretty much
outdated.

Under normal conditions (XPCOM initialized by Firefox),
NS_XPCOM_INIT_CURRENT_PROCESS_DIR is set from BinaryPath anyways, so
this only really affects adhoc XPCOM initialization from e.g. C++ unit
tests.

--HG--
extra : rebase_source : b3151fffd4c82159b633a48dead86f2c3b0a03d6
2017-09-28 10:49:48 +09:00
Mike Hommey
7213aff68a Bug 1405174 - Fix resolution of resource: URLs when the target of the substitution doesn't end with a /. r=valentin
When for some reason the target of a resource: substitution doesn't end
with a / (which can happen when e.g. building a FileURI with a path
that doesn't exist), relative path resolution of the resource URLs end
up rooted under the parent of the non-existing directory.

e.g
  resource://foo/bar is substituted with /path/for/bar if
  resource://foo/ is registered for file:///path/for/foo (instead of
  file:///path/for/foo/)

--HG--
extra : rebase_source : 50a329318a2424bc5679a2e026e755271214224a
2017-09-30 08:49:28 +09:00
Sebastian Hengst
e8e914baa7 Backed out changeset c033bdb24e14 (bug 1371699) 2017-10-03 16:55:02 +02:00
Michal Novotny
a60970a6a1 Bug 1403010 - Crash due to race condition in CacheFileMetadata::SizeOfExcludingThis when reading or writing metadata, r=valentin 2017-10-03 16:49:39 +02:00
Michal Novotny
d3a3055806 Bug 1401224 - Do not call aWriter with no data in CacheFileInputStream::ReadSegments, r=valentin 2017-10-03 16:48:16 +02:00
Amy Chung
3eec3617b1 Bug 1399590 - Modify the argument of nsICookiePermission::CanAccess for changing nsIURI to nsIPrincipal. r=jdm 2017-10-03 14:37:11 +08:00