Commit Graph

8026 Commits

Author SHA1 Message Date
Julian Descottes
fa1e9ef710 Bug 1932162 - Expose fetch destination on nsILoadInfo r=necko-reviewers,valentin
Depends on D229378

Expose a getter on nsILoadInfo to easily retrieve the fetch destination as a string
This avoids duplicating the mapping logic in JS for webdriver bidi

Differential Revision: https://phabricator.services.mozilla.com/D229384
2024-11-20 09:07:37 +00:00
Julian Descottes
d5379133cb Bug 1932162 - Set the initiatorType in HttpChannelParent and expose to scripts r=necko-reviewers,valentin
This changeset synchronizes the initiatorType from the child channel to the parent channel in asyncOpen.
It also removes noscript from initiatorType in nsITimedChannel

Differential Revision: https://phabricator.services.mozilla.com/D229378
2024-11-20 09:07:36 +00:00
Simon Friedberger
ee24230231 Bug 1919544 - Do not HTTPS-First upgrade URLs with http:// scheme r=mak,necko-reviewers,urlbar-reviewers,tabbrowser-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D228588
2024-11-13 17:15:57 +00:00
Sandor Molnar
8c75b7c054 Backed out 8 changesets (bug 1919558, bug 1816449) for causing mochitest failures @ test_refresh_firefox.py
Backed out changeset a194f41588e9 (bug 1816449)
Backed out changeset 10643d7c7a78 (bug 1919558)
Backed out changeset b346a2a2bfdc (bug 1919558)
Backed out changeset 507f18e7103d (bug 1919558)
Backed out changeset 4d0d9f72bc2a (bug 1919558)
Backed out changeset 65d9270f0991 (bug 1919558)
Backed out changeset fe95b9e6ff13 (bug 1919558)
Backed out changeset ea6ffcb0e334 (bug 1919558)
2024-11-13 18:22:41 +02:00
Malte Jürgens
fe82d16c24 Bug 1919558 - Part 5: Add AddDefaultFromPrincipal method to permission manager r=pbz,permissions-reviewers
This method will later be used to import default permissions from remote
settings through the remote permission manager.

Differential Revision: https://phabricator.services.mozilla.com/D222650
2024-11-13 14:00:09 +00:00
Sandor Molnar
f796cfe131 Backed out changeset c4dfee1f9194 (bug 1919544) for causing bc failures @ browser_UrlbarInput_formatValue.js CLOSED TREE 2024-11-13 15:20:39 +02:00
Simon Friedberger
3f59148693 Bug 1919544 - Do not HTTPS-First upgrade URLs with http:// scheme r=mak,necko-reviewers,urlbar-reviewers,tabbrowser-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D228588
2024-11-13 11:44:43 +00:00
Andreas Farre
d0f22c75cd Bug 1724924 - Disallow displaying PDFs in sandboxed iframes. r=dom-core,sefeng
Differential Revision: https://phabricator.services.mozilla.com/D227826
2024-11-13 09:42:06 +00:00
Butkovits Atila
35ba88f047 Backed out 8 changesets (bug 1919558, bug 1816449) for causing failures at test_open_and_databases.js
Backed out changeset 5f7eab80a48b (bug 1816449)
Backed out changeset 2800d22d0532 (bug 1919558)
Backed out changeset c95f84d96d07 (bug 1919558)
Backed out changeset b61736ed0836 (bug 1919558)
Backed out changeset bc6e1e325e17 (bug 1919558)
Backed out changeset 22967ce2bce2 (bug 1919558)
Backed out changeset cd0a6dffb4e2 (bug 1919558)
Backed out changeset cb5b83cd5d65 (bug 1919558)
2024-11-08 21:20:45 +02:00
Malte Jürgens
a539a5f604 Bug 1919558 - Part 5: Add AddDefaultFromPrincipal method to permission manager r=pbz,permissions-reviewers
This method will later be used to import default permissions from remote
settings through the remote permission manager.

Differential Revision: https://phabricator.services.mozilla.com/D222650
2024-11-08 15:08:32 +00:00
Kershaw Chang
e06395b4e3 Bug 1929368 - Part1: Revert changes done in bug 1925014, r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D228087
2024-11-06 13:34:39 +00:00
Randell Jesup
92c6b40d59 Bug 1927546: Fix sieve port number r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D227910
2024-11-05 16:49:47 +00:00
Norisz Fay
542f84361c Backed out 8 changesets (bug 1816449, bug 1919558) for causing xpcshell and mochitest failures
Backed out changeset 69d226857a48 (bug 1816449)
Backed out changeset da7afd485891 (bug 1919558)
Backed out changeset 1bedb67e8801 (bug 1919558)
Backed out changeset 361ef2b4da96 (bug 1919558)
Backed out changeset ae8f8083b580 (bug 1919558)
Backed out changeset 8930087e61a2 (bug 1919558)
Backed out changeset da39116b6d9e (bug 1919558)
Backed out changeset a200e5113a25 (bug 1919558)
2024-11-05 13:44:46 +02:00
Malte Jürgens
7fa4b7041e Bug 1919558 - Part 5: Add AddDefaultFromPrincipal method to permission manager r=pbz,permissions-reviewers
This method will later be used to import default permissions from remote
settings through the remote permission manager.

Differential Revision: https://phabricator.services.mozilla.com/D222650
2024-11-05 10:17:42 +00:00
longsonr
ad362610ef Bug 1928694 - Replace mozilla::clamped with std::clamp r=kershaw,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D227677
2024-11-04 12:31:13 +00:00
Nick Alexander
95f004a551 Bug 1918194 - Part 1: Add background task extras to nsIIncrementalDownload MAR GETs. r=bytesized,bhearsum,necko-reviewers,application-update-reviewers,csadilek,jesup
This adds extra headers and query parameters to identify MAR GET
requests as originating from browsing profiles or background task
profiles.

This extracts a simple existing function for setting headers and then
makes it available to `nsIIncrementalDownload`.  The existing function
is not the most pleasant API, but it exists and is much easier than
working through the details of storing header name-value pairs until
they are ready to be used.  It's also the same API exposed by Windows
BITS, so there's no additional manipulation required to support BITS.

Differential Revision: https://phabricator.services.mozilla.com/D221860
2024-10-31 21:26:35 +00:00
serge-sans-paille
8a0a0f7524 Bug 1920718 - Annotate all global variable with runtime initialization attributes r=glandium,application-update-reviewers,media-playback-reviewers,anti-tracking-reviewers,places-reviewers,profiler-reviewers,gfx-reviewers,aosmond,lina,nalexander,aabh,geckoview-reviewers,win-reviewers,gstoll,m_kato
MOZ_RUNINIT => initialized at runtime
MOZ_CONSTINIT => initialized at compile time
MOZ_GLOBINIT => initialized either at runtime or compile time, depending on template parameter, macro parameter etc
This annotation is only understood by our clang-tidy plugin. It has no
effect on regular compilation.

Differential Revision: https://phabricator.services.mozilla.com/D223341
2024-10-30 11:05:24 +00:00
Luca Greco
41029d7e67 Bug 1926106 - Special case _generated_background_page.html moz-extension url in nsStandardURL::EqualsInternal. r=valentin,necko-reviewers
This patch includes a special handling for the moz-extension _generated_background_page.html urls inside
nsStandardURL::EqualsInternal because it doesn't resolve to a file (instead it resolves to a data: URI,
see ExtensionProtocolHandler::ResolveSpecialCases), similarly to resource:// urls which are special case
a few lines before in the same nsStandardURL::EqualsInternal.

The test case introduced by the parent patch passes successfully on the unpacked extension loaded temporarily
with these changes applied.

Depends on D226376

Differential Revision: https://phabricator.services.mozilla.com/D226470
2024-10-29 13:20:59 +00:00
Mike Hommey
aada68ea09 Bug 1924664 - Fix Cargo.toml-related warnings from first-party crates. r=firefox-build-system-reviewers,necko-reviewers,profiler-reviewers,aabh,ahochheiden
The warnings are:

  no edition set: defaulting to the 2015 edition while the latest is 2021
  unused manifest key: lib.plugin

Differential Revision: https://phabricator.services.mozilla.com/D226855
2024-10-28 20:56:36 +00:00
Tamas Szentpeteri
1e8e7aed44 Backed out 2 changesets (bug 1926106) for causing xpcshell failures on test_URIs.js.
Backed out changeset b81ccaf28482 (bug 1926106)
Backed out changeset 46a246dc8c98 (bug 1926106)
2024-10-24 20:37:08 +03:00
Luca Greco
6ccb86807e Bug 1926106 - Special case _generated_background_page.html moz-extension url in nsStandardURL::EqualsInternal. r=valentin,necko-reviewers
This patch includes a special handling for the moz-extension _generated_background_page.html urls inside
nsStandardURL::EqualsInternal because it doesn't resolve to a file (instead it resolves to a data: URI,
see ExtensionProtocolHandler::ResolveSpecialCases), similarly to resource:// urls which are special case
a few lines before in the same nsStandardURL::EqualsInternal.

The test case introduced by the parent patch passes successfully on the unpacked extension loaded temporarily
with these changes applied.

Depends on D226376

Differential Revision: https://phabricator.services.mozilla.com/D226470
2024-10-24 15:19:48 +00:00
edgul
acc1cee52b Bug 1889988 - Added remote settings input to defaultUri bypass list r=necko-reviewers,valentin,nika,Standard8
Differential Revision: https://phabricator.services.mozilla.com/D207810
2024-10-23 18:30:26 +00:00
Cosmin Sabou
abe6e3de68 Backed out 2 changesets (bug 1889988) for xpcshell failures on test_getPasswordOrigin. CLOSED TREE
Backed out changeset db199aeaafd8 (bug 1889988)
Backed out changeset 360a3d2b1200 (bug 1889988)
2024-10-23 04:10:04 +03:00
edgul
42fb5d6cc2 Bug 1889988 - Added remote settings input to defaultUri bypass list r=necko-reviewers,valentin,nika,Standard8
Differential Revision: https://phabricator.services.mozilla.com/D207810
2024-10-22 20:31:40 +00:00
Emilio Cobos Álvarez
b5d2263c26 Bug 1925866 - NS_NewLocalFile's aFollowSymlinks arg is unused. r=xpcom-reviewers,necko-reviewers,valentin,media-playback-reviewers,win-reviewers,karlt,nika,rkraesig
Remove it and related functions, and update the callers.

Differential Revision: https://phabricator.services.mozilla.com/D226261
2024-10-22 09:38:16 +00:00
David Parks
33c23f8cd3 Bug 1925401: Require BUTTON_NONE in nsIPrompt for button-less dialogs r=Gijs,necko-reviewers
This will prevent devs from accidentally requesting no buttons, since
the only way to dismiss such a prompt is with an intentional call to
prompt.close().  A request that indicates that button 0's label is
the empty string previously indicated button 0 is hidden, which means no
buttons.  Now, that case is an exception unless BUTTON_NONE is set.

Differential Revision: https://phabricator.services.mozilla.com/D226081
2024-10-18 22:22:39 +00:00
Kershaw Chang
a201160bae Bug 1925014 - Disallow HTTP/3 when third party root is found, r=necko-reviewers,keeler,valentin
Differential Revision: https://phabricator.services.mozilla.com/D225788
2024-10-18 15:58:13 +00:00
Sean
b2ca2ae07f Bug 1898247 - Migrate all remaining HTTP_PAGE_* and HTTP_SUB_* probes to glean in nsLoadGroup.cpp r=kershaw,necko-reviewers,acreskey
Differential Revision: https://phabricator.services.mozilla.com/D215537
2024-10-18 14:05:01 +00:00
Adi
f890140948 Backed out 3 changesets (bug 1925014) for causing xpcshell fails @ test_http3.js. CLOSED TREE
Backed out changeset e09635a1801e (bug 1925014)
Backed out changeset 15c56a7463ec (bug 1925014)
Backed out changeset 5df6b73dcb6c (bug 1925014)
2024-10-18 15:52:59 +03:00
Kershaw Chang
0c67055312 Bug 1925014 - Disallow HTTP/3 when third party root is found, r=necko-reviewers,keeler,valentin
Differential Revision: https://phabricator.services.mozilla.com/D225788
2024-10-18 08:11:35 +00:00
Kershaw Chang
055d8c7ec7 Bug 1922559 - Make it possible to skip HTTPS upgrade for TURN requests, r=bwc,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D226051
2024-10-18 07:52:58 +00:00
Sandor Molnar
a480e98d71 Backed out 2 changesets (bug 1925014) for causing perma android xpc failures @ test_http3.js CLOSED TREE
Backed out changeset 197f9b5798d6 (bug 1925014)
Backed out changeset 548b916ef37d (bug 1925014)
2024-10-17 22:49:58 +03:00
Oskar Mansfeld
55c7d89d10 Bug 1873874 - Fixed crash due to empty mTargetURI when calling Predictor::Action::OnCacheEntryAvailable, r=necko-reviewers,kershaw
There was a bug where the Action was getting initialized with the wrong URI, thus mTargerURI staying empty.
Also added an errorcheck to OnCacheEntryAvailable so even if an empty URI sneaks in from somewhere else it doesn't just crash.

Differential Revision: https://phabricator.services.mozilla.com/D225181
2024-10-17 08:39:40 +00:00
Kershaw Chang
07c3f3826d Bug 1925014 - Disallow HTTP/3 when third party root is found, r=necko-reviewers,keeler,valentin
Differential Revision: https://phabricator.services.mozilla.com/D225788
2024-10-16 22:03:50 +00:00
Kershaw Chang
1331aaef37 Bug 1924660 - Reland bug 1678312, r=necko-reviewers,valentin
This reverts commit 9110029e3e4f4ba586d16da1f114faf187181fb3.

Differential Revision: https://phabricator.services.mozilla.com/D225620
2024-10-16 18:14:13 +00:00
Alexandru Marc
ec4996707f Backed out changeset b5d9c8b42014 (bug 1917901) for causing crashes. ( Bug 1924737 ) a=backout 2024-10-15 16:56:37 +03:00
Randell Jesup
a2ba7cbbce Bug 1917901: Make it ok to retarget OnDataAvailable multiple times until the first ODA is received r=necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D223651
2024-10-14 19:56:20 +00:00
Valentin Gosu
33f5a63cff Bug 1122907 - Check if device has non-local IPv6 addresses r=necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D212105
2024-10-14 18:19:00 +00:00
Stanca Serban
02c80f32db Backed out changeset 34295cdf7c5a (bug 1917901) for causing multiple failures. CLOSED TREE 2024-10-11 05:11:22 +03:00
Randell Jesup
8d1a88816f Bug 1917901: Make it ok to retarget OnDataAvailable multiple times until the first ODA is received r=necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D223651
2024-10-10 19:46:43 +00:00
Sean
80d65c74e8 Bug 1883033 - Fix Scheme ws/wss/ssh url query-encoding wpt failures r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D225007
2024-10-10 13:36:13 +00:00
Simon Friedberger
204dcfa6ed Bug 1720500 - Enable HTTPS-First for form submission r=freddyb,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D224287
2024-10-09 07:01:18 +00:00
Emilio Cobos Álvarez
b036097779 Bug 1921972 - Allow to propagate loadgroup flags to parent process. r=nika,necko-reviewers,valentin
As per discussion. Test is in the other patch, assuming this is green
I'll incorporate it, but gotta go for the day.

Differential Revision: https://phabricator.services.mozilla.com/D224824
2024-10-08 21:28:09 +00:00
Tamas Szentpeteri
8be45dd280 Backed out changeset 4b1409597101 (bug 1920718) for causing bp bustages on rapl.cpp. 2024-10-08 23:27:18 +03:00
serge-sans-paille
069a97307f Bug 1920718 - Annotate all global variable with runtime initialization as MOZ_RUNINIT r=application-update-reviewers,media-playback-reviewers,anti-tracking-reviewers,places-reviewers,profiler-reviewers,gfx-reviewers,aosmond,lina,nalexander,aabh
This annotation is only understood by our clang-tidy plugin. It has no
effect on regular compilation.

Differential Revision: https://phabricator.services.mozilla.com/D223341
2024-10-08 16:49:51 +00:00
Sean
eca4bfe343 Bug 1921480 - Make internalRedirectTo transparent r=kershaw,jdescottes,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D224008
2024-10-07 13:00:03 +00:00
Kershaw Chang
c11f65b54e Bug 1923042 - Temporarily revert revert changes done in bug 1678312, r=necko-reviewers,valentin
This is just an experiment to see if the recent telemetry changes is really caused by bug 1678312.
Will reland the change in bug 1678312 later.

Differential Revision: https://phabricator.services.mozilla.com/D224734
2024-10-07 11:11:31 +00:00
Mike Hommey
a768bfcbee Bug 1916883 - Add missing thread safety annotations. r=jesup
that now make clang trunk trip.

Differential Revision: https://phabricator.services.mozilla.com/D221580
2024-09-26 06:23:06 +00:00
smayya
74dad80c2a Bug 1919216 - Add probe to measure usage of 0.0.0.0 address. r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D223074
2024-09-26 04:39:23 +00:00
Valentin Gosu
404ce115c3 Bug 1900561 - Add fetchPriority to classOfService r=acreskey,necko-reviewers,kershaw
Knowing the actual fetchPriority of the initial request is useful information
when computing the urgency. This allows us to not worry about the priority
being clobbered by another caller of nsISupportsPriority.

Differential Revision: https://phabricator.services.mozilla.com/D221957
2024-09-25 18:42:51 +00:00