Peter Van der Beken
e0d7b4edf2
Bug 1866220 - Force UniquePtr<…> return type for functions called from bindings for things marked as NewObject and returning a non-refcounted object. r=farre
...
Differential Revision: https://phabricator.services.mozilla.com/D194468
2023-11-24 10:38:18 +00:00
Peter Van der Beken
4a7386597a
Bug 1849037 - Add ErrorResult to TypedArray::Create. r=necko-reviewers,extension-reviewers,media-playback-reviewers,webidl,profiler-reviewers,farre,padenot,smaug,robwu,jesup,aabh
...
Differential Revision: https://phabricator.services.mozilla.com/D191418
2023-11-11 08:24:05 +00:00
Stanca Serban
fa9cf4e6a5
Backed out 3 changesets (bug 1849037) for causing mochitests failures in test_gamepad_extensions.html.
...
Backed out changeset 27fd9f6f57ea (bug 1849037)
Backed out changeset 89aa49de2473 (bug 1849037)
Backed out changeset c336a8c78928 (bug 1849037)
2023-11-08 17:12:40 +02:00
Peter Van der Beken
d0efcee341
Bug 1849037 - Add ErrorResult to TypedArray::Create. r=necko-reviewers,extension-reviewers,media-playback-reviewers,webidl,profiler-reviewers,farre,padenot,smaug,robwu,jesup
...
Differential Revision: https://phabricator.services.mozilla.com/D191418
2023-11-08 11:29:05 +00:00
Simon Giesecke
120f60cf1c
Bug 1613985 - Use default for equivalent-to-default constructors/destructors in dom/encoding. r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D63147
2020-02-20 16:16:10 +00:00
Emilio Cobos Álvarez
2a9f5a0f4b
Bug 1607083 - Remove JSString usage from TextEncoder.encode. r=bzbarsky
...
UTF8String has small-size optimization already, and does what we were doing
taking less memory when the string is latin1, so it should be a clear
improvement unless I'm missing something.
I didn't remove it from encodeInto because it'd do more work in the case where
the UInt8Array doesn't have enough capacity... Not sure if that case is worth
optimizing or not, honestly.
Differential Revision: https://phabricator.services.mozilla.com/D58713
2020-01-07 08:46:31 +00:00
Boris Zbarsky
8806c414cb
Bug 1580014. Don't force methods into the "can throw any exception" bucket just because they always return a new JS object. r=peterv
...
Instead, mark them as "can OOM", since we have that concept now.
Differential Revision: https://phabricator.services.mozilla.com/D45251
2019-09-24 08:51:47 +00:00
Henri Sivonen
ea25c47adf
Bug 1561573 - Avoid linearization and inflation to UTF-16 of the string input to TextEncoder. r=jandem,bzbarsky
...
Differential Revision: https://phabricator.services.mozilla.com/D44121
2019-09-18 08:26:52 +00:00
Boris Zbarsky
66263f863f
Bug 1578173 part 6. Remove remaining uses of [Constructor] from bindings. r=edgar
...
Differential Revision: https://phabricator.services.mozilla.com/D45394
2019-09-12 11:01:17 +00:00
Henri Sivonen
b15134aa24
Bug 1514664 - Implement TextEncoder.encodeInto(). r=emk.
2019-01-11 12:35:17 +02:00
Sylvestre Ledru
e5a134f73a
Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format
...
# ignore-this-changeset
2018-11-30 11:46:48 +01:00
Jeff Gilbert
70a22b2878
Bug 1470325 - s/FooBinding/Foo_Binding/g - r=qdot
...
MozReview-Commit-ID: JtTcLL5OPF0
2018-06-26 17:05:01 -07:00
Henri Sivonen
7af0452b6b
Bug 1261841 part 2 - Use encoding_rs instead of uconv. r=emk,mystor.
...
MozReview-Commit-ID: 15Y5GTX98bv
2017-06-13 13:23:23 +03:00
Masatoshi Kimura
507086d44a
Bug 1257877 - Remove UTF-16 support from TextEncoder. r=hsivonen
2016-03-24 19:27:15 +09:00
Birunthan Mohanathas
a29151dc87
Bug 1182996 - Fix and add missing namespace comments. rs=ehsan
...
The bulk of this commit was generated by running:
run-clang-tidy.py \
-checks='-*,llvm-namespace-comment' \
-header-filter=^/.../mozilla-central/.* \
-fix
2015-07-13 08:25:42 -07:00
Andrew McCreight
92010d3e4c
Bug 1152551, part 2 - Fix mode lines in dom/. r=jst
2015-05-03 15:32:37 -04:00
Ehsan Akhgari
ea41d8de48
Bug 1145631 - Part 1: Replace MOZ_OVERRIDE and MOZ_FINAL with override and final in the tree; r=froydnj
...
This patch was automatically generated using the following script:
function convert() {
echo "Converting $1 to $2..."
find . \
! -wholename "*/.git*" \
! -wholename "obj-ff-dbg*" \
-type f \
\( -iname "*.cpp" \
-o -iname "*.h" \
-o -iname "*.c" \
-o -iname "*.cc" \
-o -iname "*.idl" \
-o -iname "*.ipdl" \
-o -iname "*.ipdlh" \
-o -iname "*.mm" \) | \
xargs -n 1 sed -i -e "s/\b$1\b/$2/g"
}
convert MOZ_OVERRIDE override
convert MOZ_FINAL final
2015-03-21 12:28:04 -04:00
Boris Zbarsky
ea881b3a53
Bug 1117172 part 2. Change the non-wrappercached WrapObject methods to allow passing in aGivenProto. r=peterv
...
The only manual changes here are to BindingUtils.h, Codegen.py, and
StructuredClone.cpp. The rest of this diff was generated by running the following commands:
find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/WrapObject\((JSContext *\* *(?:aCx|cx)),(\s*)(JS::MutableHandle<JSObject\*> aReflector)/WrapObject(\1,\2JS::Handle<JSObject*> aGivenProto,\2\3/g'
find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(Binding(?:_workers)?::Wrap\((?:aCx|cx)), this, aReflector/\1, this, aGivenProto, aReflector/'
2015-03-19 10:13:32 -04:00
Peter Van der Beken
a3f5de9681
Bug 1096328 - Remove nativeOwnership from Bindings.conf, make rooting analysis happy. r=bz.
2015-01-08 22:56:42 +01:00
Peter Van der Beken
7dea8f776c
Bug 1096328 - Remove nativeOwnership from Bindings.conf, make the WrapObject signature for non-refcounted objects the same as for refcounted objects. r=bz.
...
* * *
[mq]: owned_fold.patch
2014-11-01 15:00:28 +01:00
Boris Zbarsky
15f1dda59f
Bug 1092737 part 1. Update TextEncoder to various spec changes. r=emk
2014-11-21 14:58:45 -05:00
Boris Zbarsky
88e45ab7b2
Bug 1009675 part 3. Return WebIDL 'object' values as handles. r=peterv
2014-06-11 16:26:52 -04:00
Boris Zbarsky
1cb7d49b45
Bug 995546. Nix bogus GetParentObject methods on WebIDL objects without a wrapper cache. r=bholley
2014-04-15 22:58:43 -04:00
Boris Zbarsky
b95c359828
Bug 991742 part 8. Remove the "aScope" argument of WebIDL/nsWrapperCache WrapObject() methods. r=bholley
...
This patch was mostly generated with the following command:
find . -name "*.h" -o -name "*.cpp" | xargs sed -e '/WrapObject(JSContext/ {; N; s/\(WrapObject(JSContext *\* *a\{0,1\}[Cc]x\),\n\{0,1\} *JS::Handle<JSObject\*> a\{0,1\}[sS]cope/\1/ ; }' -i ""
and then reverting the changes that made to
dom/bindings/BindingUtils.h, since those WrapObject methods are not
the ones we're trying to change here, plus a bunch of manual fixups
for cases that this command did not catch (including all the callsites
of WrapObject()).
2014-04-08 18:27:18 -04:00
Boris Zbarsky
ae0180ee85
Bug 991742 part 6. Remove the "aScope" argument of binding Wrap() methods. r=bholley
...
This patch was mostly generated with this command:
find . -name "*.h" -o -name "*.cpp" | xargs sed -e 's/Binding::Wrap(aCx, aScope, this/Binding::Wrap(aCx, this/' -e 's/Binding_workers::Wrap(aCx, aScope, this/Binding_workers::Wrap(aCx, this/' -e 's/Binding::Wrap(cx, scope, this/Binding::Wrap(cx, this/' -i ""
plus a few manual fixes to dom/bindings/Codegen.py, js/xpconnect/src/event_impl_gen.py, and a few C++ files that were not caught in the search-and-replace above.
2014-04-08 18:27:17 -04:00
Kyle Huey
c504483d5a
Bug 903772: Followup to address missed review comment.
2013-08-23 10:29:57 -07:00
Kyle Huey
2e79ae8ee4
Bug 903772: Part 8 - Remove TextEncoderBase. r=emk
2013-08-22 22:17:10 -07:00
Kyle Huey
04e638813a
Bug 903772: Part 7 - Remove the worker thread TextEncoder implementation. r=emk
2013-08-22 22:17:10 -07:00
Kyle Huey
279381a195
Bug 903772: Part 3 - Refactor GlobalObject. r=peterv
2013-08-22 22:17:08 -07:00
Kyle Huey
b025804d12
Bug 903772: Part 1 - Add an API for creating typed arrays that doesn't require the caller to be wrapper cached. r=peterv
2013-08-22 22:17:07 -07:00
Boris Zbarsky
ebafdd1727
Bug 864727 part 5. Make all the WrapObject methods take a handle for the scope object. r=ms2ger
2013-04-25 12:29:54 -04:00
Masatoshi Kimura
7878ea38fd
Bug 848339 - Remove the vestigial boolean outparam from nsWrapperCache::WrapObject. r=bz
2013-03-12 08:03:47 +09:00
Masatoshi Kimura
ee5a3c3018
Bug 841479 - Remove nsISupports inheritance from TextDecoder and TextEncoder. r=bz
2013-02-15 05:36:50 +09:00
Peter Van der Beken
cefe1bd88b
Fix for bug 816088 (webIDL bindings try to extract nsISupports from the global object in static properties in workers). r=bz.
2012-12-03 17:07:49 +01:00
Ed Morley
f91e010656
Backout f3c145bd1dd2 & 5075690572a9 for OS X startup failures
2013-01-28 11:08:21 +00:00
Peter Van der Beken
87d44d16e4
Fix for bug 816088 (webIDL bindings try to extract nsISupports from the global object in static properties in workers). r=bz.
2012-12-03 17:07:49 +01:00
Masatoshi Kimura
917a116445
Bug 795542 - Part 1: Create Text(En|De)coderBase. r=bent
2012-12-22 09:15:43 +09:00
Masatoshi Kimura
62d5117220
Bug 801402 - Make EncodingUtil methods case sensitive. r=hsivonen
2012-11-07 18:04:22 -05:00
Masatoshi Kimura
62278904ea
Bug 801487 - Update WebIDL definitions. r=sicking
2012-10-24 22:03:21 -04:00
Masatoshi Kimura
3494a55571
Bug 764234 - Implement StringEncoding API. r=dougt,smontagu
2012-09-28 11:19:18 +01:00