Commit Graph

14749 Commits

Author SHA1 Message Date
Junior Hsu
d3b4793122 Bug 1363659 - Ensure not sending dns request constructor when shutting down, r=valentin 2017-05-26 03:08:00 +02:00
Junior Hsu
78f744d40d Bug 1363659 - Ensure not sending cookie service constructor when shutting down, r=ehsan 2017-05-26 03:08:00 +02:00
Junior Hsu
6f1e15db21 Bug 1363659 - Ensure not sending necko IPC constructor when shutting down, r=valentin 2017-05-26 03:06:00 +02:00
Sebastian Hengst
d8e719c8a3 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: CEadD9RweN4
2017-05-27 10:00:59 +02:00
Arthur Edelstein
2895153229 Bug 1367564 - Use pref name 'referer.hideOnionSource' everywhere. r=mcmanus
Correcting my mistake in
https://bugzilla.mozilla.org/show_bug.cgi?id=1305144
2017-05-24 14:12:00 -04:00
Junior Hsu
cfb7c13b7c Bug 1367353 - Correct the spelling to NETWORK_RACE_CACHE_BANDWIDTH*. r=michal, data-r=bsmedberg 2017-05-24 19:46:00 -04:00
Thomas Nguyen
262347b745 Bug 1351146 - P2 - Update test case and usage of nsIRedirectHistoryEntry interface. r=dragana
MozReview-Commit-ID: s61VV5CLx8
2017-05-25 19:42:00 +02:00
Thomas Nguyen
4fcb94e968 Bug 1351146 - P1 - Add more information to redirect chains. r=dragana
In order to provide more details context of how client arrived at the unsafe
page, particularly in redirect case, we may have to add more information to
redirect chains including:
- referrer (if any)
- remote address.
- URL

We may want to use an idl interface instead of nsIPrincipal to store these
information

MozReview-Commit-ID: 3Uh4r06w60C
2017-05-25 19:42:00 +02:00
Honza Bambas
b852ed009a Backout of 7f28c1084c47 (bug 1319111) for security checks breakage, r=me 2017-05-25 18:16:02 +02:00
Mike Hommey
80d716afe1 Bug 1367583 - Add a unit test for links in resource:// listings. r=mossop
--HG--
extra : rebase_source : d18a21ae51cd135f798477489e902ea7431f1f1f
2017-05-25 10:54:01 +09:00
Ryan VanderMeulen
c5b2958154 Merge inbound to m-c. a=merge 2017-05-24 20:45:23 -04:00
Ehsan Akhgari
87f01dcea3 Bug 1363311 - Honor Set-Cookie headers in multipart/mixed response boundary headers in e10s mode; r=jdm 2017-05-24 17:32:32 -04:00
Honza Bambas
5f3173e90f Bug 1365306 - Remove net::ThrottlingService, don't suspend/resume download channels on page load. r=hurley 2017-05-18 14:09:00 -04:00
Mike Hommey
a425c2082f Bug 1366180 - Fix title and parent links in resource:// listings. r=valentin
For a long time, opening a resource:// url that leads to a file list has
used a title of the form "Index of jar:file://..." where the
jar:file://... url is the actual location the resource:// url has been
resolved to in the omni.ja.

That same url is used to derive a link to the parent directory. Because
of security context restrictions, the resource://... page can't open a
link to jar:file://... .

So we use the original resource:// url to derive the parent directory
link, and while here, also fix the title.

--HG--
extra : rebase_source : f12ff784c1671f15b83ff082eb7418fcb71f1e10
2017-05-24 11:27:22 +09:00
Dragana Damjanovic
4d67546b87 Bug 1364371 - Introduce mHalfOpenFastOpenBackups and make TFO handling clearer. r=mcmanus 2017-05-24 14:03:40 +02:00
Dragana Damjanovic
d88e097afa Bug 1364189 - Make sure not to retry socketTransaction if nsHttpConnectionMgr cancels it. r=mcmanus 2017-05-24 11:19:40 +02:00
Jonathan Kew
d74c8673ea Bug 1364283 - Treat Aspirational scripts the same as Restricted, in anticipation of UAX#31 update. r=valentin 2017-05-23 23:33:46 +01:00
Felipe Gomes
123ab8fe26 Bug 1337043 - Don't bother classifying about: URLs. r=tnguyen,francois
MozReview-Commit-ID: 8oxZwJRRIkv
2017-05-23 15:59:25 -04:00
Bill McCloskey
226f6b9185 Bug 1366869 - Make DISPATCH_NORMAL be the default flags argument for nsIEventTarget::Dispatch (r=froydnj)
MozReview-Commit-ID: 5DVcIaMHH95
2017-05-23 12:05:43 -07:00
Honza Bambas
2dfe5d94b8 Bug 1319111 - Expose 'result principal URI' on LoadInfo as a source for NS_GetFinalChannelURI (removes some use of LOAD_REPLACE flag). r=bz 2017-05-23 08:09:00 -04:00
Ryan VanderMeulen
22d214ae4b Merge autoland to m-c. a=merge 2017-05-23 10:32:42 -04:00
Shih-Chiang Chien
b192c9800e Bug 1364812 - ensure OnStartRequest is called after nsHttpChannel::CallOnStartRequest. r=dragana.
1. Use ScopeExit to ensure mListener->OnStartRequest() is invoked before exit CallOnStartRequest.
2. Add assertion to ensure OnStartRequest called before OnStopRequest.

MozReview-Commit-ID: FgONlk5HPNz

--HG--
extra : rebase_source : ffe386bc8bea6defb216ecf149a29deacdb3737a
2017-05-22 16:26:22 +08:00
Wes Kocher
9a8d52f7af Merge m-c to autoland, a=merge
MozReview-Commit-ID: AVwPRGa5re9
2017-05-22 16:38:46 -07:00
Daniel Stenberg
d35145eac8 Bug 1359639 - Ensure a final -1 in mFormat[]. r=valentin 2017-05-22 09:44:19 -04:00
Sebastian Hengst
1344976217 Backed out changeset 4f0f6745c23d (bug 1158387) for failing extensions/cookie/test/unit/test_cookies_async_failure.js on Windows 7 VM opt. r=backout 2017-05-22 22:03:32 +02:00
JW Wang
1f5623c523 Bug 1365513 - Remove the call to AbstractThread::GetCurrent() in nsPermissionManager.cpp. r=mystor
See bug 1365483 for the rationale.

MozReview-Commit-ID: 4sWodnP5MYZ

--HG--
extra : rebase_source : 6a32073e50695ac8f4a540c83f9d2b5542b53585
extra : intermediate-source : 5d7189453d82844d55e3d90c79792b2edd7bdd0d
extra : source : 8b029c32f3512c9d8e92582312459a501594a6e8
2017-05-18 14:14:27 +08:00
Phil Ringnalda
35dc6b4906 Merge m-i to m-c, a=merge
MozReview-Commit-ID: 78jnwmm4rib
2017-05-21 13:01:06 -07:00
Will Wang
6523b5834f Bug 1356605 - Part 1: Add an enumerator for getting session cookies only. r=valentin 2017-05-10 09:50:17 +08:00
Ryan VanderMeulen
9f0c23d7c6 Merge m-c to inbound. a=merge 2017-05-19 12:25:23 -04:00
Dragana Damjanovic dd.mozilla@gmail.com
2dd3b9d1b3 Bug 1352273 - Restart the TFO failure counter if a captive portal is detected.r=mcmanus 2017-05-19 13:16:08 +02:00
Edouard Oger
d198d9c234 Bug 1365273 - Remove about:sync-tabs. r=markh
MozReview-Commit-ID: HFsc4xf8N3a

--HG--
extra : rebase_source : 0af5802196622a3c44b162a4de7e2ceadfde666d
2017-05-17 11:39:22 -04:00
Sebastian Hengst
cb81b8de15 Backed out changeset b8d0fdf79562 (bug 1365273) for build bustage: Unused pattern 'sync/**' in browser/base/content/moz.build and unreferenced files detected by browser_all_files_referenced.js. r=backout 2017-05-18 19:09:55 +02:00
Edouard Oger
ca11d95460 Bug 1365273 - Remove about:sync-tabs. r=markh
MozReview-Commit-ID: HFsc4xf8N3a

--HG--
extra : rebase_source : 841763ceb5a2ce3630e2f0f3625f7d3d20569135
2017-05-17 11:39:22 -04:00
Michael Kaply
33f3641255 Bug 1359538 - Add API to retrieve engines by extension ID. r=florian
MozReview-Commit-ID: 2Qz6B1u8Or

--HG--
extra : rebase_source : c1a1ee3a02a417a8e504571316da2c7d63e4090b
2017-04-26 10:58:08 -05:00
Junior Hsu
fc682d8752 Bug 1158387 - Remove "PRAGMA synchronous = OFF" to avoid corruption in cookie service. r=mak
--HG--
extra : rebase_source : 4eba651f66cb3e67c63961531e80423a252e954d
2017-05-21 18:48:00 -04:00
Carsten "Tomcat" Book
e5197b271a Merge mozilla-central to autoland 2017-05-18 15:00:43 +02:00
Shih-Chiang Chien
56a6fc77dc Bug 1365566 - use PR_GetSystemInfo to get OS version on Firefox desktop. r=dragana.
MozReview-Commit-ID: J5qlptRVzQe

--HG--
extra : rebase_source : 0a674ee1227d1f0c61adeac4e5f9e007991a4d7f
2017-05-12 12:03:14 +08:00
Junior Hsu
3b926e298f Bug 1354405 - Add new telemetry probe for bandwidth cost for rcwn, r=michal, valentin, data-r=bsmedberg 2017-05-02 10:08:06 +08:00
Iris Hsiao
77020e4e53 merge mozilla-inbound to mozilla-central a=merge 2017-05-18 12:05:45 +08:00
Wes Kocher
f79e5f62ee Merge m-c to autoland, a=merge UPGRADE_NSS_RELEASE
MozReview-Commit-ID: BKdEYXMvOS8
2017-05-17 15:08:03 -07:00
Catalin Badea
1f3ef0f4d6 Bug 1359610 - Add telemetry for fetch interception. r=chutten data-r=bsmedberg 2017-05-17 15:42:53 +01:00
Nils Ohlmeier [:drno]
5b3ddc580c Bug 1365081: really use prPolicy as the pocily input value. r=jesup
MozReview-Commit-ID: Ec6BrdYtT6G

--HG--
extra : rebase_source : 7f7a00dd94e3b06a978b0ddd106c37c9adf09550
2017-05-15 17:58:41 -07:00
Bill McCloskey
44b0534627 Bug 1363877 - Label PredictorLearnRunnable with SystemGroup (r=hurley)
MozReview-Commit-ID: XPGp0226kb
2017-05-17 11:47:40 -07:00
Junior Hsu
427608c4e0 Bug 1354407 - Add new telemetry probe for saved time when we rcwn. r=michal, data-r=bsmedberg 2017-05-02 10:08:06 +08:00
Carsten "Tomcat" Book
e83697008e merge mozilla-inbound to mozilla-central a=merge 2017-05-16 15:04:38 +02:00
Christoph Kerschbaumer
e4f38c8d7c Bug 1362993 - Rewrite gBrowser.addTab() to use BrowserTestUtils.addTab(). r=florian 2017-05-15 21:49:50 +02:00
Nathan Froyd
c1d1748428 Bug 1359490 - add an event loop spinning abstraction function; r=gerald
This function is arguably nicer than calling NS_ProcessNextEvent
manually, is slightly more efficient, and will enable better auditing
for NS_ProcessNextEvent when we do Quantum DOM scheduling changes.
2017-05-15 09:34:19 -04:00
Wes Kocher
54a256d920 Merge m-c to autoland a=merge
MozReview-Commit-ID: L0rsjIzeVij

--HG--
extra : rebase_source : 8b581702a4534fb9394f8d3f4e85f65d6f4ff293
2017-05-15 17:02:08 -07:00
Shih-Chiang Chien
a9b339e353 Bug 1354455 - avoid CompleteResume while FlushQueue is ran on other thread. r=mayhemer
If HttpChannelChild::Cancel is triggered off main thread while flushing channel event queue,
CompleteResume might be executed while the flush is about to be finished. In this case, queue resumption
will not be able to trigger the second queue flush because the previous one is not finished yet.
Therefore, the HttpChannelChild::Cancel will be sitted in the queue without executing.

MozReview-Commit-ID: GxnkiDUmEnw

--HG--
extra : rebase_source : d04268a04ab24c38bf6fa436526a04f77cd64805
2017-05-08 19:16:06 +08:00
Sebastian Hengst
484d2b7f51 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: Jduo3F6TzgF
2017-05-14 18:04:29 +02:00
Wes Kocher
b0d1320ad8 Backed out 2 changesets (bug 1363421) for assertions in test_enterjit_osr.js on Windows xpcshell tests a=backout
Backed out changeset 722236d77865 (bug 1363421)
Backed out changeset 8a9e10fae26c (bug 1363421)

MozReview-Commit-ID: 93rH7BqbgHP
2017-05-13 00:32:36 -07:00
Honza Bambas
d6d727a69e backout of f9abb9c83452 (bug 1319111) for crashes, r=bz 2017-05-13 13:55:11 +02:00
Wes Kocher
0a1e1fe23b Backed out changeset 95ff98f1c2e5 (bug 1319111) for talos failures a=backout
MozReview-Commit-ID: Gs09moFm5rQ
2017-05-12 18:24:42 -07:00
Patrick McManus
e7245fc847 Bug 1362388 - Remove nsAHttpTransaction::Available as footgun r=nwgh
nsAHttpTransaction::Available() obtained a bytecount from the abstract
transaction's input stream. If that stream was derived from a file://
it would create janky IO - so remove the interface.

Http2Push maintains a non-inherited interface which is used to check
the number of bytes it has internally buffered in memory.

MozReview-Commit-ID: IQHt8yGsqDE

--HG--
extra : rebase_source : 64449c6bd743119ea7626a3b2b2b91a376280021
2017-05-05 18:12:36 -04:00
Patrick McManus
eab0a004e6 Bug 1362388 - dont let File backed http requests find size on main thread r=nwgh
MozReview-Commit-ID: AFM4R0M7dmj

--HG--
extra : rebase_source : 01d3020eb952ec286be30b937476161a403215ff
2017-05-05 17:51:13 -04:00
Shih-Chiang Chien
d9626ddc70 Bug 1363421 - Part 2, delay the initialization of UserAgentOverrides.jsm until nsHttpHandler is created. r=mcmanus
UAOverridesBootstrapper.js is introduced to delay the initialization of
UserAgentOverrides.jsm until the creation of nsHttpHandler in chrome process.
Uninit will be triggered at profile-change-net-teardown because no network
traffice after this point.


MozReview-Commit-ID: F8Lpn6RyZEm

--HG--
extra : rebase_source : b516209f96ec81deb54aab3c038803beb3cea441
2017-05-12 17:13:01 +08:00
Shih-Chiang Chien
0381369d6c Bug 1363421 - Part 1, lazy load HTTP protocol handler to improve start-up performance. r=mcmanus
system-info might need to be construct while creating nsHttpHandler and it might take up to 30ms.
Lazy loading the DEFAULT_UA can delay the creation of nsHttpHandler after start-up.

MozReview-Commit-ID: FtIpKjcY38r

--HG--
extra : rebase_source : 8061ed3ce6c42955e52f494166958f5b63ab940b
2017-05-10 11:06:05 +08:00
Nicholas Hurley
23ce343ec5 Bug 1360574 - Detect & handle connection auth at the http/2 layer. r=mcmanus
This is also the non-broken way to fix bug 1346392. Instead of waiting
until the auth handler gets its hands on things, we break layering a bit
and inspect the response headers as soon as we decompress them to see if
there's any connection-oriented auth being requested. If there is, we
treat the situation as if we got a RST_STREAM or GOAWAY with
HTTP_1_1_REQUIRED.

We were able to re-purpose the NS_ERROR_ABORT code path that was
previously used with an inappropriate HTTP status code when talking to
an HTTPS proxy over http/2, as that usage was removed a while back from
the stream, though we still had the (dead) code in the session to handle
the stream giving us that return value. The error code was changed to
NS_ERROR_NET_RESET, however, to give a better description of what's
going on.

MozReview-Commit-ID: DLjOIIiXGrV

--HG--
extra : rebase_source : 703fde39432808cabd05b48aa40165e53ebc5ed1
2017-05-11 14:42:05 -07:00
Nicholas Hurley
e34c25dfc7 Bug 1360574 - Backout original fix to bug 1346392 r=mcmanus
MozReview-Commit-ID: 1ljoiCXciRq

--HG--
extra : rebase_source : e7cead30d7e6ffef73a988d3c7afcbafce8baedd
2017-05-11 10:20:14 -07:00
Wes Kocher
8eaf64f920 Backed out 2 changesets (bug 1362388) for android build bustage in nsHttpChannel.cpp a=backout
Backed out changeset f5b4fbe31c01 (bug 1362388)
Backed out changeset 446ecc3f5715 (bug 1362388)

MozReview-Commit-ID: DI01cDPrgM7
2017-05-12 13:58:28 -07:00
Shih-Chiang Chien
0131b8b831 Bug 1363421 - Part 2, delay the initialization of UserAgentOverrides.jsm until first nsHttpChannel is created. r=mcmanus
UAOverridesBootstrapper.js is introduced to delay the initialization of
UserAgentOverrides.jsm until the creation of the first nsHttpChannel.
Uninit will be triggered at profile-change-net-teardown because no network
traffice after this point.


MozReview-Commit-ID: F8Lpn6RyZEm

--HG--
extra : rebase_source : 7c3649b50ad8594dc0968961fbbd2766d0d98b0a
2017-05-16 12:11:12 +08:00
Shih-Chiang Chien
7f847e5b32 Bug 1363421 - Part 1, lazy load HTTP protocol handler to improve start-up performance. r=mcmanus
system-info might need to be construct while creating nsHttpHandler and it might take up to 30ms.
Lazy loading the DEFAULT_UA can delay the creation of nsHttpHandler after start-up.

MozReview-Commit-ID: FtIpKjcY38r

--HG--
extra : rebase_source : 8061ed3ce6c42955e52f494166958f5b63ab940b
2017-05-10 11:06:05 +08:00
Patrick McManus
1a4ed2cc65 Bug 1362388 - Remove nsAHttpTransaction::Available as footgun r=nwgh
nsAHttpTransaction::Available() obtained a bytecount from the abstract
transaction's input stream. If that stream was derived from a file://
it would create janky IO - so remove the interface.

Http2Push maintains a non-inherited interface which is used to check
the number of bytes it has internally buffered in memory.

MozReview-Commit-ID: IQHt8yGsqDE

--HG--
extra : rebase_source : 78dbd5cae35bc6cb1ce2f03192226cb85564298e
2017-05-05 18:12:36 -04:00
Patrick McManus
3db60df302 Bug 1362388 - dont let File backed http requests find size on main thread r=nwgh
MozReview-Commit-ID: AFM4R0M7dmj

--HG--
extra : rebase_source : ad15d3aad5d0d271acd5cd35dbfbf72e432bcdd7
2017-05-05 17:51:13 -04:00
Milan Sreckovic
43933b80d8 Bug 1358225: Validate characters with a cached lookup array. About 10-15% improvement on TestStandardURL.Perf gtest. r=valentin.gosu
MozReview-Commit-ID: KMABJ3X6IZ1

--HG--
extra : rebase_source : c5bde6642a193e47628226a38d6ec9d8366aaa90
2017-05-15 11:53:40 -04:00
Honza Bambas
70f62bdec1 backout of f9abb9c83452 (bug 1319111) for crashes, r=bz 2017-05-12 22:13:49 +02:00
Wes Kocher
a9e00345ce Merge m-c to autoland, a=merge
MozReview-Commit-ID: IPDj8kOq5ec
2017-05-11 17:43:27 -07:00
Wes Kocher
3416c23dad Backed out changeset 0a25a0fa3b32 (bug 1362822) for osx debug devtools timeouts a=merge
MozReview-Commit-ID: 3LMChZJEBHp

--HG--
extra : source : 50940861284c3c6f804a5c7e1ab90b4ddf55b684
2017-05-11 15:23:43 -07:00
Wes Kocher
f1c0f35ea6 Merge inbound to m-c a=merge
MozReview-Commit-ID: HCapLqbD816
2017-05-11 17:30:41 -07:00
Sebastian Hengst
a477978a5d Backed out changeset a418e4a81c02 (bug 1362388) for build bustage from netwerk/protocol/http/nsHttpChannel.cpp:597 not being declared. r=backout 2017-05-11 18:01:01 +02:00
Sebastian Hengst
4dc5072fcb Backed out changeset fef09999e003 (bug 1362388) 2017-05-11 18:00:09 +02:00
Patrick McManus
f48decf9ef Bug 1362388 - Remove nsAHttpTransaction::Available as footgun r=nwgh
nsAHttpTransaction::Available() obtained a bytecount from the abstract
transaction's input stream. If that stream was derived from a file://
it would create janky IO - so remove the interface.

Http2Push maintains a non-inherited interface which is used to check
the number of bytes it has internally buffered in memory.

MozReview-Commit-ID: IQHt8yGsqDE

--HG--
extra : rebase_source : 6b3b210a8f6736887b5076c90621d678b038bcad
2017-05-05 18:12:36 -04:00
Patrick McManus
20a6e4849c Bug 1362388 - dont let File backed http requests find size on main thread r=nwgh
MozReview-Commit-ID: AFM4R0M7dmj

--HG--
extra : rebase_source : 3cd535eb604a78551f6a6043088701e1d1fc40ce
2017-05-05 17:51:13 -04:00
Ryan VanderMeulen
ff1d6f6f88 Merge m-c to autoland. a=merge 2017-05-11 11:30:47 -04:00
Wes Kocher
02bf8c4425 Merge m-c to inbound, a=merge
MozReview-Commit-ID: FfNikA7un6F
2017-05-10 17:31:18 -07:00
Wes Kocher
1b5ad2c128 Merge inbound to central, a=merge
MozReview-Commit-ID: DfRZi0gKjit
2017-05-10 16:48:03 -07:00
Dragana Damjanovic
1b299341de Bug 1362978 - Remove callbacks on socketInput stream if we cancel a TFO socketTransport. r=mcmanus 2017-05-10 22:54:27 +02:00
Valentin Gosu
4ccb51bae2 Bug 1363700 - Add RCWN stats to about:networking r=bz,michal
MozReview-Commit-ID: GVt1omCfL6t

--HG--
extra : rebase_source : fdb321360f21f0f54692bc6b715abb4c155171b7
2017-05-10 19:23:54 +02:00
Patrick McManus
580ef98764 Bug 1362498 - cache some networking mozilla::services r=bagder
MozReview-Commit-ID: G61lDIOKcm

--HG--
extra : rebase_source : 83d3f8258234f85145f485ae35e6ac07e77bac98
2017-05-05 14:32:19 -04:00
Junior Hsu
d30acfedb7 Bug 1363472 - Ensure that the wyciwyg constructor isn't sent when shutting down. r=valentin 2017-05-09 23:57:00 -04:00
Valentin Gosu
b830ea1f6d Bug 1363653 - Make AltDataOutputStreamParent not send any messages after object destruction r=mayhemer
This patch prevents the following error:
AltDataOutputStreamChild::Close -> SendClose()
AltDataOutputStreamChild::Release -> Send__delete__()
AltDataOutputStreamParent::RecvClose() -> SendError()
AltDataOutputStreamParent::ActorDestroy -> mIPCOpen = false
AltDataOutputStreamChild::RecvError -> === Crash - object was deleted ===

We introduce the DeleteSelf message.
AltDataOutputStreamChild::Release -> SendDeleteSelf()
AltDataOutputStreamParent::RecvDeleteSelf -> mIPCOpen = false; SendDeleteSelf()
AltDataOutputStreamChild::RecvDeleteSelf -> Send__delete__()

The parent will not send any more messages after receiving the DeleteSelf message.

MozReview-Commit-ID: I9RQ5I7eSt9

--HG--
extra : rebase_source : 8f918d24595248149ebd3857e05e38dc5237059b
2017-05-11 21:35:37 +02:00
Valentin Gosu
28675dc927 Bug 1360328 - Dispatch a runnable to RecheckCaptivePortal instead of calling it immediately r=mcmanus
MozReview-Commit-ID: HUPJUtho7g8

--HG--
extra : rebase_source : 7e3d9c787569352a598e0efe3393a3d9c14a637a
2017-05-08 13:19:40 +02:00
Milan Sreckovic
725d1c193f Bug 1358297: Part 3. Create special case for stripping CR and LF on TSubstring, and use it in all the places that it is called. Use ASCIIMask to make it fast. r=froydnj
MozReview-Commit-ID: 5ugh3Ma0OtH

--HG--
extra : rebase_source : 956a7a0535c3b7433fadfa65d0cfc26d9915f61a
2017-05-10 13:12:36 -04:00
Ralph Giles
f56cb16c14 Bug 1336153 - Remove MOZ_RUST. r=ted
We now have code that unconditionally requires the rust
compiler and are committed to adding more. Remove this
last vestige of conditional support.

MozReview-Commit-ID: EK6FBnAbR

--HG--
extra : rebase_source : 6efda10a74f9ca0482304c2b1ffe6941e42138f8
2017-05-09 11:36:13 -07:00
Carsten "Tomcat" Book
d66b9f27d5 merge mozilla-inbound to mozilla-central a=merge 2017-05-10 15:07:28 +02:00
Bill McCloskey
c197e07ff2 Bug 1363560 - Name more runnables (r=mccr8)
MozReview-Commit-ID: 3hxZDA4JlTV
2017-05-09 21:53:25 -07:00
Wes Kocher
e2902f93a3 Merge inbound to m-c a=merge
MozReview-Commit-ID: Fp2oBAcru51
2017-05-09 14:34:34 -07:00
Andi-Bogdan Postelnicu
dae38132c5 Bug 1363336 - eliminate useless null-check in for |fd|. r=dragana
MozReview-Commit-ID: KQGPjDMviuj

--HG--
extra : rebase_source : beb126a082f95de25d5c6b08496c1fc54b4b21d9
2017-05-09 16:37:05 +03:00
Dragana Damjanovic
1385efd212 Bug 1362959 - Call SetFastOpenConnected only if socketTransport has TFO in progress. r=mcmanus 2017-05-10 00:24:48 +02:00
Dragana Damjanovic
5512738e6d Bug 1363448 - Let nsHttpConnectionMgr behave properly if StartFastOpen fails (which is conn->Activate() failing). r=mcmanus 2017-05-10 00:18:27 +02:00
Michael Layzell
d50b0587a8 Bug 1363243 - Avoid checking nsPermissionManager in nsContentBlocker when no preload permissions are set, r=ehsan
MozReview-Commit-ID: B8A8QXie8SX
2017-05-11 10:06:25 -04:00
Ehsan Akhgari
40f9159875 Bug 1362822 - Avoid needlessly holding locks when setting headers during the initialization of HTTP channel objects; r=schien,dragana
The channel objects cannot be handed off to other threads before the creation
process has been finished, so there is no point in trying to hold these locks
while the initialization code is running.  These lockings have shown up in
profiles as being expensive.
2017-05-11 09:23:30 -04:00
Jonathan Kingston
d9b9a81f4e Bug 1334587 - Fix cookie store removal and updating to use originAttributes. r=baku
MozReview-Commit-ID: HpdlT4gxrl0

--HG--
extra : rebase_source : e34967207ee07f30f236402a24212eeb810c6b1b
2017-04-16 17:58:53 +01:00
Carsten "Tomcat" Book
76ca853e3e Merge mozilla-central to mozilla-inbound 2017-05-09 14:40:11 +02:00
Dragana Damjanovic dd.mozilla@gmail.com
62b9fc4ab8 Bug 1357835 - Extend telemetry for http autentication dialog prompt to show the subresource cross-origin auth dialog prompt per suresource type. Also add a pre to putentially disable auth propts for the cross-origin images. r=mayhemer r=ckerschb r=francois 2017-05-09 12:36:21 +02:00
Dragana Damjanovic dd.mozilla@gmail.com
bf4c15a65c Bug 136178 - Keep list of weakPtrs instead of streamIds of streams started during 0rtt. r=mcmanus 2017-05-09 11:37:45 +02:00
Wes Kocher
73b318df0a Backed out changeset 7cd208304d1f (bug 1363472) for being a possible cause of failures in test_animSVGImage.html a=backout
MozReview-Commit-ID: KU4GKyDD2ne

--HG--
extra : rebase_source : d66a936a81723d1dcb7032f28d50b5582d748fa9
2017-05-10 10:15:39 -07:00
Wes Kocher
0070a44b21 Backed out 3 changesets (bug 469228) for being a possible cause of frequent test_animSVGImage.html failures a=backout
Backed out changeset 1431c80b02ef (bug 469228)
Backed out changeset 8d46046a7367 (bug 469228)
Backed out changeset 2e22c0308a7e (bug 469228)

MozReview-Commit-ID: AMRASDPCWu3

--HG--
extra : rebase_source : 46b5ee0f67ffeaec31e1ef379a2e86c20cdee989
2017-05-10 10:13:54 -07:00
Carsten "Tomcat" Book
455239782b Merge mozilla-central to mozilla-inbound 2017-05-10 15:30:44 +02:00
Kershaw Chang
2dd6b7d519 Bug 469228 - Part2: Modify tests that can not pass, r=Waldo 2017-05-10 03:49:00 +02:00
Kershaw Chang
5a57a9f87d Bug 469228 - Part1: Support keep-alive, r=Waldo 2017-05-10 03:48:00 +02:00
Junior Hsu
d9ef6fd797 Bug 1363472 - Ensure not sending wyciwyg constructor when shutting down, r=valentin 2017-05-09 23:57:00 +02:00
Kershaw Chang
9ea8bbb5d9 Bug 1352176 - Part2: Pass an event target when calling nsInputStreamPump::Create, r=mayhemer 2017-05-09 20:05:00 +02:00
Kershaw Chang
2d78667ba8 Bug 1352176 - Part1: Pass a labeled event target when initializing nsInputStreamPump, r=mayhemer
Since the mTargetThread in nsInputStreamPump is directly acquired from current or main thread, we need to pass another labeled main thread target to dispatch runnables to the correct tab/doc group.
2017-05-09 19:59:00 +02:00
Jonathan Watt
33cfc4aa43 Bug 1362891, part 2 - Make use of XRE_IsE10sParentProcess in code that could use it. r=froydnj
MozReview-Commit-ID: 81PFEgNH37m

--HG--
extra : rebase_source : 350b11b3bec652472565bd590ef13680e480a75e
2017-04-24 10:40:12 +01:00
Wes Kocher
f5ba7a67d6 Merge m-c to inbound, a=merge
MozReview-Commit-ID: 9QuGHXqdxTb
2017-05-08 16:14:34 -07:00
Wes Kocher
cbfdaf8fb2 Merge inbound to central, a=merge CLOSED TREE
MozReview-Commit-ID: 5kxOZZxjMEl
2017-05-08 16:07:25 -07:00
Dragana Damjanovic
b035817315 Bug 1362821 - Properly destroy a HalfOpeSocket that is used as a backup for a TFO connection if another H2 connection is established for the same host. r=mcmanus 2017-05-08 18:22:45 +02:00
Amar Lakshya
077409e068 Bug 633747 - about:cache now displays 'Expired Immediately' for 1970-01-01 01:00:00 r=mayhemer
MozReview-Commit-ID: 89CX7UqwuXl

--HG--
extra : rebase_source : b8d9a8fba8ff017b5633c093c57127076c77757a
2017-05-02 20:48:34 +05:30
Dragana Damjanovic dd.mozilla@gmail.com
87f75e4bea Bug 1362861 - Call SetFastOpenStatus only if we have httpTransaction. r=mcmanus 2017-05-08 15:33:44 +02:00
Amar Lakshya
badcf950f5 Bug 633747 - about:cache displays "Expires: 1970-01-01 01:00:00" r=mayhemer
MozReview-Commit-ID: BAn8EFYGeux

--HG--
extra : rebase_source : 1bf1626578e22f14ee3c7511227c4106758d07b3
2017-04-29 01:24:29 +05:30
Dragana Damjanovic
6ad0af18de Bug 1363108 - Fix some small bugs connectied to tcp fast open. r=mcmanus 2017-05-08 22:15:26 +02:00
Gijs Kruitbosch
2c13f23a54 Bug 1360842, r=valentin
MozReview-Commit-ID: B7uG3ShaGuH

--HG--
extra : rebase_source : 92813be22a7554fec17981bf14903a526145fed2
extra : amend_source : 30643e1d5a4b942d4069e3dd28b5f736cb7fdc18
2017-05-04 11:28:04 +01:00
Dragana Damjanovic
7a6c685fd1 Bug 1363034 - Do not make new transactions for backupSocketTransport, behave as nsHttpConnectionMgr used to behave. r=mcmanus 2017-05-08 20:17:47 +02:00
Ehsan Akhgari
e0f12d7786 Bug 1362806 - Optimize NS_GetDefaultPort() for HTTP(S); r=mcmanus 2017-05-07 22:34:02 -04:00
Carsten "Tomcat" Book
fdc689ba16 merge mozilla-inbound to mozilla-central a=merge 2017-05-05 15:17:26 +02:00
Valentin Gosu
3ccc45df23 Bug 1359697 - Make CaptivePortalService not poll for status when it is in the NOT_CAPTIVE state r=mcmanus
MozReview-Commit-ID: BrxJfipydEj

--HG--
extra : rebase_source : 780f49bd3b6dcf0682f9368c53c0a04c03e0616b
2017-05-04 11:43:25 +02:00
Honza Bambas
a1b64b4694 Bug 1319111 - Expose URI to make security check against on LoadInfo (no LOAD_REPLACE flag). r=bz 2017-01-27 19:10:01 +01:00
Ehsan Akhgari
c696722eda Bug 1360973 - Don't do the work needed for same origin referrer policies unless if we need to; r=tnguyen
CheckSameOriginURI() can be expensive and shows up under profiles, so we
should try to avoid calling it unless if we are going to use
isCrossOrigin.
2017-05-04 13:30:13 -04:00
Michal Novotny
133308dd0d Bug 1361435 - Remove references to unused pref network.http.bypass-cachelock-threshold, r=mcmanus
Removes references to now unused pref that was added in bug 868441 and removed in bugs 913807 and 1054572. It also removes some leftovers from http channel which have not been removed in those 2 bugs.
2017-05-04 17:37:42 +02:00
Junior Hsu
5130d2e6d3 Bug 1359951 - Ensure that the WebSocket not sending constructor when shutting down, r=nwgh
--HG--
extra : rebase_source : c11a6d29d6da9a83f15a00f02c877960a0d5bf06
2017-05-02 19:50:00 +02:00
Junior Hsu
6f2d5288c1 Bug 1360163 - Add test for altData of cache index, r=michal
--HG--
extra : rebase_source : fcd588c232364fa7fc4cbd4e133bd32557231b3c
2017-04-28 17:14:21 +08:00
Dragana Damjanovic
0f080b064b Bug 1360515 - During TCP Fast Open let necko works as it is used to, but only limit amount of data we write to lower layers, i.e. nss, tcpFastOpenLayer, tcp socket. r=mcmanus 2017-05-04 12:15:33 +02:00
Dragana Damjanovic
2c802ffe1c Bug 1360570 - Make sure to write as much data as possible during FastOpen. r=mcmanus 2017-05-04 12:15:23 +02:00
Dragana Damjanovic
a6965692d1 Bug 1359938 - Fix socket status events for TCP Fast Open. r=mcmanus 2017-05-04 12:15:16 +02:00
Dragana Damjanovic
fc3b8dbe53 Bug 1359847 - Improve transaction restart if tfo is not supported. r=mcmanus 2017-05-04 12:15:10 +02:00
Dragana Damjanovic
6fb8664ccb Bug 1352271 - Add telemetry about TCP Fast Open. r=mcmanus r=francois 2017-05-04 12:15:01 +02:00
Dragana Damjanovic
099e776a6d Bug 1352274 - Add response header indicator for TCP FastOpen suceeded. r=mcmanus 2017-05-04 12:14:54 +02:00
Dragana Damjanovic
04e98c441a Bug 1188435 - Fix http2 restart on net-reset and fix activeConn count. r=mcmanus 2017-05-04 12:14:41 +02:00
Dragana Damjanovic
33ad6af7aa Bug 1188435 - Check if sendto is implemented. r=mcmanus 2017-05-04 12:14:36 +02:00
Dragana Damjanovic
abf0402f0a Bug 1188435 - Make TFO work with 0RTT and H2 work. r=mcmanus 2017-05-04 12:14:29 +02:00
Dragana Damjanovic
827d3bbab5 Bug 1188435 - Make TLS 0RTT work with TLS Fast Open. r=mcmanus 2017-05-04 12:14:13 +02:00
Dragana Damjanovic
accc6e95b1 Bug 1188435 - Implement fast open necko part. r=mcmanus 2017-05-04 12:14:04 +02:00
Iris Hsiao
553dbd294c Merge mozilla-central to mozilla-inbound 2017-05-04 11:29:49 +08:00
Wes Kocher
4e89a77541 Merge m-c to autoland, a=merge
MozReview-Commit-ID: F7qkNALe0WT
2017-05-03 13:52:24 -07:00
Honza Bambas
124792a6b7 Bug 1354796 - Close unconnected HTTP connection with NS_ERROR_NET_TIMEOUT after 90s timeout. r=mcmanus 2017-05-03 08:31:00 -04:00
Yoshi Huang
db11c81921 Bug 1284579 - Part 3: remove IsPrivate arg from nsCookieService. r=valentin
Since we already passed origin attributes into these functions, we can
remove the extra isPrivate argument.
2017-05-04 09:40:21 +08:00
Yoshi Huang
7652396698 Bug 1284579 - Part 2: revise NS_ShouldCheckAppCache. r=valentin
There's one redudant NS_ShouldCheckAppCache(nsIURI*, bool) is not used
anymore. Also we remove the extra usePrivateBrowsing argument, since we
can get this information from nsIPrincipal.
2017-05-04 09:40:00 +08:00
Yoshi Huang
339c4768ca Bug 1284579 - Part 1:revise NS_UsePrivateBrowsing to get PB from origin attributes. r=valentin 2017-05-04 09:39:17 +08:00
Patrick McManus
26f948c0f3 Bug 1361495 - trigger winsock init early on STS to avoid main thread jank r=nwgh
MozReview-Commit-ID: 9HhHWBwF47Z

--HG--
extra : rebase_source : 63cc79d36fdf713ecb6e513fecd77fffa43bf182
2017-05-02 17:22:53 -04:00
Carsten "Tomcat" Book
b0e1da2a90 merge mozilla-inbound to mozilla-central a=merge 2017-05-03 10:11:26 +02:00
Wes Kocher
e141e24ffb Merge m-c to autoland, a=merge
MozReview-Commit-ID: 1peTFbNMVnU
2017-05-02 17:38:11 -07:00
Wes Kocher
df3f95a52f Merge inbound to m-c a=merge
MozReview-Commit-ID: 4SpokMW1d3I
2017-05-02 17:35:06 -07:00
Kershaw Chang
d8ed9c0d8a Bug 1355539 - Test case, r=mayhemer 2017-05-02 00:31:00 +02:00
Kershaw Chang
ca7ad21c91 Bug 1355539 - Insert blocking transactions in the front of pendingQ, r=mayhemer
The blocking transactions should be dispatched before other transactions. So, this patch aims to put those transactions in front of the pending queue.
Moreover, also give the rest available connections to background tab when processing pendingQ for all entries.
2017-05-02 00:30:00 +02:00
Wes Kocher
5b73758a65 Merge m-c to inbound, a=merge
MozReview-Commit-ID: ILz91Vj4gT5
2017-05-02 17:39:58 -07:00
Andrea Marchesini
d591d3c595 Bug 1360887 - nsBufferedInputStream must be able to read from nsIAsyncInputStream, r=smaug
Currently nsBufferedInputStream is able to Fill() data only from sync
inputStream. When a page uses XHR to upload something, it creates a
nsBufferedInputStream around the source inputStream. This stream can be a
IPCBlobInputStream, and in that case, the reading is only supported using
nsIAsyncInputStream interface. nsBufferedInputStream must support it.
2017-05-02 19:32:42 +02:00
Nathan Froyd
0a713b4ab2 Bug 1360538 - convert SimpleBuffer to use NS_DECL_OWNINGTHREAD; r=hurley
The pattern we're using here has a name, so let's use that instead.
2017-05-02 12:46:36 -04:00
Patrick McManus
d1c557fcfe Bug 1361099 - provide a way to map all dns to constant r=valentin
// When non empty all non-localhost DNS queries (including IP addresses)
// resolve to this value. The value can be a name or an IP address.
// domains mapped to localhost with localDomains stay localhost.
pref("network.dns.forceResolve", "");

Testing is the primary use case here - replay captive data on a 'fake
server' by directing all traffic to it at the DNS level. Chrome has
something similar.

MozReview-Commit-ID: 7AOgQZpZKec

--HG--
extra : rebase_source : ad2648a701fffecaae47cbfae17e7aa6badd50ee
2017-05-01 13:51:55 -04:00
Nicholas Hurley
7440d1d042 Bug 1348278 - Limit speculative connections to http[s] only. r=mcmanus
Some protocol handlers don't handle speculative connections too well
(they crash). So, we limit to the most useful protocols. This patch
brought to you by
https://bugzilla.mozilla.org/show_bug.cgi?id=1348278#c21

MozReview-Commit-ID: 8dWGdVtalIS

--HG--
extra : rebase_source : 9ba674282e40d8313fdb8fbd2f1b9ae7567d299d
2017-04-28 11:37:24 -07:00
Ehsan Akhgari
b3c48a1104 Bug 1360723 follow-up: Rename ContentParent::AboutToLoadDocumentForChild to ContentParent::AboutToLoadHttpFtpWyciwygDocumentForChild 2017-05-01 15:44:01 -04:00
Ehsan Akhgari
88089b7bf1 Bug 1360723 - Rename ContentParent::TransmitPermissionsFor() to ContentParent::AboutToLoadDocumentForChild(); r=mystor 2017-04-28 18:05:32 -04:00
Jonathan Kew
ed530ec201 Bug 1353000 - Preparatory patch, explicitly make the Script enum a 16-bit type, so we can add a field to gfxShapedWord without making it bigger. r=jrmuizel 2017-04-12 14:55:10 +01:00
Andrea Marchesini
b8016bba19 Bug 1360454 - IPCBlobInputStream can take the original stream directly if created on the parent process, r=smaug 2017-04-28 12:16:13 +02:00
Carsten "Tomcat" Book
1045b9730a merge mozilla-inbound to mozilla-central a=merge 2017-04-28 10:36:11 +02:00
Shing Lyu
c46f5d5baf Bug 1351548 - Remove reftest-stylo.lists. r=bholley
MozReview-Commit-ID: 8LoQ9xNnDnj
2017-04-28 11:15:58 +08:00
Sebastian Hengst
0936d33fb8 Backed out changeset 88c2a0b2dde5 (bug 1319111) for crashing Talos. r=backout 2017-04-28 00:16:39 +02:00
Milan Sreckovic
da5b96ea90 Bug 1304605: Part 2. Optimizing NormalizeIPv4. Seems to be 4-6x faster. r=valentin.gosu
MozReview-Commit-ID: FjkNmbW5I93

--HG--
extra : rebase_source : f3b6e2c07e9376b6b25a62a93cffc4a58584e243
2017-04-26 12:02:58 -04:00
Milan Sreckovic
ff6839a8e1 Bug 1304605: Part 1. Unit tests, including performance, for NormalizeIPv4. r=valentin.gosu
MozReview-Commit-ID: KAecFlYTUfW

--HG--
extra : rebase_source : cddfd6fd05f33d2d2c50caf66669d87dc2f79ce7
2017-04-26 11:56:16 -04:00
Dragana Damjanovic
9a3cfa6017 Bug 1334776 - Store header names into nsHttpHeaderArray. r=mcmanus 2017-04-27 16:48:36 +02:00
Dragana Damjanovic
a90129c020 Bug 1359496 - Remove code added in bug 1340164. This code was taking care that we do not send multiple socket status events. r=mcmanus 2017-04-27 16:37:31 +02:00
Valentin Gosu
3b8965a9dd Bug 1359106 - Make sure AltDataOutputStreamParent::SendError is not called after ActorDestroy r=bagder
MozReview-Commit-ID: I2m4K7MhQoA

--HG--
extra : rebase_source : 6a9d1457ae53e2438e01691064458d1c6a138924
2017-04-30 18:08:25 +02:00
Valentin Gosu
eab53800bf Bug 1354409 - Make sure nsHttpChannel::mRacingNetAndCache is only true when we are actually racing r=michal
mRacingNetAndCache used to be set in TriggerNetwork, when the network was triggered before the cache callbacks had been called, but this could also happen when we bypassed the cache.


MozReview-Commit-ID: 4CklwPVRGar

--HG--
extra : rebase_source : 47a604e25ce879b929dbb2eba7bca36e371845ae
2017-04-21 11:42:29 +08:00
Valentin Gosu
cc80d8fcd8 Bug 1354409 - Add telemetry for how often we race network and cache r=michal
MozReview-Commit-ID: 1D1KyGbLxdW

--HG--
extra : rebase_source : 5bfeed6c1fb8f1379844947bd391ac352700b411
2017-04-20 16:42:10 +08:00
Honza Bambas
0504ed64c3 Bug 1319111 - Exposing URI to make security check against on LoadInfo (no LOAD_REPLACE flag). r=bz 2017-01-27 19:10:01 +01:00
Nathan Froyd
042857aede Bug 1360236 - make gSocketThread an internal implementation detail of nsSocketTransportService; r=mcmanus
This change makes the code a little cleaner and reduces the number of
places we call PR_GetCurrentThread, which is important for Quantum DOM
scheduling work.

The conversion was largely automatic, via:

find netwerk/ -name \*.cpp | \
  xargs sed -i -e 's/MOZ_ASSERT(PR_GetCurrentThread() == gSocketThread[^;]*/MOZ_ASSERT(OnSocketThread(), "not on socket thread")/'

and related invocations, with a few manual tweaks at the end.
2017-04-27 14:34:42 -04:00
Michael Layzell
d9adddc93f Bug 1355608 - Part 1: Add tools to nsPermissionManager to await permissions becoming avaliable, r=baku
MozReview-Commit-ID: 1HDS8zw6dpF
2017-04-27 13:41:13 -04:00
Wes Kocher
75c2b7a481 Merge m-c to autoland, a=merge
MozReview-Commit-ID: 3BrkDVl7521
2017-05-08 16:24:51 -07:00
Johann Hofmann
c99cbe03c0 Bug 1337246 - Part 3 - Add a test for hostnameIsLocalIPAddress. r=valentin
MozReview-Commit-ID: 11nCKJFsv6i

--HG--
extra : rebase_source : 7ccb47feae6e60f979b560d6c4f2e8c0fce4d3d6
2017-05-07 21:12:45 +02:00
Johann Hofmann
023ccb065e Bug 1337246 - Part 1 - Add a hostnameIsLocalIPAddress function to nsIIOService. r=valentin
MozReview-Commit-ID: 81A37b1juGD

--HG--
extra : rebase_source : 081b160d2822487a2e3b4e05ba34d614f0ad5042
2017-03-31 22:39:45 +02:00
Shane Caraveo
075b7b243b Bug 1360052 handle cancel during http-on-examine-response, r=mayhemer
MozReview-Commit-ID: 607FLbUWjxT

--HG--
extra : rebase_source : 226e21dbbc9de386c43af788d7c375759ca17b1d
2017-05-05 15:54:19 -07:00
Liang-Heng Chen
3157086820 Bug 1360332 - Part 1: avoid calling FailDiversion() twice; r=dragana
MozReview-Commit-ID: DxI3c3223hJ

--HG--
extra : rebase_source : c7581ec11a8db113be9c8da0aeb6ca8ee3cc79d6
2017-06-14 11:59:16 +08:00
Liang-Heng Chen
d8663d4fd7 Bug 1360332 - Part 0: remove unused function parameter; r=dragana
MozReview-Commit-ID: EGshnNhrVdl

--HG--
extra : rebase_source : d10c40f921a616d2ec4c7cea7bc14625c0e82f8f
2017-06-14 11:58:29 +08:00
Jason Duell
d8fc808f1c Bug 711886 - Fail Websocket if server replies with non-matching subprotocol, r=mcmanus 2016-05-11 08:50:13 -07:00
Wes Kocher
da57a3e4df Merge m-c to inbound, a=merge
MozReview-Commit-ID: DimBmdgo95e
2017-04-26 17:35:26 -07:00
Wes Kocher
c90904f9bf Merge inbound to central, a=merge CLOSED TREE
MozReview-Commit-ID: 9HQViJrDT6S
2017-04-26 17:30:31 -07:00
Honza Bambas
a3ab3a3a4a Bug 1345910 - Allow HTTP connection restart for the first connection-based authentication request in a round. r=mcmanus
--HG--
extra : rebase_source : 31810fd50075524faee7e410402c0b18954b449e
2017-04-26 17:02:05 +02:00
Florian Queze
4b1556a5f2 Bug 1355056 - replace (function(args) { /* do stuff using this */ }).bind(this) with arrow functions, r=jaws. 2017-04-27 00:25:45 +02:00
Sebastian Hengst
f46ebb0d94 Backed out changeset aebb0ceeb20a (bug 1351548) 2017-04-26 13:12:53 +02:00
Jon Coppeard
eb3c9870bf Bug 1352430 - Add barrier to wrapper cache to clear dying objects that have not yet been finalized r=bz r=sfink
* * *
Code review followup

--HG--
extra : rebase_source : 10c1fd603c2dd1ac2ff5770ae9aec2e9131681ce
2017-04-26 11:18:39 +01:00
Shing Lyu
96b400c04a Bug 1351548 - Remove reftest-stylo.lists. r=bholley
MozReview-Commit-ID: Gn0fbS4PZ7i
2017-04-26 18:21:52 +08:00
Andi-Bogdan Postelnicu
d5f08cd7a3 Bug 1359369 - prevent null pointer dereference in NS_GetIsDocumentChannel. r=valentin
MozReview-Commit-ID: I1iu2miXmjZ

--HG--
extra : rebase_source : ea86f96806ae0536cb799e28c286e92d4c3b4717
2017-04-25 14:38:03 +03:00
Tom Tromey
99f4608655 Bug 1334278 - change mozilla::Smprintf to return a UniquePtr; r=froydnj
Change mozilla::Smprintf and friends to return a UniquePtr, rather than
relying on manual memory management.  (Though after this patch there are
still a handful of spots needing SmprintfFree.)

MozReview-Commit-ID: COa4nzIX5qa

--HG--
extra : rebase_source : ab4a11b4d2e758099bd0794d5c25d799a7e42680
2017-03-03 08:17:27 -07:00
Patrick McManus
76887cd662 Bug 1359222 - fix prefs in test_http2.js r=nwgh
the spdy 3-1 pref doesn't do anything anymore

MozReview-Commit-ID: IfVHkQbiAEh

--HG--
extra : rebase_source : bd2dc3a4aec1b1e6d0d0a2adc45ca53a41a50db0
2017-04-24 16:58:12 -04:00
Wes Kocher
497d2c96ed Merge m-c to autoland, a=merge
MozReview-Commit-ID: Lmq6phawHD
2017-04-24 16:16:50 -07:00
Carsten "Tomcat" Book
8e84189916 Merge mozilla-central to mozilla-inbound 2017-04-24 16:07:21 +02: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
Honza Bambas
203c640be7 Bug 1348062 - Mark channels used for downloads as throttable, r=nick+paolo
MozReview-Commit-ID: 9cg4PwrXtNa

--HG--
extra : rebase_source : 2ff2d771a6ccb2a3e11c2d65e0a64ebbaa443206
2017-04-16 14:53:30 +01:00
Kershaw Chang
d2acdf1290 Bug 1343745 - Label runnables in /http, r=honzab 2017-04-23 19:59:00 +02: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
Carsten "Tomcat" Book
975e251aff merge mozilla-inbound to mozilla-central a=merge 2017-04-21 10:57:02 +02: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