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

24907 Коммитов

Автор SHA1 Сообщение Дата
Kershaw Chang cace8b2cdf Bug 1829169 - Clear IS_SPECULATIVE_CONNECTION for backup connection, r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D177609
2023-05-11 07:35:02 +00:00
dylan 65bbeede9b Bug 1823893 - removed method nsBaseChannel::PushStreamConverter r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D177548
2023-05-11 07:30:49 +00:00
dylan 73d5d1ddc9 Bug 998736 removed NS_ENSURE_SUCCESS to avoid spamming mochitests. r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D177662
2023-05-11 07:25:38 +00:00
Cristian Tuns af5d0c02f1 Backed out 2 changesets (bug 1810421) for causing build bustages in TestWifiMonitor.cpp CLOSED TREE
Backed out changeset 1cf92ef74fb4 (bug 1810421)
Backed out changeset afd62e82fe83 (bug 1810421)
2023-05-10 17:31:15 -04:00
David Parks 02027ae51d Bug 1810421: Only scan wifi when the network changes or when on mobile r=necko-reviewers,kershaw
Simplifies the concurrent operations of wifi scanning and reduces the
frequency in common cases.  Wifi scanning when on mobile is reduced from
every 5 seconds to every minute.  Wifi scans will also happen whenever
a new listener is registered.

Differential Revision: https://phabricator.services.mozilla.com/D176200
2023-05-10 19:46:29 +00:00
David Parks 4b6d4e388a Bug 1810421: Refactor wifi scanning to consolidate generic code r=necko-reviewers,kershaw,valentin
Reorganizes the wifi-scanning code and makes more of it platform-generic
to ease the transition from polling the wifi to usually scanning only on
network changes.  This is essentially just moving files/code around and
promoting nsWifiMonitor::DoScan to be platform-independent.

Differential Revision: https://phabricator.services.mozilla.com/D176199
2023-05-10 19:46:29 +00:00
Cristian Tuns e106133337 Backed out changeset 0054de12b39c (bug 1425310) while the issue is being investigated(Bug 1832361) CLOSED TREE 2023-05-10 14:49:41 -04:00
Andreas Farre 1125476080 Bug 1828375 - Do gradual ORB transition. r=sefeng,necko-reviewers
Add a separate check for spec breaking allows of certain MIME
types. Having this separated out means that we can make the rest of
the implementation behave exactly like spec.

Some tradeoffs that we need in the current state are:

* Allowing "application/dash+xml"
* Allowing "application/vnd.apple.mpegurl"
* Allowing "text/vtt"
* Allow all MIME types beginning with "audio/mpeg"
* Allow "text/plain" when there is a no-sniff header.

Differential Revision: https://phabricator.services.mozilla.com/D176821
2023-05-10 14:35:52 +00:00
Andreas Farre 476835e1c7 Bug 1823877 - Part 1: Filter opaque results from fetch() in the parent for ORB. r=sefeng,smaug,necko-reviewers,edenchuang,valentin
We make sure to not send any data to the content process in case of
fetching an opaque resource. This is way to remain more web
compatible, but is also in conflict with the ORB specification.

Differential Revision: https://phabricator.services.mozilla.com/D173454
2023-05-10 14:35:52 +00:00
Valentin Gosu a016cc0079 Bug 1831272 - Change NS_NET_STATUS_* to success codes to avoid clashing with other nsresult values r=necko-reviewers,kershaw,devtools-reviewers,bomsy
Differential Revision: https://phabricator.services.mozilla.com/D177146
2023-05-10 10:17:26 +00:00
Em Zhan 1fb37f2836 Bug 1425310 - Implement modulepreload for link rel. r=yulia,smaug,jonco
Does perform the optional step of fetching descendants and linking:
https://html.spec.whatwg.org/multipage/webappapis.html#fetching-scripts:fetch-the-descendants-of-and-link-a-module-script-2

Partially implements some new destinations ("as" attribute values) for
modulepreload only (not for preload or link attribute reflection)

Differential Revision: https://phabricator.services.mozilla.com/D172368
2023-05-09 12:35:52 +00:00
Noemi Erli cd34e6e230 Backed out changeset 1ef27d4a851e (bug 1425310) for causing build bustages in nsHtml5TreeBuilderCppSupplement.h 2023-05-08 18:08:45 +03:00
Em Zhan aa8c113862 Bug 1425310 - Implement modulepreload for link rel. r=yulia,smaug,jonco
Does perform the optional step of fetching descendants and linking:
https://html.spec.whatwg.org/multipage/webappapis.html#fetching-scripts:fetch-the-descendants-of-and-link-a-module-script-2

Partially implements some new destinations ("as" attribute values) for
modulepreload only (not for preload or link attribute reflection)

Differential Revision: https://phabricator.services.mozilla.com/D172368
2023-05-08 13:12:30 +00:00
ffxbld ec966db095 No Bug, mozilla-central repo-update HSTS HPKP remote-settings tld-suffixes - r=release-managers,dmeehan
Differential Revision: https://phabricator.services.mozilla.com/D177372
2023-05-08 12:27:01 +00:00
Valentin Gosu 838a716b00 Bug 1793597 - Also update the default port when changing the scheme of a URL r=tschuster,necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D177048
2023-05-08 08:26:28 +00:00
Randell Jesup e4c7bf565a Bug 1831635: don't try to processed deferred WebTransport CreateStreams if connection is closed/refused r=necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D177316
2023-05-06 01:47:07 +00:00
Randell Jesup 397a32e2a9 Bug 1831131: Handle WebTransport createUni/BidirectionalStream before ready r=necko-reviewers,kershaw
creating streams is allowed before a transport is ready, and should fail
with InvalidStateError if the stream goes to closed or failed.

Differential Revision: https://phabricator.services.mozilla.com/D177108
2023-05-05 15:28:58 +00:00
Eden Chuang da9145b668 Bug 1819570 - P2 Save worker's associated BrowsingContextID in channel's LoadInfo for the netmonitor. r=necko-reviewers,valentin
After PFetch is enabled, fetch() call in workers will not create a channel in the content process anymore.
Although netmonitor also watches the channels in the parent process, the created channel still loses the BrowsingContext information for netmonitor to connect the network event and the channel.

In P1, https://phabricator.services.mozilla.com/D174249, we propagate the BrowsingContext ID through PFetch.
In this patch, we need to save it in channel's LoadInfo for netmonitor.

In order not to confuse with nsILoadInfo's BrowsingContextID, we create a new attribute WorkerAssociatedBrowsingContextID in nsILoadInfo.

Depends on D174249

Differential Revision: https://phabricator.services.mozilla.com/D174441
2023-05-05 15:24:09 +00:00
Andrew McCreight c8c32ddc29 Bug 1760018 - Clean up networking registrars earlier to avoid leaks. r=necko-reviewers,kershaw
These registrars can hold channels alive, which can hold listeners alive,
which can hold cycle collected things alive. By clearing the registrars
before the final CC instead of after the final CC, we can avoid spurious
leaks.

It would make more logical sense to do this earlier, at net teardown,
but I've made the minimal change to try to avoid stirring up weird
shutdown issues.

Differential Revision: https://phabricator.services.mozilla.com/D177182
2023-05-05 15:04:46 +00:00
Valentin Gosu dce50dc1f5 Bug 1822709 - test_trr_noPrefetch.js - return same skipreason for both A and AAAA r=necko-reviewers,kershaw
This test was intermittent because sometimes we'd pick up the rcode for the A request, and sometimes for the AAAA request.
This test change makes sure we always have a consistent value for the skip reason.

Differential Revision: https://phabricator.services.mozilla.com/D177150
2023-05-05 07:43:06 +00:00
Kershaw Chang 952ba710e6 Bug 1818756 - Propagate stream error code from server to client, r=jesup,necko-reviewers,saschanaz
Differential Revision: https://phabricator.services.mozilla.com/D174237
2023-05-04 13:40:59 +00:00
Kershaw Chang 7f20106a49 Bug 1818756 - Propagate stream error code from client to server, r=jesup,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D171267
2023-05-04 13:40:59 +00:00
Jan Varga ccf2da1129 Bug 1781201 - Adjust NS_NewURI implementation to create nsStandardURL for uuid schemes; r=necko-reviewers,valentin
Otherwise BasePrincipal::CreateContentPrincipal would create null principals
for uuid schemes.

Differential Revision: https://phabricator.services.mozilla.com/D176880
2023-05-04 04:50:44 +00:00
Iulian Moraru 021d7987c7 Backed out 5 changesets (bug 1819570) for causing dt failures on browser_net_worker_stacks.js. CLOSED TREE
Backed out changeset e73379145f9a (bug 1819570)
Backed out changeset addc41903c2f (bug 1819570)
Backed out changeset c8534cf58f86 (bug 1819570)
Backed out changeset 81e926cf92dc (bug 1819570)
Backed out changeset 7d73ec5415a4 (bug 1819570)
2023-05-04 07:19:13 +03:00
Eden Chuang 8e679fa457 Bug 1819570 - P2 Save worker's associated BrowsingContextID in channel's LoadInfo for the netmonitor. r=necko-reviewers,valentin
After PFetch is enabled, fetch() call in workers will not create a channel in the content process anymore.
Although netmonitor also watches the channels in the parent process, the created channel still loses the BrowsingContext information for netmonitor to connect the network event and the channel.

In P1, https://phabricator.services.mozilla.com/D174249, we propagate the BrowsingContext ID through PFetch.
In this patch, we need to save it in channel's LoadInfo for netmonitor.

In order not to confuse with nsILoadInfo's BrowsingContextID, we create a new attribute WorkerAssociatedBrowsingContextID in nsILoadInfo.

Depends on D174249

Differential Revision: https://phabricator.services.mozilla.com/D174441
2023-05-04 02:46:31 +00:00
Natalia Csoregi b8b793fec3 Backed out 13 changesets (bug 1831040, bug 1829814, bug 1831046, bug 1831039, bug 1781201, bug 1829819, bug 1830887) for causing failures on test_upgrade_add_index.html. CLOSED TREE
Backed out changeset 0c3955157c7b (bug 1830887)
Backed out changeset 4f0b25db66d8 (bug 1831040)
Backed out changeset c503469bc048 (bug 1829814)
Backed out changeset 1a3dbef50207 (bug 1829819)
Backed out changeset 2c78a126281e (bug 1831046)
Backed out changeset 37aede27e09d (bug 1831039)
Backed out changeset bafee1f02404 (bug 1781201)
Backed out changeset 11c291dd3fb0 (bug 1781201)
Backed out changeset 2b8747b30bba (bug 1781201)
Backed out changeset 2b8e694fbfb9 (bug 1781201)
Backed out changeset e4ac26a5b071 (bug 1781201)
Backed out changeset a3ae636a90fe (bug 1781201)
Backed out changeset 236d1112bc5b (bug 1781201)
2023-05-04 02:27:58 +03:00
Andrew Creskey cccc2a3121 Bug 1830918 - Provide a mechanism to disable the forcing of the tcp send buffer size on http/2 uploads r=necko-reviewers,valentin
In Bug 1596576 we will disable by default the forcing of tcp send buffer sizes on http/2 uploads.
This provides a mechanism for users to test early.

Differential Revision: https://phabricator.services.mozilla.com/D176927
2023-05-03 19:27:26 +00:00
Jan Varga 91d41ee53a Bug 1781201 - Adjust NS_NewURI implementation to create nsStandardURL for uuid schemes; r=necko-reviewers,valentin
Otherwise BasePrincipal::CreateContentPrincipal would create null principals
for uuid schemes.

Differential Revision: https://phabricator.services.mozilla.com/D176880
2023-05-03 18:36:09 +00:00
Noemi Erli e509de74ef Backed out changeset 47909f2d0ba7 (bug 1830918) for causing bustage in ttp2StreamBase.cpp CLOSED TREE 2023-05-03 19:30:37 +03:00
Andrew Creskey 937483ada1 Bug 1830918 - Provide a mechanism to disable the forcing of the tcp send buffer size on http/2 uploads r=necko-reviewers,valentin
In Bug 1596576 we will disable by default the forcing of tcp send buffer sizes on http/2 uploads.
This provides a mechanism for users to test early.

Differential Revision: https://phabricator.services.mozilla.com/D176927
2023-05-03 15:12:08 +00:00
Valentin Gosu 5c922d8b93 Bug 1818714 - Remove cachePurge lock file after running BackgroundTask_removeDirectory r=necko-reviewers,saschanaz,jesup
Differential Revision: https://phabricator.services.mozilla.com/D176548
2023-05-03 12:40:54 +00:00
Kershaw Chang 43975ce600 Bug 1831041 - Onle record TRR telemetry when DoH mode is 2 or 3, r=valentin,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D176988
2023-05-03 08:34:08 +00:00
Valentin Gosu 6250f03723 Bug 1828126 - Test for cookie timestamp fixup r=pbz,cookie-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D176022
2023-05-03 08:30:51 +00:00
Valentin Gosu 8b6cf1971b Bug 1828126 - Add a mechanism to fix cookies with invalid future createdAt timestamp r=pbz,edgul,cookie-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D175589
2023-05-03 08:30:50 +00:00
Kershaw Chang 0ad6584639 Bug 1825538 - Retry TRR request on on main thread when proxy connection failed, r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D176621
2023-05-02 13:00:27 +00:00
Kershaw Chang 8f95e3fca6 Bug 1808323 - Add telemetry for the page load time and the time to first paint for sites that supports Early Hints response, r=manuel,necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D165966
2023-05-02 08:08:44 +00:00
Andrew Creskey 70448c5643 Bug 1830087 - Add http upload performance telemetry r=necko-reviewers,jesup
We want to monitor existing upload performance and also observe the impact of the fix for Bug 1596576.

Differential Revision: https://phabricator.services.mozilla.com/D176554
2023-05-01 13:46:01 +00:00
Noemi Erli 3288860e0f Backed out changeset 7c343aa2fe80 (bug 1818714) for causing marionette failures CLOSED TREE 2023-04-28 19:54:57 +03:00
Valentin Gosu 418bf22f37 Bug 1818714 - Remove cachePurge lock file after running BackgroundTask_removeDirectory r=necko-reviewers,saschanaz,jesup
Differential Revision: https://phabricator.services.mozilla.com/D176548
2023-04-28 15:30:49 +00:00
Robert Longson 332b093789 Bug 1676651 - don't warn to console if a cookie is deleted r=dveditz
Differential Revision: https://phabricator.services.mozilla.com/D175563
2023-04-28 14:33:34 +00:00
Makoto Kato e6c76d4fee Bug 1812356 - Part 1. Add SubstitutingJARURIParams to serialize SubstitutingJARURI. r=nika,necko-reviewers,valentin
GeckoView supports resource://android/ URL to access package root. But when
using this URL, `nsDocShellLoadState::ValidateWithOriginalState` returns URI
mismatch because `SubstitutingJARURI` is serialized to other type.

So `SubstitutingJARURI` should be serialized to same type.

To serialize this via IPC, we return Mutator type. But this doesn't allow
to modify properties except for IPC serialization. But some Set* can return
`NS_OK` when having same value for `ContentPrincipal::GetSiteOriginNoSuffix`.

Differential Revision: https://phabricator.services.mozilla.com/D175765
2023-04-28 05:40:41 +00:00
Bilal 76a6a97929 Bug 1816987 - ESMified browser/components/enterprisepolicies/schemas r=kpatenio
Differential Revision: https://phabricator.services.mozilla.com/D174495
2023-04-27 19:23:00 +00:00
Kershaw Chang bdf74a52b8 Bug 1830096 - Allow to create streams before WebTransportSessionProxyState::ACTIVE, r=jesup,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D176640
2023-04-27 16:24:46 +00:00
Narcis Beleuzu 82030e5f73 Backed out 2 changesets (bug 1830096) for xpc failures on test_webtransport_simple.js. CLOSED TREE
Backed out changeset 54cc048fd39a (bug 1830096)
Backed out changeset 7337707e8b32 (bug 1830096)
2023-04-27 18:31:49 +03:00
Kershaw Chang 42658ed53a Bug 1830096 - Allow to create streams before WebTransportSessionProxyState::ACTIVE, r=jesup,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D176640
2023-04-27 14:03:57 +00:00
Stanca Serban 18b9a1123b Backed out 2 changesets (bug 1828126) for causing xpcshell failures in test_timestamp_fixup.js. CLOSED TREE
Backed out changeset 66859868cbe0 (bug 1828126)
Backed out changeset bf9de9179b04 (bug 1828126)
2023-04-27 16:59:43 +03:00
Valentin Gosu 3ed266ca7d Bug 1828126 - Test for cookie timestamp fixup r=pbz,cookie-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D176022
2023-04-27 12:59:12 +00:00
Valentin Gosu 90caf4fa95 Bug 1828126 - Add a mechanism to fix cookies with invalid future createdAt timestamp r=pbz,edgul,cookie-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D175589
2023-04-27 12:59:12 +00:00
ffxbld 0c8279cac8 No Bug, mozilla-central repo-update HSTS HPKP remote-settings tld-suffixes - r=release-managers,dmeehan
Differential Revision: https://phabricator.services.mozilla.com/D176632
2023-04-27 12:13:02 +00:00
Geoff Lankow 0f4bb93b27 Bug 1830201 - Override Telemetry products check in test_trr_telemetry.js. r=necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D176607
2023-04-27 07:55:32 +00:00