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

15578 Коммитов

Автор SHA1 Сообщение Дата
Tom Schuster b2bd1f0d80 Bug 1410620 - Change CacheInfo interfaces in network to use ACString. r=michal,froydnj 2017-10-29 12:19:48 +01:00
Jorg K e4e37ae9d0 Bug 1412497 - fix test for buffered input stream. r=baku 2017-10-29 08:59:26 +01:00
Sebastian Hengst 831f2ed98f merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: oIdBL7fmlE
2017-10-28 10:31:58 +02:00
Liang-Heng Chen 3cf13fc905 Bug 1410257 - make non-connection-based connections restartable; r=mayhemer
MozReview-Commit-ID: 1hEk7mT6mzZ

--HG--
extra : rebase_source : 4c7507adb820b1760309fc1cfb1210cdf03c2d6e
2017-10-26 14:23:05 +08:00
Ben Kelly 1d874e8c70 Bug 1411528 Clear the intercept listening when synthesizing a redirect in HttpChannelChild. r=asuth 2017-10-27 16:11:57 -04:00
Andrea Marchesini 1e90a67e4d Bug 1412258 - Get rid of ipc/dbus, r=smaug
--HG--
rename : ipc/dbus/DBusConnectionRefPtr.h => netwerk/wifi/DBusHelpers.h
2017-10-27 18:41:40 +02:00
Dragana Damjanovic 63a20964af Bug 1412260 - Initialize mFastOpenStatus in NullHttpTransaction. r=bagder 2017-10-27 14:05:31 +02:00
Dragana Damjanovic b10887c6ac Bug 1406908 - Implement 425 (Too Early). r=mcmanus 2017-10-27 12:17:56 +02:00
Sebastian Hengst dc3b8f00b7 merge mozilla-central to mozilla-inbound. r=merge a=merge on a CLOSED TREE
--HG--
extra : amend_source : 2c9fdf7f2907c1d71f8637abd568e181ed3faab1
2017-10-27 13:00:27 +03:00
Sebastian Hengst 5c15da1f08 merge mozilla-inbound to mozilla-central. r=merge a=merge
--HG--
rename : testing/talos/tests/__init__.py => testing/talos/talos/unittests/__init__.py
rename : testing/talos/tests/browser_output.ts.txt => testing/talos/talos/unittests/browser_output.ts.txt
rename : testing/talos/tests/browser_output.tsvg.txt => testing/talos/talos/unittests/browser_output.tsvg.txt
rename : testing/talos/tests/profile.tgz => testing/talos/talos/unittests/profile.tgz
rename : testing/talos/tests/ps-Acj.out => testing/talos/talos/unittests/ps-Acj.out
rename : testing/talos/tests/test_talosconfig_browser_config.json => testing/talos/talos/unittests/test_talosconfig_browser_config.json
rename : testing/talos/tests/test_talosconfig_test_config.json => testing/talos/talos/unittests/test_talosconfig_test_config.json
rename : testing/talos/tests/xrestop_output.txt => testing/talos/talos/unittests/xrestop_output.txt
2017-10-27 12:45:34 +03:00
Andrea Marchesini 49ab2e14c3 Bug 1411939 - nsInputStreamPump should avoid the use of nsIAsyncInputStream and nsIBufferedInputStream at the same time, r=smaug 2017-10-27 09:05:48 +02:00
Phil Ringnalda 81afb7d3f2 Backed out changeset 6e2c105f5730 (bug 1402014) for marionette, talos, and dom/push/ crashes @ mozilla::net::Http2Session::ReadSegmentsAgain
MozReview-Commit-ID: 4mZXcBAma9d
2017-10-26 19:22:08 -07:00
Nicholas Hurley 139e43e0fd Bug 1402014 - Don't (try to) write to the network when we're already closed. r=mcmanus
MozReview-Commit-ID: CkGuzlzDToj

--HG--
extra : rebase_source : 0992bb22b01ce6d80e0e11b66bf14bb072be453c
2017-10-26 19:05:37 -04:00
Sebastian Hengst d10e26c913 merge mozilla-central to mozilla-inbound. r=merge a=merge 2017-10-27 00:00:25 +02:00
Sebastian Hengst b181c484ad merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: LcCWQzgwIBi
2017-10-26 23:57:40 +02:00
Valentin Gosu 016e88352f Bug 1411703 - test_original_sent_received_head_wrap.js fails locally r=dragana
Test fails when running locally:
./mach test netwerk/test/unit_ipc/test_original_sent_received_head_wrap.js

 Error: cannot open file '/home/user/mozilla-central/obj-ff-dbg/_tests/xpcshell/netwerk/test/unit/test_original_sent_received_head.js' for reading at /home/icecold/mozilla-central/testing/xpcshell/head.js:648


MozReview-Commit-ID: DcOWOWlH5ch

--HG--
extra : rebase_source : 30c5e28c61adace06cd49ca216108a277e37d58d
2017-10-25 21:41:48 +02:00
Valentin Gosu 996793e8e8 Bug 1411697 - Make sure to SendDocumentChannelCleanup even when mPreferredCachedAltDataType is set r=michal
MozReview-Commit-ID: ApXNqS9tcfh

--HG--
extra : rebase_source : 6ef619331af3f3dd3424c5ac932a2c828bd9d50f
2017-10-26 15:54:37 +02:00
Patrick McManus f99705311c Bug 1409858 - H2 CONNECT Tunnel Marked Plaintext Too Late r=nwgh
MozReview-Commit-ID: IjuYDuvufRd

--HG--
extra : rebase_source : ab7773dc015c31d6ba1eb8c933efc79c38b29d06
2017-10-20 13:39:49 -04:00
Kris Maglione 257d9118dc Bug 1409249: Require singleton constructors to return explicit already_AddRefed. r=froydnj
Right now, NS_GENERIC_FACTORY_SINGLETON_CONSTRUCTOR expects singleton
constructors to return already-addrefed raw pointers, and while it accepts
constructors that return already_AddRefed, most existing don't do so.

Meanwhile, the convention elsewhere is that a raw pointer return value is
owned by the callee, and that the caller needs to addref it if it wants to
keep its own reference to it.

The difference in convention makes it easy to leak (I've definitely caused
more than one shutdown leak this way), so it would be better if we required
the singleton getters to return an explicit already_AddRefed, which would
behave the same for all callers.


This also cleans up several singleton constructors that left a dangling
pointer to their singletons when their initialization methods failed, when
they released their references without clearing their global raw pointers.

MozReview-Commit-ID: 9peyG4pRYcr

--HG--
extra : rebase_source : 2f5bd89c17cb554541be38444672a827c1392f3f
2017-10-16 21:08:42 -07:00
Sebastian Hengst 8e8a8276cd Backed out changeset 84cb594525ad (bug 1400655) for eslint failure in devtools/client/jsonview/test/browser_jsonview_serviceworker.js. r=backout
--HG--
extra : rebase_source : b47d28eed6fb93bcefb3543872816585e59759f9
2017-10-26 00:24:57 +02:00
Ben Kelly 61ffdf4130 Bug 1400655 P1 Respect LOAD_CALL_CONTENT_SNIFFERS when a channel is intercepted by a ServiceWorker. r=valentin 2017-10-25 17:32:04 -04:00
Jesse Ruderman c6c08296c6 Bug 675518 - Add crashtest. r=me 2017-10-25 14:58:33 -04:00
Junior Hsu 96911b1321 Bug 870460 - Part 4: Make the lifecycle of cookie thread alongwith the profile. r=ngwh 2017-10-25 01:30:00 -04:00
Junior Hsu 68d3cbb372 Bug 870460 - Part 2: Close syncconn for edge cases. r=nwgh
--HG--
extra : source : b0ddf460db0712431c4bfd8d6590eb69a23ecf4e
2017-10-09 00:19:00 -04:00
Valentin Gosu 1f08f89c63 Bug 1411932 - rusturl_get_path should not depend on cannot-be-a-base r=baku
MozReview-Commit-ID: 7iwBooZWNxW

--HG--
extra : rebase_source : b6622e1c4270629f44f0d263847c47bc06ffb60f
2017-10-26 14:46:25 +02:00
Sebastian Hengst 06e215c2ce merge mozilla-central to autoland. r=merge a=merge 2017-10-26 23:59:14 +02:00
Tom Ritter 675ee84729 Bug 1411728 Resolve warnings in TestNamedPipeService.cpp r=froydnj
MozReview-Commit-ID: DWUxwHqtpgV

--HG--
extra : rebase_source : e7449ba9095b856008c1d34a9aa34c366365ae7d
2017-10-25 15:27:41 -05:00
Sebastian Hengst 443416f881 Merge mozilla-central to autoland. r=merge a=merge 2017-10-26 00:39:55 +02:00
Chris Manchester c86173526a Bug 1403346 - Replace all uses of ALLOW_COMPILER_WARNINGS with a template, remove ALLOW_COMPILER_WARNINGS. r=glandium
MozReview-Commit-ID: 1G2o4fy74cf
2017-10-25 15:12:09 -07:00
Valentin Gosu 6814810f38 Bug 1409405 - Implement MozURL::GetOrigin r=mayhemer
MozReview-Commit-ID: H1X0dAOyij1

--HG--
extra : rebase_source : f47595f7a3beed55f68c6a6a27f5a78d1ab3da5b
2017-10-25 18:03:05 +02:00
Valentin Gosu cd4a91befe Bug 1410063 - Implement MozURL::GetHostPort/SetHostPort r=mayhemer
MozReview-Commit-ID: 2wXsvmHf60

--HG--
extra : rebase_source : bdadc78db1cb135a65cfae0ae39b6073c962b85e
2017-10-25 17:35:47 +02:00
Sebastian Hengst 24b7b2eb7c merge mozilla-central to autoland. r=merge a=merge 2017-10-24 23:59:14 +02:00
Alex Gaynor 4374c58da3 Bug 1411255 - Fixed unnecessary mut warning; r=valentin
MozReview-Commit-ID: 9MDk0LlA6uR

--HG--
extra : rebase_source : bc5dac8e99d26dbec2385ad781026df75992206e
2017-10-24 09:42:28 -04:00
Sebastian Hengst ec34b16044 Backed out changeset 6c4818576443 (bug 870460) for failing many xpcshell tests, e.g. extensions/cookie/test/unit/test_cookies_async_failure.js. r=backout
--HG--
extra : amend_source : e5bb4ef1b68ae382c6457f77077f33174518efd1
2017-10-24 16:48:17 +02:00
Sebastian Hengst f9cf88ef78 Backed out changeset b0ddf460db07 (bug 870460) 2017-10-24 16:48:11 +02:00
Sebastian Hengst 6cc5547626 Backed out changeset edacb0144b17 (bug 870460) 2017-10-24 16:48:00 +02:00
Junior Hsu e91546afa5 Bug 870460 - Part 4: Make the lifecycle of cookie thread alongwith the profile. r=ngwh
--HG--
extra : rebase_source : d6de8363bf577a516b90ba00268d2a28e7da12df
2017-10-17 02:10:00 -04:00
Junior Hsu 5a950b703b Bug 870460 - Part 2: Close syncconn for edge cases. r=nwgh
--HG--
extra : rebase_source : 83477d8bb1671a2217aee9c04a4d1d9a1999a0da
2017-10-09 00:19:00 -04:00
Nicholas Hurley 846734c853 Bug 1409542 part 2 - telemetry on why a resource marked prefetchable is not prefetched. r=francois,valentin
MozReview-Commit-ID: AFJnbTjU5Ju

--HG--
extra : rebase_source : 6207e04a5b3ea932ddc87ad9c0830ea1633ac39a
2017-10-20 12:58:30 -07:00
Nicholas Hurley 1790ba950b Bug 1409542 part 1 - telemetry on why a resource is marked prefetchable or not. r=francois,valentin
MozReview-Commit-ID: IdSyFv8RSbY

--HG--
extra : rebase_source : cdcf6456ff5ed8f895942e3a7bf92b6c04b63cf4
2017-10-17 14:46:56 -07:00
Sebastian Hengst 1ead0a96a9 Backed out changeset dab1c5badddb (bug 1407679) for failing server startup in mochitests on Android. r=backout on a CLOSED TREE
--HG--
extra : amend_source : 3dc4cb2bbaf55f3f6329687ce64d4e862fc3800b
2017-10-24 21:18:26 +02:00
Valentin Gosu 9dd47ebf50 Bug 1407679 - Merge nsIIOService and nsIIOService2 r=nwgh
Removes deprecated nsIIOService2.newChannelFromURIWithProxyFlags

MozReview-Commit-ID: Gr3nA25kcre

--HG--
extra : rebase_source : 3407b5ed0f8f7067523abee28c137db3cac86b14
2017-10-20 16:41:07 +02:00
Gregory Szorc 42583ae0bc Bug 1403213 - Update another reference to nsstring; r=mystor
MozReview-Commit-ID: 4iVvbKi0LlL

--HG--
extra : histedit_source : bc561b24e4b5bfdf1100680f59d3d046ec434cb5
2017-10-24 10:52:55 -07:00
Nika Layzell 1b1ba4879a Bug 1403213 - Move nsstring into servo/support/gecko/nsstring, r=froydnj
MozReview-Commit-ID: 8ucStGkxmj7

--HG--
rename : xpcom/rust/nsstring/gtest/Test.cpp => xpcom/rust/gtest/nsstring/Test.cpp
rename : xpcom/rust/nsstring/gtest/test.rs => xpcom/rust/gtest/nsstring/test.rs
extra : rebase_source : 509a2ab1aa569e8f3ef0955dcdfa36b53ce5e234
2017-10-23 15:37:25 -04:00
Andrew McCreight f6fd8e67f6 Bug 1410993 - Remove NS_DEVICEPROTOCOLHANDLER_CID some more. r=dragana
MozReview-Commit-ID: xdvu3FmMR8

--HG--
extra : rebase_source : fd2a812b970a12ce76dcc06657dd0514f43d0af6
2017-10-23 11:50:33 -07:00
Sylvestre Ledru dc077d0eba Bug 1411034 - Remove the const to fix the -Wignored-qualifiers warning r=mcmanus
MozReview-Commit-ID: AQ66p3bh9uX

--HG--
extra : rebase_source : 9196cfb334ec0cc303abcd1c04a2ddb4cd9cf15f
2017-10-23 22:51:00 +02:00
Sebastian Hengst 31bf3a1a42 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 4Lk5P5UYmTe
2017-10-24 11:52:35 +02:00
Nicholas Nethercote 076076f663 Bug 1410801 - Uses getter_Copies() in GetACookie{,NoHttp}(). r=valentin.
This means the callsites don't need to use getter_Copies(). This roughly halves
the number of calls to getter_Copies() in the tree.

The patch also removes the bool return value from these functions, because it's
not used.

--HG--
extra : rebase_source : 9281411f959282b4ff33e18205ce647f963f0108
2017-10-23 18:59:02 +11:00
Sebastian Hengst 364d36fab2 merge mozilla-inbound. r=merge a=merge
MozReview-Commit-ID: B09kHrHK42C
2017-10-23 23:50:37 +02:00
Jeff Hemphill e74e880a6c Bug 1403802: Port nsHttpHandler::PrepareAcceptLanguages over to Rust; r=valentin,froydnj 2017-10-22 11:27:59 -07:00
Sylvestre Ledru 0b4c0acb99 Bug 1410617 - Fix a tiny typo r=andi
MozReview-Commit-ID: CGgerr8S8aR

--HG--
extra : rebase_source : 98a36e18a0bde8fdfa867767cff9e5c1fd6a87d9
2017-10-21 14:07:49 +02:00
Sylvestre Ledru 57797d9b17 Bug 1410617 - compare uint64_t with size_t only on 32bit platforms. r=valentin
MozReview-Commit-ID: GR4lQhyDUJe

--HG--
extra : rebase_source : 66246fe57df38e99402efe5a7cbc9a40150524af
2017-10-21 14:07:08 +02:00
Sebastian Hengst af53b8aad8 merge mozilla-central to autoland. r=merge a=merge 2017-10-23 23:52:54 +02:00
Sebastian Hengst 8d0319bfa2 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: Gu7wIBFJOqe
2017-10-21 00:05:19 +02:00
Sebastian Hengst 5d671ee296 Backed out changeset 74c58b336d30 (bug 1403213) for referencing non-existing xpcom/rust/gtest/moz.build in xpcom/moz.build. r=backout on a CLOSED TREE
--HG--
extra : amend_source : 7c25d872785312b81c4a94ef32de025b38642f54
2017-10-20 21:30:36 +02:00
Nika Layzell a4927e2417 Bug 1403213 - Move nsstring into servo/support/gecko/nsstring, r=froydnj
MozReview-Commit-ID: FmKtJxSCdYc
2017-10-20 12:04:30 -07:00
Masatoshi Kimura dbd92543c6 Bug 1313150 - Remove |weak| parameter from nsIMutableArray methods. r=froydnj
MozReview-Commit-ID: 7JoD4VYzZp3

--HG--
extra : rebase_source : 5db437f1c34608aa223916874d62b48c59baeae8
2017-10-21 23:53:02 +09:00
Valentin Gosu dfab8e64b8 Bug 1403522 - 'No Proxy For' does not work right if it contains '<local>' only r=bagder
MozReview-Commit-ID: KRW15BxzcN3

--HG--
extra : rebase_source : 47a1b7860c83bc482c7b1e5d4a92401339f19ac5
2017-10-18 16:00:04 +02:00
Andi-Bogdan Postelnicu c9decadfc3 Bug 1410379 - compare uint64_t with size_t only on 32bit platforms. r=valentin
MozReview-Commit-ID: 1exUwUwaY3B

--HG--
extra : rebase_source : 83f199c92e641baa5c44fd65095a87af0528863e
2017-10-20 15:46:28 +03:00
Junior Hsu 51ac771e2d Bug 870460 - Part 1: Let cookie db startup-read off-main-thread. r=nwgh, r=jdm, data-r=francois
--HG--
extra : source : 6c48185764430d35558cf6a0174bc447674e8d58
2017-08-29 18:16:27 +08:00
Dragana Damjanovic dd.mozilla@gmail.com dc9395abcf Bug 1410146 - Fix UnknownDecoder. r=mayhemer 2017-10-24 14:23:00 -04:00
Sebastian Hengst c84fe67114 Backed out 2 changesets (bug 1406908) for failing own xpcshell test. r=backout
Backed out changeset 6941e33afc7d (bug 1406908)
Backed out changeset 291c46b79fa2 (bug 1406908)
2017-10-25 17:39:15 +02:00
Phil Ringnalda 05a3099e6b Backed out 2 changesets (bug 1400563) for Windows non-stylo mochitest-chrome leak
CLOSED TREE

Backed out changeset c03ca22ae138 (bug 1400563)
Backed out changeset a3d2956de12a (bug 1400563)

MozReview-Commit-ID: 1lXcNIDPKC1
2017-10-25 07:53:23 -07:00
Randell Jesup cd5932c5c4 Bug 1400563: fix missing override r=bustage on a CLOSED TREE 2017-10-25 10:41:05 -04:00
Phil Ringnalda e4524a80b9 Backed out changeset fd0492c07da0 (bug 1409449) for browser-chrome, xpcshell and marionette bustage
CLOSED TREE

MozReview-Commit-ID: IcOEJ0l1yeJ
2017-10-25 07:38:39 -07:00
Randell Jesup e166144d3b Bug 1400563: more DataChannelConnection shutdown cleanup r=drno 2017-10-25 09:12:59 -04:00
Dragana Damjanovic db7c97a2bb Bug 1406908 - Test for response code 425. r=mcmanus 2017-10-10 11:21:00 -04:00
Dragana Damjanovic 79e995a437 Bug 1406908 - Implement 425 (Too Early). r=mcmanus, r=mayhemer 2017-10-19 00:06:00 -04:00
Dragana Damjanovic dd.mozilla@gmail.com 026c72f278 Bug 1410147 - On MacOS HAS_CONNECTX should be set for Darwin version greater than and equal 15. r=bagder 2017-10-19 09:45:00 -04:00
Dragana Damjanovic 7120f32f23 Bug 1409449 - Do not show auth-dialog for triggeringPrincipal==SystemPrincipal. r=ckerschb, r=valentin, r=francois 2017-10-25 08:54:31 -04:00
Junior Hsu 725658c3ff Bug 870460 - Part 1: Let cookie db startup-read off-main-thread. r=nwgh, r=jdm, data-r=francois
--HG--
extra : rebase_source : 9892af8b907e67c8f4e6ee6cbe124b21ee10cc58
2017-08-29 18:16:27 +08:00
Andrea Marchesini ec610d5b7e Bug 1409329 - NS_NewBufferedOutputStream should take the ownership of the outputStream, r=smaug 2017-10-24 14:38:23 +02:00
Andrea Marchesini be83c65dce Bug 1408333 Get rid of nsIIPCBackgroundChildCreateCallback - part 17 - HttpBackgroundChannel, r=asuth 2017-10-24 12:02:41 +02:00
Makoto Kato 7d1d3b65bf Bug 943284 - Use FallbackEncoding instead of nsIPlatformCharset r=emk
MozReview-Commit-ID: 2pDp2RVV9zk
2017-10-19 19:28:00 +09:00
Sebastian Hengst 7beb660397 merge mozilla-central to mozilla-inbound. r=merge a=merge 2017-10-19 11:54:07 +02:00
Andrea Marchesini 6626e900f9 Bug 1409327 - NS_NewBufferedInputStream should take the ownership of the inputStream, r=smaug 2017-10-19 11:39:30 +02:00
Sebastian Hengst bf793df477 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: HasKw28SN45
2017-10-19 11:26:22 +02:00
Nicholas Nethercote 78030c0e7b Bug 1409598 - Change nsIXPCScriptable::className and nsIClassInfo::{contractID,classDescription} from string to AUTF8String. r=froydnj.
This lets us replace moz_xstrdup() of string literals with AssignLiteral(),
among other improvements.

--HG--
extra : rebase_source : 9994d8ccb4f196cf63564b0dac2ae6c4370defb4
2017-10-18 13:17:26 +11:00
Ryan VanderMeulen cb612851ed Merge inbound to m-c. a=merge 2017-10-18 21:01:34 -04:00
Ryan VanderMeulen 9c3824dc0c Merge m-c to autoland. a=merge 2017-10-18 21:02:15 -04:00
Valentin Gosu 13f4c5ecaf Bug 1408552 - Make sure we only instantiate CacheStorageService in the main process r=mayhemer
* A memory leak occurs when this happens in the content process
* I added an assertion that we only create it in the parent process

MozReview-Commit-ID: 1UTyusRg0qx

--HG--
extra : rebase_source : 400cfb21ee094ad33e15681f213af6dbe20ebbf5
2017-10-18 21:10:22 +02:00
Nicholas Hurley 27e579b139 Bug 1409210 - Don't prefetch resources with a Vary header. r=valentin
Conceivably, we could allow a few more prefetches than this would (based
on the headers in the original request matching up to a header listed in
the Vary response header), but this is safer in case (for example)
future requests of this resource end up sending a cookie that wasn't set
on the original request. In practice, the difference is likely to be
small enough that this broader stroke won't make a huge impact on the
number of things we do or don't prefetch.

MozReview-Commit-ID: GhD9mZR6aOX

--HG--
extra : rebase_source : 13a2edb99485c73db902d2ec8b0f2b5b1d437abe
2017-10-16 16:55:46 -07:00
Dragana Damjanovic 0a372ab31a Bug 1409667 - If an error occur it can happen the Http2Session does not have a connection. r=mcmanus 2017-10-18 16:27:32 +02:00
Sebastian Hengst f9b5b9b40c merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 790IXj5MZ4f
2017-10-18 11:48:34 +02:00
Tom Ritter f2a4c98eed Bug 1404035 Address an unused result warning in netwerk/socket/nsNamedPipeIOLayer.cpp r=bagder,nwgh
If we fail, we should fail.

MozReview-Commit-ID: KxtIx91nG3v

--HG--
extra : rebase_source : 91fa84a5b445ce5a09d7118479d9a77a952ca8bd
2017-10-10 13:06:49 -05:00
Sebastian Hengst f3f32c7851 merge mozilla-central to mozilla-inbound. r=merge a=merge
--HG--
rename : media/libstagefright/binding/include/mp4_demuxer/ByteReader.h => media/libstagefright/binding/include/mp4_demuxer/BufferReader.h
extra : rebase_source : 98d9275bf6065bc701881aed6c4635f1da9ea642
2017-10-18 00:05:25 +02:00
Sebastian Hengst 34714cebde merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 2KL1o3EPUk
2017-10-17 23:52:28 +02:00
Dragana Damjanovic ea3c619848 Bug 1384679 - Fix timing for TFO. r=mcmanus r=honza 2017-10-17 15:28:33 +02:00
Ben Kelly 8231685365 Bug 1204254 P14 Stop faking responseStart/End directly and make PerformanceTiming map SW specific timings instead. r=asuth 2017-10-17 13:38:56 -07:00
Ben Kelly fe79c4da06 Bug 1204254 P12 Remove nsIInterceptedChannel.responseBody and backing nsPipe code. r=asuth 2017-10-17 13:38:55 -07:00
Ben Kelly d48b092026 Bug 1204254 P9 Pass the body stream directly to StartSynthesizedResponse() instead of copying. r=asuth 2017-10-17 13:38:55 -07:00
Ben Kelly 33afdbe632 Bug 1204254 P8 Improve error handling and cancelation for intercepted HttpChannelChild. r=asuth 2017-10-17 13:38:55 -07:00
Ben Kelly 827e1b543b Bug 1204254 P7 Allow the body nsIInputStream to be passed in StartSynthesizeResponse(). r=asuth 2017-10-17 13:38:55 -07:00
Ben Kelly 8bf6429c5a Bug 1204254 P5 Don't rely on nsIInputStream::Available() during interception to get the total stream length. r=asuth 2017-10-17 13:38:54 -07:00
Ben Kelly 262c2cb4f2 Bug 1204254 P2 Move StartSynthesizedResponse() out from FinishSynthesizedResponse(). r=asuth 2017-10-17 13:38:54 -07:00
Ben Kelly 89cd4507cf Bug 1204254 P1 Add an nsIInterceptedChannel::StartSynthesizedResponse() method. r=asuth 2017-10-17 13:38:54 -07:00
Sebastian Hengst b1cdb2af00 Backed out changeset 03e4f9175b16 (bug 1409329) 2017-10-17 22:03:39 +02:00
Sebastian Hengst 66e04dcde6 Backed out changeset 4666cde20909 (bug 1409327) 2017-10-17 22:03:33 +02:00
Andrea Marchesini d526801916 Bug 1409327 - NS_NewBufferedInputStream should take the ownership of the inputStream, r=smaug 2017-10-17 20:38:05 +02:00
Andrea Marchesini fe04c2050c Bug 1409329 - NS_NewBufferedOutputStream should take the ownership of the outputStream, r=smaug 2017-10-17 20:38:05 +02:00
Dragana Damjanovic dd.mozilla@gmail.com 3e2548c099 Bug 1393691 - timeout connection if tls takes too long. r=mcmanus 2017-10-17 14:06:45 +02:00
Sylvestre Ledru 982e6cfc6f Bug 1408957 - Remove netwerk/protocol/device/ (no longer used) r=dragana
MozReview-Commit-ID: 1SBMbBzE6DA

--HG--
extra : rebase_source : ab3b07055c9595e565f4dc7cf411e3afef41b99c
2017-10-16 12:12:16 +02:00
Sebastian Hengst 32f7c8fec3 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 1h3kZyrtqSt
2017-10-17 11:45:16 +02:00
Kris Maglione 635fc0e1ae Bug 1405286: Part 1 - Allow retrieving the delivery target from retargetable requests. r=dragana
After data delivery for a request has been retargeted, there's no reliable way
to get the appropriate event target to re-dispatch data events after
asynchronous processing.


While it's technically possible to retrieve the current thread from
OnDataAvailable callbacks and re-use that for later dispatch, that approach
has some issues:

1) It's not currently possible to reliably map the current thread to the
thread pool that owns it. That means that if data delivery is being targetted
to a thread pool, attempts to redispatch events to the previous delivery
thread might lead to long delays when one thread in a pool is blocked.

2) If a filter wishes to dispatch data events to the wrapped listeners before
it's recieved any data (as extensions StreamFilters sometimes do), there's no
way to determine the proper event target without waiting for initial data to
be received.


Simply returning the correct event target from the request solves both of
these problems.

MozReview-Commit-ID: CJxq7O4399R

--HG--
extra : rebase_source : db2f659ecad16daafdbcc108d7b1a51ea1af31f9
2017-10-14 18:30:38 -07:00
Kris Maglione d1f06996d7 Bug 1404198: Part 2c - Switch to NS_NewTimer* in necko. r=njn
MozReview-Commit-ID: 3YyyaBAEjHc

--HG--
extra : rebase_source : 8ea5a8adb4d134ae15041f86f0b185603ab9a989
2017-10-15 23:12:02 -07:00
Kris Maglione 3876d40960 Bug 1404198: Part 1 - Add non-virtual constructor for nsIObject(Input|Output)Stream and update existing callers. r=njn
MozReview-Commit-ID: 3eoh6AwDJyz

--HG--
extra : rebase_source : 92b18b6ef07d276cac79ce735ca0b592cffbf87e
2017-10-04 20:06:28 -07:00
Jonathan Kew 290894f3c9 Bug 1408782 - Force punycode display for IDNs with a <dotless-i, combining mark above> sequence. r=valentin 2017-10-16 10:19:52 +01:00
Shih-Chiang Chien 1d51b00021 Bug 1407683 - use singleton factory method for nsHttpHandler. r=mayhemer
nsHttpHandler is designed only for `getService` but we do not protect against `createInstance`.
The singleton of nsHttpHandler will be replaced by new instance created via `createInstance`.
gHttpHandler will hold a dangling pointer after the new instance is destroyed.

MozReview-Commit-ID: DQV6pmb5BUK

--HG--
extra : rebase_source : a6ab90038853e057c632efb5206cc26dcd71b897
2017-10-12 12:13:56 +08:00
Valentin Gosu c176c9cb48 Bug 1399467 - Remove assertion FTPChannelParent that is triggered by bad ftp URL r=michal
MozReview-Commit-ID: 3vBKRReapHa

--HG--
extra : rebase_source : 39b2d0cc772138888201a5324fb75602818669b7
2017-10-12 21:51:58 +02:00
Sebastian Hengst 373bdd8602 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 9adaYBJ4tlo
2017-10-13 23:37:41 +02:00
Ho-Pang Hsu 271618f7dd Bug 1395202 - Part 3: Create a testcase for nsICacheInfoChannel::cacheEntryId. r=michal, f=junior 2017-10-10 04:10:00 -04:00
Ho-Pang Hsu 24a4dd8501 Bug 1395202 - Part 2: Expose CacheEntryId to nsICacheInfoChannel. r=michal, f=junior 2017-10-12 02:25:00 -04:00
Ho-Pang Hsu f56a0fb03f Bug 1395202 - Part 1: Create nsICacheEntry::CacheEntryId. r=michal, f=junior,mayhemer 2017-10-10 04:09:00 -04:00
Andrea Marchesini 20fa36b7c1 Bug 1405976 - PartiallySeekableInputStream must take the ownership of the underlying stream, r=qdot 2017-10-13 10:07:32 +02:00
Andrew McCreight 95785a8675 Bug 1402151, part 9 - Implement gtest for FTP directory listing parsing. r=michal
This test turns the existing stand alone test for the FTP directory
listing parser into a gtest.

MozReview-Commit-ID: 7n60TfcTXTJ

--HG--
extra : rebase_source : 79c88708a9bf9bee6c27a82f2c93a95016e063dd
2017-09-25 11:19:33 -07:00
Andrew McCreight c617e8ebd2 Bug 1402151, part 8 - Add an argument to ParseFTPList to return the current time. r=michal
If the year is omitted from a listing, then the parsing code assumes
that the date occurred within the last year. To compute what the year
should be, the code thus needs to know what the current year, month
and day are. This patch parameterizes ParseFTPList over a function
that returns a PRTime. This will allow the gtest to pass in a fixed
time. Firefox itself will continue to use PR_Now to get the current
time.

MozReview-Commit-ID: 8IbVWbUBHYs

--HG--
extra : rebase_source : 41cc70a044bc19cb8556677cd3502bab3d6c95a4
2017-09-25 13:27:09 -07:00
Andrew McCreight 3b62ffa008 Bug 1402151, part 7 - Add a time zone argument to ParseFTPList. r=michal
In a few places, the FTP parser needs to know the time zone and
daylight savings time correction, encapsulated in
PRTimeParamFn. Before this patch, it would use the time zone of the
current machine, which would obviously make automated testing
difficult. This patch allows a caller to pass in a PRTimeParamFn,
which will allow the gtest to use GMT instead of whatever the local
time is.

MozReview-Commit-ID: 81R3Zbndr43

--HG--
extra : rebase_source : 274c3724259bc2f03f6a9b529ec005421c7c3ae2
2017-09-25 11:45:27 -07:00
Andrew McCreight 2fbc4292eb Bug 1402151, part 6 - Manual fixups for times in E-EPLF.out. r=michal
After the automatic fixes in the previous patch, a few of the times in
late March and early April are still off by an hour. Maybe this was
affected by the changes in when daylight savings time or some bug in
my conversion script. I have no idea. This patch just fixes the test
to match the actual output.

MozReview-Commit-ID: IghWfkWfxvi

--HG--
extra : rebase_source : ef2e8c6c3d5fbe3d50443ac0042d139e5da44d64
2017-09-25 12:53:01 -07:00
Andrew McCreight 6a0a07d59b Bug 1402151, part 5 - Adjust E-EPLF.out from Paris time to GMT. r=michal
The dates in the input for this file are specified as seconds since
Jan 1, 1970 or whenever. The conversion to a normal date depends on
the current time zone. The original output seems to have been
generated using GMT+1, with adjustments for daylight savings time at
the appropriate parts of the year. To make this easier to test, this
patch changes all of the times to GMT, without any daylight savings
time adjustment.

This change was automatically created by the Python script attached to
the bug.

MozReview-Commit-ID: 3uSAGtJYsMW

--HG--
extra : rebase_source : 2bdf3dd8f7d7b07320a19c4710ded75e4d0a86d1
2017-09-25 12:50:35 -07:00
Andrew McCreight bceda2f2bf Bug 1402151, part 4 - Fix some FTP parser tests. r=michal
D-WinNT: The parser treats <JUNCTION> without an arrow as junk for
some reason. Chrome's FTP directory listing parser doesn't seem to
support <JUNCTION> at all, so it can't be too important. I just
deleted that from the expected output to match Firefox's current
behavior. I also added basic tests for three bugs that were fixed
without any tests landed.

E-EPLF.out: Add a license to the top.

U-WinNT.out: We're not testing junk or comment output, and we don't
use the list: prefix, so remove all of those. Also, we now output the
proper year (2000 instead of 00, for instance), so fix that in the
test output. Finally, the time in the output for this test is
formatted differently, for whatever reason, so change it to match the
actual output.

V-VMS-mix.out: Fix file sizes. File sizes on VMS can only be
approximated. When the FTP tests initially landed in 2002, this was
handled by not trying. Bug 22299 landed in 2003 and changed our
behavior to approximate the size, but the tests were not
updated.

MozReview-Commit-ID: 1DVfBfHh82y

--HG--
extra : rebase_source : 623ac06cb62497b8fc3db01f73c18b3cf0df6783
2017-09-25 11:26:18 -07:00
Andrew McCreight ea0c1d283c Bug 1402151, part 3 - Move parse-ftp unit tests into the gtest directory. r=michal
This will make them easier to access from a gtest.

MozReview-Commit-ID: 3lV4DwTosXT

--HG--
rename : netwerk/streamconv/converters/parse-ftp/3-guess.in => netwerk/test/gtest/parse-ftp/3-guess.in
rename : netwerk/streamconv/converters/parse-ftp/3-guess.out => netwerk/test/gtest/parse-ftp/3-guess.out
rename : netwerk/streamconv/converters/parse-ftp/C-VMold.in => netwerk/test/gtest/parse-ftp/C-VMold.in
rename : netwerk/streamconv/converters/parse-ftp/C-VMold.out => netwerk/test/gtest/parse-ftp/C-VMold.out
rename : netwerk/streamconv/converters/parse-ftp/C-zVM.in => netwerk/test/gtest/parse-ftp/C-zVM.in
rename : netwerk/streamconv/converters/parse-ftp/C-zVM.out => netwerk/test/gtest/parse-ftp/C-zVM.out
rename : netwerk/streamconv/converters/parse-ftp/D-WinNT.in => netwerk/test/gtest/parse-ftp/D-WinNT.in
rename : netwerk/streamconv/converters/parse-ftp/D-WinNT.out => netwerk/test/gtest/parse-ftp/D-WinNT.out
rename : netwerk/streamconv/converters/parse-ftp/E-EPLF.in => netwerk/test/gtest/parse-ftp/E-EPLF.in
rename : netwerk/streamconv/converters/parse-ftp/E-EPLF.out => netwerk/test/gtest/parse-ftp/E-EPLF.out
rename : netwerk/streamconv/converters/parse-ftp/O-guess.in => netwerk/test/gtest/parse-ftp/O-guess.in
rename : netwerk/streamconv/converters/parse-ftp/O-guess.out => netwerk/test/gtest/parse-ftp/O-guess.out
rename : netwerk/streamconv/converters/parse-ftp/R-dls.in => netwerk/test/gtest/parse-ftp/R-dls.in
rename : netwerk/streamconv/converters/parse-ftp/R-dls.out => netwerk/test/gtest/parse-ftp/R-dls.out
rename : netwerk/streamconv/converters/parse-ftp/README => netwerk/test/gtest/parse-ftp/README
rename : netwerk/streamconv/converters/parse-ftp/U-HellSoft.in => netwerk/test/gtest/parse-ftp/U-HellSoft.in
rename : netwerk/streamconv/converters/parse-ftp/U-HellSoft.out => netwerk/test/gtest/parse-ftp/U-HellSoft.out
rename : netwerk/streamconv/converters/parse-ftp/U-NetPresenz.in => netwerk/test/gtest/parse-ftp/U-NetPresenz.in
rename : netwerk/streamconv/converters/parse-ftp/U-NetPresenz.out => netwerk/test/gtest/parse-ftp/U-NetPresenz.out
rename : netwerk/streamconv/converters/parse-ftp/U-NetWare.in => netwerk/test/gtest/parse-ftp/U-NetWare.in
rename : netwerk/streamconv/converters/parse-ftp/U-NetWare.out => netwerk/test/gtest/parse-ftp/U-NetWare.out
rename : netwerk/streamconv/converters/parse-ftp/U-Novonyx.in => netwerk/test/gtest/parse-ftp/U-Novonyx.in
rename : netwerk/streamconv/converters/parse-ftp/U-Novonyx.out => netwerk/test/gtest/parse-ftp/U-Novonyx.out
rename : netwerk/streamconv/converters/parse-ftp/U-Surge.in => netwerk/test/gtest/parse-ftp/U-Surge.in
rename : netwerk/streamconv/converters/parse-ftp/U-Surge.out => netwerk/test/gtest/parse-ftp/U-Surge.out
rename : netwerk/streamconv/converters/parse-ftp/U-WarFTPd.in => netwerk/test/gtest/parse-ftp/U-WarFTPd.in
rename : netwerk/streamconv/converters/parse-ftp/U-WarFTPd.out => netwerk/test/gtest/parse-ftp/U-WarFTPd.out
rename : netwerk/streamconv/converters/parse-ftp/U-WebStar.in => netwerk/test/gtest/parse-ftp/U-WebStar.in
rename : netwerk/streamconv/converters/parse-ftp/U-WebStar.out => netwerk/test/gtest/parse-ftp/U-WebStar.out
rename : netwerk/streamconv/converters/parse-ftp/U-WinNT.in => netwerk/test/gtest/parse-ftp/U-WinNT.in
rename : netwerk/streamconv/converters/parse-ftp/U-WinNT.out => netwerk/test/gtest/parse-ftp/U-WinNT.out
rename : netwerk/streamconv/converters/parse-ftp/U-hethmon.in => netwerk/test/gtest/parse-ftp/U-hethmon.in
rename : netwerk/streamconv/converters/parse-ftp/U-hethmon.out => netwerk/test/gtest/parse-ftp/U-hethmon.out
rename : netwerk/streamconv/converters/parse-ftp/U-murksw.in => netwerk/test/gtest/parse-ftp/U-murksw.in
rename : netwerk/streamconv/converters/parse-ftp/U-murksw.out => netwerk/test/gtest/parse-ftp/U-murksw.out
rename : netwerk/streamconv/converters/parse-ftp/U-ncFTPd.in => netwerk/test/gtest/parse-ftp/U-ncFTPd.in
rename : netwerk/streamconv/converters/parse-ftp/U-ncFTPd.out => netwerk/test/gtest/parse-ftp/U-ncFTPd.out
rename : netwerk/streamconv/converters/parse-ftp/U-no_ug.in => netwerk/test/gtest/parse-ftp/U-no_ug.in
rename : netwerk/streamconv/converters/parse-ftp/U-no_ug.out => netwerk/test/gtest/parse-ftp/U-no_ug.out
rename : netwerk/streamconv/converters/parse-ftp/U-nogid.in => netwerk/test/gtest/parse-ftp/U-nogid.in
rename : netwerk/streamconv/converters/parse-ftp/U-nogid.out => netwerk/test/gtest/parse-ftp/U-nogid.out
rename : netwerk/streamconv/converters/parse-ftp/U-proftpd.in => netwerk/test/gtest/parse-ftp/U-proftpd.in
rename : netwerk/streamconv/converters/parse-ftp/U-proftpd.out => netwerk/test/gtest/parse-ftp/U-proftpd.out
rename : netwerk/streamconv/converters/parse-ftp/U-wu.in => netwerk/test/gtest/parse-ftp/U-wu.in
rename : netwerk/streamconv/converters/parse-ftp/U-wu.out => netwerk/test/gtest/parse-ftp/U-wu.out
rename : netwerk/streamconv/converters/parse-ftp/V-MultiNet.in => netwerk/test/gtest/parse-ftp/V-MultiNet.in
rename : netwerk/streamconv/converters/parse-ftp/V-MultiNet.out => netwerk/test/gtest/parse-ftp/V-MultiNet.out
rename : netwerk/streamconv/converters/parse-ftp/V-VMS-mix.in => netwerk/test/gtest/parse-ftp/V-VMS-mix.in
rename : netwerk/streamconv/converters/parse-ftp/V-VMS-mix.out => netwerk/test/gtest/parse-ftp/V-VMS-mix.out
extra : rebase_source : a9924b40cd6d51750c875fce0f85262f6b86c85d
2017-09-25 10:58:11 -07:00
Andrew McCreight 1560fa65f4 Bug 1402151, part 2 - Clamp the number of blocks for a VMS file. r=michal
strtoul returns an |unsigned long|, and clamps the return value to
ULONG_MAX if the input is out of range. This means that the value
returned for large numbers differs between 32-bit and 64-bit
systems. To make testing easier, this patch clamps the return value to
UINT32_MAX, ensuring that 32-bit and 64-bit builds of Firefox will be
consistent.

Explicitly declaring that the intermediate value numBlocks is a
uint64_t also avoids (well-defined) integer overflow in the case of a
large file.

This patch also changes PRId64 to PRIu64, because the value being
printed is unsigned. However, this should not make a difference in
practice, because, with clamping, the maximum value being printed is
|UINT32_MAX * 512|.

I also cleaned up the comment that was a little garbled and contained
information about both the old and new ways this was handled, and
removed some code that has been ifdef'd out for at least 14 years.

MozReview-Commit-ID: HELmWmtx24O

--HG--
extra : rebase_source : d7a9f5ab09fcb97d5f6319e5fa1fca1a4f72aa52
2017-09-28 09:32:48 -07:00
Andrew McCreight 1cec304d04 Bug 1402151, part 1 - Improve handling of two digit years. r=michal
The tm_year field of PRExplodedTime is an absolute year, not years
since 1900, so fix a few places that try to do the latter.

I also made the conversion of 2 digit years more consistent.

MozReview-Commit-ID: GetS2wmXHhA

--HG--
extra : rebase_source : abdec76586add29b9741db5237bce77d976c8cdc
2017-09-21 16:34:07 -07:00
Ryan VanderMeulen 0dcd727f08 Merge m-c to autoland. a=merge 2017-10-11 17:55:13 -04:00
Phil Ringnalda 876ae3e424 Backed out 2 changesets (bug 870460) for xperf failures
Backed out changeset 50368fa3e040 (bug 870460)
Backed out changeset 5aa7980268cb (bug 870460)

MozReview-Commit-ID: H0rzd5F9dOr
2017-10-11 13:26:34 -07:00
Samael Wang 70b282bfef Bug 1401522 - Don't apply statusCode sent from parent if mCanceled or mStatus has been modified in the child. r=mayhemer
When a WyciwygChannel is canceled, but WyciwygChannelParent::RecvCancel happens
after WyciwygChannelParent::SendOnStartRequest, it would send statusCode=NS_OK
to WyciwygChannelChild::OnStartRequest. So we should not apply the statusCode
if mCanceled, just like how HttpChannelChild handles it.

MozReview-Commit-ID: 5H3PUrlArIA

--HG--
extra : rebase_source : 9e8b034d293dc50d126327dc6452e95335e35ae6
2017-09-28 11:16:53 +08:00
Valentin Gosu e553e05838 Bug 1407540 - Allow MozURL to be constructed with a base URL r=mayhemer
MozReview-Commit-ID: Fg2aDJPhwQO

--HG--
extra : rebase_source : 47294abc8cd339143c1deaac0dc3449602fe53f1
2017-10-11 12:18:28 +02:00
Sebastian Hengst 044775ad49 merge mozilla-central to mozilla-inbound. r=merge a=merge 2017-10-11 00:01:28 +02:00
evilpies@gmail.com 06beef32ba Bug 1305237 LoadInfo changes to include all ancestors principals and window IDs, r=bz,mystor
MozReview-Commit-ID: 1IMi5MqTx7o

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

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

- GeckoProfiler.h can be #included unconditionally;

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

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

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

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

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

MozReview-Commit-ID: 91U22X2NydP

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

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

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

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

MozReview-Commit-ID: HrXpPsO0rQd

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

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

--HG--
extra : rebase_source : 5cb3ed5da7f99defd524247ff798c9c501ef851a
2017-09-28 17:47:43 -05:00
Ben Kelly fae6da18dd Bug 1407186 P2 Test that we reset the interception if ChannelIntercepted() returns an error. r=asuth 2017-10-11 11:23:46 -07:00
Ben Kelly 7e75d68ef3 Bug 1407186 P1 Fix InterceptedHttpChannel::AsyncOpen() error handling. r=asuth 2017-10-11 11:23:46 -07:00
Honza Bambas 62eaa517f9 Bug 1401538 - Drop mTimerScheduledAt at RequestContext::CancelTailedRequest when tail queue is empty. r=kershaw 2017-10-10 06:34:00 -04:00
Alex Gaynor b0f90f5b09 Bug 1406997 - Fix a comment typo in HttpChannelParent.cpp. r=billm
MozReview-Commit-ID: 7RoCfaOXf3C

--HG--
extra : rebase_source : 757bcd4f11b0426b1ba056550bd534377d56fc91
2017-10-11 10:13:56 -04:00
Junior Hsu db2853b001 Bug 870460 - Part 2: Close syncconn for edge cases. r=nwgh 2017-10-09 00:19:00 -04:00
Junior Hsu b92cc07390 Bug 870460 - Part 1: Let cookie db startup-read off-main-thread. r=nwgh, r=jdm, data-r=francois 2017-08-29 18:16:27 +08:00
Randell Jesup dd84234b15 Bug 1400563: clean up SCTP shutdown r=drno 2017-10-11 00:40:21 -04:00
Ben Kelly 0279ba6a21 Bug 1407225 Make InterceptedHttpChannel abort if the channel has been canceled during a redirect. r=asuth 2017-10-10 08:45:54 -07:00
Sebastian Hengst 99c7358944 Backed out changeset 0e5484914609 (bug 1395202) for build bustage at netwerk/protocol/http/HttpChannelParent.cpp:1523: 'class mozilla::net::HttpBaseChannel' has no member named 'GetCacheEntryId'. r=backout on a CLOSED TREE 2017-10-10 15:43:13 +02:00
Sebastian Hengst b6ccfad07b Backed out changeset 92e3c67a3872 (bug 1395202) 2017-10-10 15:42:13 +02:00
Sebastian Hengst 44b9915533 Backed out changeset 7598b4ed02f6 (bug 1395202) 2017-10-10 15:42:07 +02:00
Mike Hommey 3af63f59c0 Bug 1403366 - When NS_XPCOM_INIT_CURRENT_PROCESS_DIR is not already set, fallback to BinaryPath's parent. r=froydnj
The Windows and OSX code paths were essentially doing the same thing,
and the Unix fallback was using an old convention that is pretty much
outdated.

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

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

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

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

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

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

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

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

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

--HG--
extra : rebase_source : 50a329318a2424bc5679a2e026e755271214224a
2017-09-30 08:49:28 +09:00
Sebastian Hengst e8e914baa7 Backed out changeset c033bdb24e14 (bug 1371699) 2017-10-03 16:55:02 +02:00
Michal Novotny a60970a6a1 Bug 1403010 - Crash due to race condition in CacheFileMetadata::SizeOfExcludingThis when reading or writing metadata, r=valentin 2017-10-03 16:49:39 +02:00
Michal Novotny d3a3055806 Bug 1401224 - Do not call aWriter with no data in CacheFileInputStream::ReadSegments, r=valentin 2017-10-03 16:48:16 +02:00
Amy Chung 3eec3617b1 Bug 1399590 - Modify the argument of nsICookiePermission::CanAccess for changing nsIURI to nsIPrincipal. r=jdm 2017-10-03 14:37:11 +08:00
Sebastian Hengst 92986dd48f merge mozilla-central to mozilla-inbound. r=merge a=merge 2017-10-03 11:46:17 +02:00
Andrea Marchesini ff3b280260 Bug 1371699 - Use of NonBlockingAsyncInputStream in our code base, r=froydnj 2017-10-03 07:20:18 +02:00
Wes Kocher 7c7aca4ea6 Backed out 2 changesets (bug 1305237) for crashtest failures in 403574-1.xhtml and 1282985-1.svg a=backout
Backed out changeset 96b5d596cc27 (bug 1305237)
Backed out changeset 5fe72402746f (bug 1305237)

MozReview-Commit-ID: CjCWY73Hps1

--HG--
extra : rebase_source : 7a9f0893dabdb0cb6ea79cc9cb7169ceed14616f
2017-10-02 16:41:56 -07:00
evilpies@gmail.com af192f668f Bug 1305237 LoadInfo changes to include all ancestors principals and window IDs, r=bz
MozReview-Commit-ID: ADVtxjSQjk5

--HG--
extra : rebase_source : 6e0ddf49328d7ae71937b7bbe5e5bea736c49bef
2017-10-02 11:05:33 -07:00
Wes Kocher 6b7e085c86 Backed out 2 changesets (bug 1305237) for bc failures in browser_WebRequest_ancestors.js a=backout
Backed out changeset 163a2b0bb0a0 (bug 1305237)
Backed out changeset e05bab140564 (bug 1305237)

MozReview-Commit-ID: GLlbWYZqyVS
2017-10-02 13:35:03 -07:00
evilpies@gmail.com 8d8e27a06f Bug 1305237 LoadInfo changes to include all ancestors principals and window IDs, r=bz
MozReview-Commit-ID: ADVtxjSQjk5

--HG--
extra : rebase_source : 6e0ddf49328d7ae71937b7bbe5e5bea736c49bef
2017-10-02 11:05:33 -07:00
Honza Bambas 094d78b20f Bug 1403998 - Make view-source channels return correct resultPrincipalURI via LoadInfo after redirect. r=bz
--HG--
extra : rebase_source : 8564111630c4a32a098721121a2e52d46e98e616
2017-10-02 10:12:00 -04:00
Wes Kocher 1674eb3e4f Merge inbound to m-c a=merge
MozReview-Commit-ID: 7zOjePOWzOM
2017-09-28 16:56:44 -07:00
Wes Kocher 2c04ebdaa3 Merge autoland to central, a=merge
MozReview-Commit-ID: LTZmzqpIUXI
2017-09-28 15:49:14 -07:00
Ryan VanderMeulen 2ccfaf0697 Backed out changesets d0d30a90efa1 and fd1d81b93380 (bug 1305237) for causing bug 1403932. 2017-09-28 17:55:43 -04:00
Wes Kocher 61c098eae7 Merge inbound to m-c a=merge CLOSED TREE
MozReview-Commit-ID: 3pMHYV9oXLm

--HG--
rename : dom/base/nsReferencedElement.cpp => dom/base/IDTracker.cpp
rename : dom/base/nsReferencedElement.h => dom/base/IDTracker.h
2017-09-27 16:51:49 -07:00
evilpies@gmail.com 95cfc510a9 Bug 1305237 LoadInfo changes to include all ancestors principals and window IDs, r=bz
MozReview-Commit-ID: JdOjc7Ihhv

--HG--
extra : rebase_source : 82ac220ad4cb39536014d5732b4731f0889dafa6
2017-09-25 12:12:47 -07:00
hanbinchang f33b2dcc82 Bug 1386168 - Remove nsIOservice::mProxyService. r=bagder 2017-08-04 00:09:11 -04:00
Kershaw Chang 36e139a775 Bug 1401863 - Handle the case when gNeckoChild is null properly in RequestContext::BeginLoad. r=mayhemer
In child process, during shutdown, it's possible that IsNeckoChild() is true but gNeckoChild is null. When this case happens, it is necessary to return early in RequestContext::BeginLoad to avoid modifying mAfterDOMContentLoaded.
2017-09-26 19:30:00 -04:00
Jonathan Kew cb611a9aff Bug 1370497 - Check ScriptExtensions property of combining marks when available. r=valentin 2017-09-27 11:16:35 +01:00
Chris Peterson c4dff4f83d Bug 1402666 - Part 3: Replace Replace(NS_LITERAL_STRING("")) with ReplaceLiteral(u""). r=erahm
MozReview-Commit-ID: Ji6UdG32RF4

--HG--
extra : rebase_source : 1565a1e99f40785dad0d0d7652e42222dcdf8881
extra : source : c57e906ba75fda4745134ef8307589e28f4c8d70
2017-09-15 19:32:55 -07:00
Chris Peterson 14c40f3dac Bug 1402666 - Part 1: Replace Replace("") with ReplaceLiteral(""). r=erahm
MozReview-Commit-ID: s2hrTSkBiJ

--HG--
extra : rebase_source : d3b3551ed7ed1d5c8f70fc98d72510a13868ada1
extra : source : 1c45e10702e7884cd536a25b1d39c3de90fd2914
2017-09-15 19:22:58 -07:00
Wes Kocher a341b32d06 Merge autoland to central, a=merge
MozReview-Commit-ID: 8B7y2ULc04
2017-09-26 17:11:14 -07:00
Haik Aftandilian 09191cce06 Bug 1402205 - Non-existent background page blocks extension startup. r=kmag
Add calls to OnStartRequest() and OnStopRequest() to properly handle async
read failures for remote JAR's and remote unpacked extension resources.

MozReview-Commit-ID: Dcg0LDht9B9

--HG--
extra : rebase_source : fef29e1601c1a53d3b7ff3a9d96450b3ab8fe003
2017-09-25 15:48:40 -07:00
Johann Hofmann a98b34501b Bug 1379560 - Part 1 - Add a default permission pref in the permission manager. r=mystor,Paolo
This patch enables support for setting prefs with the pattern
permissions.default.* to provide a custom default permission
for arbitrary permission types in nsPermissionManager.

The previous default of UNKNOWN_ACTION is honored if no pref is set.

A default value is provided if no permission entry can be found in the db.
Accordingly, the patch does not affect the behavior of functions
that return permission objects from the db such as GetPermissionObject,
which returns null if no entry was found.

MozReview-Commit-ID: 3JECI6kXqGf

--HG--
extra : rebase_source : 9fbcfc740a85c02cf4245956e69ae13c8f90b5ab
2017-07-10 23:13:43 +02:00