Dactyloidae/devtools/client/shared
Moonchild 2d9cb22a28 [devtools] Further improve special character escaping in "copy as curl".
Follow-up to 15335ce39d1ea2ef4585a36a4d562a3894459a15

Trying to cross-platform sanitize causes issues escaping too much and
as a result mangling the curl commands that get spit out.
This reverts previously added Windows-specific escaping on POSIX and
vice versa.
Since we do not offer cross-platform copying as a curl command in devtools
anyway, it makes little sense to sanitize for the O.S. we're not running on
as we would not be using the command processor in such environments that
could trip over characters for the other O.S. This was previously added
as a defense-in-depth in case we would start offering this, but I see no
real reason to do so, anyway.

Also decided to in-line comments for readability instead of a bulleted
list in the function head.

Mozilla has taken similar steps because of fall-out, but they do offer
cross-platform "copy as curl" for corner cases, so they will have to
find solutions for a problem we won't have.
2025-07-07 11:57:09 +08:00
..
components Issue #2026 - Part 3c - Add BigInt Devtools support. (new frontend) 2023-07-29 23:42:19 +08:00
redux Issue #1656 - Part 6: Clean up the build files 2020-09-25 22:04:23 +08:00
shim Issue #21 - Remove calls to Services.telemetry and nsITelemetry 2022-04-28 10:38:12 +08:00
test Issue #2241 - Part 4.3: Move devtools over to getBounds(). 2023-05-15 09:11:07 +08:00
vendor Issue #1656 - Part 6: Clean up the build files 2020-09-25 22:04:23 +08:00
widgets Issue #2045 - Part 10: Regenerate devtools CSS database and include the revert keyword in related devtools code 2025-07-07 11:56:21 +08:00
AppCacheUtils.jsm backport mozbug 1334776 - CVE-2017-7797 Header name interning leaks across origins 2019-02-16 00:14:28 +08:00
autocomplete-popup.js Issue #2515 - Guard devtools click handlers against non-primary clicks. 2024-08-05 10:30:00 +08:00
browser-loader.js import FIREFOX_52_6_0esr_RELEASE from mozilla-esr52 hg repo 2018-01-19 03:59:58 +08:00
css-angle.js Issue #2045 - Part 10: Regenerate devtools CSS database and include the revert keyword in related devtools code 2025-07-07 11:56:21 +08:00
css-reload.js import FIREFOX_52_6_0esr_RELEASE from mozilla-esr52 hg repo 2018-01-19 03:59:58 +08:00
curl.js [devtools] Further improve special character escaping in "copy as curl". 2025-07-07 11:57:09 +08:00
demangle.js import FIREFOX_52_6_0esr_RELEASE from mozilla-esr52 hg repo 2018-01-19 03:59:58 +08:00
developer-toolbar.js Issue #1992 - Part 1: Un-prefix -moz-{min|max}-content keywords. 2022-09-23 11:03:34 +08:00
devices.js import FIREFOX_52_6_0esr_RELEASE from mozilla-esr52 hg repo 2018-01-19 03:59:58 +08:00
devtools-file-watcher.js import FIREFOX_52_6_0esr_RELEASE from mozilla-esr52 hg repo 2018-01-19 03:59:58 +08:00
DOMHelpers.jsm import FIREFOX_52_6_0esr_RELEASE from mozilla-esr52 hg repo 2018-01-19 03:59:58 +08:00
file-watcher-worker.js import FIREFOX_52_6_0esr_RELEASE from mozilla-esr52 hg repo 2018-01-19 03:59:58 +08:00
file-watcher.js import FIREFOX_52_6_0esr_RELEASE from mozilla-esr52 hg repo 2018-01-19 03:59:58 +08:00
frame-script-utils.js import FIREFOX_52_6_0esr_RELEASE from mozilla-esr52 hg repo 2018-01-19 03:59:58 +08:00
getjson.js import FIREFOX_52_6_0esr_RELEASE from mozilla-esr52 hg repo 2018-01-19 03:59:58 +08:00
inplace-editor.js Issue #1656 - Part 1: Nuke most vim config lines in the tree. 2020-09-25 22:04:12 +08:00
Jsbeautify.jsm import FIREFOX_52_6_0esr_RELEASE from mozilla-esr52 hg repo 2018-01-19 03:59:58 +08:00
key-shortcuts.js import FIREFOX_52_6_0esr_RELEASE from mozilla-esr52 hg repo 2018-01-19 03:59:58 +08:00
keycodes.js import FIREFOX_52_6_0esr_RELEASE from mozilla-esr52 hg repo 2018-01-19 03:59:58 +08:00
moz.build No issue - Remove leftover doorhanger code from the developer tools 2024-02-23 10:50:08 +08:00
natural-sort.js moebius#342: Columns are not sorted correctly (Natural Sort algorithm) 2019-02-15 23:35:17 +08:00
network-throttling-profiles.js import FIREFOX_52_6_0esr_RELEASE from mozilla-esr52 hg repo 2018-01-19 03:59:58 +08:00
node-attribute-parser.js Issue #1656 - Part 1: Nuke most vim config lines in the tree. 2020-09-25 22:04:12 +08:00
options-view.js import FIREFOX_52_6_0esr_RELEASE from mozilla-esr52 hg repo 2018-01-19 03:59:58 +08:00
output-parser.js Support for css-color-4 (finish) 2019-02-15 23:29:04 +08:00
poller.js import FIREFOX_52_6_0esr_RELEASE from mozilla-esr52 hg repo 2018-01-19 03:59:58 +08:00
prefs.js import FIREFOX_52_6_0esr_RELEASE from mozilla-esr52 hg repo 2018-01-19 03:59:58 +08:00
scroll.js import FIREFOX_52_6_0esr_RELEASE from mozilla-esr52 hg repo 2018-01-19 03:59:58 +08:00
source-utils.js import FIREFOX_52_6_0esr_RELEASE from mozilla-esr52 hg repo 2018-01-19 03:59:58 +08:00
splitview.css Issue #1656 - Remove more vim control lines. 2023-05-04 10:46:38 +08:00
SplitView.jsm Issue #2515 - Guard devtools click handlers against non-primary clicks. 2024-08-05 10:30:00 +08:00
suggestion-picker.js import FIREFOX_52_6_0esr_RELEASE from mozilla-esr52 hg repo 2018-01-19 03:59:58 +08:00
telemetry.js Issue #21 - Remove calls to Services.telemetry and nsITelemetry 2022-04-28 10:38:12 +08:00
theme-switching.js import FIREFOX_52_6_0esr_RELEASE from mozilla-esr52 hg repo 2018-01-19 03:59:58 +08:00
theme.js import FIREFOX_52_6_0esr_RELEASE from mozilla-esr52 hg repo 2018-01-19 03:59:58 +08:00
undo.js Issue #1656 - Part 1: Nuke most vim config lines in the tree. 2020-09-25 22:04:12 +08:00
view-source.js import FIREFOX_52_6_0esr_RELEASE from mozilla-esr52 hg repo 2018-01-19 03:59:58 +08:00
webgl-utils.js import FIREFOX_52_6_0esr_RELEASE from mozilla-esr52 hg repo 2018-01-19 03:59:58 +08:00
zoom-keys.js import FIREFOX_52_6_0esr_RELEASE from mozilla-esr52 hg repo 2018-01-19 03:59:58 +08:00