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
Kelsey Gilbert 2a633b2502 Bug 1799258 - Do color-management on Windows+DComp via IDCompositionFilterEffects. r=sotaro
+ Add gfx.color_management.rec709_gamma_as_srgb:true. :'(

In particular, rec709(16/255) -> srgb(31/255). Even though it's
technically correct, it's practically-speaking incorrect, since that's
not what Chrome does, nor what the web expected for years and years.

In practice, basically everyone expects gamma to just be completely
ignored.

What people expect:
* Pretend gamut is srgb(==rec709), but stretch this naively for the
  display. If you have a display-p3-gamut display, srgb:0.5 expects to
  be displayed as display:0.5, which will be display-p3:0.5 to the eyes.
* Pretend all content gammas (TFs) are srgb(!=rec790), and then bitcast this
  naively for the display. E.g. rec709(16/255) should
  display the same as srgb(16/255), not srgb(31/255). (Note: display-p3
  uses srgb gamma) But if your display has e.g. gamma=3.0, don't
  convert or compensate.

This is a formalization of what you get when you spend decades ignoring
color management, and people build things based on behavior-in-practice,
not behavior-in-theory.

Also:
+ gfx.color_management.native_srgb:true for Windows, so we don't use the
  display color profile, which no one else does.
+ Add rec2020_gamma_as_rec709, so we have a path towards maybe having
  rec2020 use its correct transfer function, rather than srgb (like
  rec709).

Differential Revision: https://phabricator.services.mozilla.com/D161857
2023-03-13 21:04:10 +00:00
.cargo Bug 1818349 Part 1: Vendor new version of application-services r=markh 2023-03-07 07:42:14 +00:00
.vscode
accessible Bug 1819799: In a11y browser tests, treat a timeout in untilCacheCondition as a failure. r=eeejay 2023-03-10 03:49:04 +00:00
browser Bug 1822131 - Allow XUL elements to shrink-by-default. r=dholbert 2023-03-13 20:43:34 +00:00
build Bug 1814727: add tasks for attributing en-US builds r=ahal,nalexander 2023-03-13 19:04:06 +00:00
caps Bug 1776755 - Skip ordering ExpandedPrincipals to speed up creation; r=nika,necko-reviewers 2023-03-13 14:52:04 +00:00
chrome Bug 1819815 - Make chrome/ buildable outside of a unified build environment r=andi 2023-03-02 07:44:28 +00:00
config Merge mozilla-central to autoland. CLOSED TREE 2023-03-13 18:29:02 +01:00
devtools Bug 1820784 - [devtools] Fix highlight matches for regex search results r=nchevobbe,devtools-reviewers 2023-03-13 15:36:44 +00:00
docs Bug 1821775 - Updating Core: GeckoView module owner from agi to owlish r=zeid 2023-03-13 16:53:50 +00:00
docshell Bug 1718082 - move hasSiblings from BrowserChild to BC and update as a synced field, r=nika 2023-03-13 17:32:08 +00:00
dom Bug 1799258 - Do color-management on Windows+DComp via IDCompositionFilterEffects. r=sotaro 2023-03-13 21:04:10 +00:00
editor Bug 1820905 - Make HTMLEditor::SplitNodeWithTransaction return NS_ERROR_EDITOR_UNEXPECTED_DOM_TREE if split nodes have been removed from the DOM tree r=m_kato 2023-03-13 18:31:00 +00:00
extensions Bug 1808565, part 1: Adapt Selection to support StaticRanges. r=webidl,saschanaz,masayuki,smaug 2023-03-03 14:59:47 +00:00
gfx Bug 1799258 - Do color-management on Windows+DComp via IDCompositionFilterEffects. r=sotaro 2023-03-13 21:04:10 +00:00
gradle/wrapper
hal Bug 1812938 - Part 1. GetWidgetScreen returns Screen instead of nsIScreen. r=emilio,geckoview-reviewers,owlish 2023-02-06 04:51:26 +00:00
image Backed out 5 changesets (bug 1809843) for causing Cargo related build bustages. CLOSED TREE 2023-03-13 13:53:26 +02:00
intl Bug 1820504 - Optimize GraphemeClusterBreakIteratorUtf16::Next by making the evaluation of baseIsEmoji lazy. r=TYLin 2023-03-07 09:51:12 +00:00
ipc Bug 1816857 - Avoid empty launch promise on Utility launch failure r=nika 2023-03-13 17:17:54 +00:00
js Bug 1776755 - Skip ordering ExpandedPrincipals to speed up creation; r=nika,necko-reviewers 2023-03-13 14:52:04 +00:00
layout Bug 1822131 - Allow XUL elements to shrink-by-default. r=dholbert 2023-03-13 20:43:34 +00:00
media Bug 1817024 (MOZ) - Update GenerateKeyFrame signature in MockVideoSendStream. r=mjf 2023-02-24 13:29:20 +01:00
memory Bug 1792146: Make replace_malloc_usable_size succeed with pointers within allocation pages. r=glandium 2023-03-09 23:12:20 +00:00
mfbt Bug 1799258 - Add prereq Colorspaces stuff, including generic gamma->linear LUT inversion approximation. r=gfx-reviewers,bradwerth 2023-03-13 21:04:10 +00:00
mobile Backed out 2 changesets (bug 1810619) for causing wd failures in dom_content_loaded.py CLOSED TREE 2023-03-09 01:22:56 -05:00
modules Bug 1799258 - Do color-management on Windows+DComp via IDCompositionFilterEffects. r=sotaro 2023-03-13 21:04:10 +00:00
mozglue Backed out changeset 78e7281703a2 (bug 1788004) for causing SM failures. CLOSED TREE 2023-02-24 19:13:47 +02:00
netwerk Bug 1718082 - track current tab using browserId instead of top browsing context id for network prioritization purposes, r=nika,mconley,necko-reviewers,kershaw,valentin 2023-03-13 17:32:08 +00:00
nsprpub
other-licenses Bug 1815019 - Customize 7z to write provenance data r=nalexander 2023-03-02 16:44:10 +00:00
parser Backed out 5 changesets (bug 1809843) for causing Cargo related build bustages. CLOSED TREE 2023-03-13 13:53:26 +02:00
python Bug 1814727: allow dlsource OR existing required keys when attributing builds r=releng-reviewers,gbrown 2023-03-13 19:04:05 +00:00
remote Bug 1783086 - [marionette] Rename printBackground to background for WebDriver compatibility. r=webdriver-reviewers,whimboo 2023-03-13 16:20:18 +00:00
security No Bug, mozilla-central repo-update HSTS HPKP remote-settings - r=release-managers,diannaS 2023-03-13 12:03:34 +00:00
services Merge mozilla-central to autoland. CLOSED TREE 2023-03-13 18:29:02 +01:00
servo Bug 1821514 - Simplify/remove a couple other length operations. r=CanadaHonk 2023-03-13 17:49:58 +00:00
startupcache Bug 1817313 - Make startupcache/ buildable outside of a unified build environment r=andi 2023-02-19 21:40:36 +00:00
storage Bug 1781116 - QuotaManager needs to deal with SQLite path canonicalization/symlink piercing; r=asuth,dom-storage-reviewers 2023-03-07 15:56:51 +00:00
supply-chain Backed out 5 changesets (bug 1809843) for causing Cargo related build bustages. CLOSED TREE 2023-03-13 13:53:26 +02:00
taskcluster Bug 1821144 - remove old windows worker definitions. r=aryx 2023-03-13 20:57:13 +00:00
testing Bug 1818502 - Install webtransport requirements for WPT when run through mozharness r=ahal 2023-03-13 20:34:36 +00:00
third_party Merge mozilla-central to autoland. CLOSED TREE 2023-03-13 18:29:02 +01:00
toolkit Bug 1771820 - Add high level diagram and documentation on SearchService.r=Standard8 2023-03-13 21:01:15 +00:00
tools Bug 1821780 - Add -q/--query option to mach try perf. r=perftest-reviewers,afinder 2023-03-13 13:37:59 +00:00
uriloader Backed out 5 changesets (bug 1809843) for causing Cargo related build bustages. CLOSED TREE 2023-03-13 13:53:26 +02:00
view Bug 1814239 - Expose Point/Size rounded-to-multiple helpers, and use them from MaybeRoundToDisplayPixels. r=tnikkel,gfx-reviewers,nical 2023-02-06 12:28:47 +00:00
widget Bug 1818287 - Disabled form-associated custom elements with delegateFocus should receive focus and keyboard events. r=edgar 2023-03-13 18:36:24 +00:00
xpcom Bug 1820544 - Add popover attribute and part of basic popover functionality. r=emilio 2023-03-10 10:52:20 +00:00
xpfe/appshell Bug 1747722 - Allow changing window class hints using attributes. r=emilio,stransky 2023-03-02 16:22:05 +00:00
.arcconfig
.babel-eslint.rc.js
.clang-format
.clang-format-ignore
.cron.yml Bug 1822107 - Run the Beta l10n-bumper job an hour earlier. r=releng-reviewers,jcristau DONTBUILD 2023-03-13 16:54:07 +00:00
.eslintignore Bug 1817183 - Migrate most of services/fxaccounts to ES modules. r=markh 2023-02-17 16:34:42 +00:00
.eslintrc-test-paths.js Bug 1693495 - [devtools] Implement a beginning of "Network" commands, starting with sendHTTPRequest. r=devtools-reviewers,nchevobbe 2023-01-09 13:09:43 +00:00
.eslintrc.js Bug 1816182 - Stop applying ESLint test configuration to module files. r=Gijs,necko-reviewers 2023-02-13 12:26:46 +00:00
.flake8 Bug 1622677 - Make dom/bindings flake8 compliant. r=sylvestre 2023-02-24 13:53:21 +00:00
.git-blame-ignore-revs
.gitattributes
.gitignore Bug 1810885 - Use ChromeMap for rewriting chrome:// URIs in Storybook r=hjones 2023-02-28 05:43:54 +00:00
.hg-annotate-ignore-revs
.hg-format-source
.hgignore Bug 1810885 - Use ChromeMap for rewriting chrome:// URIs in Storybook r=hjones 2023-02-28 05:43:54 +00:00
.hgtags No bug - tagging f2178beb09db4f3548827808718f1ea1f2892fc5 with FIREFOX_NIGHTLY_112_END a=release DONTBUILD CLOSED TREE 2023-03-13 15:37:10 +00:00
.isort.cfg
.lando.ini
.lldbinit
.mailmap
.prettierignore
.prettierrc.js Bug 1811820 - Change prettier config file from json to common js format. r=cmkm,Gijs 2023-01-24 22:53:55 +00:00
.taskcluster.yml
.trackerignore
.yamllint
.ycm_extra_conf.py Bug 1801836 - Remove no longer necessary 'from __future__' imports. r=linter-reviewers,glandium,webdriver-reviewers,perftest-reviewers,geckoview-reviewers,jld,ahal,owlish,afinder DONTBUILD 2022-12-23 22:45:46 +00:00
aclocal.m4
AUTHORS
build.gradle Bug 1816454 - Update Glean SDK to v52.3.0 r=TravisLong,supply-chain-reviewers,emilio 2023-02-28 16:44:02 +00:00
Cargo.lock Backed out 5 changesets (bug 1809843) for causing Cargo related build bustages. CLOSED TREE 2023-03-13 13:53:26 +02:00
Cargo.toml Bug 1818349 Part 1: Vendor new version of application-services r=markh 2023-03-07 07:42:14 +00:00
client.mk
client.py Bug 1801836 - Remove no longer necessary 'from __future__' imports. r=linter-reviewers,glandium,webdriver-reviewers,perftest-reviewers,geckoview-reviewers,jld,ahal,owlish,afinder DONTBUILD 2022-12-23 22:45:46 +00:00
CLOBBER Bug 1817024 - Vendor libwebrtc from 15a82c93d0 - moz.build file updates 2023-03-13 12:03:34 +01:00
configure
configure.py Bug 1801836 - Remove no longer necessary 'from __future__' imports. r=linter-reviewers,glandium,webdriver-reviewers,perftest-reviewers,geckoview-reviewers,jld,ahal,owlish,afinder DONTBUILD 2022-12-23 22:45:46 +00:00
GNUmakefile
gradle.properties
gradlew
gradlew.bat
LICENSE
mach Bug 1820915 - Attempt to re-launch Mach with a compatible python3 version if one is available r=firefox-build-system-reviewers,andi 2023-03-09 10:53:16 +00:00
mach.cmd
mach.ps1
Makefile.in
mots.yaml Bug 1821775 - Updating Core: GeckoView module owner from agi to owlish r=zeid 2023-03-13 16:53:50 +00:00
moz.build Bug 1804449: document basic information about update infrastructure and watershed updates in the source docs. r=jcristau 2022-12-13 16:57:52 +00:00
moz.configure Bug 1807907 - Cache the results of try_invoke_compiler on disk for re-use between different runs of configure r=firefox-build-system-reviewers,glandium 2023-02-28 08:42:52 +00:00
mozilla-config.h.in Bug 1802290 - Remove +x permissions on more files r=linter-reviewers,andi 2023-01-03 08:17:50 +00:00
old-configure.in Bug 1814802 - Move STLPORT_LIBS to moz.configure. r=firefox-build-system-reviewers,glandium 2023-02-14 02:29:22 +00:00
package-lock.json Bug 1801591 - Add eslint-plugin-eslint-plugin for linting our ESLint plugin rules, and upgrade most of node_modules. r=mossop 2023-02-03 13:28:13 +00:00
package.json Bug 1801591 - Add eslint-plugin-eslint-plugin for linting our ESLint plugin rules, and upgrade most of node_modules. r=mossop 2023-02-03 13:28:13 +00:00
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.