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
Перейти к файлу
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
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
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
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
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
.clang-format
.clang-format-ignore
.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
.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
.gitattributes
.gitignore
.hg-annotate-ignore-revs
.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
.prettierignore
.prettierrc
.taskcluster.yml
.trackerignore
.yamllint
.ycm_extra_conf.py
AUTHORS
CLOBBER Update configs. IGNORE BROKEN CHANGESETS CLOSED TREE NO BUG a=release ba=release 2020-08-24 14:18:41 +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
GNUmakefile
LEGAL
LICENSE
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
README.txt Bug 1659631 - readme: update the wording to firefox, DONTBUILD.r=sylvestre 2020-08-18 04:04:36 +00:00
aclocal.m4
build.gradle Bug 1626336 - Remove `MOZ_GECKOVIEW_JAR`. r=agi,geckoview-reviewers 2020-08-24 18:13:49 +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
configure.in
configure.py
gradle.properties
gradlew
gradlew.bat
mach Bug 1656993: Create and require by default global `virtualenv`s in `~/.mozbuild` for `mach` r=mhentges,ahal 2020-08-17 17:21:02 +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 `virtualenv`s 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
settings.gradle
substitute-local-geckoview.gradle
test.mozbuild

README.txt

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.