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
Nicolas Chevobbe fe472aae2e Bug 1771428 - [devtools] Remove last statement AwaitExpression in mapTopLevelAwait. r=bomsy.
We use to transform expression like `await obj` into
```
(async () => {
  return await obj;
})()
``

So we were basically returning the expression, wrapped in an async iife, adding
a `return` statement before the last statement.
But in the case the last statement is an `AwaitExpression`, we can simply return
the argument, stripping the `await` keyword.
This fixes an issue when awaiting for an object with a `then` getter would execute
the getter twice.
A test case is added in mochitest, and unit test are updated to reflect the new
output.

Differential Revision: https://phabricator.services.mozilla.com/D148806
2022-06-10 15:55:07 +00:00
.cargo Bug 1773400 - Bump jsparagus for bug 1770509. r=nbp 2022-06-09 15:06:44 +00:00
.vscode Bug 1769759 - Update extension ID for rust-analyzer vscode extension recommendation. r=andi 2022-05-17 14:36:27 +00:00
accessible Bug 1771514: Add design review and preliminary HCM documentation r=Jamie 2022-06-08 16:18:32 +00:00
browser Bug 1773469 - Change about:protections module files to use mjs extensions. r=pbz 2022-06-10 15:07:40 +00:00
build Bug 1617369 - rust dummy: fix the linting warnings r=fix 2022-06-10 09:54:12 +00:00
caps Bug 1765313, part 2 - Move the ShouldAllowAccessFor functions to StorageAccess.h, r=anti-tracking-reviewers,timhuang 2022-06-08 21:57:16 +00:00
chrome Bug 1514936, part 1 - Remove the outer argument to nsIFactory::createInstance. r=xpcom-reviewers,preferences-reviewers,nika,Gijs 2022-05-17 20:24:19 +00:00
config Bug 1773359 - Remove TRANSPARENT workaround in webrender bindings. r=gfx-reviewers,jrmuizel 2022-06-08 19:19:08 +00:00
devtools Bug 1771428 - [devtools] Remove last statement AwaitExpression in mapTopLevelAwait. r=bomsy. 2022-06-10 15:55:07 +00:00
docs Bug 1773440 - Update GTest examples to moz.build. r=sylvestre DONTBUILD 2022-06-10 12:16:23 +00:00
docshell Bug 1770403, part 2 - Remove mStorageAccessPermissionGranted from the outer window, r=anti-tracking-reviewers,timhuang 2022-06-08 21:57:15 +00:00
dom Bug 1772649: Explicitly filter negative time durations when reporting telemetry page load probes r=smaug 2022-06-10 14:01:46 +00:00
editor Bug 1773070 - Unify Gecko and Servo EventState/ElementState bits. r=smaug 2022-06-07 23:09:52 +00:00
extensions Bug 1771736 part 1: Update cached spelling errors when a spelling error is removed. r=morgan,smaug 2022-06-01 00:35:26 +00:00
gfx Bug 1617369 - Reformat recent rust changes with rustfmt r=emilio,extension-reviewers,willdurand 2022-06-10 09:21:45 +00:00
gradle/wrapper Bug 1724480 - Upgrade JDK to Java 17. r=glandium,ahal,calu 2022-01-11 19:16:01 +00:00
hal Bug 1767346 - Use browsing context activeness rather than renderLayers to determine process priority. r=mccr8,mconley,geckoview-reviewers,agi 2022-05-20 09:14:42 +00:00
image Bug 1773523 - allow_xul_xbl support in manifests. r=mccr8,gbrown 2022-06-09 19:01:01 +00:00
intl Bug 1617369 - Reformat recent rust changes with rustfmt r=emilio,extension-reviewers,willdurand 2022-06-10 09:21:45 +00:00
ipc Bug 1519636 - Reformat recent changes to the Google coding style r=andi,media-playback-reviewers,necko-reviewers,padenot,dragana 2022-06-07 12:32:55 +00:00
js Bug 1617369 - Reformat recent rust changes with rustfmt r=emilio,extension-reviewers,willdurand 2022-06-10 09:21:45 +00:00
layout Backed out changeset 1abceb4692e8 (bug 1768962) for causing reftest failures on partial-prerender-translate-9.html. 2022-06-10 16:57:23 +03:00
media Bug 1768997 - Remove unused variables in av1_fuzzer.cpp. r=decoder 2022-05-13 00:44:55 +00:00
memory Bug 1670885 - Replace deprecated NSSpinLocks with os_unfair_locks in the memory allocator r=glandium 2022-06-07 07:37:20 +00:00
mfbt Bug 1519636 - Reformat recent changes to the Google coding style r=andi,media-playback-reviewers,necko-reviewers,padenot,dragana 2022-06-07 12:32:55 +00:00
mobile Bug 1773287 - Fix mozlint failure in mobile/android/docs/geckoview/contributor/geckoview-architecture.rst. CLOSED TREE 2022-06-08 17:12:01 +03:00
modules Backed out 3 changesets (bug 1767974, bug 1771479) for causing xpcshell failures on test_httpssvc_retry_with_ech.js. CLOSED TREE 2022-06-10 16:58:28 +03:00
mozglue Bug 1519636 - Reformat recent changes to the Google coding style r=andi,media-playback-reviewers,necko-reviewers,padenot,dragana 2022-06-07 12:32:55 +00:00
netwerk Backed out 3 changesets (bug 1767974, bug 1771479) for causing xpcshell failures on test_httpssvc_retry_with_ech.js. CLOSED TREE 2022-06-10 16:58:28 +03:00
nsprpub Bug 1769299 - NSPR_4_34_RTM. r=glandium UPGRADE_NSPR_RELEASE 2022-05-31 19:25:48 +00:00
other-licenses Bug 1751450: update all NSIS plugin DLLs with signed copies. r=mhowell 2022-05-25 15:21:13 +00:00
parser Bug 1770727 - Fix failures of ESLint rule mozilla/use-includes-instead-of-indexOf in sjs files. r=Gijs 2022-06-07 19:14:08 +00:00
python Bug 1773592 - Pass --frozen to cargo-vet in CI. r=glandium 2022-06-10 02:11:07 +00:00
remote Backed out 2 changesets (bug 1773265, bug 1773264) for causing wpt mouse-pointer related failures. 2022-06-09 18:57:30 +03:00
security Backed out 3 changesets (bug 1767974, bug 1771479) for causing xpcshell failures on test_httpssvc_retry_with_ech.js. CLOSED TREE 2022-06-10 16:58:28 +03:00
services No Bug, mozilla-central repo-update HSTS HPKP remote-settings - a=repo-update r=dmeehan 2022-06-09 12:00:37 +00:00
servo Bug 1771725 - Add a low-priority selector list for pseudo-classes that have global rules. r=boris 2022-06-09 12:16:26 +00:00
startupcache Bug 1752212 - Part 1: Pass loader type to PathifyURI. r=nbp 2022-04-13 14:08:06 +00:00
storage Bug 1766377 - Fix remaining sign-compare warnings in Windows builds. r=rkraesig,gsvelto,media-playback-reviewers,gfx-reviewers,bryce,sotaro 2022-04-29 09:14:12 +00:00
supply-chain Bug 1773576 - add audit for bit-set. r=bholley 2022-06-10 02:12:16 +00:00
taskcluster Bug 1773033 - Run more browsertime tests on a51 phones. r=sparky,perftest-reviewers 2022-06-10 15:12:44 +00:00
testing Bug 1773033 - Run more browsertime tests on a51 phones. r=sparky,perftest-reviewers 2022-06-10 15:12:44 +00:00
third_party Bug 1762658 - wasm: Use wast crate directly for wasmTextToBinary. r=yury 2022-06-09 21:51:53 +00:00
toolkit Backed out changeset 9756645733e9 (bug 1772906) for failures on browser_validatefilename.js. CLOSED TREE 2022-06-10 17:03:42 +03:00
tools Bug 1764632 - Add perfdocs.diff usage information to error message. r=perftest-reviewers,AlexandruIonescu 2022-06-10 15:40:32 +00:00
uriloader Bug 1771144 - Add mjs to the list of default mime entries. r=Gijs 2022-06-09 13:02:15 +00:00
view Bug 1772432 - Clean up nsWidgetInitData. r=stransky 2022-06-03 09:41:39 +00:00
widget Bug 1773118 - Fix transition from fullscreen to maximized. r=stransky 2022-06-10 11:46:03 +00:00
xpcom Bug 1773095 - Remove XRE_API macro r=xpcom-reviewers,nika 2022-06-08 00:02:02 +00:00
xpfe/appshell Bug 1772432 - Fix Windows build bustage. 2022-06-03 12:23:00 +02:00
.arcconfig
.babel-eslint.rc.js
.clang-format
.clang-format-ignore Bug 1765179: Remove dom/webgpu/ffi. r=jgilbert DONTBUILD 2022-04-19 22:26:40 +00:00
.cron.yml Bug 1769724 - correct indentation in backfill cron task definition. 2022-05-17 10:41:54 +00:00
.eslintignore Bug 1757552 - [devtools] Generate actor-less reps stubs.r=bomsy. 2022-03-03 16:16:50 +00:00
.eslintrc.js Bug 1773452 - Disable ESlint warnings about use of osfile for osfile files. r=barret 2022-06-09 21:05:38 +00:00
.flake8
.git-blame-ignore-revs
.gitattributes
.gitignore Bug 1771004 - Ignore Storybook generated files. r=mstriemer 2022-05-25 18:32:43 +00:00
.hg-annotate-ignore-revs
.hg-format-source
.hgignore Bug 1771004 - Ignore Storybook generated files. r=mstriemer 2022-05-25 18:32:43 +00:00
.hgtags No bug - tagging 7db3b1cf976f9634d567201a8259bed4ba14fe5c with FIREFOX_NIGHTLY_102_END a=release DONTBUILD CLOSED TREE 2022-05-30 11:42:15 +00:00
.lando.ini
.lldbinit
.mailmap
.prettierignore
.prettierrc
.taskcluster.yml Bug 1762128 - bump the cache name for decision images to stop interfering with other trees. r=releng-reviewers,ahal a=release 2022-03-30 14:54:03 +02:00
.trackerignore
.yamllint
.ycm_extra_conf.py
aclocal.m4 Bug 1747970 - Move AC_CHECK_FUNC{,S} to python configure. r=firefox-build-system-reviewers,andi 2022-01-20 21:01:20 +00:00
AUTHORS
build.gradle Bug 1768834 - Switch to Glean with UniFFI integration r=glandium,chutten 2022-06-07 12:37:20 +00:00
Cargo.lock Bug 1762658 - wasm: Use wast crate directly for wasmTextToBinary. r=yury 2022-06-09 21:51:53 +00:00
Cargo.toml Backed out 2 changesets (bug 1772092) for causing build bustages. CLOSED TREE 2022-06-09 13:29:59 +03:00
client.mk
client.py
CLOBBER Update configs. IGNORE BROKEN CHANGESETS CLOSED TREE NO BUG a=release ba=release 2022-05-30 11:42:22 +00:00
configure.in
configure.py
GNUmakefile
gradle.properties
gradlew
gradlew.bat
LICENSE
mach Bug 1752927: Avoid distutils deprecation warning on every Mach call r=ahal 2022-02-04 21:49:15 +00:00
mach.cmd Bug 1750874: Support launching Mach with py instead of python r=glandium 2022-01-21 18:22:58 +00:00
mach.ps1 Bug 1761633 - Silence the possible error from Get-Command r=mhentges DONTBUILD 2022-03-28 19:13:18 +00:00
Makefile.in Bug 1751515 - Part 3: Do not install artifact test archive when --disable-tests. r=firefox-build-system-reviewers,glandium 2022-01-26 19:08:57 +00:00
moz.build Bug 1753127 - NSPR doc: move the doc into docs/nspr UPGRADE_NSS_RELEASE r=kaie,bbeurdouche 2022-02-02 17:19:51 +00:00
moz.configure Bug 1544779 - Prioritize mozmake over mingw32-make. r=firefox-build-system-reviewers,andi 2022-03-29 08:26:06 +00:00
mozilla-config.h.in
old-configure.in Bug 1762484 - Enable most of the same warnings on Windows as on other platforms. r=firefox-build-system-reviewers,andi 2022-04-25 22:21:31 +00:00
package-lock.json Bug 1766268 - Update eslint-plugin-mozilla's version of estraverse to fix issues with private identifiers. r=mossop 2022-04-27 15:14:35 +00:00
package.json Bug 1766268 - Update eslint-plugin-mozilla's version of estraverse to fix issues with private identifiers. r=mossop 2022-04-27 15:14:35 +00:00
README.txt
settings.gradle Bug 1753914 - ./mach environment is failed in gradle task on Windows. r=nalexander 2022-02-08 06:19:41 +00:00
substitute-local-geckoview.gradle Bug 1752381 - only parse stdout in substitute-local-geckoview. r=nalexander 2022-02-02 18:00:46 +00:00
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.