Wes Kocher
497d2c96ed
Merge m-c to autoland, a=merge
...
MozReview-Commit-ID: Lmq6phawHD
2017-04-24 16:16:50 -07:00
Andrea Marchesini
70d3bbfdb9
Bug 1353629 - PBlob refactoring - part 12 - nsInputStreamPump should use BufferedStreams, r=smaug
...
nsInputStreamPump should use the stream as nsIAsyncInputStream if available.
In order to do so, we need to wrap a BufferedStream around it.
MediaResource cannot use a simple sync nsIInputStream when BlobURL are involved
in the content process.
2017-04-24 12:09:41 +02:00
Andrea Marchesini
188d63f58b
Bug 1353629 - PBlob refactoring - part 10 - Make nsFileInputStream cloneable, r=smaug
...
This is important to avoid extra copy when IPCInputStreamStorage::GetStream()
returns a file inputStream
2017-04-24 12:09:41 +02:00
Nicholas Hurley
6474ffcc78
Bug 1348460
- make predictor::learn async. r=Ehsan
...
Serializing and sending IPC messages takes a lot of time, and it gets in the way of image loading. Making this functionality async gets out of the way of image loading (among other things).
The test has been changed to pump the main thread after calling predictor.learn so the multiprocess version can actually run to completion. This isn't strictly necessary in the single process version, but it makes the code changes (which are already pretty invasive) simpler.
MozReview-Commit-ID: 7jvhomlygbf
--HG--
extra : rebase_source : a779a498f83a2b02d2d634eff63d15f483793046
2017-04-17 17:22:46 -07:00
Wes Kocher
d973551173
Merge inbound to central, a=merge
...
MozReview-Commit-ID: FHfhKIIlItM
2017-04-21 17:30:43 -07:00
dOn'tReallycAre
7686899ef4
Bug 1357155 - Convert PRCList usage in nsStandardURL to LinkedList. r=erahm
2017-04-21 01:46:12 +09:00
Patrick McManus
e775512982
Bug 1297481 - add shutdown state to protocolproxyservice r=bagder
...
the protocol proxy service asserts that is in a clean state at dtor -
normally this happens through observe("xpcom-shutdown") but its
actually possible of other events in the xpcom run queue to
'unitialize' things before the dtor.. add a state in which fail codes
are returned instead.
MozReview-Commit-ID: XaNQEZUsRP
--HG--
extra : rebase_source : 054b01269d36dd8e8e24056f389c94a0d9183436
2017-04-19 08:42:09 -04:00
Wes Kocher
5ce5528fb1
Merge inbound to m-c a=merge
...
MozReview-Commit-ID: DQDuEiYLWCO
2017-04-20 15:30:43 -07:00
Sebastian Hengst
711bc84e34
Backed out changeset b225ae4bfc09 (bug 1353629)
2017-04-20 18:36:42 +02:00
Sebastian Hengst
f17bba30ba
Backed out changeset 747a31f9b7b9 (bug 1353629)
2017-04-20 18:36:33 +02:00
Andrea Marchesini
b50ec2b3c0
Bug 1353629 - PBlob refactoring - part 12 - nsInputStreamPump should use BufferedStreams, r=smaug
...
nsInputStreamPump should use the stream as nsIAsyncInputStream if available.
In order to do so, we need to wrap a BufferedStream around it.
MediaResource cannot use a simple sync nsIInputStream when BlobURL are involved
in the content process.
2017-04-20 15:20:58 +02:00
Andrea Marchesini
a324d1c1c0
Bug 1353629 - PBlob refactoring - part 10 - Make nsFileInputStream cloneable, r=smaug
...
This is important to avoid extra copy when IPCInputStreamStorage::GetStream()
returns a file inputStream
2017-04-20 15:20:56 +02:00
Andrea Marchesini
e1cf92c22c
Bug 1353684 - nsIFileInputStream must return NS_ERROR_NOT_FOUND if Deserialize() fails, r=smaug
2017-04-20 13:39:51 +02:00
Wes Kocher
cb8ce82cca
Merge inbound to m-c a=merge
2017-04-19 17:10:04 -07:00
Tom Tung
8c93a46f2a
Bug 1330297 - Part 1: Strip leading or trailing HTTP whitespace for Header value to follow the spec and share code bewteen fetch and XHR. r=baku
2017-04-10 16:15:29 +08:00
Valentin Gosu
0a4d506e21
Bug 1354349 - Add nsIChannel.isDocument that checks if LOAD_DOCUMENT_URI is set, or if LOAD_HTML_OBJECT_DATA and the channel has the appropriate MIME type r=mcmanus,mystor
...
MozReview-Commit-ID: K28Opd9JTr2
--HG--
extra : rebase_source : d1a786d9b4318be15f195fdc330489121ebd6ece
2017-04-20 10:15:06 +08:00
Carsten "Tomcat" Book
7bcdfe36bc
Merge mozilla-central to autoland
2017-04-19 10:57:24 +02:00
Mike Hommey
33a7e408ce
Bug 1357323 - Remove the gonk code that was referenced by the build system. r=gps
...
--HG--
extra : rebase_source : 1d30ebcbdbcf596c944e1eec981f85db341485e5
2017-04-18 17:46:39 +09:00
Mike Hommey
34e619d1c1
Bug 1357323 - Remove support for gonk in the build system. r=gps
...
Everything depending on the widget being gonk can go away, as well as
everything depending on MOZ_AUDIO_CHANNEL_MANAGER, which was only
defined on gonk builds under b2g/ (which goes away in bug 1357326).
--HG--
extra : rebase_source : 9f0aeeb7eea8417fa4e06d662d566d67ecaf2a24
2017-04-18 16:56:09 +09:00
Michael Layzell
ab79668929
Bug 1354635 - Send permissions to the content process when debugging service workers, r=catalinb
...
MozReview-Commit-ID: 8cUh5znQcFN
2017-04-18 14:38:56 -04:00
Ehsan Akhgari
ce9afcdc80
Bug 1356838 - Reduce the hashtable lookup cost in EnsureGlobalPredictor(); r=nwgh
2017-04-17 23:27:45 -04:00
Thomas Nguyen
ae9e3b7638
Bug 1353853 - Cache preferences when doing channel classify r=francois
...
We will cache all preferences which will be read during classifing channel
- Store them into static variables nsUrlClassifierDBService
- Use a singleton class to manage/update preferrences in nsChannelClassifier
MozReview-Commit-ID: GvyBI3rVpYh
--HG--
extra : rebase_source : 0cec0724bd47f55c7b1666e700d172698a708efb
2017-04-18 17:00:27 +08:00
Honza Bambas
c195f6ee04
Bug 1348061
- When an HTTP channel is throttled, stop reading from the socket when using HTTP/1. r=mcmanus
2017-04-13 05:26:00 -04:00
Valentin Gosu
85ac9821e0
Bug 1354245 - Don't call CaptivePortalService::Start() in SetConnectivityInternal if the captive portal service is disabled via pref r=mcmanus
...
MozReview-Commit-ID: 4xCkBgWDZ2b
--HG--
extra : rebase_source : 8bce4e1fb98e9c8dd2c8119ee59df2cfbb62efb3
2017-04-12 17:52:14 +03:00
Ho-Pang Hsu
db007e371f
Bug 1168875 - Part 2: Add service worker interception timestamp logging APIs to nsIInterceptedChannel. f=bkelly, r=valentin
...
--HG--
extra : rebase_source : 12fe2df13446960b96ca6deb3b36795c643c6ae5
2017-04-10 21:13:21 +08:00
Ho-Pang Hsu
11560d7c31
Bug 1168875 - Part 1: Extend nsITimedChannel for logging service worker interception related timestamps. f=bkelly, r=valentin
...
--HG--
extra : rebase_source : 8c20cc8f2014f728038b8b9b214e888cc3215d0c
2017-04-10 21:13:21 +08:00
Yoshi Huang
34f66889f3
Bug 1346713 - Generate unique firstPartyDomain value for NullPrincipal. r=smaug
...
In the past we used a fixed value for the firstPartyDomain of
NullPrincipal, now we derive it from the path of NullPrincipal, so it
will be unique everytime we create it.
2017-04-11 16:48:34 +08:00
Michael Layzell
465d1b2fae
Bug 1352553 - Part 2: Restore previous default port behaviour for RustURL::GetPort on a CLOSED TREE, a=bustage
...
MozReview-Commit-ID: A0SAYtcttZF
2017-04-10 16:22:35 -04:00
Michael Layzell
fd68582d06
Bug 1352553 - Update rust-url-capi to use the new nserror crate, r=valentin
...
MozReview-Commit-ID: 3X3MRb9Iujz
2017-04-10 15:21:25 -04:00
Sebastian Hengst
ed655b907f
merge mozilla-central to mozilla-inbound. r=merge a=merge
2017-04-08 22:56:39 +02:00
Kris Maglione
26b71c675c
Bug 1351163: Part 2 - Add a nsSimpleChannel helper class for creating simple wrapper channels. r=bz,honzab
...
This helper class allows us to create simple channels that open an underlying
input stream when the channel is first opened, using a closure function,
without having to expose the nsBaseChannel class to non-necko code.
MozReview-Commit-ID: 6jiImdMXUp0
--HG--
extra : rebase_source : b8d30a28593940c41109b1352eb0c549213c5f89
2017-04-07 14:35:48 -07:00
Kris Maglione
33760a013c
Bug 1351163: Part 1 - Support direct stream listener output in nsBaseChannel. r=honzab
...
Several of our simple channel implementations work naturally with direct
nsIStreamListener output. Currently, these implementations need to create a
pipe, pump data in to that pipe, and then allow nsBaseChannel to pump data out
of the other side of that pipe, into its own stream listener.
This change allows them to output data directly to nsBaseChannel's stream
listener, which removes unnecessary complexity and overhead.
MozReview-Commit-ID: JCGKTt6Kn9x
--HG--
extra : rebase_source : 200dd2641bfa703f658c2c5171a68df3a035be0a
2017-04-07 14:25:33 -07:00
Carsten "Tomcat" Book
3a762886de
Merge mozilla-central to mozilla-inbound
2017-04-07 15:33:03 +02:00
Andrea Marchesini
732135f026
Bug 1354040 - nsMIMEInputStream should be nsIIPCSerializableInputStream only if the internal stream is serializable, r=qdot
2017-04-07 09:34:13 +02:00
Andrea Marchesini
4b42693957
Bug 1354052 - Remove NS_NO_INPUT_BUFFERING from nsFileStreams.cpp, r=qdot
2017-04-07 09:33:04 +02:00
Sebastian Hengst
548852b3a4
merge mozilla-central to autoland. r=merge a=merge
2017-04-07 22:16:26 +02:00
Valentin Gosu
bb752cebae
Bug 1351443 - Only fall back to NewChannel if implementation of NewChannel2 is missing r=mcmanus
...
If the call to NewChannel2 returns NS_ERROR_NOT_IMPLEMENTED or NS_ERROR_XPC_JSOBJECT_HAS_NO_FUNCTION_NAMED that means the implementation is actually missing, so it is OK to fall back to NewChannel.
If it fails with any other error code, we just return it.
MozReview-Commit-ID: JmgEmPqu6zJ
--HG--
rename : netwerk/test/unit/test_bug894586.js => netwerk/test/unit/test_1351443-missing-NewChannel2.js
extra : rebase_source : 5d41df330a15ad7b679d9bed52e6fbf90bdc4ed8
2017-04-07 15:25:19 +03:00
Mike Hommey
94c16743bb
Bug 1344038
- Remove --disable-gio. r=karlt
...
--HG--
extra : rebase_source : 3b5b820536b0e9b1fb1da3a16c444ed7839770b9
2017-04-05 14:06:25 +09:00
Daniel Stenberg
158a13ee0b
Bug 1349419 - Do fallible memory alloc and return failure to avoid OOM crash. r=mcmanus
2017-03-24 02:59:00 -04:00
Carsten "Tomcat" Book
7a670cdd01
merge mozilla-inbound to mozilla-central a=merge
2017-04-05 14:33:35 +02:00
Wes Kocher
f18ad1cfc8
Merge m-c to autoland, a=merge
2017-04-04 11:28:54 -07:00
Carsten "Tomcat" Book
a0fea1ad49
Merge mozilla-central to mozilla-inbound
2017-04-04 12:37:56 +02:00
Christoph Kerschbaumer
78d8448ba5
Bug 1352778 - Do not reset triggeringPrincipal but only principalToInherit within loadInfo when forced to. r=gijs
2017-04-03 20:06:53 +02:00
Nicholas Hurley
89c508224f
Bug 1348462 - Use a process-unique uint64 instead of a uuid for request context ids r=mcmanus
...
--HG--
extra : rebase_source : 84541f78eeec1a5e202c12b57131ede9834f687a
2017-03-23 07:40:36 -07:00
Nicholas Hurley
0d16807831
Bug 1353082 - don't prefetch is there's a query string r=mcmanus
...
--HG--
extra : rebase_source : 585c5dadd4ae2fbf3520498bad5c0a2ab9f8eb97
2017-03-27 14:56:05 -07:00
Nicholas Hurley
dc67ce7d71
Bug 1348461 - Use a process-unique uint64 instead of a uuid for channel ids r=mcmanus
2017-04-04 08:36:51 -07:00
Valentin Gosu
e0f474ede9
Bug 1326175 - Stop preserving empty passwords in URLs r=mcmanus
...
MozReview-Commit-ID: 7wdZSJmpErF
--HG--
extra : rebase_source : 100061a5c1921f1a10cf339207548aceb3afbe49
2017-03-27 23:56:28 +02:00
Andrea Marchesini
507c00cb9f
Bug 1343933 - Renaming Principal classes - part 4 - ContentPrincipal, r=qdot
...
--HG--
rename : caps/nsPrincipal.cpp => caps/ContentPrincipal.cpp
rename : caps/nsPrincipal.h => caps/ContentPrincipal.h
2017-03-22 11:39:31 +01:00
Andrea Marchesini
1fd1bc3935
Bug 1343933 - Renaming Principal classes - part 2 - NullPrincipal, r=qdot
...
--HG--
rename : caps/nsNullPrincipal.cpp => caps/NullPrincipal.cpp
rename : caps/nsNullPrincipal.h => caps/NullPrincipal.h
rename : caps/nsNullPrincipalURI.cpp => caps/NullPrincipalURI.cpp
rename : caps/nsNullPrincipalURI.h => caps/NullPrincipalURI.h
2017-03-22 11:38:40 +01:00
Wes Kocher
8fb7d84cb4
Merge inbound to central, a=merge
...
MozReview-Commit-ID: FKkx5SygvHz
2017-03-21 16:08:32 -07:00
Michael Layzell
796f2bf010
Bug 1337056 - Part 8: Add nsIRequest::LOAD_HTML_OBJECT_DATA flag to identify requests loaded by nsObjectLoadingContent, r=mcmanus
...
MozReview-Commit-ID: 3hgLRCeuiyD
2017-03-21 11:08:03 -04:00
Michael Layzell
ba95fb3f71
Bug 1337056 - Part 2: Replace the synchronous ReadPermissions API with async APIs, r=baku
...
These APIs are intended to use the mechanism defined in Part 1.
Part 3 implements the usage of these APIs to synchronize permissions.
MozReview-Commit-ID: HNKyDPtoaHl
2017-03-21 11:08:03 -04:00
Sebastian Hengst
952d1e945f
Backed out changeset 4258769b457d (bug 1348464) for crashing in Marionette e10s tests in nsIDocument::GetDocGroup(). r=backout on a CLOSED TREE
2017-03-21 15:48:56 +01:00
Sebastian Hengst
2b5713b552
Backed out changeset b89cd59e4ff6 (bug 1348464)
2017-03-21 15:47:46 +01:00
Ehsan Akhgari
2d24acd7f3
Bug 1348464 - Part 1: Avoid two virtual calls in NS_URIChainHasFlags(); r=mcmanus
2017-03-21 09:26:07 -04:00
Ehsan Akhgari
350b13d1d9
Bug 1348464 - Part 0: Make nsIOService::GetInstance() a simple inline function that returns a plain pointer; r=mcmanus
2017-03-21 09:26:00 -04:00
Andrea Marchesini
2e9d67bae0
Bug 1347557 - Move 2 static methods about the IPC serialization of streams into an helper class, r=qdot
2017-03-21 07:47:25 +01:00
Carsten "Tomcat" Book
ba50caf91b
Merge mozilla-central to autoland
2017-03-21 12:08:43 +01:00
Valentin Gosu
1d52489dd5
Bug 1334443 - Rewrite nsProtocolProxyService::LoadHostFilters to use Tokenizer r=bagder
...
This eliminates some of the pointer math and makes the method a bit safer.
The function's behaviour remains the same as before.
MozReview-Commit-ID: 94wBk6xvkd6
--HG--
extra : rebase_source : 9fac33114b16d0910e63b474222acf0bc1db500f
2017-03-20 20:21:15 +01:00
Valentin Gosu
179c07ad0e
Bug 1334443 - Add gtest for nsProtocolProxyService::{LoadHostFilters,CanUseProxy} and fix IPv6 parsing r=bagder
...
While writing a gtest I discovered the parsing an IPv6 address didn't work due to the brackets.
MozReview-Commit-ID: 9mmKS72hf7Y
--HG--
extra : rebase_source : 757a19a50a50b2af232f0b44f6faacf7280b554a
2017-03-20 20:20:42 +01:00
Carsten "Tomcat" Book
468f7d8e9f
merge mozilla-inbound to mozilla-central a=merge
2017-03-16 15:35:50 +01:00
Ehsan Akhgari
5fcbc5ac5c
Bug 1347379 - Don't bother searching for a newly generated UUID in the request context hashtable; r=mcmanus
2017-03-15 23:03:37 -04:00
David Major
ed12ea611f
Bug 1346078: Remove nsAString_internal and just use the nsAString name directly. r=bsmedberg
...
MozReview-Commit-ID: DWDEDMIVKm7
--HG--
extra : rebase_source : 7fe8dc07c816dca234c67761e61cdee372a87e97
2017-03-10 15:17:23 +13:00
Valentin Gosu
724d134c92
Bug 1346711 - Backout changeset 36839839cfa7 (bug 1334443) a=backout
...
proxy_GetStringPref also strips whitespace, thus it breaks parsing a space separated list
MozReview-Commit-ID: F9SoMkbI28z
2017-03-14 15:28:48 +01:00
Carsten "Tomcat" Book
dba578960e
merge mozilla-inbound to mozilla-central a=merge
2017-03-14 14:23:03 +01:00
Yoshi Huang
996e0349b3
Bug 1300671 - set firstPartyDomain on about: pages. r=smaug
...
When we load about:blank in a remote tab, it will have
LOAD_FLAGS_DISALLOW_INHERIT_PRINCIPAL flag set, which will make
NullPrinicipal as its document principal. So we add
NULL_PRINCIPAL_FIRST_PARTY_DOMAIN as its firstPartyDomain.
So when we load data:, or javascript: URI in a remote tab, it will inherit the
principal from about:blank, hence also inherit the origin attributes.
There are also some about: pages will use codebase principal, so we also
set ABOUT_URI_FIRST_PARTY_DOMAIN as firstPartyDomain on their
principals.
2017-03-14 16:22:02 +08:00
Carsten "Tomcat" Book
fdb7f606e2
Backed out changeset 985d9b83325f (bug 1337043) for causing bug 1337043
2017-03-14 07:02:02 +01:00
Felipe Gomes
202823730b
Bug 1337043 - Don't bother classifying about: URLs. r=tnguyen r=francois
...
MozReview-Commit-ID: Dz9XcepYWjh
2017-03-13 20:07:30 -03:00
David Major
dc67bfc9a3
Bug 1344629 - Part 6: Rewrite unnecessary uses of nsLiteralString. r=dbaron
...
There's an antipattern where nsLiteralString is used as an unnecessary intermediary in converting from CharT* to CharT*,
e.g. CallAFunctionThatTakesACharPointer(NS_LITERAL_CSTRING("foo").get());
or
NS_NAMED_LITERAL_STRING(foo, "abc");
CallAFunctionThatTakesACharPointer(foo.get());
This patch rewrites the callsites that can be trivially changed to use char*/char16_t*.
I'd somewhat like to remove nsTLiteralString::get() altogether, but in code that's less straightforward than these examples, get() is useful enough to keep.
MozReview-Commit-ID: Kh1rUziVllo
--HG--
extra : rebase_source : c21a65694d6e1c42fd88f73632f7ac8f38d005ae
2017-03-14 15:26:27 +13:00
Iris Hsiao
5cece96e1c
Backed out 12 changesets (bug 1344629) for stylo build bustage
...
Backed out changeset cf4273d3ac30 (bug 1344629)
Backed out changeset a96390e044e0 (bug 1344629)
Backed out changeset d9b330f9bc24 (bug 1344629)
Backed out changeset 2b460fe020af (bug 1344629)
Backed out changeset 0ada91b0452e (bug 1344629)
Backed out changeset 083304fcd6bd (bug 1344629)
Backed out changeset 53d7d1ce2c97 (bug 1344629)
Backed out changeset 55eee7078ae4 (bug 1344629)
Backed out changeset 7d3c06b3eca9 (bug 1344629)
Backed out changeset e5df14c3db61 (bug 1344629)
Backed out changeset 636095ff2815 (bug 1344629)
Backed out changeset 0be052ad24c1 (bug 1344629)
2017-03-14 11:52:24 +08:00
David Major
40f4821701
Bug 1344629 - Part 6: Rewrite unnecessary uses of nsLiteralString. r=dbaron
...
There's an antipattern where nsLiteralString is used as an unnecessary intermediary in converting from CharT* to CharT*,
e.g. CallAFunctionThatTakesACharPointer(NS_LITERAL_CSTRING("foo").get());
or
NS_NAMED_LITERAL_STRING(foo, "abc");
CallAFunctionThatTakesACharPointer(foo.get());
This patch rewrites the callsites that can be trivially changed to use char*/char16_t*.
I'd somewhat like to remove nsTLiteralString::get() altogether, but in code that's less straightforward than these examples, get() is useful enough to keep.
MozReview-Commit-ID: Kh1rUziVllo
--HG--
extra : rebase_source : c21a65694d6e1c42fd88f73632f7ac8f38d005ae
2017-03-14 15:26:27 +13:00
Kershaw Chang
3310ba5db8
Bug 1309653 - Part1: Add new API for updating current top level outer content windowId - v2, r=honzab
...
--HG--
extra : rebase_source : a7a9797ad94d66e9ecb9b13a6d7103c0af2303ff
2017-03-10 01:32:00 +01:00
Valentin Gosu
1c5fbd8c6e
Bug 1342438 - Remove url .hash encoding/decoding prefs r=bagder
...
These prefs have been added close to two years ago:
dom.url.encode_decode_hash and dom.url.getters_decode_hash
The main reason for their existence was in case we encounter any web-compat issues. At this point the extra code is mostly useless, and flipping the pref may lead to crashes.
MozReview-Commit-ID: LhAHkYmv0TR
--HG--
extra : rebase_source : 8f2d50d5633496cf165b3925d952bb6475bce3e0
2017-03-08 22:19:34 +01:00
Valentin Gosu
5847af980b
Bug 1324243 - Normalize IPv6 r=manishearth
...
MozReview-Commit-ID: 1UFIdeWrz1E
--HG--
extra : rebase_source : cb7e44b0afe06426e3268e80d94a2f59af633b9b
2017-03-09 00:55:05 +01:00
Cykesiopka
6b0596a14c
Bug 1344441 - Move various Necko IDLs that really ought to be PSM IDLs. r=keeler,mcmanus
...
These IDLs conceptually are PSM APIs, and are implemented in PSM as well.
nsICryptoFIPSInfo.idl is similar but is removed instead because:
1. It's unused even by addons.
2. The only thing it provides is also available through nsIPKCS11ModuleDB.idl.
MozReview-Commit-ID: K8R0wDAhjLq
--HG--
rename : netwerk/base/nsICryptoHMAC.idl => security/manager/ssl/nsICryptoHMAC.idl
rename : netwerk/base/nsICryptoHash.idl => security/manager/ssl/nsICryptoHash.idl
rename : netwerk/base/nsINSSErrorsService.idl => security/manager/ssl/nsINSSErrorsService.idl
extra : rebase_source : 3eca83901e14cea714d402046303790d283cff74
2017-03-05 18:30:31 +08:00
Thomas Nguyen
2b86f73c62
Bug 1339006 - Specify event target if we run nsIURIClassifier.clasify() from content process.r=ehsan, r=gcp
...
MozReview-Commit-ID: BztjVMlQngi
2017-03-08 11:06:36 +08:00
Andrea Marchesini
f2a07c0b1c
Bug 1344204 - nsBufferedInputStream should be serializable/cloneable following the internal sub streams, r=smaug
2017-03-08 07:48:37 +01:00
Andrea Marchesini
e9195daa8d
Bug 1345168 - Get rid of OriginAttributes::Inherit, r=tjr
2017-03-08 07:41:51 +01:00
Andrea Marchesini
8c2ad72d08
Bug 1345168 - Fix the indentation in LoadInfo.cpp, r=tjr
2017-03-08 07:41:20 +01:00
Carsten "Tomcat" Book
087da3f0d9
merge mozilla-inbound to mozilla-central a=merge
2017-03-07 15:13:31 +01:00
Wei-Cheng Pan
ab2969cfa1
Bug 1310127 - Part 4: Use MOZ_MUST_USE in netwerk/protocol/http r=mcmanus
...
This patch contains some changes that may alter control flows.
MozReview-Commit-ID: Kcc2DWJZ8L5
--HG--
extra : rebase_source : ddb068f7c038f6f0ad75efda941dd6b8da8b949a
2016-12-28 14:43:47 +08:00
Wei-Cheng Pan
03ca0df8a1
Bug 1310127 - Part 3: Use MOZ_MUST_USE in netwerk/protocol/http r=mcmanus
...
Add assertions.
MozReview-Commit-ID: DPvgKzVr3ip
--HG--
extra : rebase_source : a96d658c8b76180fe5a904106de9a68de16e0383
2017-01-12 17:48:45 +08:00
Wei-Cheng Pan
7aa068fbb7
Bug 1310127 - Part 2: Use MOZ_MUST_USE in netwerk/protocol/http r=Cykesiopka,mcmanus
...
Log failures or just ignore them, no control flow change.
MozReview-Commit-ID: D748DEjl3Fv
--HG--
extra : rebase_source : cec54fe99637a2292e9d4ddc6f4131f083da509a
2016-12-27 19:05:13 +08:00
Tim Huang
2d4b6a79e2
Bug 1337893 - Part 3: Updating Necko for DNS changes. r=valentin
...
MozReview-Commit-ID: AVEp3hP7XqB
--HG--
extra : rebase_source : ab7bccfc0336a92f837c16eacbf3ae9290f3803b
2017-02-15 17:48:15 +08:00
Carsten "Tomcat" Book
a25648d3cd
Backed out changeset 189b914221f4 (bug 1324243) for wpt-11 bustage
2017-03-06 14:13:03 +01:00
Valentin Gosu
0cb0b2702b
Bug 1324243 - Normalize IPv6 r=manishearth
...
MozReview-Commit-ID: Kxe9eLqvKp6
--HG--
extra : rebase_source : 195cafb81adeb9d5fa0a84535144debe1b26f6ff
2017-03-01 00:01:15 +01:00
Carsten "Tomcat" Book
2cba1fb22e
Merge mozilla-central to autoland
2017-03-06 11:10:50 +01:00
Carsten "Tomcat" Book
d0bd960945
merge mozilla-inbound to mozilla-central a=merge
2017-03-06 10:53:27 +01:00
Valentin Gosu
55e829f800
Bug 1344558 - Avoid OOM in nsSimpleURI::SetPath r=mcmanus
...
MozReview-Commit-ID: JWlN5Q6H59Q
--HG--
extra : rebase_source : f3f1971f33d8fe6b560c1a9aca307219725713c6
2017-03-05 22:55:45 +01:00
Nick
88d3231652
Bug 1343545
- Moved necessary code out of nsNetUtilInlines.h and removed the file r=bsmedberg
...
MozReview-Commit-ID: AazctrDbCdf
--HG--
extra : rebase_source : 153265d7b2bf208d8a22c648f621c0f7f40ff405
2017-03-02 09:32:37 -05:00
Dragana Damjanovic
29f090a0d6
Bug 1343600 - add TLS handshake Start/Stop events. r=:valentin
2017-03-02 03:07:00 +01:00
Wes Kocher
9746f81e53
Merge m-c to autoland, a=merge
...
MozReview-Commit-ID: FzykkWPQCrq
--HG--
rename : browser/modules/test/browser_UsageTelemetry_content.js => browser/modules/test/browser/browser_UsageTelemetry_content.js
rename : browser/modules/test/browser_UsageTelemetry_content_aboutHome.js => browser/modules/test/browser/browser_UsageTelemetry_content_aboutHome.js
rename : browser/modules/test/browser_UsageTelemetry_searchbar.js => browser/modules/test/browser/browser_UsageTelemetry_searchbar.js
rename : browser/modules/test/browser_UsageTelemetry_urlbar.js => browser/modules/test/browser/browser_UsageTelemetry_urlbar.js
2017-03-01 17:48:44 -08:00
Benjamin Smedberg
d9c7494134
Bug 1332639 - Remove the external string API: nsStringAPI.h/cpp and nsEmbedString.h, r=glandium
...
MozReview-Commit-ID: 9dZcmMAI0Vk
--HG--
extra : rebase_source : 5561cf7f3318c60f082fff02c5e78aba661f6437
2017-02-27 11:41:52 -05:00
Kris Maglione
ee306e28c0
Bug 1314361 - Part 6: Remove the addonId origin attribute. r=bholley
2016-11-08 17:11:32 -08:00
Patrick McManus
0a3349e548
Bug 1344374 - remove now-meaningless nsIRequest::INHIBIT_PIPELINE r=hurley
2017-03-03 16:46:53 -05:00
Thomas Nguyen
517a43f68d
Bug 1336240 - Remove observer in PendingLookup and nsChannelClassifier r=dimi,francois
...
MozReview-Commit-ID: EBQpQzESVZP
--HG--
extra : rebase_source : 16f93024c26cde43a0960b4c9425f8fb60f66ad3
2017-02-24 10:14:07 +08:00
Nathan Froyd
f7fb97ad16
Bug 1338282 - remove profile.dev options from rust-url-capi's Cargo.toml; r=valentin
2017-02-22 17:15:02 -05:00
Andrea Marchesini
e87ad16573
Bug 1339710 - Remove nsIPartialFileInputStream, r=smaug
2017-02-22 09:41:51 +01:00
Iris Hsiao
f9bdfe10bb
Backed out 5 changesets (bug 1339710) for GTest failures in TestSlicedInputStream.StartBiggerThan
...
Backed out changeset 7c0ec55b44dc (bug 1339710)
Backed out changeset cbb4e1c2aada (bug 1339710)
Backed out changeset c685dca493f5 (bug 1339710)
Backed out changeset 4761a15d45fd (bug 1339710)
Backed out changeset 7561692c1bc7 (bug 1339710)
2017-02-22 16:19:50 +08:00
Andrea Marchesini
190bf147a2
Bug 1339710 - Remove nsIPartialFileInputStream, r=smaug
2017-02-22 07:56:29 +01:00
Wes Kocher
13e1cccb3f
Merge inbound to central, a=merge
...
MozReview-Commit-ID: EEMZdLCheAm
2017-02-21 17:35:01 -08:00
Ehsan Akhgari
8b87856c36
Bug 1340677 - Stop supporting ORIGIN_IS_FULL_SPEC for Firefox; r=mcmanus
...
This is only used in Thunderbird and SeaMonkey and makes origin
comparisons needlessly slow in Firefox.
2017-02-21 10:37:37 -05:00
Thomas Nguyen
65d9ef988a
Bug 1288633 - Add more information when an URL matches Safe Browsing list. r=dragana,francois
...
MozReview-Commit-ID: 6u0dUOB838F
--HG--
extra : rebase_source : 8800e60e6a3b787f1ebaeafb48057e3a3d509468
2017-02-21 09:46:36 +08:00
Carsten "Tomcat" Book
85079555b0
Merge mozilla-central to autoland
2017-02-20 14:12:30 +01:00
Jonathan Hao
9a4de2ace4
Bug 1323644
- Isolate the HSTS and HPKP storage by first party domain (Necko) r=ckerschb
...
MozReview-Commit-ID: 6DFPXTXoykc
--HG--
extra : rebase_source : 4c69a918b289f76a75ac463f08a6e43f7b625571
2017-02-14 10:29:41 +08:00
Wes Kocher
8c4ce17711
Merge inbound to m-c a=merge
...
MozReview-Commit-ID: DCUf7VEDrTt
2017-02-17 13:38:51 -08:00
Vedant Sareen
7d4bd52fae
Bug 1330907 - Rename Telemetry::ID to Telemetry::HistogramID. r=dexter
...
Changed |print("enum ID : uint32_t {", file=output)| to |print("enum HistogramID : uint32_t {", file=output)| at line 53 of the file |toolkit/components/telemetry/gen-histogram-enum.py|, and then replaced all the textual occurrences of |Telemetry::ID| to |Telemetry::HistogramID| and |ID| to |HistogramID| in 43 other files.
2017-02-16 00:45:15 +05:30
Eric Rahm
6d6da9f240
Bug 1332202 - Followup to fix comment to say infallible. DONTBUILD r=me
...
MozReview-Commit-ID: ByRWrv7nGnM
2017-02-16 11:52:54 -08:00
Carsten "Tomcat" Book
b218b4c6ae
merge mozilla-inbound to mozilla-central a=merge
2017-02-16 13:15:55 +01:00
Wes Kocher
3797956aa6
Merge m-c to inbound a=merge
...
MozReview-Commit-ID: BemR756HJnR
2017-02-15 16:33:03 -08:00
Bill McCloskey
194043ae97
Bug 1339289 - Give names to a lot of common runnables (r=ehsan)
...
MozReview-Commit-ID: 5IdvK6kgoAW
2017-02-15 12:30:01 -08:00
Junior Hsu
a9616aa8f5
Bug 1338154 - not normalize ipv4 for resource and chrome uri. r=valentin
2017-02-13 03:10:00 +08:00
Valentin Gosu
d28a501a3f
Bug 1339809 - Update rust-url to version 1.4.0 r=froydnj
...
MozReview-Commit-ID: 90Pe9sh91S5
--HG--
extra : rebase_source : 117b3e44a3ceffa9b36cb409b1ae8bf7f0287bad
2017-02-15 16:05:11 +01:00
Sylvestre Ledru
0b79b69876
Bug 1338086 - Remove useless else blocks in order to reduce complexity in netwerk/ r=dragana
...
MozReview-Commit-ID: 2TSxhHWmL2H
--HG--
extra : rebase_source : a8a70bfc3aec34b85d20021036bd2c13cdcfe5f3
2017-02-09 11:21:38 +01:00
Tom Tromey
5f8f360823
Bug 1060419 - make log_print use Printf.h, r=froydnj
...
MozReview-Commit-ID: BIZ1GQEZ1vs
--HG--
extra : rebase_source : 2f1f0aa12493c44f352d9a7e8683e7bb72d2d75b
2016-12-15 20:16:31 -07:00
Nicholas Hurley
31b98bda83
Bug 1312754
- Add a service to throttle certain HTTP channels. r=mayhemer
...
This patch adds (and hooks up) a new service so that HTTP channels marked as
"Throttleable" will periodically be Suspend()ed and Resume()d when more
important operations are going (such as a page load).
While this patch is not responsible for marking channels as "Throttleable",
the general idea is that these would be less-important channels - background
downloads, beacons, etc, and perhaps even resources known to be trackers.
MozReview-Commit-ID: HEZsxS04rRK
--HG--
extra : rebase_source : 03cce85fe7df782e1f6e2da9e5a99997b796aba2
2017-01-10 06:39:18 -08:00
Nicholas Hurley
daad6c8f13
Bug 1312754
(prereq) - Fix compile issues caused by shuffling around unified files. r=mayhemer
...
MozReview-Commit-ID: 1FIopeftM6G
--HG--
extra : rebase_source : 8c2bae2051b1459b7304a1208990193581fa84d9
2017-01-10 06:34:49 -08:00
Liang-Heng Chen
ce7d6c91d6
Bug 1028195 - make proxy bypass rule consistent; r=bagder
...
MozReview-Commit-ID: CMAUt1p3L3u
--HG--
extra : rebase_source : 4a33d2ebd55aa501acf74100273490af9c521c63
2017-02-08 15:10:02 +08:00
Nils Ohlmeier [:drno]
73dd4c356c
Bug 1317946: allow sending of zero length buffers. r=schien
...
MozReview-Commit-ID: 4vNPewYScEF
--HG--
extra : rebase_source : d678703429b39a2a8bb2127f5fc55528a38fd480
2017-01-13 23:54:51 -08:00
Nils Ohlmeier [:drno]
90182d07b4
Bug 1317946: allow receiving zero size UDP messages. r=schien
...
MozReview-Commit-ID: B8B1yDOPi3h
--HG--
extra : rebase_source : a0f87bc33584a24a148c0b7aea182da71f7ffdfb
2017-01-04 13:44:14 -08:00
Brian Hackett
01a649c197
Bug 1337112 - Remove links from JSRuntime to its single context and zone group, r=jandem,jonco.
...
--HG--
extra : rebase_source : ebf319af724d5f829cdf5c2386dc82d49be89989
2017-02-10 16:47:50 -07:00
Daniel Stenberg
e1b82a23c1
bug 1336069: init class member before return, r=mcmanus
...
MozReview-Commit-ID: GF008Ughmhv
--HG--
extra : rebase_source : 04cf9802f9fedbb88aae7879f64b95d72930f3d2
2017-02-10 00:06:00 +08:00
Masatoshi Kimura
448874c0f1
Bug 1337748 - Move security-prefs.js from netwerk/ to security/manager/. r=keeler,mcmanus
...
MozReview-Commit-ID: 2TOJG6tRWJZ
--HG--
rename : netwerk/base/security-prefs.js => security/manager/ssl/security-prefs.js
extra : rebase_source : e11ef6fa7264edd41e77d65512a2183c737f34dd
2017-02-08 21:16:27 +09:00
Iris Hsiao
24ddf955dd
Backed out changeset e887fb5d5d06 (bug 1337748) for eslint failure
...
--HG--
rename : security/manager/ssl/security-prefs.js => netwerk/base/security-prefs.js
2017-02-10 14:00:02 +08:00
Masatoshi Kimura
2154e8d95a
Bug 1337748 - Move security-prefs.js from netwerk/ to security/manager/. r=keeler,mcmanus
...
MozReview-Commit-ID: 2TOJG6tRWJZ
--HG--
rename : netwerk/base/security-prefs.js => security/manager/ssl/security-prefs.js
extra : rebase_source : 4127a5c9676f24d17a0f38efed8e9ad558044b07
2017-02-08 21:16:27 +09:00
Shane Caraveo
c7c7bd4f51
Bug 1308640 bypass TP when addon has explicit permission to url, r=bz,kmag,mrbkap
...
MozReview-Commit-ID: BIhoUY2Ug8k
--HG--
extra : rebase_source : 29cc48becfa958ba8f50d254fa6f30fd1820aef9
2017-02-09 21:08:06 -08:00
Wes Kocher
d3307f19d5
Merge inbound to central, a=merge
...
MozReview-Commit-ID: 9TTIrjfNKZm
--HG--
rename : dom/base/test/test_bug1263696.html => testing/web-platform/tests/html/semantics/embedded-content/the-embed-element/embed-in-object-fallback-2.html
rename : dom/base/test/test_bug1263696.html => testing/web-platform/tests/html/semantics/embedded-content/the-object-element/object-in-object-fallback-2.html
2017-02-09 17:01:39 -08:00
Wes Kocher
e27ab18a24
Merge autoland to central, a=merge
...
MozReview-Commit-ID: Cu9iXbDAS7t
2017-02-09 16:36:11 -08:00
Carsten "Tomcat" Book
ffe70d35b2
Merge mozilla-central to mozilla-inbound
2017-02-09 11:38:08 +01:00
Tim Huang
756cf900c9
Bug 1336802 - Part 2: Updating the whole code base to make sure nsILoadInfo get null check. r=smaug
...
--HG--
extra : rebase_source : 22149fd540fd02119afe9fe5c9a815d01cf959c1
2017-02-07 11:49:34 +08:00
Valentin Gosu
f2fd6230e6
Bug 1337629 - Restrict allowed hostname characters r=mcmanus
...
MozReview-Commit-ID: H8u2C5oSiT9
2017-02-09 01:55:49 +01:00
Patrick McManus
d986482512
Bug 1333142 - audit asyncopen2 impls for callback release on failure r=dragana
2017-02-08 12:55:15 -05:00
Cykesiopka
35ac12c63d
Bug 1331983 - Avoid non-smart string IDL types in nsIX509CertDB.idl. r=gcp,keeler,nwgh
...
Smart string classes like nsCString are safer to use than raw |char*| strings,
and are typically easier to deal with as well.
MozReview-Commit-ID: 2PdrCa6cbpe
--HG--
extra : rebase_source : a8730dd48e954f4947534a0d4d524848061dac98
2017-02-09 23:11:29 +08:00
Henry Chang
9595454ca7
Bug 1341506 - Part 1: Implement and use nsIURIClassifier.asyncClassifyLocalWithTables. r=Ehsan,francois
...
MozReview-Commit-ID: 8dvYM4o2Xxw
--HG--
extra : rebase_source : 7e7fabd8ec0a60115eca0c66c55ea0d0369911f1
2017-03-01 11:27:51 +08:00
Valentin Gosu
ff510f7133
Bug 1275746 - Don't allow empty host name for URLTYPE_AUTHORITY URLs r=mcmanus
...
* Return NS_ERROR_MALFORMED_URI if mURLType is URLTYPE_AUTHORITY and the hostname is empty.
* Make sure nsStandardURL::SetFile calls init with the correct arguments
MozReview-Commit-ID: 7t3mZtAbMF3
2016-07-07 15:06:08 +03:00
Ehsan Akhgari
3742bdafe4
Bug 1337179 - Don't copy the cached LoadInfo::mSandboxedLoadingPrincipal in the copy ctor; r=bzbarsky
...
Otherwise, the pre and post redirect pages in a sandbox iframe may end
up with the same sandboxed loading principal which is undesirable.
2017-02-08 09:48:17 -05:00
Carsten "Tomcat" Book
55606baab8
merge mozilla-inbound to mozilla-central a=merge
2017-02-08 11:30:00 +01:00
Wes Kocher
95ae929bd7
Merge m-c to autoland, a=merge
...
MozReview-Commit-ID: AY7XekuIyIs
2017-02-07 16:56:19 -08:00
Zibi Braniecki
b8f991e41b
Bug 1335983 - Migrate nsCollation::CreateCollection to use LocaleService::GetAppLocale. r=jfkthame
...
MozReview-Commit-ID: 5GEnL7Kihpj
--HG--
extra : rebase_source : 413d880035b49da82db0530379425d31ac31a82e
2017-02-07 12:52:03 -08:00
Valentin Gosu
64921de6f3
Bug 1333172 - Avoid 1100 warnings by replacing NS_ENSURE_SUCCESS in nsNetUtilInlines.h:180 r=bagder
...
MozReview-Commit-ID: 8PlYTXYGpI9
2017-02-07 16:17:45 +01:00
Valentin Gosu
a3908e89e0
Bug 1333174 - Don't use NS_ENSURE_SUCCESS at nsIOService:793 r=bagder
...
MozReview-Commit-ID: 7ckppZheX3k
2017-02-07 16:17:43 +01:00
Ehsan Akhgari
1f536efb1e
Bug 1337054 - Remove nsIPermissionManager::RefreshPermission(); r=jdm
2017-02-06 19:54:34 -05:00
Ehsan Akhgari
d9f2b1af97
Bug 1149127 - Stop exporting LoadInfo unnecessarily; r=ckerschb
2017-02-06 13:07:46 -05:00
Wes Kocher
a9ce32d9a5
Backed out 2 changesets (bug 1335983) for build bustage a=backout
...
Backed out changeset 5a9559ded976 (bug 1335983)
Backed out changeset de2b0d90e2da (bug 1335983)
MozReview-Commit-ID: 377KQDU1QqJ
2017-02-07 12:34:30 -08:00
Zibi Braniecki
6d98bad59d
Bug 1335983 - Migrate nsCollation::CreateCollection to use LocaleService::GetAppLocale. r=jfkthame
...
MozReview-Commit-ID: bJVrVj2dAS
--HG--
extra : rebase_source : f3a28e003415f0c58462a73b5fd987455e102fc5
2017-02-06 14:57:09 -08:00
Wes Kocher
0151c314cd
Merge m-c to autoland, a=merge CLOSED TREE
...
MozReview-Commit-ID: Kq0cDcNXrZf
2017-02-03 17:31:12 -08:00
Jed Davis
eae6e4b98c
Bug 778201 - Remove nsPluginHost::FindProxyByURL and nsProtocolProxyService::DeprecatedBlockingResolve. r=bsmedberg,mcmanus
...
MozReview-Commit-ID: 9xuddxdw5cd
--HG--
extra : rebase_source : 4eaa281e108545a98697712861a453d096120a24
2017-02-03 16:32:04 -07:00
Tim Huang
65c848654a
Bug 1312954
- Part 10: Add an assertion to make sure every code path of gecko uses speculativeConnect2 correctly. r=ckerschb
2017-02-02 22:18:00 -05:00
Tim Huang
1ed1228b60
Bug 1312954
- Part 9: Update speculativeConnect to speculativeConnect2 for the search service. r=Gijs
2017-02-02 22:17:00 -05:00
Tim Huang
715d0af359
Bug 1312954
- Part 5: Have the network predictor use OriginAttributes to properly partition connections it creates like non-predictive connections. r=nwgh
2017-02-02 22:16:00 -05:00