Commit Graph

15137 Commits

Author SHA1 Message Date
Gerald Squelart
7dbe315e25 Bug 1398999 - nsDequeFunctor::operator() doesn't need to return anything - r=froydnj
Its return value is never used, and most implementations return nullptr anyway.

MozReview-Commit-ID: 8rxC053mmE8

--HG--
extra : rebase_source : 61a0b8b1373396182efd27d3c01b96e5e5541364
2017-02-09 14:06:36 +11:00
Sebastian Hengst
ecf716b8bb merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: CmMBcpJapLy
2017-09-12 11:35:15 +02:00
Shih-Chiang Chien
62201fde42 Bug 1397880 - Cancel tailing timer during shutdown. r=nwgh,valentin
RequestContextService will cancel all the blocked tail requests during xpcom-shutdown.
However, the timer for unblocking tail request might be already running.
RequestContext need to cancel the timer when all blocked tail request is canceled for that context.

MozReview-Commit-ID: 1Nbzu2a788w

--HG--
extra : rebase_source : 6a68310ab7984eb3ceebd089a1e36232b5f0a72b
2017-09-08 12:05:41 +08:00
Bill McCloskey
47a8d9cfd8 Bug 1398420 - Don't use SystemGroup for CookieServiceChild (r=jdm)
I noticed a bug where the following can happen. The parent sends a
TrackCookiesLoad message followed by an HTTP OnStartRequest
message. When these messages are received in the child, the
TrackCookiesLoad message goes in the SystemGroup event queue and the
OnStartRequest message goes in the event queue for the relevant
tab. Unfortunately, this means that the OnStartRequest message could
run first since the queues have no guaranteed ordering.

We really should be putting the TrackCookiesLoad message in the same
queue that the OnStartRequest message goes in. I worked on that a
little bit, but it's hard to get right. For now, I would like to leave
the cookie message unlabeled. Any unlabeled message/event is totally
ordered with respect to all other messages/events, so this fixes the
bug.

MozReview-Commit-ID: KiLDAhlrbB8
2017-09-11 19:11:05 -07:00
Eric Rahm
80d3d41e39 Bug 1396958 - Make eTLD cache thread-safe. r=valentin
Restrict the MRU cache for eTLD lookups to main thread only. This allows off
main thread lookups, but they will just take a slower path.

--HG--
extra : rebase_source : bb0676fc1be9dc6e02762a978b43765d79dcdfff
2017-09-05 12:26:51 -07:00
Michal Novotny
b72d4051c5 Bug 1398941 - test_race_cache_with_network.js test is failing after landing bug 1398847, r=KWierso, CLOSED TREE 2017-09-11 23:37:36 +02:00
Michal Novotny
1917b04633 Bug 1398941 - test_race_cache_with_network.js test is failing after landing bug 1398847, r=KWierso, CLOSED TREE 2017-09-11 23:31:58 +02:00
Michal Novotny
c6167ee19b Bug 1398847 - Enabling RCWN causes tp6_facebook regression, r=valentin
For some reason, triggering network directly from MaybeRaceCacheWithNetwork() causes performance regression of tp6_facebook tests. This patch changes it so that an event is posted instead.
The patch also adds network.http.rcwn.min_wait_before_racing_ms preference which can be used by users to avoid immediate racing.
2017-09-11 22:16:13 +02:00
Kris Maglione
3038436c69 Bug 1398646: Forbid sync DNS resolution on the main thread. r=valentin
MozReview-Commit-ID: A6mUDNSri2m

--HG--
extra : rebase_source : 86a8b83bdbb7f58dc9d2e80cc4afcbc011999cf3
2017-09-10 19:13:42 -07:00
Sebastian Hengst
261dd76eb6 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: ACCqbunIDpp
2017-09-09 11:44:38 +02:00
Honza Bambas
43860c7a61 Bug 910207 - Prevent client certificate pop-up coming from a speculative connection, r=dkeeler
MozReview-Commit-ID: IHKzHwsJUiQ
2017-09-01 10:42:00 +02:00
Sebastian Hengst
a94fa43e25 Backed out changeset 9c00078ce6ab (bug 910207) for eslint failure at browser/base/content/test/urlbar/browser_urlbar_search_no_speculative_connect_with_client_cert.js:48: Expected method shorthand. r=backout 2017-09-08 20:42:07 +02:00
Honza Bambas
c307957a65 Bug 910207 - Prevent client certificate pop-up coming from a speculative connection, r=dkeeler
MozReview-Commit-ID: CtNPV9kFqJM
2017-09-01 10:42:00 +02:00
Andrea Marchesini
3ccb9d2674 Bug 1397635 - Support for non-seekable stream in HTTP connection, r=bagder 2017-09-08 16:06:26 +02:00
Andrea Marchesini
d8c84ef602 Bug 1397627 - nsIAsyncFileMetadata interface, r=asuth 2017-09-08 16:06:26 +02:00
Wes Kocher
b5fe3d1dc7 Merge m-c to autoland, a=merge
MozReview-Commit-ID: zTrDLmRmnn
2017-09-08 13:42:01 -07:00
Andrew McCreight
614d92ab8f Bug 1186409 - Fix code that tries to get the global by using |this|. r=kmag
MozReview-Commit-ID: C5ixngtvzWU

--HG--
extra : rebase_source : 65507b2d1f58a8f1f1e36e2153ed1d490f4a86dc
2017-05-25 14:12:12 -07:00
Kris Maglione
058f9fb930 Bug 1255894: Part 10 - Move StreamFilterParent to necko child process. r=billm,dragana
MozReview-Commit-ID: 4JKUC7x3QgN

--HG--
extra : rebase_source : ec1bcdc9d89b264df65b0ec1096921a4fc105f30
2017-09-07 17:28:27 -07:00
Valentin Gosu
df4b6f9baf Bug 1395938 - Prevent crash when we are missing an IOThread during shutdown r=michal
MozReview-Commit-ID: 4iuMoHMTzia
2017-09-07 15:15:25 +02:00
Kris Maglione
c79059605f Bug 1396856: Part 2 - Add top outer window ID to LoadInfo. r=ehsan
The WebRequest API needs to know if a given window ID is at the top level, for
various reasons. It currently figures this out by mapping a channel's load
context to a <browser> element, which tracks its current top outer window ID.
But this is inefficient, and not friendly to C++ callers.

Adding the top window ID to the load info simplifies things considerably.

MozReview-Commit-ID: Fy0gxTqQZMZ

--HG--
extra : rebase_source : bb5b1e1b3294004ca5e713fc88c4e20652296e53
2017-09-06 14:25:23 -07:00
Ionut Goldan
6d6c0e9e6d Bug 1394785 - ignore unstable osx gtest r=jmaher
MozReview-Commit-ID: L1dZJpDL9Ir

--HG--
extra : rebase_source : 058a4f7f7f31648e131551206bca05ea93b262ac
2017-09-06 10:47:40 +03:00
Kris Maglione
c86bc6b1ea Bug 1396676: Return already_AddRefed from cookie service GetSingleton() methods. r=jdm
These methods return an addrefed raw pointer, which makes them easy to use in
ways that cause leaks. If they're to continue returning an addrefed pointer,
they should explicitly return an already_AddRefed.

This also switches to StaticRefPtr with ClearOnShutdown for the cached
pointers for the sake of sanity.

MozReview-Commit-ID: D0lDpU8Hqug

--HG--
extra : rebase_source : 7b199070805fc0472eaf8409932517700ed23d49
2017-09-04 15:05:10 -07:00
Ethan
d20c7d929c Bug 1393283 - Use the last ESR version as the spoofed Firefox version. r=tihuang, r=mcmanus 2017-09-01 17:29:44 +08:00
Christoph Kerschbaumer
1b8c06e845 Bug 1331740: Pass correct context for TYPE_DOCUMENT loads within docshell. r=smaug 2017-09-05 18:01:07 +02:00
Sebastian Hengst
a17af05f6f merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: L5exd68pNSG
2017-09-05 11:40:49 +02:00
Liang-Heng Chen
e358e0156e Bug 1395856 - add warning and assertion to detect intermittent failure; r=bagder
MozReview-Commit-ID: 1lZVLdHF2tC

--HG--
extra : rebase_source : b97c89b9ecae9a9f2c0d2d4c59b2b31c0eef859d
2017-09-04 17:17:44 +08:00
Haik Aftandilian
760abe9af4 Bug 1395898 - Awesome Screenshot webextension does not work. r=jimm
Fix ExtensionProtocolHandler::GetAsync() to handle failures returned
from AsyncOpen2() for cached JAR resources.

Don't call SetupEventTarget() in the cached JAR ExtensionStreamGetter
constructor because the event target is not needed and calling
SetupEventTarget() triggers a debug mode warning from
nsContentUtils::GetEventTargetByLoadInfo().

MozReview-Commit-ID: KjDsPNQWlwU

--HG--
extra : rebase_source : d44e8a1cdf358f364156a3dc2ac6a428b57d5e32
2017-09-02 21:56:07 -07:00
Kershaw Chang
e8dd9540ef Bug 1395472 - Don't move background transactions' streams to background group when the pref is off. r=hurley 2017-09-03 23:55:00 -04:00
Valentin Gosu
fef5affcba Bug 1395938 - Cancel RequestContext::RequestContext on shutdown r=michal
This patch calls CancelTailPendingRequests(NS_ERROR_ABORT) for every RequestContext at shutdown, then prevents the creation of any more RequestContexts.

MozReview-Commit-ID: BbJDL7Np8HW

--HG--
extra : rebase_source : d144e3b09d9725fbc7df169f1c9a49bf45ddfd54
2017-09-03 13:12:30 +03:00
Henri Sivonen
d2b0cdbc9c Bug 1395527 part 2 - Delegate IsASCII and IsUTF8 to encoding_rs. r=froydnj
MozReview-Commit-ID: 49AGBPjW4Ca

--HG--
extra : rebase_source : 78dc1b549c97e5e4fb0dc625acdab23806b3e941
2017-09-01 11:53:31 +03:00
Honza Bambas
1d0de9b6b3 Bug 1394369 - Add calling script name + line LOG to HttpChannelChild::AsyncOpen. r=mcmanus 2017-08-28 04:09:00 -04:00
Honza Bambas
9dd6d67e45 Bug 1395884 - Remove potential timer race and assertion in RequestContext tailing feature, r=dragana 2017-09-01 13:00:12 +02:00
Andrea Marchesini
74a5faef65 Bug 1395140 - Implement "http-on-stop-request" notification, r=mayhemer 2017-09-01 11:55:37 +02:00
Kris Maglione
6bad4f8ef7 Bug 1366511: Part 3 - Add mozilla::ToResult() to convert other result types to equivalent Result. r=nbp,ehsan
Also adds a mozilla/ResultExtensions.h header to define the appropriate
conversion functions for nsresult and PRResult. This is in a separate header
since those types are not available in Spidermonkey, and this is the pattern
other *Extensions.h headers follow.

Also removes equivalent NS_TRY macros and WrapNSResult inlines that served the
same purpose in existing code, and are no longer necessary.

MozReview-Commit-ID: A85PCAeyWhx

--HG--
extra : rebase_source : a5988ff770888f901dd0798e7717bcf6254460cd
2017-08-29 21:28:31 -07:00
Kris Maglione
c9899cb3fa Bug 1366511: Part 2 - Allow autoconverting Err(nsresult) to nsresult. r=ehsan,nbp
This allows MOZ_TRY and MOZ_TRY_VAR to be transparently used in XPCOM methods
when compatible Result types are used.

Also removes a compatibility macro in SimpleChannel.cpp, and an identical
specialization in AddonManagerStartup, which are no longer necessary after
this change.

MozReview-Commit-ID: 94iNrPDJEnN

--HG--
extra : rebase_source : 24ad4a54cbd170eb04ded21794530e56b1dfbd82
2017-08-29 21:28:22 -07:00
Honza Bambas
8d492fe637 Bug 1395525 - Make all changes landed as part of tracker request tailing preferrable. r=dragana 2017-08-31 06:07:00 -04:00
Michal Novotny
a78130ade8 Bug 1384478 - browser/base/content/test/general/browser_save_video.js fails when we enable rcwn, r=honzab 2017-08-31 19:26:13 +02:00
Wes Kocher
ef3d37e889 Merge m-c to inbound a=merge
MozReview-Commit-ID: 3rHXXSEcJ6k
2017-08-30 19:58:40 -07:00
Wes Kocher
940bdbc699 Merge autoland to central, a=merge
MozReview-Commit-ID: Jz9iBkuBrpV
2017-08-30 19:52:39 -07:00
Michal Novotny
c53ca61bdf Bug 1395121 - NS_NOTREACHED("mListener is null") in nsHttpChannel::OnStartRequest, r=valentin 2017-08-30 16:38:31 +02:00
Kershaw Chang
567b0d202a Bug 1377208 - Move background h2 stream into background group. r=hurley 2017-08-30 02:19:00 -04:00
Sajjad Arshad
f9ecfce269 Bug 1391506 - Creating max version, fallback limit, and alt server hello flag values for the tlsFlags r=keeler
Additional-Author: Patrick McManus <mcmanus@ducksong.com>

MozReview-Commit-ID: AmsvDtvDGPt

--HG--
extra : rebase_source : fc537ef1a50db23b9e77cd48d3941d7e32228bec
2017-08-29 09:04:08 -04:00
Sebastian Hengst
2a9cc8e3be merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: BQuBmVtsdki
2017-08-29 20:30:41 +02:00
Wes Kocher
d03d9bee49 Merge m-c to inbound, a=merge
MozReview-Commit-ID: BJmeuDcuHke
2017-08-28 17:45:07 -07:00
Kershaw Chang
5bb493a802 Bug 1393736 - Include urgent start group for counting prioritySize. r=hurley 2017-08-27 23:11:00 -04:00
Henri Sivonen
30ebfb2e95 Bug 1385836 - Remove special cases obsoleted by "replacement" becoming a label of the replacement encoding. r=emk
MozReview-Commit-ID: 52uO6AVRHWX

--HG--
extra : rebase_source : de5bef4768724c68bc938f9456f906554b6290d1
2017-08-28 12:57:17 +03:00
Tom Ritter
c756f0c92e Bug 1393795 Lowercase includes so WebRTC compiles with MinGW r=jesup
This edits the third party SCTP library, but upstream has already applied this change to master

MozReview-Commit-ID: ERpMc8EvYZ7

--HG--
extra : rebase_source : cea0d3758275b73a395ad2738edd8eb57c833e1a
2017-08-25 14:04:36 -05:00
Wes Kocher
7ea5ed6e6a Merge m-c to autoland, a=merge
MozReview-Commit-ID: LEKykpTAKjv
2017-08-25 17:32:33 -07:00
Tom Ritter
f1a3d26f61 Bug 1392641 Check return value for functions declared with warn_unused_result r=bagder,nwgh
MozReview-Commit-ID: BJj3Lvtntd6

--HG--
extra : rebase_source : 1776aab1d6de123323dc034d11b24a6c7b9d7ea1
2017-08-25 14:37:44 -05:00
Tom Ritter
d06bc69178 Bug 1392642 Remove unused variables in netwerk/ to silence warnings r=bagder,nwgh
MozReview-Commit-ID: LLTB5RJ4ZMz

--HG--
extra : rebase_source : 26a94bce6e9a3f22542d04e9930ff74eddd1f7ca
2017-08-24 12:03:19 -05:00