Read-only Git mirror of the Mercurial gecko repositories at https://hg.mozilla.org. How to contribute: https://firefox-source-docs.mozilla.org/contributing/contribution_quickref.html
Go to file
Nika Layzell ec657d1c80 Bug 1868001 - Ignore Content-Disposition if DONT_RETARGET is set, r=smaug
This patch modifies the behaviour of loads when the DONT_RETARGET
nsIURILoader flag is set, making them ignore the Content-Disposition
header. This means that loads which cannot trigger downloads will
attempt to display handleable content which would otherwise be
downloaded.

This keeps overall behaviour of object/embed elements more similar to
their behaviour pre-Fission, while allowing them to load attachment PDFs
and Images as-if they were being displayed by a plugin.

This patch does not change the existing behaviour around
unknown/unhandleable resource types in object/embed elements.
In Gecko, object/embed elements are prevented from triggering downloads
or external protocol handlers during their initial load. Other browser
engines can trigger a download for an unknown resource type (or
sometimes an attachment resource).

The new pref dom.navigation.object_embed.allow_retargeting can be
enabled to instead trigger a download when loading these resources
within an object/embed element.

Differential Revision: https://phabricator.services.mozilla.com/D201645
2024-02-20 17:33:57 +00:00
.cargo Bug 1880934 - Update aa-stroke to include f32 bezier flattener. r=lsalzman 2024-02-20 15:03:02 +00:00
.github/workflows
.vscode
accessible Bug 1780071 - autofix violations of no-comparison-or-assignment-inside-ok in misc other folders r=webdriver-reviewers,necko-reviewers,sync-reviewers,profiler-reviewers,sgalich,whimboo,markh,kershaw,julienw 2024-02-19 21:47:41 +00:00
browser Bug 1770944 - remove dangling textual references of mozbrowser, r=smaug 2024-02-20 16:53:25 +00:00
build Bug 1770944 - remove /dom/browser-element/ path from other places, r=smaug,zeid 2024-02-20 16:53:25 +00:00
caps Bug 1770944 - fixed isolatedMozBrowser related tests, r=smaug,necko-reviewers,jesup 2024-02-20 16:53:26 +00:00
chrome
config Update configs. IGNORE BROKEN CHANGESETS CLOSED TREE NO BUG a=release ba=release 2024-02-19 09:55:58 +00:00
devtools Bug 1780071 - turn on no-comparison-or-assignment-inside-ok for xpcshell and browser tests, r=mossop,devtools-reviewers,fxview-reviewers,sclements,ochameau 2024-02-20 12:40:07 +00:00
docs Bug 1865758 - Update builders to rustc 1.76 r=firefox-build-system-reviewers,sergesanspaille 2024-02-08 22:38:32 +00:00
docshell Bug 1868001 - Ignore Content-Disposition if DONT_RETARGET is set, r=smaug 2024-02-20 17:33:57 +00:00
dom Bug 1868001 - Ignore Content-Disposition if DONT_RETARGET is set, r=smaug 2024-02-20 17:33:57 +00:00
editor Bug 1871135 - Add content analysis support to clipboard operations r=edgar,nika,masayuki,devtools-reviewers 2024-02-13 11:26:48 +00:00
extensions Bug 1770944 - test_permmanager_matches:removed inIsolatedMozBrowser related tests, r=smaug 2024-02-20 16:53:28 +00:00
gfx Bug 1880926 - Check if system enables HDR on Windows r=gfx-reviewers,lsalzman 2024-02-20 02:58:29 +00:00
gradle/wrapper Bug 1878410 - Update Gradle to version 8.6. r=geckoview-reviewers,mcarare,amejiamarmol 2024-02-05 16:01:14 +00:00
hal Bug 1875484 - Add missing null check in Hal code. r=gsvelto 2024-01-22 18:56:18 +00:00
image Bug 1780071 - Manual fixes/disabling of no-comparison-or-assignment-inside-ok for exceptional cases, r=Standard8,devtools-reviewers,anti-tracking-reviewers,places-reviewers,dom-storage-reviewers,pbz,asuth,nchevobbe 2024-02-19 23:30:40 +00:00
intl Bug 1879488: Update time zone data to tzdata2024a. r=platform-i18n-reviewers,dminor 2024-02-14 13:25:29 +00:00
ipc Bug 1880849 - Expose Utility process with actor names in about:support r=flod,fluent-reviewers 2024-02-20 11:44:15 +00:00
js Bug 1875639 - Part 3: Remove loadInDevToolsLoader option and contextual loader behavior. r=ochameau,jonco 2024-02-20 04:49:58 +00:00
layout Bug 1770944 - remove dangling textual references of mozbrowser, r=smaug 2024-02-20 16:53:25 +00:00
media Bug 1880815 - Update dav1d to 4796b59fc0a459588183dc2ea199ba1074befc67 r=chunmin 2024-02-20 17:19:03 +00:00
memory Bug 1867190 - Add prefs for PHC probablities r=glandium 2024-01-30 05:33:38 +00:00
mfbt Bug 1037100 - Scoped.h removed because no outstanding uses. r=glandium,dom-storage-reviewers,jesup,janv 2024-02-14 06:41:58 +00:00
mobile Backed out changeset 36528f02a12e (bug 1837601) for causing geckoview failures in trackingProtectionPermissionOnAllPages CLOSED TREE 2024-02-14 14:18:05 -05:00
modules Bug 1868001 - Ignore Content-Disposition if DONT_RETARGET is set, r=smaug 2024-02-20 17:33:57 +00:00
mozglue Bug 1770944 - Remove other references to inBrowserElement, r=cookie-reviewers,valentin,janv,decoder 2024-02-20 16:53:24 +00:00
netwerk Bug 1868001 - Ignore Content-Disposition if DONT_RETARGET is set, r=smaug 2024-02-20 17:33:57 +00:00
nsprpub
other-licenses
parser Bug 1871112 - Specialize AddAttributes for <html>/<body>. r=hsivonen 2024-02-14 12:55:42 +00:00
python Bug 1864340 - display correct wording in ac footer - r=sgalich,dimi,fluent-reviewers,bolsson 2024-02-20 14:21:18 +00:00
remote Bug 1780071 - autofix violations of no-comparison-or-assignment-inside-ok in misc other folders r=webdriver-reviewers,necko-reviewers,sync-reviewers,profiler-reviewers,sgalich,whimboo,markh,kershaw,julienw 2024-02-19 21:47:41 +00:00
security Bug 1780071 - autofix violations of no-comparison-or-assignment-inside-ok in misc other folders r=webdriver-reviewers,necko-reviewers,sync-reviewers,profiler-reviewers,sgalich,whimboo,markh,kershaw,julienw 2024-02-19 21:47:41 +00:00
services Backed out changeset 623e19026939 (bug 1855264) for causing crashes on test_sync_auth_manager.js. CLOSED TREE 2024-02-20 19:08:00 +02:00
servo Bug 1868316 - Remove user-find, make inert not findable. r=dholbert 2024-02-16 20:18:06 +00:00
startupcache Bug 1874226 - Use unique_ptr not Scoped in xpcom/*. r=xpcom-reviewers,necko-reviewers,valentin,emilio 2024-02-07 18:30:22 +00:00
storage Bug 1869060 - Add SQLite Online Backup API support via mozIStorageAsyncConnection. r=mak 2024-01-22 14:26:53 +00:00
supply-chain Backed out changeset 6c231ed79678 (bug 1880013) for causing wrench bustages CLOSED TREE 2024-02-19 17:16:09 -05:00
taskcluster Bug 1880925 - Pin platform-tools to r34.0.5. r=releng-reviewers,jcristau 2024-02-20 14:10:06 +00:00
testing Bug 1870037 - Remove [SecureContext] from Gamepads r=webidl,smaug 2024-02-20 17:10:54 +00:00
third_party Bug 1880815 - Update dav1d to 4796b59fc0a459588183dc2ea199ba1074befc67 r=chunmin 2024-02-20 17:19:03 +00:00
toolkit Bug 1770944 - remove dangling textual references of mozbrowser, r=smaug 2024-02-20 16:53:25 +00:00
tools Bug 1770944 - remove /dom/browser-element/ path from other places, r=smaug,zeid 2024-02-20 16:53:25 +00:00
uriloader Bug 1868001 - Ignore Content-Disposition if DONT_RETARGET is set, r=smaug 2024-02-20 17:33:57 +00:00
view
widget Bug 1879608 - [1/1] also manually disable the root window when opening a file-dialog r=win-reviewers,handyman 2024-02-20 16:37:09 +00:00
xpcom Bug 1770944 - Remove other references to inBrowserElement, r=cookie-reviewers,valentin,janv,decoder 2024-02-20 16:53:24 +00:00
xpfe/appshell Bug 1878037 - Fix some regressions on alert windows. r=saschanaz,win-reviewers,rkraesig 2024-02-12 19:45:48 +00:00
.arcconfig
.babel-eslint.rc.js
.clang-format
.clang-format-ignore Bug 1877989 - [devtools] Add CodeMirror 6 in tree. r=devtools-reviewers,bomsy. 2024-02-08 14:39:41 +00:00
.cron.yml Bug 1873723 - Run browsertime tests on beta/release with a cron. r=perftest-reviewers,taskgraph-reviewers,kshampur,jcristau DONTBUILD 2024-02-12 18:29:00 +00:00
.eslintignore Bug 1877596 - Use original URL as base URL for internal scheme also in worker. r=jonco,dom-storage-reviewers,janv,dom-worker-reviewers,smaug 2024-02-05 01:12:24 +00:00
.eslintrc-test-paths.js Bug 1876988 - Enable ESLint rules no-undef and no-unused-vars. r=smaug 2024-01-29 11:23:59 +00:00
.eslintrc.js Bug 1780071 - turn on no-comparison-or-assignment-inside-ok for xpcshell and browser tests, r=mossop,devtools-reviewers,fxview-reviewers,sclements,ochameau 2024-02-20 12:40:07 +00:00
.git-blame-ignore-revs
.gitattributes
.gitignore
.hg-annotate-ignore-revs
.hg-format-source
.hgignore
.hgtags No bug - tagging 3a789882861bf458a92ed529bdbe4ddc39bd9671 with FIREFOX_NIGHTLY_124_END a=release DONTBUILD CLOSED TREE 2024-02-19 09:55:46 +00:00
.lando.ini
.lldbinit
.mailmap
.prettierignore Bug 1819713 - remove stray references to IsExternalCTAP2SecurityKeySupported. r=tschuster 2024-02-09 22:42:36 +00:00
.prettierrc.js
.stylelintignore
.stylelintrc.js
.taskcluster.yml
.trackerignore
.yamllint
.ycm_extra_conf.py
aclocal.m4
AUTHORS
build.gradle Bug 1879857 - Update Glean to v57.0.0. r=chutten,supply-chain-reviewers,mach-reviewers 2024-02-13 20:47:02 +00:00
Cargo.lock Bug 1880934 - Update aa-stroke to include f32 bezier flattener. r=lsalzman 2024-02-20 15:03:02 +00:00
Cargo.toml Bug 1879614: Vendor application-services into mozilla-central r=adw,nanj 2024-02-15 02:35:47 +00:00
client.mk
client.py
CLOBBER Bug 1822171 - Remove android_support dependency from libwebrtc. - moz.build file updates r=webrtc-reviewers,mjf 2024-02-20 14:10:08 +00:00
configure
configure.py
GNUmakefile
gradle.properties Bug 1873677 - Upgrade Gradle to 8.5 version r=geckoview-reviewers,calu 2024-01-23 14:50:12 +00:00
gradlew Bug 1873677 - Upgrade Gradle to 8.5 version r=geckoview-reviewers,calu 2024-01-23 14:50:12 +00:00
gradlew.bat Bug 1878410 - Update Gradle to version 8.6. r=geckoview-reviewers,mcarare,amejiamarmol 2024-02-05 16:01:14 +00:00
LICENSE
mach
mach.cmd
mach.ps1
Makefile.in
mots.yaml Bug 1770944 - remove /dom/browser-element/ path from other places, r=smaug,zeid 2024-02-20 16:53:25 +00:00
moz.build
moz.configure Bug 1853564 - Look for install_name_tool in addition to install-name-tool and llvm-install-name-tool r=glandium 2024-01-24 06:54:58 +00:00
mozilla-config.h.in
old-configure.in Bug 1880048 - Move -pipe check to moz.configure r=glandium 2024-02-14 09:24:19 +00:00
package-lock.json Bug 1878009 - Remove Babel from ESLint's node-modules. r=mossop 2024-02-02 18:45:09 +00:00
package.json Bug 1878009 - Remove Babel from ESLint's node-modules. r=mossop 2024-02-02 18:45:09 +00:00
pyproject.toml
README.txt
settings.gradle
substitute-local-geckoview.gradle
test.mozbuild

An explanation of the Firefox Source Code Directory Structure and links to
project pages with documentation can be found at:

    https://firefox-source-docs.mozilla.org/contributing/directory_structure.html

For information on how to build Firefox from the source code and create the patch see:

    https://firefox-source-docs.mozilla.org/contributing/contribution_quickref.html

If you have a question about developing Firefox, and can't find the solution
on https://firefox-source-docs.mozilla.org/, you can try asking your question on Matrix at chat.mozilla.org in `Introduction` (https://chat.mozilla.org/#/room/#introduction:mozilla.org) channel.


Nightly development builds can be downloaded from:

    https://archive.mozilla.org/pub/firefox/nightly/latest-mozilla-central/
            - or -
    https://www.mozilla.org/firefox/channel/desktop/#nightly

Keep in mind that nightly builds, which are used by Firefox developers for
testing, may be buggy.