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
Nathan Froyd cfb8fb313f Bug 1662251 - stop assigning from NS_Convert* values, mostly; r=sg
This patch was generated by running:

```
perl -p -i \
     -e 's/^(\s+)([a-zA-Z0-9.]+) = NS_ConvertUTF8toUTF16\((.*)\);/\1CopyUTF8toUTF16(\3, \2);/;' \
     -e 's/^(\s+)([a-zA-Z0-9.]+) = NS_ConvertUTF16toUTF8\((.*)\);/\1CopyUTF16toUTF8(\3, \2);/;' \
     $FILE
```

against every .cpp and .h in mozilla-central, and then fixing up the
inevitable errors that happen as a result of matching C++ expressions with
regexes.  The errors fell into three categories:

1. Calling the convert functions with `std::string::c_str()`; these were
   changed to simply pass the string instead, relying on implicit conversion
   to `mozilla::Span`.
2. Calling the convert functions with raw pointers, which is not permitted
   with the copy functions; these were changed to invoke `MakeStringSpan` first.
3. Other miscellaneous errors resulting from over-eager regexes and/or the
   replacement not being type-aware.  These changes were reverted.

Differential Revision: https://phabricator.services.mozilla.com/D88903
2020-09-02 09:54:37 +00:00
.cargo Bug 1661583 - Update mp4parse-rust to fe90285. r=kinetik 2020-09-02 14:59:02 +00:00
.vscode Bug 1656740 - Integrate clangd in vscode for C++ language support. r=froydnj 2020-08-06 06:25:17 +00:00
accessible Bug 1662251 - stop assigning from NS_Convert* values, mostly; r=sg 2020-09-02 09:54:37 +00:00
browser Bug 1662144 - Update experiments collection name to nimbus-desktop-experiments r=k88hudson 2020-09-01 13:08:05 +00:00
build Bug 1633761 - Bump the mingwclang builds to clang 10 r=dmajor 2020-09-02 14:12:22 +00:00
caps Bug 1655945 - Remove principal.uri in RemotePageAccessManager.jsm r=ckerschb 2020-08-25 13:58:49 +00:00
chrome Bug 1649221: Update ChromeUtils.generateQI callers to pass strings. r=mccr8,remote-protocol-reviewers,marionette-reviewers,perftest-reviewers,webcompat-reviewers,geckoview-reviewers,preferences-reviewers,agi,whimboo,Bebe,twisniewski 2020-07-10 23:58:28 +00:00
config Bug 1620133 - Allow generated file rules to run in parallel in a given directory. r=firefox-build-system-reviewers,rstewart 2020-08-28 01:58:48 +00:00
devtools Bug 1660466 - Fix attaching target/thread test intermittents. r=jdescottes. 2020-09-02 14:43:23 +00:00
docs Bug 1660831 - Reference the standalone bootstrap.py script in windows_build.rst and prefer mozilla-unified to mozilla-central where relevant r=mhentges,froydnj 2020-08-31 17:51:14 +00:00
docshell Bug 1613054 part 1 - Synchronously request frame focus when .contentWindow.focus() called on OOP iframe. r=nika 2020-09-02 15:05:53 +00:00
dom Bug 1662251 - stop assigning from NS_Convert* values, mostly; r=sg 2020-09-02 09:54:37 +00:00
editor Bug 1649121: part 85) Follow-up for part 74. r=masayuki 2020-08-31 12:30:54 +00:00
extensions Bug 1662251 - stop assigning from NS_Convert* values, mostly; r=sg 2020-09-02 09:54:37 +00:00
gfx Bug 1662251 - stop assigning from NS_Convert* values, mostly; r=sg 2020-09-02 09:54:37 +00:00
gradle/wrapper
hal Bug 1648010 - Replace uses of NS_LITERAL_STRING/NS_LITERAL_CSTRING macros by _ns literals. r=geckoview-reviewers,jgilbert,agi,hsivonen,froydnj 2020-07-01 08:29:29 +00:00
image Bug 1662251 - stop assigning from NS_Convert* values, mostly; r=sg 2020-09-02 09:54:37 +00:00
intl Bug 1662251 - stop assigning from NS_Convert* values, mostly; r=sg 2020-09-02 09:54:37 +00:00
ipc Bug 1568597 - RemoteWorkerManager::SelectTargetActorForSharedWorker should select an actor that is kept alive. r=asuth 2020-08-28 18:11:22 +00:00
js Bug 1662251 - stop assigning from NS_Convert* values, mostly; r=sg 2020-09-02 09:54:37 +00:00
layout Bug 1662251 - stop assigning from NS_Convert* values, mostly; r=sg 2020-09-02 09:54:37 +00:00
media Bug 1662251 - stop assigning from NS_Convert* values, mostly; r=sg 2020-09-02 09:54:37 +00:00
memory Bug 1519636 - Reformat recent changes to the Google coding style r=andi 2020-08-31 09:23:02 +00:00
mfbt Backed out 5 changesets (bug 1661457, bug 1661428, bug 1661497, bug 1661502) for build bustages on Result.h. CLOSED TREE 2020-09-02 19:44:47 +03:00
mobile Backed out changeset 2f0f44bd9758 (Bug 1662528) for causing failures in browsers/the-window-object/* 2020-09-02 21:22:13 +03:00
modules Bug 1619926 - Remove legacy search configuration code from the search service. r=daleharvey,geckoview-reviewers,agi 2020-09-01 18:08:29 +00:00
mozglue Bug 1646266 - Profiler Markers 2.0 tests - r=gregtatum 2020-09-02 04:03:32 +00:00
netwerk Bug 1661019 - Fix static-analysis warnings in netwerk/dns r=necko-reviewers,kershaw 2020-09-02 15:39:05 +00:00
nsprpub Bug 1660371 - Uplift initial NSPR 4.29 beta snapshot. r=glandium UPGRADE_NSPR_RELEASE 2020-08-28 21:31:02 +00:00
other-licenses Bug 1634535 - Move ply to third_party/python r=glandium 2020-05-05 16:02:02 +00:00
parser Bug 1661646 - Extend YSOD Telemetry with error_code and location. r=froydnj 2020-08-28 22:04:13 +00:00
python Bug 1662632 - Fix UnboundLocalError due to undefined variable have_clone in mach bootstrap r=froydnj 2020-09-02 14:57:22 +00:00
remote Bug 1662687 - [puppeteer] Update expectation data for Frame.waitForFunction should work when resolved right before execution context disposal. r=remote-protocol-reviewers,maja_zf 2020-09-02 13:07:45 +00:00
security Bug 1662251 - stop assigning from NS_Convert* values, mostly; r=sg 2020-09-02 09:54:37 +00:00
services Bug 1612380 - don't verify content signatures for Thunderbird. r=leplatrem 2020-09-02 14:22:52 +00:00
servo Bug 1662478 - Rename ::file-chooser-button to ::file-selector-button, and enable it in all channels. r=jwatt 2020-09-01 22:58:10 +00:00
startupcache Bug 1656261 - Don't set scache mData until decompression done r=froydnj 2020-08-21 13:20:19 +00:00
storage Bug 1662251 - stop assigning from NS_Convert* values, mostly; r=sg 2020-09-02 09:54:37 +00:00
taskcluster Bug 1656465 - Move all 'push-interval-25' optimizations to 'push-interval-20', r=jmaher 2020-09-02 14:05:11 +00:00
testing Bug 1619926 - Remove remnants of Search geo-location handling now it is handled by Region.jsm. r=daleharvey 2020-09-01 18:08:46 +00:00
third_party Bug 1661583 - Update mp4parse-rust to fe90285. r=kinetik 2020-09-02 14:59:02 +00:00
toolkit Bug 1662251 - stop assigning from NS_Convert* values, mostly; r=sg 2020-09-02 09:54:37 +00:00
tools Bug 1649532 - Port DecoderDoctor notifications to fission. r=Gijs 2020-08-28 18:34:24 +00:00
uriloader Bug 1662251 - stop assigning from NS_Convert* values, mostly; r=sg 2020-09-02 09:54:37 +00:00
view Bug 1623992 - Automated rewrite from chrome://global/skin/ to chrome://global/skin/global.css in markup r=marionette-reviewers,perftest-reviewers,mossop,whimboo,sparky 2020-04-03 22:23:23 +00:00
widget Bug 1662251 - stop assigning from NS_Convert* values, mostly; r=sg 2020-09-02 09:54:37 +00:00
xpcom Bug 1662251 - stop assigning from NS_Convert* values, mostly; r=sg 2020-09-02 09:54:37 +00:00
xpfe/appshell Bug 1650257: Part 1 - Stop discarding BCs from the parent on WindowGlobal destruction. r=nika 2020-08-31 18:51:45 +00:00
.arcconfig
.babel-eslint.rc.js Bug 1620537 - Upgrade to ESLint 7.5.0, remove now unnecessary Babel plugins. r=mossop 2020-07-24 21:37:12 +00:00
.clang-format
.clang-format-ignore Bug 1651731: [lint] Only allow files that are typically executable to have shebang lines override permission check; r=linter-reviewers,sylvestre 2020-07-09 21:16:32 +00:00
.cron.yml Bug 1600657 - l10n-bumper should use the latest revisions. r=releng-reviewers,bhearsum DONTBUILD 2020-08-21 03:14:19 +00:00
.eslintignore Bug 1618465 - Move pdf.js to toolkit (main files). r=bdahl,Pike 2020-07-02 07:13:46 +00:00
.eslintrc.js Bug 1656294 - Enable all ESLint rules on accessible/tests/mochitest/*.xhtml files. r=Jamie 2020-08-27 09:36:18 +00:00
.flake8 Bug 1622683 - Make dom/websocket flake8 and pylint compliant. r=sylvestre 2020-08-31 14:42:21 +00:00
.git-blame-ignore-revs Bug 1633969 - Refresh .git-blame-ignore-revs. r=sylvestre 2020-04-30 16:38:19 +00:00
.gitattributes
.gitignore Bug 1651214 - Ignore .python-version file at top of checkout r=nalexander 2020-07-07 23:41:55 +00:00
.hg-annotate-ignore-revs Bug 1633969 - Add a changeset marked as "skip-blame" to .hg-annotate-ignore-revs. r=sylvestre 2020-04-30 16:37:44 +00:00
.hg-format-source
.hgignore Bug 1658396 - Make hg ignore newtab node_modules, r=Mardak 2020-08-10 23:32:15 +00:00
.hgtags No bug - tagging 63d860f118da09320ed65431129775b4e3631ff3 with FIREFOX_NIGHTLY_81_END a=release DONTBUILD CLOSED TREE 2020-08-24 14:18:31 +00:00
.lldbinit
.mailmap Bug 1650456 - Correct name in a few places, r=froydnj 2020-07-03 20:20:29 +00:00
.prettierignore
.prettierrc
.taskcluster.yml Bug 1652184: Report to perherder stats about bugbug timings; r=ahal 2020-07-13 19:53:00 +00:00
.trackerignore
.yamllint
.ycm_extra_conf.py Bug 1646256 - Make rust-analyzer and YouCompleteMe work with mozilla-central. r=sylvestre 2020-06-17 17:53:56 +00:00
aclocal.m4 Bug 1635764 - Move --with-system-icu and --with-intl-api to python configure. r=firefox-build-system-reviewers,rstewart 2020-05-29 21:29:52 +00:00
AUTHORS
build.gradle Bug 1626336 - Remove MOZ_GECKOVIEW_JAR. r=agi,geckoview-reviewers 2020-08-24 18:13:49 +00:00
Cargo.lock Bug 1661583 - Update mp4parse-rust to fe90285. r=kinetik 2020-09-02 14:59:02 +00:00
Cargo.toml Bug 1661723; Bump Cranelift to a7f7c23bf9c37c642da962d575b7c99007918872; r=lth 2020-08-31 16:34:29 +00:00
client.mk Bug 1660614 - Upgrade sccache to pick up more resilient behavior in the presence of cache read failures r=froydnj 2020-08-25 21:16:53 +00:00
client.py Bug 1650306 - Address the defects found by the pylint/no-else-return rule. r=sylvestre 2020-07-08 09:24:49 +00:00
CLOBBER Update configs. IGNORE BROKEN CHANGESETS CLOSED TREE NO BUG a=release ba=release 2020-08-24 14:18:41 +00:00
configure.in Bug 1644887 - configure calls into $PYTHON3 rather than python3 directly r=glandium 2020-06-10 21:29:27 +00:00
configure.py Bug 1649901 - Improve reproducibility of config_status_deps.in files r=froydnj 2020-07-01 22:55:52 +00:00
GNUmakefile
gradle.properties
gradlew
gradlew.bat
LEGAL
LICENSE
mach Bug 1656993: Create and require by default global virtualenvs in ~/.mozbuild for mach r=mhentges,ahal 2020-08-17 17:21:02 +00:00
Makefile.in Bug 1654994 - Switch full symbols archive to tar.zst. r=firefox-build-system-reviewers,rstewart,tomprince 2020-07-31 20:27:54 +00:00
moz.build Bug 1660747 - Dont run upload task on js and jsm files.r=sylvestre 2020-08-25 06:18:13 +00:00
moz.configure Bug 1656993: Create and require by default global virtualenvs in ~/.mozbuild for mach r=mhentges,ahal 2020-08-17 17:21:02 +00:00
mozilla-config.h.in
old-configure.in Bug 1657663: Improve timestamp precision for nsLocalFileUnix r=froydnj,barret 2020-08-26 15:32:15 +00:00
package-lock.json Bug 1620162 - Upgrade eslint-plugin-jest and fix new lint errors. r=bomsy,Standard8 2020-08-20 08:52:42 +00:00
package.json Bug 1620162 - Upgrade eslint-plugin-jest and fix new lint errors. r=bomsy,Standard8 2020-08-20 08:52:42 +00:00
README.txt Bug 1659631 - readme: update the wording to firefox, DONTBUILD.r=sylvestre 2020-08-18 04:04:36 +00:00
settings.gradle Backed out changeset d0ff30e1d830 (bug 1650692) for toolchains failures on ImageDecoderTest.kt. CLOSED TREE 2020-07-15 07:42:37 +03:00
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.