Commit Graph

4119 Commits

Author SHA1 Message Date
Florian Quèze
1e85e4281a Bug 1922231 - Avoid recording to histograms or scalars in processes that don't match the probe definition, r=chutten.
Differential Revision: https://phabricator.services.mozilla.com/D224309
2024-10-02 21:05:57 +00:00
Emilio Cobos Álvarez
80e1f1f9af Bug 1921110 - Distinguish rel=preload from early-hints preload. r=arai,firefox-style-system-reviewers,zrhoffman
No behavior change right now, but this is needed to fix the initiator in
bug 1899734.

Differential Revision: https://phabricator.services.mozilla.com/D223642
2024-09-26 15:33:15 +00:00
Calixte
93b83e203e Bug 1920656 - Update PDF.js to new version cc63941b6496382bc8c762b6ccd886f036d43601 r=pdfjs-reviewers,fluent-reviewers,marco,flod
Differential Revision: https://phabricator.services.mozilla.com/D223280
2024-09-24 18:15:13 +00:00
Jan Horak
84cd68932c Bug 1751467 Use GAppInfo to open downloaded files; r=stransky,settings-reviewers,mossop,mak,jmaher
The GAppInfo supports starting up flatpak applications where the simple
command does not work.

Differential Revision: https://phabricator.services.mozilla.com/D221792
2024-09-24 15:14:24 +00:00
Joel Maher
3ab43074a1 Bug 1919776 - part2: adjust skip-if for apple_silicon/catalina/os==mac to include os_version/cpu. r=aryx,credential-management-reviewers,tabbrowser-reviewers,dimi
Differential Revision: https://phabricator.services.mozilla.com/D222845
2024-09-23 17:33:15 +00:00
Gijs Kruitbosch
f0c75454de Bug 1817727 - re-enable test_filename_sanitize.js on macOS, r=NeilDeakin
Differential Revision: https://phabricator.services.mozilla.com/D222644
2024-09-20 10:45:36 +00:00
Sandor Molnar
9cdd487af0 Bug 1776017 - Disable browser_open_internal_choice_persistence.js on macosx for frequent failures. r=jmaher DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D222731
2024-09-19 01:58:13 +00:00
Ted Mielczarek
31e50fe685 Bug 1918300 - Apply bug 1293212 and bug 1628961 to the uikit uriloader. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D221911
2024-09-13 04:04:37 +00:00
Emilio Cobos Álvarez
60fad39eb9 Bug 1911977 - Don't abort networking activity on external protocol navigations. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D221029
2024-09-10 15:22:04 +00:00
Emilio Cobos Álvarez
69d03391c0 Bug 1911977 - Minor clean-ups in nsDocShell::InternalLoad. r=smaug
Use const and the same style for download and JS checks.

Differential Revision: https://phabricator.services.mozilla.com/D221028
2024-09-05 17:08:39 +00:00
Butkovits Atila
90dc3743ea Backed out 2 changesets (bug 1911977) for causing failures at browser_thumbnails_bg_bad_url.js. CLOSED TREE
Backed out changeset 564fe3a44acf (bug 1911977)
Backed out changeset d142c4f64ae7 (bug 1911977)
2024-09-05 04:19:21 +03:00
Emilio Cobos Álvarez
a2778c9033 Bug 1911977 - Minor clean-ups in nsDocShell::InternalLoad. r=smaug
Use const and the same style for download and JS checks.

Differential Revision: https://phabricator.services.mozilla.com/D221028
2024-09-04 20:18:55 +00:00
Nika Layzell
793f001a6e Bug 1914594 - Move docshell.newWindowTarget to be on LoadInfo, r=necko-reviewers,kershaw
Previously, this was passed around using the nsHashPropertyBag base
class on HTTP channels. In bug 1907269, this base was added to
nsExtProtocolChannel to support reading this property for external
protocols.

This unfortunately ended up not working when a HTTP channel redirects to
an external protocol, as the hash property propagation logic in
nsHttpChannel happens after the check that the target channel is a HTTP
channel, so the property was lost when redirecting to an external
protocol.

Rather than refactoring HTTP redirect logic, this patch simplifies by
moving the property onto the LoadInfo where it will be trivially
preserved across redirects, and available in the places which need it.

Because the nsHashPropertyBag base is no longer required for
nsExtProtocolChannel, it is also removed.

Differential Revision: https://phabricator.services.mozilla.com/D220744
2024-09-03 16:00:23 +00:00
Rob Wu
e520e9fd35 Bug 1903780 - Support directory names again in downloads.download r=geckoview-reviewers,NeilDeakin,m_kato
Differential Revision: https://phabricator.services.mozilla.com/D218719
2024-08-20 18:53:21 +00:00
Sean
3799274f28 Bug 1890028 - Display Server Error message when server returns HTTP 500 and unusual content-type r=kershaw,fluent-reviewers,necko-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D216978
2024-08-07 13:31:02 +00:00
Emilio Cobos Álvarez
e1ad6294bf Bug 1910698 - Remove nsIScriptError.sourceLine. r=smaug,devtools-reviewers,webdriver-reviewers,necko-reviewers,nchevobbe,kershaw,jdescottes,credential-management-reviewers,dimi
Afaict the source lines are not exposed anywhere in the UI.

Differential Revision: https://phabricator.services.mozilla.com/D218115
2024-08-01 17:12:48 +00:00
Emilio Cobos Álvarez
198c331213 Bug 1910698 - Add a struct to represent JS caller location and more general warning source location. r=smaug,necko-reviewers,anti-tracking-reviewers,dom-storage-reviewers,pbz,kershaw,janv
Use it liberally across the tree. This could be cleaned up even more in the future.

Differential Revision: https://phabricator.services.mozilla.com/D218114
2024-08-01 17:12:48 +00:00
Nika Layzell
c87395824f Bug 1907269 - Part 2: Test that external URIs load in noopener pop-ups, r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D218011
2024-07-31 20:34:54 +00:00
Nika Layzell
22d1d975b2 Bug 1907269 - Part 1: Allow pop-up windows to load external URIs for first load, r=Gijs
Previously this load would be allowed due to the "web-controlled" check
failing to reject the load. This patch instead bases it on the
docshell.newWindowTarget flag, which is set for the first load in a new
DocShell due to a call to window.open or target=_blank.

This required making the external protocol channel be a property bag so
that the flag can be set on the channel. In the future we may want to
switch this flag to being set in a more generic way which is less
specific to the channel.

Differential Revision: https://phabricator.services.mozilla.com/D217484
2024-07-31 20:34:54 +00:00
Sandor Molnar
5ce501ee48 Backed out 2 changesets (bug 1907269) for causing bc failures @ browser_ftp_protocol_handlers.js CLOSED TREE
Backed out changeset 3270496f12d8 (bug 1907269)
Backed out changeset 218c98804a83 (bug 1907269)
2024-07-30 02:16:42 +03:00
Nika Layzell
850e1046eb Bug 1907269 - Part 2: Test that external URIs load in noopener pop-ups, r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D218011
2024-07-29 22:15:43 +00:00
Nika Layzell
a5ec44308d Bug 1907269 - Part 1: Allow pop-up windows to load external URIs for first load, r=Gijs
Previously this load would be allowed due to the "web-controlled" check
failing to reject the load. This patch instead bases it on the
docshell.newWindowTarget flag, which is set for the first load in a new
DocShell due to a call to window.open or target=_blank.

This required making the external protocol channel be a property bag so
that the flag can be set on the channel. In the future we may want to
switch this flag to being set in a more generic way which is less
specific to the channel.

Differential Revision: https://phabricator.services.mozilla.com/D217484
2024-07-29 22:15:43 +00:00
Neil Deakin
73dca49154 Bug 1907931, fix missing closing tags so that the downloads tests are properly run, r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D217307
2024-07-26 18:28:59 +00:00
Marco Bonardo
3ca32026b5 Bug 1904022 - Create the check file in the initial download folder when checking for executable bits. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D217385
2024-07-24 14:03:44 +00:00
Marco Bonardo
5c1d864d6e Bug 1904023 - Provide the onStatusChange error message on the download when the failure is in nsExternalHelperAppService. r=Gijs
We can pass over the localized error message from nsExternalHelperAppService to
the downloads UI and show it to the user. That may help the user figuring out
why the download failed.
For now long messages are delegated to the tooltip.

Differential Revision: https://phabricator.services.mozilla.com/D217317
2024-07-24 14:03:14 +00:00
Sylvestre Ledru
45030f6970 Bug 1519636 - Reformat recent changes to the Google coding style r=emilio,necko-reviewers,geckoview-reviewers,application-update-reviewers,media-playback-reviewers,devtools-reviewers,anti-tracking-reviewers,profiler-reviewers,win-reviewers,migration-reviewers,padenot,mconley,nchevobbe,kershaw,gstoll,mstange,bytesized,m_kato
This new version of clang 17 also slightly changed the formatting.

# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D215914
2024-07-17 11:15:31 +00:00
whale
a860887be7 Bug 1768758 - Add Windows-specific function getW() for getting wchar_t r=xpcom-reviewers,win-reviewers,gstoll,nika
`char16_t` and `wchar_t` are functionally the same on Windows. But logging statements do not handle `char16_t` very well, resulting in the need to static cast to `wchar_t`. For more info, see [[ https://bugzilla.mozilla.org/show_bug.cgi?id=1768758 | bug task ]]:

This diff introduces a Windows-specific function for getting strings as `wchar_t` and replaces previous workaround usages.

Differential Revision: https://phabricator.services.mozilla.com/D215869
2024-07-10 22:10:56 +00:00
Ray Kraesig
b626761907 Bug 1884426 - [3/6] Implement file-picker-crashed UI message r=Gijs,win-reviewers,fluent-reviewers,firefox-desktop-core-reviewers ,flod,gstoll
Fire a signal (via the observer service) when the file-dialog crashes or
otherwise fails.

Set up a listener for that signal which reports the failure to the
end-user via the NotificationBox.

Differential Revision: https://phabricator.services.mozilla.com/D214192
2024-07-09 22:16:55 +00:00
Joel Maher
3d4dfe804d Bug 1903845 - Add 'os_integration' tags to test manifests for faster image verification. r=aryx,jgilbert,settings-reviewers,media-playback-reviewers,sessionstore-reviewers,places-reviewers,omc-reviewers,migration-reviewers,padenot,dao,aminomancer,Standard8,mconley
Differential Revision: https://phabricator.services.mozilla.com/D214969
2024-07-09 13:01:55 +00:00
Ray Kraesig
2bbba822f4 Bug 1904160 - [7/7] Add method to get downloads directory r=geckoview-reviewers,mak,m_kato
nsIExternalHelperAppService computes, but does not expose, the preferred
downloads directory's location. Expose it, for use by default-save-location
fallback code when the file-dialog fails.

Additionally, add a test to confirm that the value produced by this
method is, as the comment nearby implies, the same as that produced by
the eponymous method on `DownloadIntegration`.

Differential Revision: https://phabricator.services.mozilla.com/D214189
2024-07-08 18:38:40 +00:00
Ray Kraesig
7d4ebff772 Bug 1904160 - [6/7] Factor out GetPreferredDownloadsDirectory() [sic] r=Gijs
Split `GetDownloadDirectory` into `GetInitialDownloadDirectory` and
`GetPreferredDownloadsDirectory`. (The latter is named for the function
in DownloadIntegration.sys.mjs whose behavior it should match.)

Unlike previous refactors in the patchset, when considered in isolation,
this patch doesn't really improve the code; it's just a necessary
prerequisite for exposing the function for use elsewhere.

The naming inconsistency here ("Download**s**Directory") is intentional
to match the name of its coordinate function in DownloadIntegration.

No functional changes.

Differential Revision: https://phabricator.services.mozilla.com/D214656
2024-07-08 18:38:40 +00:00
Ray Kraesig
ed553b8332 Bug 1904160 - [5/7] Assorted local refactoring and cleanup r=Gijs
Scope various temporary variables more tightly. Remove unneeded
conditionals.

There is one minor functional change: we no longer abort entirely if
`bundleService` could not be acquired, but instead fall back to just
using the unlocalized string.

Differential Revision: https://phabricator.services.mozilla.com/D214655
2024-07-08 18:38:39 +00:00
Ray Kraesig
f913573c05 Bug 1904160 - [4/7] Factor out GetOsTmpDownloadDirectory() r=Gijs
No functional changes.

Differential Revision: https://phabricator.services.mozilla.com/D214654
2024-07-08 18:38:39 +00:00
Ray Kraesig
9d6643e142 Bug 1904160 - [3/7] Collect checks into a helper function r=nika
No functional changes.

Differential Revision: https://phabricator.services.mozilla.com/D214653
2024-07-08 18:38:39 +00:00
Ray Kraesig
70376b6044 Bug 1904160 - [2/7] Simplify dataflow r=Gijs
Scope `dir` more tightly; return early when possible.

No functional changes.

Differential Revision: https://phabricator.services.mozilla.com/D214652
2024-07-08 18:38:38 +00:00
Ray Kraesig
11e40bd17d Bug 1904160 - [1/7] Convert GetDownloadDirectory() to use Result r=Gijs
This greatly simplifies future refactorings, mostly by obviating
`dir.forget(_directory)`.

There is one deliberate functional change: in `SetDownloadToLaunch()`,
we now check the error-return value of `GetDownloadDirectory()` and
abort if it failed, rather than proceeding.

Differential Revision: https://phabricator.services.mozilla.com/D214651
2024-07-08 18:38:38 +00:00
Calixte
3214ad2325 Bug 1898380 - Replace the 'unsaved changes' dialog in the PDF viewer with a clearer one r=Gijs,desktop-theme-reviewers,emilio,dao
Differential Revision: https://phabricator.services.mozilla.com/D212027
2024-06-28 19:03:05 +00:00
Tom Schuster
6613ec7689 Bug 1904004 - Use OriginAttributes::IsPrivateBrowsing instead of open coding PBM checks. r=timhuang,cookie-reviewers,anti-tracking-reviewers,profiler-reviewers,necko-reviewers,kershaw,dom-storage-reviewers,janv,canaltinova,dom-worker-reviewers,asuth
Differential Revision: https://phabricator.services.mozilla.com/D214532
2024-06-24 11:06:18 +00:00
Paul Zuehlcke
f8830ccd7a Bug 1876736 - Record bounce trackers purged in anti-tracking stats. r=anti-tracking-reviewers,manuel
Differential Revision: https://phabricator.services.mozilla.com/D212798
2024-06-11 17:16:37 +00:00
Nika Layzell
524e4f032a Bug 1681457 - Allow non-auxiliary BrowsingContexts created by script to close themselves, r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D211792
2024-06-05 00:06:48 +00:00
Nika Layzell
9306cb7c3e Bug 1718673 - Allow loading text/event-stream in-browser as plain-text, r=smaug,necko-reviewers,kershaw
This patch also updates some documentation which was telling folks supporting new content types to update dead code.

Differential Revision: https://phabricator.services.mozilla.com/D211797
2024-06-05 00:05:57 +00:00
Norisz Fay
f31e183290 Backed out 3 changesets (bug 1718673, bug 196078) for causing wpt failures on report-frame-ancestors-with-x-frame-options.sub.html CLOSED TREE
Backed out changeset 6a54aa5039e7 (bug 196078)
Backed out changeset 0582d2fa1401 (bug 196078)
Backed out changeset d8d9a0fe366b (bug 1718673)
2024-06-01 03:33:07 +03:00
Norisz Fay
b8a048f1f4 Backed out changeset 1034029ae9ed (bug 1681457) for causing failures on test_window_close.html CLOSED TREE 2024-06-01 00:10:26 +03:00
Nika Layzell
2ae6781b16 Bug 1718673 - Allow loading text/event-stream in-browser as plain-text, r=smaug,necko-reviewers,kershaw
This patch also updates some documentation which was telling folks supporting new content types to update dead code.

Differential Revision: https://phabricator.services.mozilla.com/D211797
2024-05-31 17:30:22 +00:00
Nika Layzell
a562668089 Bug 1681457 - Allow non-auxiliary BrowsingContexts created by script to close themselves, r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D211792
2024-05-31 17:27:15 +00:00
Max Christian Pohle
d19ae14789 Bug 1894024 - mailto: remind users to finish the configuration of a webmailer, r=Gijs,firefox-desktop-core-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D209067
2024-05-30 15:59:30 +00:00
Simon Friedberger
737f38b1f7 Bug 1894662 - Disable HTTPS-First for browser_download_idn_blocklist.js r=freddyb,mak
Differential Revision: https://phabricator.services.mozilla.com/D210647
2024-05-16 15:24:47 +00:00
Neil Deakin
e17b53a054 Bug 1891234, additional filename filter checks, r=Gijs,extension-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D208659
2024-05-14 17:35:05 +00:00
tannal
2536c96ee7 Bug 1895530 - Remove security.allow_disjointed_external_uri_loads pref r=gregp,Gijs CLOSED TREE
Differential Revision: https://phabricator.services.mozilla.com/D210122
2024-05-14 09:35:27 +00:00
Cristian Tuns
c5dd2a6762 Backed out changeset 8d7fe48731d9 (bug 1895530) for causing mochitest failures in test_ext_browserAction_openPopup_windowId.html CLOSED TREE 2024-05-14 14:18:37 -04:00