Sean
944abb3335
Bug 1895232 - Convert do_GetService to using components::*::service in netwerk/ r=valentin,cookie-reviewers,places-reviewers
...
Differential Revision: https://phabricator.services.mozilla.com/D209747
2024-05-30 21:18:43 +00:00
Iulian Moraru
82b68bb040
Backed out changeset 9a295c851c2e (bug 1895232) for causing multiple failures. CLOSED TREE
2024-05-22 21:03:20 +03:00
Sean
f1a6b31988
Bug 1895232 - Convert do_GetService to using components::*::service in netwerk/ r=valentin,cookie-reviewers,places-reviewers
...
Differential Revision: https://phabricator.services.mozilla.com/D209747
2024-05-22 17:13:29 +00:00
Andrew Creskey
5e0eb3e1c7
Bug 1816258 - Websocket opening takes ages after repeated failures to same address r=necko-reviewers,valentin
...
Although our implementation follows the intention of rfc6455#section-4.1, we can handle the described situation more gracefully by prioritizing new WS connections to paths that have _not_ previously failed.
Differential Revision: https://phabricator.services.mozilla.com/D193386
2023-11-23 19:55:53 +00:00
Narcis Beleuzu
2ae28d90d5
Backed out 2 changesets (bug 1816258) for bustages on WebSocketChannel.cpp . CLOSED TREE
...
Backed out changeset 872aa271adfd (bug 1816258)
Backed out changeset 8e259edabb62 (bug 1816258)
2023-11-23 19:14:52 +02:00
Andrew Creskey
870cacb2fb
Bug 1816258 - Websocket opening takes ages after repeated failures to same address r=necko-reviewers,valentin
...
Although our implementation follows the intention of rfc6455#section-4.1, we can handle the described situation more gracefully by prioritizing new WS connections to paths that have _not_ previously failed.
Differential Revision: https://phabricator.services.mozilla.com/D193386
2023-11-23 15:54:31 +00:00
Narcis Beleuzu
1c7447b79b
Backed out 2 changesets (bug 1816258) for bc failure on browser_staticPartition_websocket.js . CLOSED TREE
...
Backed out changeset 27bfc748bec2 (bug 1816258)
Backed out changeset dee1e05a2cca (bug 1816258)
2023-11-15 22:12:52 +02:00
Andrew Creskey
fefa35f81e
Bug 1816258 - Websocket opening takes ages after repeated failures to same address r=necko-reviewers,valentin
...
Although our implementation follows the intention of rfc6455#section-4.1, we can handle the described situation more gracefully by prioritizing new WS connections to paths that have _not_ previously failed.
Differential Revision: https://phabricator.services.mozilla.com/D193386
2023-11-15 12:10:03 +00:00
Gregory Pappas
eb2335f8ed
Bug 1052909 - Remove network.websocket.auto-follow-http-redirects pref r=necko-reviewers,kershaw
...
Differential Revision: https://phabricator.services.mozilla.com/D189875
2023-10-04 16:21:45 +00:00
Peter Van der Beken
0fd890a605
Bug 1690111 - Improve nsIRandomGenerator APIs. r=mccr8,necko-reviewers,kershaw
...
Differential Revision: https://phabricator.services.mozilla.com/D185067
2023-09-20 09:41:58 +00:00
Cosmin Sabou
c3effd7450
Backed out 13 changesets (bug 1690111) for causing fetch related crashes.
...
Backed out changeset 5f2c25d194ad (bug 1690111)
Backed out changeset 76c408bcd053 (bug 1690111)
Backed out changeset 6d0649fdafff (bug 1690111)
Backed out changeset c1330b5e8c43 (bug 1690111)
Backed out changeset 5fa36d8fd2a5 (bug 1690111)
Backed out changeset daf7d747853a (bug 1690111)
Backed out changeset f70e09a7f5c6 (bug 1690111)
Backed out changeset 40c6d6eed7f8 (bug 1690111)
Backed out changeset 692f2a759573 (bug 1690111)
Backed out changeset 7140866dd9f6 (bug 1690111)
Backed out changeset 2865fe682139 (bug 1690111)
Backed out changeset 9dcd2416f8a5 (bug 1690111)
Backed out changeset 9c411bf84079 (bug 1690111)
2023-09-11 17:55:24 +03:00
Peter Van der Beken
00c102bdb2
Bug 1690111 - Improve nsIRandomGenerator APIs. r=mccr8,necko-reviewers,kershaw
...
Differential Revision: https://phabricator.services.mozilla.com/D185067
2023-09-11 12:52:18 +00:00
Randell Jesup
778ad2ecdc
Bug 1845205: Add locking around access to WebSocketChannel::mPMCECompressor r=kershaw,necko-reviewers
...
Differential Revision: https://phabricator.services.mozilla.com/D184868
2023-07-31 18:59:45 +00:00
Randell Jesup
96e81c1fd4
Bug 1846080: WebSocket cleanup r=kershaw,necko-reviewers
...
Differential Revision: https://phabricator.services.mozilla.com/D184828
2023-07-31 18:59:45 +00:00
Paul Zuehlcke
bfeb83519e
Bug 1826293 - Remove pref privacy.partition.network_state.ws_connection_queue. r=hpeuckmann,necko-reviewers,valentin
...
Differential Revision: https://phabricator.services.mozilla.com/D174611
2023-04-04 13:32:34 +00:00
Nika Layzell
3652956b7b
Bug 1809753 - Part 4: Remove unnecessary GetMainThreadEventTarget, r=mccr8
...
This method always returned GetMainThreadSerialEventTarget(). This patch
switches all callers over to use that method instead.
We can't easily switch all calls to be calls to NS_GetMainThread(), as there is
no version of that method returning a bare nsIThread* instance.
I didn't introduce one, as we may want to add a lock around mMainThread in the
future, which would require removing nsThreadManager::GetMainThreadWeak. As
this method only returns nsISerialEventTarget, it method could remain
implemented, however, by returning a statically allocated fake event target
which forwards dispatches (and QIs to nsIThread) to the real main thread.
Differential Revision: https://phabricator.services.mozilla.com/D166608
2023-01-16 23:14:12 +00:00
Sandor Molnar
f236c54e45
Backed out 6 changesets (bug 1809752, bug 1809753) for causing perma failures in browser/components/firefoxview/tests/browser/browser_feature_callout_position.js
...
Backed out changeset ea05784d74c4 (bug 1809753)
Backed out changeset 7c9b20eebcc8 (bug 1809753)
Backed out changeset d0267ac2256d (bug 1809753)
Backed out changeset aa9f2971bd6f (bug 1809753)
Backed out changeset f0d9fcfaa6f8 (bug 1809752)
Backed out changeset 6d58c799cffe (bug 1809752)
2023-01-17 03:19:24 +02:00
Nika Layzell
d61ced88a2
Bug 1809753 - Part 4: Remove unnecessary GetMainThreadEventTarget, r=mccr8
...
This method always returned GetMainThreadSerialEventTarget(). This patch
switches all callers over to use that method instead.
We can't easily switch all calls to be calls to NS_GetMainThread(), as there is
no version of that method returning a bare nsIThread* instance.
I didn't introduce one, as we may want to add a lock around mMainThread in the
future, which would require removing nsThreadManager::GetMainThreadWeak. As
this method only returns nsISerialEventTarget, it method could remain
implemented, however, by returning a statically allocated fake event target
which forwards dispatches (and QIs to nsIThread) to the real main thread.
Differential Revision: https://phabricator.services.mozilla.com/D166608
2023-01-16 23:14:12 +00:00
Tyler Paplham
56d16598ca
Bug 1805885 - Removed unnecessary functions NS_MaybeOpenChannelUsingOpen() and NS_MaybeOpenChannelUsingAsyncOpen(). Also refactored callers of these functions to not use them. r=valentin,necko-reviewers
...
Differential Revision: https://phabricator.services.mozilla.com/D166118
2023-01-08 20:58:54 +00:00
Kershaw Chang
f72ff1eb29
Bug 1807004 - Make WebSocketChannel::OnInputStreamReady always be called on IO thread, r=necko-reviewers,valentin
...
Since we passed a null target to `AsyncWait`, the [inputstream callback could be called directly](https://searchfox.org/mozilla-central/rev/7eca06dd4c5e4dfd6764a382569c841c05a0857d/xpcom/io/nsPipe3.cpp#118 ) on main thread. To avoid `WebSocketChannel::OnInputStreamReady` being called on main thread, we should pass `mIOThread` to `AsyncWait`.
Differential Revision: https://phabricator.services.mozilla.com/D165833
2023-01-03 09:20:51 +00:00
Valentin Gosu
1b16c04546
Bug 1596845 - Turn nsIDNSService dns flags into a cenum r=necko-reviewers,geckoview-reviewers,kershaw,m_kato
...
This allows us to use a consistent size for the dnsFlags field.
across different files (previously some would use uint16_t and some uint32_t).
It also improves type safety - making sure we don't pass in the wrong value
to DNSFlags.
Depends on D164856
Differential Revision: https://phabricator.services.mozilla.com/D164857
2022-12-23 09:26:17 +00:00
Marian-Vasile Laza
6fb0160a69
Backed out 9 changesets (bug 1596845) for causing xpcshell failures on test_trr_enterprise_policy.js. CLOSED TREE
...
Backed out changeset 231acfc052bb (bug 1596845 )
Backed out changeset 7d02dad4d720 (bug 1596845 )
Backed out changeset b0449eec2671 (bug 1596845 )
Backed out changeset 5cd033c9ef7c (bug 1596845 )
Backed out changeset 98d583f1d19e (bug 1596845 )
Backed out changeset b78bc0049605 (bug 1596845 )
Backed out changeset 88919aaff89b (bug 1596845 )
Backed out changeset f4adb3e7b8e1 (bug 1596845 )
Backed out changeset b171f7ac0b40 (bug 1596845 )
2022-12-23 09:21:39 +02:00
Valentin Gosu
a6382d6270
Bug 1596845 - Turn nsIDNSService dns flags into a cenum r=necko-reviewers,geckoview-reviewers,kershaw,m_kato
...
This allows us to use a consistent size for the dnsFlags field.
across different files (previously some would use uint16_t and some uint32_t).
It also improves type safety - making sure we don't pass in the wrong value
to DNSFlags.
Depends on D164856
Differential Revision: https://phabricator.services.mozilla.com/D164857
2022-12-23 01:20:04 +00:00
Sandor Molnar
a10fcf6c07
Backed out 9 changesets (bug 1596845) for causing mochitest failures in browser/base/content/test/about/browser_aboutCertError_telemetry.js
...
Backed out changeset eb1e34c3041f (bug 1596845 )
Backed out changeset af6d41439c60 (bug 1596845 )
Backed out changeset f1447dd8df04 (bug 1596845 )
Backed out changeset a383f2bbcaae (bug 1596845 )
Backed out changeset 950c66dd6133 (bug 1596845 )
Backed out changeset ab300239fd69 (bug 1596845 )
Backed out changeset 8e1fe024b680 (bug 1596845 )
Backed out changeset 80e5048d1f35 (bug 1596845 )
Backed out changeset b14a4910d73b (bug 1596845 )
2022-12-23 00:56:35 +02:00
Valentin Gosu
e9b2bc4088
Bug 1596845 - Turn nsIDNSService dns flags into a cenum r=necko-reviewers,geckoview-reviewers,kershaw,m_kato
...
This allows us to use a consistent size for the dnsFlags field.
across different files (previously some would use uint16_t and some uint32_t).
It also improves type safety - making sure we don't pass in the wrong value
to DNSFlags.
Depends on D164856
Differential Revision: https://phabricator.services.mozilla.com/D164857
2022-12-22 21:16:07 +00:00
Kershaw Chang
8a1d81925f
Bug 1767298 - Make the behavior of TLSTransportLayer more like SocketTransport, r=necko-reviewers,valentin
...
Differential Revision: https://phabricator.services.mozilla.com/D163438
2022-12-14 09:56:49 +00:00
edgul
a3b1872adb
Bug 1772213 - Refactored websockets to use Http2StreamTunnel for websocket over http2. r=kershaw,necko-reviewers
...
Differential Revision: https://phabricator.services.mozilla.com/D159541
2022-12-01 14:37:27 +00:00
Olli Pettay
03bb69a479
Bug 1801315, move some generic code to the baseclass, r=jesup,necko-reviewers
...
Differential Revision: https://phabricator.services.mozilla.com/D162423
2022-11-22 10:17:51 +00:00
Dana Keeler
41b8e4ba29
Bug 1791633 - rename nsISSLSocketControl to nsITLSSocketControl and move it and nsITransportSecurityInfo to PSM r=necko-reviewers,kershaw
...
Depends on D160310
Differential Revision: https://phabricator.services.mozilla.com/D160311
2022-11-16 16:37:29 +00:00
Marian-Vasile Laza
f986221d71
Backed out 3 changesets (bug 1791633) for causing bustages on TransportSecurityInfo.cpp. CLOSED TREE
...
Backed out changeset 23b864e14db0 (bug 1791633)
Backed out changeset 0bcba3375ec0 (bug 1791633)
Backed out changeset ab0ea0d68f5c (bug 1791633)
2022-11-15 23:51:58 +02:00
Dana Keeler
a9d672e5f2
Bug 1791633 - rename nsISSLSocketControl to nsITLSSocketControl and move it and nsITransportSecurityInfo to PSM r=necko-reviewers,kershaw
...
Depends on D160310
Differential Revision: https://phabricator.services.mozilla.com/D160311
2022-11-15 20:03:29 +00:00
Butkovits Atila
a9f1f1a451
Backed out 3 changesets (bug 1791633) for causing build bustages at nsHttpConnectionMgr.cpp:. CLOSED TREE
...
Backed out changeset ee9744982673 (bug 1791633)
Backed out changeset f5a4bfdaba40 (bug 1791633)
Backed out changeset f57131b9cfe2 (bug 1791633)
2022-11-15 08:07:16 +02:00
Dana Keeler
7ec4b8f2d7
Bug 1791633 - rename nsISSLSocketControl to nsITLSSocketControl and move it and nsITransportSecurityInfo to PSM r=necko-reviewers,kershaw
...
Depends on D160310
Differential Revision: https://phabricator.services.mozilla.com/D160311
2022-11-15 05:34:40 +00:00
Kershaw Chang
ffca1a708e
Bug 1794061 - WebSocketChannel::CleanupConnection should run on IO thread, r=necko-reviewers,valentin
...
Differential Revision: https://phabricator.services.mozilla.com/D158831
2022-10-18 07:13:19 +00:00
Dana Keeler
edf96de9c6
Bug 1787942 - make securityInfo concrete as nsITransportSecurityInfo in nsIWebSocketChannel r=kershaw,necko-reviewers
...
Differential Revision: https://phabricator.services.mozilla.com/D156005
2022-09-01 20:39:36 +00:00
Dana Keeler
43851fe262
Bug 1784098 - make nsISocketTransport.securityInfo explicit as nsISSLSocketControl r=necko-reviewers,kershaw
...
Differential Revision: https://phabricator.services.mozilla.com/D154257
2022-08-23 03:37:17 +00:00
Narcis Beleuzu
c3b8ca5d05
Backed out 4 changesets (bug 1784098) for bustages on nsCOMPtr.h . CLOSED TREE
...
Backed out changeset d22ac7bcb472 (bug 1784098)
Backed out changeset a97052238dba (bug 1784098)
Backed out changeset a2bb8ecd6170 (bug 1784098)
Backed out changeset 16ab6547619c (bug 1784098)
2022-08-22 20:50:21 +03:00
Dana Keeler
4fd78e8c1b
Bug 1784098 - make nsISocketTransport.securityInfo explicit as nsISSLSocketControl r=necko-reviewers,kershaw
...
Differential Revision: https://phabricator.services.mozilla.com/D154257
2022-08-22 16:32:01 +00:00
Fabrice Desré
e29be44cb7
Bug 1761040 - Prefix thread safety macros with MOZ_ r=geckoview-reviewers,media-playback-reviewers,alwu,jesup,m_kato
...
Differential Revision: https://phabricator.services.mozilla.com/D152575
2022-08-03 16:39:41 +00:00
Andreea Pavel
fc724b92fc
Backed out changeset b9d2965591b9 (bug 1761040) for landing with wrong author CLOSED TREE DONTBUILD
2022-08-03 18:55:00 +03:00
Andreea Pavel
eda47f3911
Bug 1761040 - Prefix thread safety macros with MOZ_ r=geckoview-reviewers,media-playback-reviewers,alwu,jesup,m_kato
...
Differential Revision: https://phabricator.services.mozilla.com/D152575
2022-08-03 15:27:43 +00:00
Andreea Pavel
c2e97d2e06
Backed out changeset a907159a482f (bug 1761040) for causing build bustages on a CLOSED TREE
2022-08-02 04:59:08 +03:00
Fabrice Desré
d2d02e8493
Bug 1761040 - Prefix thread safety macros with MOZ_ r=geckoview-reviewers,media-playback-reviewers,alwu,jesup,m_kato
...
Differential Revision: https://phabricator.services.mozilla.com/D152575
2022-08-02 00:49:41 +00:00
Kagami Sascha Rosylight
b964e47ab6
Bug 1769290 - Part 16: Apply mozilla-js-handle-rooted-typedef against netwerk r=andi
...
Differential Revision: https://phabricator.services.mozilla.com/D151783
2022-07-14 17:00:21 +00:00
Nika Layzell
583cee7bac
Bug 1778211 - Reject xpidl CDATA containing 'virtual', r=xpcom-reviewers,necko-reviewers,mccr8,dragana
...
We'll probably want to do something more accurate in the future with a
custom clang static analysis pass which validates that XPIDL interfaces
have the expected vtable and struct layout, however doing so would be
more involved than the string matching done in this patch.
In addition to checking for extra virtual methods, we'll likely also
want to check for data members on interfaces, and reject them unless the
class is marked as `[builtinclass]` in addition to some other attribute
which we'll need to add to prevent them from being implemented in Rust
(as c++ data members will not be reflected by the rust macro).
There were 2 instances of a comment which contained the word 'virtual'
within a CDATA block. These comments were moved out of the CDATA block
to avoid triggering the error.
Differential Revision: https://phabricator.services.mozilla.com/D151068
2022-07-06 14:53:06 +00:00
Dragana Damjanovic
d1975e909c
Bug 1778272 - Revert the change to the LoadInfo release function. r=necko-reviewers,kershaw
...
Differential Revision: https://phabricator.services.mozilla.com/D151103
2022-07-06 08:10:51 +00:00
Randell Jesup
11e2701ef7
Bug 1760660 - WebSocketChannel thread-safety annotations r=necko-reviewers,kershaw
...
Differential Revision: https://phabricator.services.mozilla.com/D141673
2022-03-25 15:37:49 +00:00
Kershaw Chang
29ed7e2386
Bug 1760894 - Change MOZ_RELEASE_ASSERT back to MOZ_ASSERT, r=necko-reviewers,dragana
...
This is a wallpaper patch, not a real fix.
This assertion was accidentally changed to `MOZ_RELEASE_ASSERT` in D135727.
Differential Revision: https://phabricator.services.mozilla.com/D141834
2022-03-23 12:20:30 +00:00
Randell Jesup
855202c183
Bug 1207753 - Add MOZ_UNANNOTATED to all Mutexes/Monitors r=nika,kershaw
...
Differential Revision: https://phabricator.services.mozilla.com/D140849
2022-03-16 18:47:08 +00:00
Noemi Erli
16f5f5f2b9
Backed out changeset 12a59e5a50bf (bug 1207753) for causing build bustage CLOSED TREE
2022-03-16 18:32:51 +02:00