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

4627 Коммитов

Автор SHA1 Сообщение Дата
Ehsan Akhgari ce9afcdc80 Bug 1356838 - Reduce the hashtable lookup cost in EnsureGlobalPredictor(); r=nwgh 2017-04-17 23:27:45 -04: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