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

25003 Коммитов

Автор SHA1 Сообщение Дата
Tom Schuster f8f27474c3 Bug 1409200 - Add integrityMetadata to nsILoadInfo. r=freddyb,necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D179822
2023-06-09 18:39:59 +00:00
Perry McManis b0a4d9a719 Bug 1752139 - Support `TestResetFOG` on Android r=chutten,extension-reviewers,cookie-reviewers,pbz,robwu
Differential Revision: https://phabricator.services.mozilla.com/D179975
2023-06-09 17:17:19 +00:00
Butkovits Atila 7d7bba388d Backed out changeset 9ccaad4630db (bug 1816677) for causing DNS related crashes (bug 1837252). a=backout 2023-06-09 12:33:06 +03:00
Chris Peterson 88f288a7b8 Bug 1837343 - Remove the "network.http.useragent.forceVersion" pref. r=necko-reviewers,valentin
When Firefox hit version 100 (2022-03-08), some websites broke when parsing the three-digit version number. We could use Firefox’s site interventions to send a version 99 UA string to those sites, but we can’t override the UA for enterprise intranet sites we don't know about. So the "network.http.useragent.forceVersion" pref was added (in bug 1753805) to allow enterprise admins to force a version 99 UA string if needed.

Now that the Firefox 100 release is 14 months behind us and the next ESR (version 115) is riding the trains, we can confidently remove the pref. Enterprise admins using ESR will have another year of using the pref in ESR 115. Then they'll need to fix their intranet sites to work with Firefox 100+.

Differential Revision: https://phabricator.services.mozilla.com/D180302
2023-06-09 02:14:02 +00:00
ffxbld 123144fb34 No Bug, mozilla-central repo-update HSTS HPKP remote-settings tld-suffixes - r=release-managers,diannaS
Differential Revision: https://phabricator.services.mozilla.com/D180315
2023-06-08 13:35:41 +00:00
Kershaw Chang e1a14a617e Bug 1836289 - Provide nsILoadContext to the hinted request, r=manuel,necko-reviewers
The problem that the image element not being removed is that the tabId is missing.
To make tabId available for the web extensions, we need to provide nsILoadContext to hinted requests.

Differential Revision: https://phabricator.services.mozilla.com/D179924
2023-06-07 21:14:34 +00:00
Stanca Serban 61e84bfd83 Backed out 8 changesets (bug 1830070) for URI related build bustages. CLOSED TREE
Backed out changeset a86222504ab3 (bug 1830070)
Backed out changeset 591595f4171b (bug 1830070)
Backed out changeset 80217d355f2a (bug 1830070)
Backed out changeset f5edcdb4a031 (bug 1830070)
Backed out changeset 04787193a095 (bug 1830070)
Backed out changeset 37f15e0b3ffb (bug 1830070)
Backed out changeset fe40ea9e3300 (bug 1830070)
Backed out changeset 9f191db9730e (bug 1830070)
2023-06-07 19:39:09 +03:00
Tom Ritter 31a3f5baa5 Bug 1830070: Correctly apply RFP Checks to about: documents and deal with pop-ups r=smaug,necko-reviewers,emilio
This patch has three parts to it:

1) Use URI_DANGEROUS_TO_LOAD and URI_IS_UI_RESOURCE to ensure that
   only safe about: documents get exempted. Confusingly, some of
   the safe ones to exempt are the ones with the DANGEROUS flag.

   With this change, we will no longer allow about:blank or
   about:srcdoc to be exempted base on URI.  If they are to be
   exempted, it will need to be base on other information.

2) In Document::RecomputeResistFingerprinting we previously
   deferred to a Parent Document if we had one, and either the
   principals matched or we were a null principal.

   We will do the same thing, except we will also defer to our
   opener as well as the parent document.  Now about:blank
   documents can be exempted.

   However, this deferral only works if the opener is
   same-process. For cross-process openers, we make the decision
   ourselves.

We can make the wrong decision though. CookieJarSettings is
inherited through iframes but it is _not_ inherited through popups.
(Yet. There's some discussion there, but it's not implemented.)

Conceptually; however, we do want CJS to inherit, and we do want
RFP to inherit as well.  Because a popup can collude with its
opener to bypass RFP and Storage restrictions, we should propagate
the CJS information.

This does lead to an unusual situation: if you have exempted
b.com, and a.com (which is not exempted) creates a popup for b.com
then that popup will not be exempted.  But an open tab for b.com
would be.  And it might be hard to tell those two apart, or why
they behave differently.

The third part of the patch:

3) In LoadInfo we want to populate information down from the
   opener to the popup.  This is needed because otherwise a
   cross-origin popup will not defer to its opener (because in
   Fission they're in different processes) and will decide if
   it should be exempted itself. It's the CookieJarSettings
   object that prevents the cross-origin document from thinking
   it should be exempted - CJS tells it 'No, you're a child
   (either a subdocument or a popup) and if I say you don't get
   an exemption, you don't.'


Finally, there is one more caveat: we can only defer to a parent
document or opener if it still exists.  A popup may outlive its
opener. If that happens, and something induces a call to
RecomputeResistFingerprinting, then (e.g.) an about:blank popup
may lose an RFP exemption that it had received from its parent.
This isn't expected to happen in practice -
RecomputeResistFingerprinting is only called on document creation
and pref changes I believe.

It is not possible for a popup to _gain_ an exemption though,
because even if the parent document is gone, the CJS lives on and
restricts it.

Differential Revision: https://phabricator.services.mozilla.com/D178866
2023-06-07 16:16:23 +00:00
Jason Kratzer 6a285d3bbd Bug 1837211 - Use NS_NewURI in TestURIFuzzing.cpp. r=valentin,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D180225
2023-06-07 15:14:33 +00:00
Nika Layzell 9f4d22f4e0 Bug 1826206 - Require nsISerialEventTarget for RetargetDeliveryTo, r=necko-reviewers,valentin
This avoids potential issues where multiple OnDataAvailable callbacks or
similar could theoretically be called concurrently on different
StreamTransportService threads when targeting the STS - these cases will
now target a TaskQueue on the STS instead, structurally ensuring serial
execution.

Differential Revision: https://phabricator.services.mozilla.com/D179984
2023-06-07 14:48:38 +00:00
Cristina Horotan c1f04d7bb9 Backed out changeset 4b086a7e6115 (bug 1835925) for causing wpt failures at HttpBaseChannel.cpp on a CLOSED TREE 2023-06-07 17:55:34 +03:00
Sean Feng cca262fb5e Bug 1835925 - Expand ORB_BLOCK_INITIATOR telemetry probe to demystify OTHER r=smaug,necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D179579
2023-06-07 13:11:28 +00:00
Kershaw Chang 0db2b52fa8 Bug 1706377 - Call VerifyTraffic for every network change event, r=necko-reviewers,valentin
For mozvpn, the data received in network change event is "up", not "changed", so we should call VerifyTraffic for every event for safe.
This patch also reduces http2.ping-timeout and http2.ping-threshold, since the original values are too long.

Differential Revision: https://phabricator.services.mozilla.com/D179681
2023-06-07 11:41:19 +00:00
Mark Banner 6725448902 Bug 1834176 - Convert consumers of NetUtil.jsm to import the ES module directly. r=arai,webdriver-reviewers,perftest-reviewers,valentin,extension-reviewers,devtools-reviewers,sync-reviewers,cookie-reviewers,robwu,afinder,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D178589
2023-06-07 08:42:36 +00:00
Stanca Serban ffa15038e6 Backed out changeset 5e37c8d6f4be (bug 1836289) for causing Bp-nu bustages. CLOSED TREE 2023-06-07 11:31:44 +03:00
Kershaw Chang 47889ad4c3 Bug 1836289 - Provide nsILoadContext to the hinted request, r=manuel,necko-reviewers
The problem that the image element not being removed is that the tabId is missing.
To make tabId available for the web extensions, we need to provide nsILoadContext to hinted requests.

Differential Revision: https://phabricator.services.mozilla.com/D179924
2023-06-07 07:43:39 +00:00
Mike Hommey 889fd52ec7 Bug 1837084 - Don't enable all tokio features in http3server r=necko-reviewers,supply-chain-reviewers,kershaw
It doesn't need them all.

Differential Revision: https://phabricator.services.mozilla.com/D180155
2023-06-07 06:26:35 +00:00
Mike Hommey 1903893346 Bug 1836890 - Remove uses of chromium's OS_* macros in Gecko code. r=nika,media-playback-reviewers,keeler,gfx-reviewers,emilio,necko-reviewers,kershaw,karlt,jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D180039
2023-06-06 20:00:47 +00:00
Narcis Beleuzu 09250813d0 Backed out changeset 3765a21fa94c (bug 1706377) for wpt failure on 001.html . CLOSED TREE 2023-06-06 17:43:11 +03:00
Randell Jesup a2e2553bdc Bug 1814215: Add a release assert r=valentin,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D179449
2023-06-06 13:12:46 +00:00
Kershaw Chang 07e167fb3b Bug 1816677 - Allow to retry diffrent IP family for Http/3, r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D179541
2023-06-06 11:15:18 +00:00
Kershaw Chang b8fe0dda5f Bug 1706377 - Call VerifyTraffic for every network change event, r=necko-reviewers,valentin
For mozvpn, the data received in network change event is "up", not "changed", so we should call VerifyTraffic for every event for safe.
This patch also reduces http2.ping-timeout and http2.ping-threshold, since the original values are too long.

Differential Revision: https://phabricator.services.mozilla.com/D179681
2023-06-06 08:20:26 +00:00
Manuel Bucher 9efb63bfa0 Bug 1828882 - Fix Early Hint preload channels not showing up in devtools r=necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D179551
2023-06-05 16:06:15 +00:00
Magnus Melin 2d47f69966 Bug 1817796 - Adjust smiley and embarassed smiley-to-emoji conversion. r=necko-reviewers,valentin
Adjust the smiley icon.
Also adjust embarassed detection which was wrong. The :-[ is more like bummed I think, but it's also "bat" so given it's not always clear what it means, probably best to not convert that.
Embarrassed emoji according to https://en.wikipedia.org/wiki/List_of_emoticons

Differential Revision: https://phabricator.services.mozilla.com/D179904
2023-06-05 11:47:41 +00:00
Makoto Kato 19f275b625 Bug 1836432 - Use nsresult exception mode for GeckoAppShell.getDNSDomains. r=geckoview-reviewers,necko-reviewers,valentin,ohall
There is some OOM errors by `GeckoAppShell.getDNSDomains`. Since
`nsAndroidNetworkLinkService::GetDnsSuffixList` can returns `nsresult`, we
should return error instead of crash.

Differential Revision: https://phabricator.services.mozilla.com/D179791
2023-06-04 10:53:32 +00:00
Mark Banner 5d59c7aecd Bug 1824613 - Convert consumers of toolkit/mozapps/extensions/ to import ES modules directly. r=extension-reviewers,settings-reviewers,application-update-reviewers,credential-management-reviewers,devtools-reviewers,sync-reviewers,sgalich,bytesized,robwu,skhamis
Depends on D179819

Differential Revision: https://phabricator.services.mozilla.com/D179820
2023-06-02 20:00:35 +00:00
Valentin Gosu 50fdf1286d Bug 1835805 - Remove odoh code r=necko-reviewers,jesup
Differential Revision: https://phabricator.services.mozilla.com/D179456
2023-06-02 12:49:33 +00:00
Valentin Gosu 056175d0a1 Bug 1677718 - Completely remove AppCache API implementation r=necko-reviewers,emilio,jesup
Depends on D179337

Differential Revision: https://phabricator.services.mozilla.com/D179420
2023-06-02 07:55:23 +00:00
Valentin Gosu c018e8ad6c Bug 1836249 - Make httpd.js::NodeServer bypassProxy and remove custom proxy rules r=necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D179669
2023-06-01 11:56:44 +00:00
Kershaw Chang 741281cc43 Bug 1543990 - Use origin attributes to start speculative connections for link header, r=necko-reviewers,timhuang,valentin
Differential Revision: https://phabricator.services.mozilla.com/D179068
2023-06-01 09:46:12 +00:00
Kershaw Chang 2e7f3943fb Bug 1543990 - Introduce a new API to create speculative connection with the partition key in originAttributes, r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D179067
2023-06-01 09:46:12 +00:00
Kershaw Chang 5149a41b0e Bug 1543990 - Simplify nsISpeculativeConnect API, r=necko-reviewers,geckoview-reviewers,search-reviewers,valentin,m_kato
Differential Revision: https://phabricator.services.mozilla.com/D179066
2023-06-01 09:46:12 +00:00
Manuel Bucher 95e14a9e9b Bug 1815934 - Only allow correct ContentParent to connect to EarlyHintPreloader r=necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D179473
2023-06-01 09:46:04 +00:00
Cosmin Sabou e678b16e56 Backed out 2 changesets (bug 1677718) for causing appcache wpt failures.
Backed out changeset 2b6b58a6fe2f (bug 1677718)
Backed out changeset d1cfc37a01b3 (bug 1677718)
2023-06-01 02:18:51 +03:00
Emilio Cobos Álvarez c2f5a4ac7a Bug 1835119 - Remove nsCOMPtr_base. r=xpcom-reviewers,kmag
It's not clear to me why specializing nsCOMPtr<nsISupports> is
particularly useful, and this removes a lot of code, bringing us closer
to unifying nsCOMPtr and RefPtr.

The changes in other places are needed because we used to allow
nsCOMPtr<nsISupports> to implicitly coerce to nsISupports even for
rvalue references.

     0:47.88 /home/emilio/src/moz/gecko-4/netwerk/protocol/http/nsHttpActivityDistributor.cpp:121:11: error: conversion function from 'nsCOMPtr<nsISupports>' to 'nsISupports *' invokes a deleted function
     0:47.88           nsCOMPtr<nsISupports>(do_QueryObject(channel)), aActivityType,
     0:47.88           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     0:47.88 /home/emilio/src/moz/gecko-4/obj-debug/dist/include/nsCOMPtr.h:764:3: note: 'operator nsISupports *' has been explicitly marked deleted here
     0:47.88   operator T*() const&& = delete;
     0:47.88   ^
     0:47.88 /home/emilio/src/moz/gecko-4/netwerk/protocol/http/nsHttpActivityDistributor.cpp:29:57: note: passing argument to parameter 'aHttpChannel' here
     0:47.88 nsHttpActivityDistributor::ObserveActivity(nsISupports* aHttpChannel,
     0:47.88                                                         ^

Which is not allowed for a good reason, generally.

Differential Revision: https://phabricator.services.mozilla.com/D179124
2023-05-31 21:58:43 +00:00
Andreas Farre 2680ac02eb Bug 1834497 - Register ORB prefs in nimbus FeatureManifest. r=necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D178916
2023-05-31 20:30:36 +00:00
Natalia Csoregi 448ccac0b9 Backed out changeset af645c9220f1 (bug 1835805) for causing bustage on DNSPacket.cpp. CLOSED TREE 2023-05-31 18:52:13 +03:00
Saira Abdulla 9691ab4a5f Bug 1824612 - Convert consumers of toolkit/components/extensions to ES modules. r=robwu,webcompat-reviewers,geckoview-reviewers,settings-reviewers,application-update-reviewers,credential-management-reviewers,devtools-reviewers,cookie-reviewers,twisniewski,sgalich,valentin,nalexander,mconley,m_kato
Depends on D175553

Differential Revision: https://phabricator.services.mozilla.com/D176005
2023-05-31 15:27:03 +00:00
Valentin Gosu 7ba32109b0 Bug 1835805 - Remove odoh code r=necko-reviewers,jesup
Differential Revision: https://phabricator.services.mozilla.com/D179456
2023-05-31 15:05:06 +00:00
Kershaw Chang 8b42302fa6 Bug 1828861 - Test case, r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D179539
2023-05-31 14:47:23 +00:00
Kershaw Chang a55748b337 Bug 1828861 - Also check Alpn when selecting the next record for retrying, r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D179442
2023-05-31 14:47:23 +00:00
Iulian Moraru 90b739a400 Backed out 2 changesets (bug 1824612) for causing dt failures on browser_dbg-features-source-tree.js. CLOSED TREE
Backed out changeset c3f38adc818e (bug 1824612)
Backed out changeset 58ba8bb3398a (bug 1824612)
2023-05-31 17:28:16 +03:00
Saira Abdulla 2e8db5969a Bug 1824612 - Convert consumers of toolkit/components/extensions to ES modules. r=robwu,webcompat-reviewers,geckoview-reviewers,settings-reviewers,application-update-reviewers,credential-management-reviewers,devtools-reviewers,cookie-reviewers,twisniewski,sgalich,valentin,nalexander,mconley,m_kato
Depends on D175553

Differential Revision: https://phabricator.services.mozilla.com/D176005
2023-05-31 10:21:37 +00:00
Valentin Gosu ffa99d7088 Bug 1677718 - Completely remove AppCache API implementation r=necko-reviewers,emilio,jesup
Depends on D179337

Differential Revision: https://phabricator.services.mozilla.com/D179420
2023-05-31 07:45:46 +00:00
Valentin Gosu 304d922abb Bug 1818022 - Simplify the DoH native fallback warning detection and application r=acreskey,necko-reviewers,kershaw
This patch reverts the fallback warning behaviour when a canary heuristic
was tripped. Instead of enabling TRR and failing DNS resolves if skip reason
is a canary code, we now leave it disabled and instead fail DNS resolves
that would have otherwise used TRR if it had been enabled.

Differential Revision: https://phabricator.services.mozilla.com/D179057
2023-05-31 07:39:39 +00:00
dylan aba5ef3467 Bug 1815925 - Removed second colon check in URL parser. r=valentin,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D178563
2023-05-30 22:10:01 +00:00
sunil mayya 6c88919a0b Bug 1455614 - improve content-length header parsing. r=necko-reviewers,valentin
The change is intended to improve parsing of the content-length headers.
Specifically, it addresses the problem of handling multiple content-length values.

Differential Revision: https://phabricator.services.mozilla.com/D178370
2023-05-29 14:33:12 +00:00
sankalp1999 92e6376b0e Bug 1831587 - add value arg to delete and has, working wpt, delete ini r=valentin,necko-reviewers,webidl,smaug,emilio
Differential Revision: https://phabricator.services.mozilla.com/D177957
2023-05-29 13:32:06 +00:00
Kris Maglione 32784b2883 Bug 1648545: Part 4 - Move ContentPage.spawn to use SpecialPowers rather than ContentTask. r=ahal,cookie-reviewers,anti-tracking-reviewers,timhuang
Differential Revision: https://phabricator.services.mozilla.com/D119451
2023-05-27 03:46:44 +00:00
Nika Layzell c01652d59f Bug 1834640 - Part 2: Properly shutdown nsSocketTransportService during xpcom-shutdown-threads, r=jesup,necko-reviewers
This also cleans up some of the unnecessary flags & memebrs which were held
during the changes in bug 1818998. mSelf was unncessary as the runnable
reference will be keeping the instance alive for the same lifetime, and
mSocketThreadShutDown was redundant with !mInitialized.

This change will also fix a potential issue where the socket thread was not
being shut down when switching the browser into an offline state from
`profile-change-net-teardown`, which could've lead to thread leaks when the
browser is returned to an online state. The restore codepath, however, has
been dead for a long time so this is unlikely to be a real issue in practice.

Depends on D178867

Differential Revision: https://phabricator.services.mozilla.com/D178868
2023-05-26 16:50:22 +00:00