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
Перейти к файлу
Nick Alexander 969b4ce42e Bug 1243603 - Telemetry for when Windows invokes Firefox to handle a registered file type or protocol. r=Gijs
The `-osint` flag is used as the signal that Windows is invoking
Firefox to handle a file type or protocol.  The `-osint` flag was
introduced in order to mitigate security breaches due to poor argument
quoting (by consumers invoking Firefox); to use it for this new
purpose, it must be preserved for downstream consumers to react to.
Alternately, some marker of the flag could be maintained.  Since the
flag needs to transit through the launcher process, I've elected to
simply not strip it as we validate command lines, and to accommodate
it further downstream.  (It looks like Thunderbird already
accommodates `-osint`: see
https://searchfox.org/comm-central/rev/3e8f926de9ea09945b237177eb6d489c70318f0e/mail/components/MessengerContentHandler.jsm#568.)

The telemetry in this patch achieves two purposes.  The first is to
count the number of times Firefox is invoked to handle a registered
file type or protocol: for this, a new keyed uint scalar was added.
File types start with a ".", just like on Windows; protocols
(equivalently, the schemes used to identify them) do not start with a
".".

The second is to identify times when Firefox is launched (i.e., it was
not already running) to handle a registered file type or protocol.

This generalizes the existing `os.environment.launch_method`,
introducing `os.environment.launched_to_handle` and
`os.environment.invoked_to_handle` string scalars, which record the
file type or protocol.

The command line state `STATE_INITIAL_LAUNCH` is used to discriminate
launching from invoking.

Differential Revision: https://phabricator.services.mozilla.com/D132288
2021-12-11 00:00:55 +00:00
.cargo Bug 1744677 - Remove Cargo.toml patch for wasmtime crates. r=rhunt 2021-12-08 05:40:54 +00:00
.vscode
accessible Bug 1741148 - part 4: Add `nsINode::ComputeIndexInParentNode()` and `nsINode::ComputeIndexInParentContent()` r=smaug 2021-12-09 12:03:00 +00:00
browser Bug 1243603 - Telemetry for when Windows invokes Firefox to handle a registered file type or protocol. r=Gijs 2021-12-11 00:00:55 +00:00
build Bug 1745115 - Apply the same patches as clang 13 to clang trunk. r=firefox-build-system-reviewers,andi 2021-12-10 00:29:59 +00:00
caps Bug 1590068 - Add fuzzing target for StructuredCloneData. r=baku,sfink 2021-12-08 18:59:02 +00:00
chrome Bug 1734823 - Enable ESLint rule no-unused-vars globally for xpcshell test*.js files. r=necko-reviewers,Gijs,valentin 2021-10-11 11:07:02 +00:00
config Bug 1745079 - Remove INCREMENTAL_LINKER. r=firefox-build-system-reviewers,andi 2021-12-10 03:27:27 +00:00
devtools Bug 1745325 - Remove unnecessary setting of `print.tab_modal.enabled=true` in tests. r=hiro 2021-12-10 22:56:09 +00:00
docs Bug 1740030 - Migrate "Writing xpcshell-based unit tests" MDN doc to Firefox Source Docs r=mbucher 2021-12-08 15:18:02 +00:00
docshell Bug 1744321 - Add IsInProcess() check while checking sandbox flags; r=nika 2021-12-10 18:56:42 +00:00
dom Bug 1743734 - Strip d3d driver version from ANGLE RENDERER strings. r=gfx-reviewers,lsalzman 2021-12-10 22:56:43 +00:00
editor Bug 1741148 - part 3: Make users of `nsINode::ComputeIndexOf_Deprecated()` use `nsINode::ComputeIndexOf()` if the result is not set to `int32_t` nor return as `int32_t` r=smaug 2021-12-09 11:55:36 +00:00
extensions Bug 1735446 - part 5: Make `nsIInlineSpellChecker` use `unsigned long` as offset in node r=m_kato 2021-12-09 07:44:09 +00:00
gfx Bug 1683975. Don't validate the variations when constructing the CTFont. r=jfkthame 2021-12-10 20:18:29 +00:00
gradle/wrapper Backed out 2 changesets (bug 1724480) for causing Bug 1745152 and Bug 1745153 CLOSED TREE 2021-12-09 18:58:02 +02:00
hal Bug 1697647 - Add screen orientation lock api r=ipc-reviewers,mccr8,agi,smaug,jonalmeida 2021-12-06 13:58:37 +00:00
image Bug 1742051 - Allow factor-of-2 scaling for vector images without intrinsic size. r=tnikkel 2021-12-10 14:54:02 +00:00
intl Bug 1719751 - Clean up final ICU details in CommonFunctions; r=anba,platform-i18n-reviewers,dminor 2021-12-09 15:52:43 +00:00
ipc Merge mozilla-central to autoland on a CLOSED TREE 2021-12-10 09:41:08 -05:00
js Bug 1744979 - Add testcase to exercise TenuredChunk::decommitFreeArenasWithoutUnlocking r=sfink 2021-12-10 17:42:41 +00:00
layout Bug 1745325 - Remove unnecessary setting of `print.tab_modal.enabled=true` in tests. r=hiro 2021-12-10 22:56:09 +00:00
media Bug 1745177 - Update libjpeg-turbo to 2.1.2. r=tnikkel 2021-12-09 21:39:26 +00:00
memory Bug 1743713 - Fix a warning for FdPrintf in PHC r=glandium 2021-12-07 22:27:21 +00:00
mfbt Bug 1743896 - Update xxHash to version 0.8.1. r=dthayer 2021-12-02 01:53:56 +00:00
mobile Bug 1674034 - Move SetResolutionAndScaleTo to actor. r=calu 2021-12-10 23:56:07 +00:00
modules Bug 1745465 - Add a pref to enable the Page Setup menu. r=mstriemer 2021-12-10 19:02:48 +00:00
mozglue Bug 1745071 - Add IPCMessages to StartupExtraDefaultFeatures() - r=florian 2021-12-09 11:48:22 +00:00
netwerk Bug 1745046 - Use OpaqueResponseBlockedReason to decide whether to send data for sniffinf, r=necko-reviewers,valentin 2021-12-10 15:31:08 +00:00
nsprpub Bug 1743566 - NSPR_4_33_BETA1. r=glandium UPGRADE_NSPR_RELEASE 2021-12-03 13:01:43 +00:00
other-licenses Bug 1733545 - Remove REQUIRES_UNIFIED_BUILD from third-party directories that don't need it. r=firefox-build-system-reviewers,andi 2021-10-01 09:01:27 +00:00
parser Bug 1745139 - Check for termination even after the first flush loop in CommitToInternalEncoding. r=smaug 2021-12-09 12:59:04 +00:00
python Bug 1740566 - Remove unused class member r=firefox-build-system-reviewers,mhentges 2021-12-10 21:28:07 +00:00
remote Bug 1731553 - [webdriver-bidi] Add support for "stackTrace" to "log.entryAdded". r=webdriver-reviewers,jdescottes 2021-12-09 20:24:09 +00:00
security Bug 1712972 - only call IsCertBuiltInRoot on the socket thread during certificate verification r=jschanck 2021-12-10 21:14:23 +00:00
services No Bug, mozilla-central repo-update HSTS HPKP remote-settings tld-suffixes - a=repo-update r=RyanVM 2021-12-09 15:07:56 +00:00
servo Bug 1531223 - Add support for the 'ic' font-relative unit. r=emilio 2021-12-08 17:07:05 +00:00
startupcache Backed out 3 changesets (bug 1724509) for causing marionette failures. CLOSED TREE 2021-10-06 03:57:57 +03:00
storage Bug 1738966 - Pass in argc, argv in GreOmniPath. r=kershaw,valentin 2021-11-03 16:31:06 +00:00
taskcluster Bug 1277320 - Run GTests on all Windows flavors as Tier 1. r=glandium 2021-12-10 12:49:54 +00:00
testing Bug 1745463 - Move CSS some text-shadow reftests to WPT. r=mstange 2021-12-10 20:02:57 +01:00
third_party Backed out changeset 7ca282be411f (bug 1744674) for python failures on test_site_compatibility.py. CLOSED TREE 2021-12-11 01:08:45 +02:00
toolkit Bug 1243603 - Telemetry for when Windows invokes Firefox to handle a registered file type or protocol. r=Gijs 2021-12-11 00:00:55 +00:00
tools Bug 1744325 - Remove outdated `update-packaging` cruft. r=bhearsum,firefox-build-system-reviewers,glandium 2021-12-10 17:31:08 +00:00
uriloader Bug 1733621 - Verify that user preferences are honored when improvements_to_download_panel is set r=Gijs 2021-12-09 14:47:17 +00:00
view Bug 1737044 - Include pointer and frame in nsWindow logging. r=stransky 2021-10-21 14:02:30 +00:00
widget Bug 1744496 - Fix titlebar corners in ElementaryOS themes. r=stransky 2021-12-10 22:12:07 +00:00
xpcom Bug 1736177 - Part 3. Update OffscreenCanvas WebIDL to be more current. r=dom-worker-reviewers,jgilbert,smaug 2021-12-10 02:57:52 +00:00
xpfe/appshell Backed out changeset 36f5dbe746ec (bug 1743486) for bustage on nsContentUtils.cpp. CLOSED TREE 2021-12-07 19:42:45 +02:00
.arcconfig
.babel-eslint.rc.js Bug 1725934 - Remove unnecessary babel plugin, and update node modules to the latest versions. r=Mardak 2021-08-18 07:44:47 +00:00
.clang-format
.clang-format-ignore Bug 1719554 - Unify unicode::Script as intl::Script; r=platform-i18n-reviewers,gregtatum 2021-12-06 18:15:50 +00:00
.cron.yml Bug 1738908 - remove esr78 references. r=releng-reviewers,mtabara DONTBUILD 2021-11-02 16:47:50 +00:00
.eslintignore Bug 1726804 - Refactor PROCESS_TYPE_* from nsICrashService r=gsvelto 2021-11-19 14:02:56 +00:00
.eslintrc.js Bug 1738815: Move quicksuggest tests into own dir. r=adw 2021-11-25 01:14:51 +00:00
.flake8 Bug 1731542 - remove `infer` from our static-analysis pipeline. r=static-analysis-reviewers,marco 2021-09-20 12:47:44 +00:00
.git-blame-ignore-revs Bug 1735638 - Add Bug 1571899 to annotate/blame ignore revisions. r=glandium DONTBUILD 2021-10-14 16:02:46 +00:00
.gitattributes
.gitignore Bug 1736907 - Add a build flag to experimentally build with ICU4X static data; r=platform-i18n-reviewers,dminor 2021-11-16 15:09:09 +00:00
.hg-annotate-ignore-revs Bug 1735638 - Add Bug 1571899 to annotate/blame ignore revisions. r=glandium DONTBUILD 2021-10-14 16:02:46 +00:00
.hg-format-source
.hgignore Bug 1736907 - Add a build flag to experimentally build with ICU4X static data; r=platform-i18n-reviewers,dminor 2021-11-16 15:09:09 +00:00
.hgtags No bug - tagging 9a9e37163d95b8021449260af27a113d4633235c with FIREFOX_NIGHTLY_96_END a=release DONTBUILD CLOSED TREE 2021-12-06 19:18:18 +00:00
.lando.ini Bug 1740791: temporarily disable autoformatting r=sheehan DONTBUILD 2021-11-16 16:49:41 +00:00
.lldbinit
.mailmap
.prettierignore
.prettierrc
.taskcluster.yml Bug 1732723 - Rename "taskgraph" Python module to "gecko_taskgraph". r=jmaher 2021-09-30 09:50:08 -04:00
.trackerignore
.yamllint
.ycm_extra_conf.py
AUTHORS
CLOBBER Update configs. IGNORE BROKEN CHANGESETS CLOSED TREE NO BUG a=release ba=release 2021-12-06 19:18:29 +00:00
Cargo.lock Backed out changeset 7ca282be411f (bug 1744674) for python failures on test_site_compatibility.py. CLOSED TREE 2021-12-11 01:08:45 +02:00
Cargo.toml Backed out changeset 5396b58ddae7 (bug 1712837) for causing Android ARMv7 build bustages. a=backout 2021-12-10 09:35:39 -05:00
GNUmakefile
LICENSE
Makefile.in Bug 1744325 - Remove outdated `update-packaging` cruft. r=bhearsum,firefox-build-system-reviewers,glandium 2021-12-10 17:31:08 +00:00
README.txt
aclocal.m4
build.gradle Backed out changeset 7ca282be411f (bug 1744674) for python failures on test_site_compatibility.py. CLOSED TREE 2021-12-11 01:08:45 +02:00
client.mk Bug 1734594 - Terminate the sccache server in cases where submakes end in an error. r=firefox-build-system-reviewers,andi 2021-10-08 09:30:48 +00:00
client.py
configure.in
configure.py Bug 1743033 - Avoid creating mach virtualenv when running confgure standalone. r=mhentges 2021-11-26 01:56:04 +00:00
gradle.properties Bug 1727438 - Increase java max heap to 32G. r=nalexander,owlish 2021-08-31 20:53:08 +00:00
gradlew
gradlew.bat
mach Bug 1731158 - Allow initializing mach from a Thunderbird source repo. r=firefox-build-system-reviewers,mhentges 2021-11-29 18:34:58 +00:00
mach.ps1
moz.build Bug 1734831 - fx doc: import the gtest doc from mdn archive + refresh r=gcp DONTBUILD 2021-10-08 19:53:53 +00:00
moz.configure Bug 1277320 - Run GTests on all Windows flavors as Tier 1. r=glandium 2021-12-10 12:49:54 +00:00
mozilla-config.h.in
old-configure.in Bug 1745090 - Remove MOZ_SPELLCHECK. r=firefox-build-system-reviewers,andi 2021-12-10 03:27:28 +00:00
package-lock.json Bug 1736781 - Update eslint-plugin-no-unsanitized to version 3.2.0 r=Standard8 2021-10-21 13:08:11 +00:00
package.json Bug 1736781 - Update eslint-plugin-no-unsanitized to version 3.2.0 r=Standard8 2021-10-21 13:08:11 +00:00
settings.gradle Bug 1529082 - Move TestRunnerActivity to test_runner. r=ahal,owlish 2021-11-02 18:56:26 +00:00
substitute-local-geckoview.gradle Bug 1744336 - load mozconfig only once in substitute-local-geckoview. r=agi 2021-12-07 17:53:25 +00:00
test.mozbuild

README.txt

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.