Sylvestre Ledru
0804530f25
Bug 2023419 - Remove Emacs/Vim modelines from ipc/ r=emilio
...
replaced by .editorconfig
# ignore-this-changeset
Differential Revision: https://phabricator.services.mozilla.com/D287850
2026-03-17 08:01:09 +00:00
serge-sans-paille
5ce3c3fe49
Bug 2016425 - Use nullptr instead of NULL, 0 or (void*)0 r=application-update-reviewers,webrtc-reviewers,profiler-reviewers,mccr8,cdupuis
...
This an automatically generated patch through clang-tidy and its
modernize-use-nullptr checker with auto-fix.
Differential Revision: https://phabricator.services.mozilla.com/D283144
2026-02-17 15:00:48 +00:00
Tooru Fujisawa
0801a75c76
Bug 1767888 - Rename BackstagePass to SystemGlobal. r=mccr8,credential-management-reviewers,peterv,dimi
...
Differential Revision: https://phabricator.services.mozilla.com/D230155
2024-12-10 16:08:58 +00:00
Jon Coppeard
524de2ba8b
Bug 1895661 - Part 1: Move GC zeal functions to JS namespace and add separate constants for browser and shell frequency r=sfink
...
Sensible defaults are very different for the browser and the shell so I added
separate constants. I think the JS testing functions can get called from the
browser and so may pick the wrong default but it's not too serious.
Differential Revision: https://phabricator.services.mozilla.com/D210058
2024-05-13 16:31:20 +00:00
André Bargull
82e4d977ce
Bug 1492090 - Part 5: Use UTF-8 for script file names. r=nbp
...
Differential Revision: https://phabricator.services.mozilla.com/D151449
2023-05-23 12:11:39 +00:00
André Bargull
49401e472c
Bug 1492090 - Part 2: Use UTF-8 encoding when printing to stdout and use CompileUtf8Path for xpc-shells. r=nbp
...
Differential Revision: https://phabricator.services.mozilla.com/D151446
2023-05-23 12:11:38 +00:00
André Bargull
8c9431d7d0
Bug 1492090 - Part 1: Fix some comments, remove a #define, and make one fclose call more robust. r=tcampbell
...
Differential Revision: https://phabricator.services.mozilla.com/D151445
2023-05-23 12:11:38 +00:00
Butkovits Atila
3ecaf19a83
Backed out 9 changesets (bug 1492090) for causing Xpcshell failures at test_async_response_sending.js.
...
Backed out changeset 7201691d9e37 (bug 1492090 )
Backed out changeset a488d7627491 (bug 1492090 )
Backed out changeset c4547e2db877 (bug 1492090 )
Backed out changeset 1377e06cff9f (bug 1492090 )
Backed out changeset a872a1fd5147 (bug 1492090 )
Backed out changeset 768f35c0db6b (bug 1492090 )
Backed out changeset 65e26a85981e (bug 1492090 )
Backed out changeset a42a6210de08 (bug 1492090 )
Backed out changeset 87a02a089678 (bug 1492090 )
2023-05-22 23:27:29 +03:00
André Bargull
584c45d3c4
Bug 1492090 - Part 5: Use UTF-8 for script file names. r=nbp
...
Differential Revision: https://phabricator.services.mozilla.com/D151449
2023-05-22 12:28:15 +00:00
André Bargull
2ad2d24af4
Bug 1492090 - Part 2: Use UTF-8 encoding when printing to stdout and use CompileUtf8Path for xpc-shells. r=nbp
...
Differential Revision: https://phabricator.services.mozilla.com/D151446
2023-05-22 12:28:14 +00:00
André Bargull
6735d290cf
Bug 1492090 - Part 1: Fix some comments, remove a #define, and make one fclose call more robust. r=tcampbell
...
Differential Revision: https://phabricator.services.mozilla.com/D151445
2023-05-22 12:28:14 +00:00
Stanca Serban
c3cb3a44fc
Backed out 9 changesets (bug 1492090) for causing multiple xpcshell failures.
...
Backed out changeset 1e0705e94f79 (bug 1492090 )
Backed out changeset aeee4b4981b4 (bug 1492090 )
Backed out changeset ed83091dfdb5 (bug 1492090 )
Backed out changeset d2604a65c523 (bug 1492090 )
Backed out changeset e4aad0fb85b9 (bug 1492090 )
Backed out changeset 4e7c4724e994 (bug 1492090 )
Backed out changeset bc39eac4ecca (bug 1492090 )
Backed out changeset 8e3b95812c39 (bug 1492090 )
Backed out changeset ddb2eb1a1c62 (bug 1492090 )
2023-05-12 15:15:55 +03:00
André Bargull
3319c5bf4d
Bug 1492090 - Part 5: Use UTF-8 for script file names. r=nbp
...
Differential Revision: https://phabricator.services.mozilla.com/D151449
2023-05-12 10:30:05 +00:00
André Bargull
bbeed23db0
Bug 1492090 - Part 2: Use UTF-8 encoding when printing to stdout and use CompileUtf8Path for xpc-shells. r=nbp
...
Differential Revision: https://phabricator.services.mozilla.com/D151446
2023-05-12 10:30:05 +00:00
André Bargull
b01b482582
Bug 1492090 - Part 1: Fix some comments, remove a #define, and make one fclose call more robust. r=tcampbell
...
Differential Revision: https://phabricator.services.mozilla.com/D151445
2023-05-12 10:30:05 +00:00
Barret Rennie
12fbd66eca
Bug 1772733 - Change directory in xpcshell without OS.File r=jmaher,nika
...
Instead of relying on OS.File.setCurrentDirectory in the xpcshell test harness
we instead provide a function to directly change directory.
Differential Revision: https://phabricator.services.mozilla.com/D148977
2022-11-21 23:49:39 +00:00
Henri Sivonen
69935aadd9
Bug 1794401 - Use UTF-8 instead of Latin1 for XPCShell output. r=jstutte
...
Differential Revision: https://phabricator.services.mozilla.com/D158958
2022-10-11 06:10:27 +00:00
Emilio Cobos Álvarez
7a9e682999
Bug 1780788 - Use abstract strings as in-arguments for ipdl. r=nika,necko-reviewers,media-playback-reviewers,alwu,dragana
...
This prevents copies and avoids the hack we have to avoid this, which
right now is using nsDependent{C,}String.
Non-virtual actors can still use `nsString` if they need to on the
receiving end.
Differential Revision: https://phabricator.services.mozilla.com/D152519
2022-07-25 20:19:48 +00:00
serge-sans-paille
a936c092c4
Bug 1775148 - Cleanup ipc/ includes r=sylvestre
...
Differential Revision: https://phabricator.services.mozilla.com/D149802
2022-06-23 15:49:57 +00:00
André Bargull
3f9e70360a
Bug 1726123 - Part 5: Add missing "js/" includes outside of SM. r=arai
...
In preparation for the next part, add missing includes to "js/" public headers.
Differential Revision: https://phabricator.services.mozilla.com/D122843
2021-08-17 15:45:39 +00:00
Tooru Fujisawa
0986662ce6
Bug 1708448 - Move property and element functions into js/public/PropertyAndElement.h. r=nbp
...
Differential Revision: https://phabricator.services.mozilla.com/D119619
2021-07-13 11:52:42 +00:00
Simon Giesecke
2969e54562
Bug 1676361 - Move AutoEntryScript to a separate header file to avoid pulling in GeckoProfiler.h everywhere. r=mccr8
...
Differential Revision: https://phabricator.services.mozilla.com/D97742
2021-03-05 15:29:49 +00:00
Alexandru Michis
80cf7cc919
Backed out changeset c6b72f3c76ba (bug 1676361) for causing bustages in nsSocketTransportService2.cpp
...
CLOSED TREE
2021-03-04 23:26:04 +02:00
Simon Giesecke
b68ba311a2
Bug 1676361 - Move AutoEntryScript to a separate header file to avoid pulling in GeckoProfiler.h everywhere. r=mccr8
...
Differential Revision: https://phabricator.services.mozilla.com/D97742
2021-03-04 17:30:48 +00:00
Noemi Erli
c351c837d1
Backed out changeset 06452c4c828c (bug 1676361) for causing bustages CLOSED TREE
2021-03-04 19:13:56 +02:00
Simon Giesecke
e46fd72f6f
Bug 1676361 - Move AutoEntryScript to a separate header file to avoid pulling in GeckoProfiler.h everywhere. r=mccr8
...
Differential Revision: https://phabricator.services.mozilla.com/D97742
2021-03-04 16:14:44 +00:00
smolnar
4a344e2a83
Backed out changeset 9062e17fe15c (bug 1676361) on devs request. CLOSED TREE
2021-03-04 16:51:21 +02:00
Simon Giesecke
fa4029ad0a
Bug 1676361 - Move AutoEntryScript to a separate header file to avoid pulling in GeckoProfiler.h everywhere. r=mccr8
...
Differential Revision: https://phabricator.services.mozilla.com/D97742
2021-03-04 14:32:15 +00:00
Simon Giesecke
46908cfb51
Bug 1660470 - Add missing include directives/forward declarations. r=nika
...
Differential Revision: https://phabricator.services.mozilla.com/D87865
2020-11-23 16:21:38 +00:00
Andrew McCreight
40fe7638c0
Bug 1636990 - Inline NS_NewBackstagePass. r=kmag
...
Also, make an NS_ERROR in ~mozJSComponentLoader() into an assertion.
Differential Revision: https://phabricator.services.mozilla.com/D74691
2020-05-11 22:46:24 +00:00
Jeff Walden
a6470401af
Bug 1626105 - Convert |JS::Compile| for UTF-8 to |JS::CompileDontInflate| semantics, and remove |JS::CompileDontInflate|. r=evilpie
...
Differential Revision: https://phabricator.services.mozilla.com/D68905
2020-03-31 01:30:05 +00:00
Sylvestre Ledru
e3f208f7c8
Bug 1624237 - Run misc-unused-using-decls - Remove useless declarations r=andi
...
$ ./mach static-analysis check --checks="-*, misc-unused-using-decls" --fix <path>
Differential Revision: https://phabricator.services.mozilla.com/D67811
2020-03-23 13:15:33 +00:00
Gabriele Svelto
eeb9bfc398
Bug 1600545 - Remove useless inclusions of header files generated from IDL files in accessible/, browser/, caps/, chrome/, devtools/, docshell/, editor/, extensions/, gfx/, hal/, image/, intl/, ipc/, js/, layout/, and media/ r=Ehsan
...
The inclusions were removed with the following very crude script and the
resulting breakage was fixed up by hand. The manual fixups did either
revert the changes done by the script, replace a generic header with a more
specific one or replace a header with a forward declaration.
find . -name "*.idl" | grep -v web-platform | grep -v third_party | while read path; do
interfaces=$(grep "^\(class\|interface\).*:.*" "$path" | cut -d' ' -f2)
if [ -n "$interfaces" ]; then
if [[ "$interfaces" == *$'\n'* ]]; then
regexp="\("
for i in $interfaces; do regexp="$regexp$i\|"; done
regexp="${regexp%%\\\|}\)"
else
regexp="$interfaces"
fi
interface=$(basename "$path")
rg -l "#include.*${interface%%.idl}.h" . | while read path2; do
hits=$(grep -v "#include.*${interface%%.idl}.h" "$path2" | grep -c "$regexp" )
if [ $hits -eq 0 ]; then
echo "Removing ${interface} from ${path2}"
grep -v "#include.*${interface%%.idl}.h" "$path2" > "$path2".tmp
mv -f "$path2".tmp "$path2"
fi
done
fi
done
Differential Revision: https://phabricator.services.mozilla.com/D55443
2019-12-06 09:16:44 +00:00
David Major
0fdd756458
Bug 1574573 - Disambiguate a use of Handle in XPCShellEnvironment.cpp r=Ehsan
...
Otherwise it could also refer to Handle from MacTypes.h.
Differential Revision: https://phabricator.services.mozilla.com/D42358
2019-08-17 01:06:19 +00:00
Boris Zbarsky
4e9674d574
Bug 1559468 part 1. Move JS_DefineProfilingFunctions into InitClassesWithNewWrappedGlobal. r=mccr8
...
All callers of InitClassesWithNewWrappedGlobal already call it.
Differential Revision: https://phabricator.services.mozilla.com/D35457
2019-06-20 21:44:03 +00:00
Sylvestre Ledru
ad31adba4c
Bug 1547143 - Format the tree: Be prescriptive with the pointer style (left) r=Ehsan
...
# ignore-this-changeset
Depends on D28954
Differential Revision: https://phabricator.services.mozilla.com/D28956
2019-05-01 08:47:10 +00:00
Jeff Walden
3eefa63cdf
Bug 1543458 - Compile lines of UTF-8 interactive input to xpcshell and jsshell without inflating to UTF-16. r=arai
...
Differential Revision: https://phabricator.services.mozilla.com/D26956
2019-04-10 09:42:58 -07:00
Jeff Walden
18e4e31cbc
Bug 1543455 - Make JS::CompileUtf8{,ForNonSyntacticScope} omit Utf8 from their names and take SourceText<Utf8Unit>&. r=arai
...
Differential Revision: https://phabricator.services.mozilla.com/D26951
2019-04-09 17:03:32 -07:00
Jeff Walden
c8129e4979
Bug 1542910 - Make all script compilation APIs directly return a JSScript*, rather than returning a success code and returning the JSScript* via outparam that exactly duplicates the success code value's meaning. r=arai
...
Differential Revision: https://phabricator.services.mozilla.com/D26616
2019-04-09 17:58:52 +00:00
Brindusan Cristian
dabc16c840
Backed out changeset 53e379a5738f (bug 1542910) as requested by waldo on irc. CLOSED TREE
2019-04-09 20:43:52 +03:00
Jeff Walden
81b88216c3
Bug 1542910 - Make all script compilation APIs directly return a JSScript*, rather than returning a success code and returning the JSScript* via outparam that exactly duplicates the success code value's meaning. r=arai
...
Differential Revision: https://phabricator.services.mozilla.com/D26616
2019-04-09 17:24:31 +00:00
Noemi Erli
3ccf087a4b
Backed out changeset d470f958ea61 (bug 1542910) for bustages in testEmptyWindowIsOmitted.cpp
2019-04-09 19:24:46 +03:00
Jeff Walden
e4ed700966
Bug 1542910 - Make all script compilation APIs directly return a JSScript*, rather than returning a success code and returning the JSScript* via outparam that exactly duplicates the success code value's meaning. r=arai
...
Differential Revision: https://phabricator.services.mozilla.com/D26616
2019-04-09 03:50:03 +00:00
Boris Zbarsky
a96fdaa7b5
Bug 1541513 part 1. Stop requiring a JSContext for JS_SetAllNonReservedSlotsToUndefined. r=jandem
...
Differential Revision: https://phabricator.services.mozilla.com/D25999
2019-04-05 07:36:32 +00:00
Ehsan Akhgari
498e2df734
Bug 1521000 - Part 2: Adjust our clang-format rules to include spaces after the hash for nested preprocessor directives r=sylvestre
...
# ignore-this-changeset
2019-01-18 10:16:18 +01:00
Jeff Walden
7fc7661fe0
Bug 1517624 - Move JSPropertySpec and JSFunctionSpec definitions into a new js/public/PropertySpec.h header. r=arai
2019-01-03 15:37:01 -06:00
Sylvestre Ledru
2e72341c11
Bug 1513205 - Also update the tests to match the Google coding style r=Ehsan
...
# ignore-this-changeset
Differential Revision: https://phabricator.services.mozilla.com/D14595
2018-12-14 18:10:35 +00:00
Benjamin Bouvier
5e1b39e9bd
Bug 1511383: Update vim modelines after clang-format; r=sylvestre
...
- modify line wrap up to 80 chars; (tw=80)
- modify size of tab to 2 chars everywhere; (sts=2, sw=2)
2018-11-30 16:39:55 +01:00
Ted Campbell
c56aace77f
Bug 1506475 - Add JS::AutoSuppressWarningReporter. r=jwalden
...
Differential Revision: https://phabricator.services.mozilla.com/D11586
2018-11-30 04:01:10 +00:00
Jeff Walden
28b00b916d
Bug 1485800 - Rename SourceBufferHolder to SourceText, and add a <typename Unit> template parameter to it so it can hold putative UTF-8 or UTF-16 source text. r=tcampbell, r=fitzgen
2018-11-08 18:42:48 -08:00