0e7fc59155ad09da2fd8ef4e23d14651cd692774
The LoaderListener is currently used to forward events to WorkerScriptLoader. It fills a similar role to the ScriptLoadHandler on the DOM both for OnStartRequest and OnStreamComplete. In the case of the DOM loader, the responsibility for performing certain channel related tasks is left to the ScriptLoadHandler, in particular the decoding of the string into UTF8 or UTF16. While the decoding is embedded in the onStreamCompleteInternal method, it is not a 1:1 mapping. Some of the responsibilities handled in the `OnStreamCompleteInternal` method are instead handled in `ScriptLoader::PrepareLoadedRequest`, such as populating the SourceMaps field, managing the channel, etc are normally handled within the ScriptLoader. However, in the case of the WorkerScriptLoader we have two paths to reach a completed load: * from the network * from the cache These have different requirements in terms of preparing the loaded request, for example the cache does not forward a SourceMap. In the interest of not complicating things too much, for now the method is moved wholesale into LoaderListener. In a separate PR I will handle renaming. The next step will be to do a similar move for the CacheScriptLoader. Differential Revision: https://phabricator.services.mozilla.com/D144836
…
…
…
…
…
…
…
Bug
1762484 - Enable most of the same warnings on Windows as on other platforms. r=firefox-build-system-reviewers,andi
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.
Description
Languages
JavaScript
32.6%
C++
25.1%
HTML
20.9%
C
10.6%
Python
2.8%
Other
7.6%