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
Yulia 0350774d47 Bug 1540913 - Part 4: Introduce WorkerScriptLoader configuration for dynamic import; r=jonco
Earlier, we introduced GetBaseURI to the module loader. This allows us to get the BaseURI for a
dynamic import even after the importing script/module's ScriptLoader has been cleaned up. However,
we now need to be able to handle the case where we need to run the dynamic import and load it. In
order to do this, we need to create a scriptloader configured for dynamic import. The most important
difference between this scriptloader and the one that is normally used for script loading in workers
is that we *do not have a syncLoopTarget* to which we return. There are a couple of reasons for
this:

* Dynamic import (and modules in general) relies on the event loop to resolve. If we create a
syncLoop here, we will end up pausing execution, and this breaks the StartModuleLoad algorithm. We
will never complete and the result will be that we are in the wrong state when we return here.
* We do not have perfect knowledge of the future, so we cannot keep the existing script loader alive
in the case that it might be used for loading in the future.
* We cannot migrate the ModuleLoader to not use sync loading without significantly changing other
aspects of how loading scripts on workers works. This becomes particularily evident with error
handling
(https://searchfox.org/mozilla-central/rev/00ea1649b59d5f427979e2d6ba42be96f62d6e82/dom/workers/WorkerPrivate.cpp#383-444),
and in addition, for reasons I wasn't able to discern, using the CurrentEventTarget results in hard
to identify errors. When there is time to investigate this fully, the ModuleLoader may move away
from using a syncLoop itself.

For now, all main-script loads (whether they are modules or classic scripts) will use the sync loop,
and all dynamic imports will create a new script loader for their needs that is not using the sync
loop. The book keeping for this is in the next patch.

Differential Revision: https://phabricator.services.mozilla.com/D171685
2023-03-14 18:16:31 +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 1822225: Always produce async JS stacks in a11y browser tests. r=eeejay 2023-03-14 06:41:45 +00:00
browser Bug 1821189 - Associate provenance attribution with installation.first_seen event r=nalexander 2023-03-14 18:08:16 +00:00
build Backed out 2 changesets (bug 1820947) for causing build bustage CLOSED TREE 2023-03-14 01:20:54 +02: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 Bug 1822216 - Avoid linking C programs with the C++ compiler. r=firefox-build-system-reviewers,ahochheiden 2023-03-14 03:03:03 +00:00
devtools Bug 1803616 - [devtools] Implement a Javascript Tracer in the debugger. r=devtools-reviewers,devtools-backward-compat-reviewers,nchevobbe 2023-03-14 17:17:05 +00:00
docs Bug 1822344 - Remove inactive Tabbed Browser peers. r=zeid 2023-03-14 16:28:32 +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 1540913 - Part 4: Introduce WorkerScriptLoader configuration for dynamic import; r=jonco 2023-03-14 18:16:31 +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 1617369 - Reformat recent rust changes with rustfmt r=emilio 2023-03-14 16:54:29 +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 1639548 - Remove redundant purging of localstorage private mode data. r=janv 2023-03-14 05:38:04 +00:00
js Bug 1540913 - Part 4: Introduce WorkerScriptLoader configuration for dynamic import; r=jonco 2023-03-14 18:16:31 +00:00
layout Bug 1684958 - Fix test_bug877690.html. 2023-03-14 14:26:51 +01: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 1821008 - Add nyx abort macro and more debug messages. r=truber,glandium 2023-03-14 07:50:36 +00:00
mobile Bug 1817924 - Use Window manager coordinate for text selection menu on Android 11+. r=geckoview-reviewers,owlish 2023-03-14 09:00:13 +00:00
modules Bug 1647985 - Use shorter ping timeout for the connection to TRR, r=necko-reviewers,valentin 2023-03-14 10:19:34 +00:00
mozglue Backed out changeset 78e7281703a2 (bug 1788004) for causing SM failures. CLOSED TREE 2023-02-24 19:13:47 +02:00
netwerk Backed out 1 changesets (bug 1805372) for causing wpt failures in nsHttpTransaction.h 2023-03-14 19:24:56 +02: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 1822030 - mach setup - make sure to take the correct README for the description r=sylvestre DONTBUILD 2023-03-14 13:04:09 +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 Bug 1820768 - Add a test covering crash generation for sandbox violations; r=gerard-majax 2023-03-14 11:46:11 +00:00
services Merge mozilla-central to autoland. CLOSED TREE 2023-03-13 18:29:02 +01:00
servo Bug 1684958 - Support rendering content: <gradient> images. r=dholbert,devtools-reviewers 2023-03-14 12:11:34 +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 1822285: fix group name for l10n attribution tasks. r=releng-reviewers,jcristau 2023-03-14 13:22:26 +00:00
testing Bug 1822323 - Add ToggleEvent interface for Popover. r=emilio 2023-03-14 16:52:36 +00:00
third_party Bug 1821463 - Upgrade glean-parser to 7.1.0 r=TravisLong 2023-03-14 13:16:31 +00:00
toolkit Bug 1821189 - Associate provenance attribution with installation.first_seen event r=nalexander 2023-03-14 18:08:16 +00:00
tools Bug 1822357 - Add js/xpconnect/tests/unit/error_other.sys.mjs to esmify's exclude list. r=arai DONTBUILD 2023-03-14 16:24:28 +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 Backed out 6 changesets (bug 1820168) for causing multiple failures CLOSED TREE 2023-03-14 19:53:58 +02:00
xpcom Bug 1736914 - Implement prefers-reduced-transparency media query r=geckoview-reviewers,emilio,jonalmeida,ohall 2023-03-13 21:30:17 +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 1812098 - Enable the builtinGlobals option for ESLint no-shadow rule on .mjs files. r=Gijs 2023-03-14 09:13:49 +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 Bug 1802075 - Avoid calling "--stop-server" as a command on local build failure. r=firefox-build-system-reviewers,andi 2022-11-23 20:38:52 +00:00
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 1822344 - Remove inactive Tabbed Browser peers. r=zeid 2023-03-14 16:28:32 +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.