Cosmin Sabou
c3effd7450
Backed out 13 changesets (bug 1690111) for causing fetch related crashes.
...
Backed out changeset 5f2c25d194ad (bug 1690111)
Backed out changeset 76c408bcd053 (bug 1690111)
Backed out changeset 6d0649fdafff (bug 1690111)
Backed out changeset c1330b5e8c43 (bug 1690111)
Backed out changeset 5fa36d8fd2a5 (bug 1690111)
Backed out changeset daf7d747853a (bug 1690111)
Backed out changeset f70e09a7f5c6 (bug 1690111)
Backed out changeset 40c6d6eed7f8 (bug 1690111)
Backed out changeset 692f2a759573 (bug 1690111)
Backed out changeset 7140866dd9f6 (bug 1690111)
Backed out changeset 2865fe682139 (bug 1690111)
Backed out changeset 9dcd2416f8a5 (bug 1690111)
Backed out changeset 9c411bf84079 (bug 1690111)
2023-09-11 17:55:24 +03:00
Peter Van der Beken
312137a408
Bug 1690111 - Use new TypedArray APIs for processing data. r=farre,media-playback-reviewers,padenot,chunmin,sfink
...
Depends on D152497
Differential Revision: https://phabricator.services.mozilla.com/D152498
2023-09-11 12:52:20 +00:00
Kagami Sascha Rosylight
766a12da00
Bug 1486949 - Part 5: Implement Text{Decoder,Encoder}Stream r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D153782
2022-08-12 15:59:05 +00:00
Csoregi Natalia
1c9726959f
Backed out 6 changesets (bug 1486949) for causing hazard bustage on TextDecoderStream.cpp. CLOSED TREE
...
Backed out changeset e3dc48b94eef (bug 1486949)
Backed out changeset 57edeeebac29 (bug 1486949)
Backed out changeset f86c3b21e21c (bug 1486949)
Backed out changeset 862135f6c27f (bug 1486949)
Backed out changeset 8dd9f5b9e042 (bug 1486949)
Backed out changeset 7cb29e4feb27 (bug 1486949)
2022-08-12 06:36:41 +03:00
Kagami Sascha Rosylight
95f13f99a6
Bug 1486949 - Part 5: Implement Text{Decoder,Encoder}Stream r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D153782
2022-08-11 21:16:18 +00:00
Noemi Erli
e0c65db5b0
Backed out 6 changesets (bug 1486949) for causing failures in test_serviceworker_interfaces.html CLOSED TREE
...
Backed out changeset 73cb8cf7a3f0 (bug 1486949)
Backed out changeset 91adc5cca2e6 (bug 1486949)
Backed out changeset 89137ad4e5c6 (bug 1486949)
Backed out changeset 74ca8f06eb06 (bug 1486949)
Backed out changeset 00f43009d419 (bug 1486949)
Backed out changeset 9c38a30397bd (bug 1486949)
2022-08-11 18:00:55 +03:00
Kagami Sascha Rosylight
e0a153b1c3
Bug 1486949 - Part 5: Implement Text{Decoder,Encoder}Stream r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D153782
2022-08-11 13:54:16 +00:00
Nika Layzell
0e975d0e8d
Bug 1741665 - Align nsCString's public size_type better with other C++ APIs, r=mccr8,geckoview-reviewers,agi
...
Differential Revision: https://phabricator.services.mozilla.com/D131422
2021-12-13 21:47:56 +00:00
ssummar
43e270e58d
Bug 1603127 - Replaced mozilla::Tuple with std::tuple and applied structured bindings in mozilla/Encoding.h. r=hsivonen
...
Differential Revision: https://phabricator.services.mozilla.com/D129920
2021-11-08 08:14:00 +00:00
Cristian Tuns
3b4f87f69c
Backed out changeset 7e8e3747c3f8 (bug 1603127) for causing toolchains build bustages (Bug 1739589). CLOSED TREE
2021-11-05 07:23:45 -04:00
ssummar
f2f04d2ae8
Bug 1603127 - Replaced mozilla::Tuple with std::tuple and applied structured bindings in mozilla/Encoding.h. r=hsivonen
...
Differential Revision: https://phabricator.services.mozilla.com/D129920
2021-11-05 05:33:58 +00:00
ssummar
b7e03bdd6d
Bug 1626517 - Replaced mozilla::Unused with mozilla::Ignore in mozilla::Decoder/mozilla::Encoder calls. r=m_kato
...
Differential Revision: https://phabricator.services.mozilla.com/D129022
2021-10-25 12:31:41 +00:00
Nika Layzell
2a2d0f5a75
Bug 1717526 - String's implicit conversion operator causes COW relocations, r=xpcom-reviewers,mccr8
...
Differential Revision: https://phabricator.services.mozilla.com/D118430
2021-06-23 01:57:00 +00:00
Alexandru Michis
cb7933316f
Backed out changeset 3beb01f5d643 (bug 1717526) for causing gtest failures in SpanTest.from_xpcom_collections
...
CLOSED TREE
2021-06-23 01:58:49 +03:00
Nika Layzell
69e1e0d5a5
Bug 1717526 - String's implicit conversion operator causes COW relocations, r=xpcom-reviewers,mccr8
...
Differential Revision: https://phabricator.services.mozilla.com/D118430
2021-06-22 21:18:03 +00:00
Sylvestre Ledru
68b806d604
Bug 1674637 - Use nested namespaces in dom/ r=sg,andi
...
Also add some missing namespace qualifications
Done with:
./mach static-analysis check --checks="-*,modernize-concat-nested-namespaces" --fix dom/
./mach clang-format -p $(hg status dom/|grep ^M|awk '{print $2}')
Differential Revision: https://phabricator.services.mozilla.com/D95456
2020-11-04 17:04:01 +00:00
Butkovits Atila
a6e7dcc53f
Backed out changeset c0adbf7522dc (bug 1674637) for bustage on GMPParent.cpp. CLOSED TREE
2020-11-04 10:54:36 +02:00
Sylvestre Ledru
8f709b39e8
Bug 1674637 - Use nested namespaces in dom/ r=sg,andi
...
Also add some missing namespace qualifications
Done with:
./mach static-analysis check --checks="-*,modernize-concat-nested-namespaces" --fix dom/
./mach clang-format -p $(hg status dom/|grep ^M|awk '{print $2}')
Differential Revision: https://phabricator.services.mozilla.com/D95456
2020-11-04 08:29:00 +00:00
Simon Giesecke
39124586b5
Bug 1653335 - Replace MakeSpan uses by constructor calls. r=froydnj
...
Differential Revision: https://phabricator.services.mozilla.com/D83817
2020-08-07 07:49:47 +00:00
Boris Zbarsky
19cf87ee1e
Bug 1619112 part 5. Stop accepting nsAString in ErrorResult error-throwing. r=smaug
...
Callers should pass in UTF-8, since that's what the JS engine ends up with in the end anyway.
The various URL changes are because NS_NewURI converts incoming nsAString to
UTF-8 anyway. So we might as well do that up-front and then use the UTF-8
string for both the NS_NewURI call and the error-reporting if it fails.
Differential Revision: https://phabricator.services.mozilla.com/D65543
2020-03-06 21:08:02 +00:00
Edgar Chen
ac8c576f36
bug 1610296 - Rename TypedArray_base::ComputeLengthAndData to TypedArray_base::ComputeState; r=bzbarsky
...
Differential Revision: https://phabricator.services.mozilla.com/D60514
2020-01-23 03:22:06 +00:00
Emilio Cobos Álvarez
6b29f46140
Bug 1607816 - Replace mozilla::{Max, Min}Value with std::numeric_limits. r=froydnj
...
Differential Revision: https://phabricator.services.mozilla.com/D59153
2020-01-08 16:30:40 +00:00
Henri Sivonen
29cdd78476
Bug 1574892 - Make a reused TextDecoder apply the original BOM policy. r=annevk
...
Differential Revision: https://phabricator.services.mozilla.com/D42492
2019-08-20 07:54:02 +00: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
Boris Zbarsky
a2c678890b
Bug 1102679 part 2. Implement support for the ignoreBOM option for TextDecoder. r=hsivonen
...
When ignoreBOM is true, the encoding spec says to not treat leading DOM bytes
specially, which corresponds to our NewDecoderWithoutBOMHandling factory method
for the encoder.
2018-08-08 14:30:01 -04:00
Boris Zbarsky
eb9be35d95
Bug 1102679 part 1. Pass around the TextDecoderOptions as needed, not just one boolean from it. r=hsivonen
2018-08-08 14:30:01 -04:00
Jonathan Watt
711f1d78b4
Bug 1406819 - Remove various bits of dead code from dom/. r=baku
...
Differential Revision: https://phabricator.services.mozilla.com/D109
2017-10-11 10:09:13 +01:00
Masatoshi Kimura
1fd69c2f1a
Bug 1369025 - Remove mozilla::dom::EncodingUtils. r=hsivonen
...
MozReview-Commit-ID: 5O5WtxbmATQ
2017-06-17 11:54:40 +09: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
Nathan Froyd
991c9222f1
Bug 1222475 - use UniquePtr<T[]> instead of nsAutoArrayPtr<T> in dom/; r=baku,bz,terrence
2015-11-03 13:29:19 -05:00
Olli Pettay
3fcd0b860c
Bug 1236227, don't OOM in TextDecoder, r=baku
2016-01-05 15:48:47 +02:00
Boris Zbarsky
b99f535968
Bug 1226479. Change ErrorResult::ThrowTypeError/ThrowRangeError to take string references, not pointers. r=mccr8
2015-11-20 13:36:46 -05:00
Andrew McCreight
28c2afe833
Bug 1197893 - Check the number of arguments for ThrowTypeError() and ThrowRangeError() at compile time. r=peterv
2015-10-05 09:38:14 -07:00
Wes Kocher
b3d2857460
Backed out changeset 821791826960 (bug 1197893) for Nexus build failures CLOSED TREE
2015-10-02 16:17:05 -07:00
Andrew McCreight
ec01c9ea15
Bug 1197893 - Check the number of arguments for ThrowTypeError() and ThrowRangeError() at compile time. r=peterv
2015-10-02 15:09:02 -07:00
Andrew McCreight
e218651f1b
Backed out changeset 6fa9cdf4002b for breaking the build.
2015-10-02 10:49:28 -07:00
Andrew McCreight
edd47ecd4c
Bug 1197893 - Check the number of arguments for ThrowTypeError() and ThrowRangeError() at compile time. r=peterv
2015-10-02 10:42:08 -07: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
Dhi Aurrahman
7e9effba7e
Bug 1125766 - Throw proper error types for TextEncoder(), TextDecoder() and TextDecoder.decode(). r=bz
2015-02-04 18:46:26 +07:00
Mike Hommey
715db83e04
Bug 1126593 - Add a global fallible instance, so that using fallible works directly, everywhere. r=njn
2015-02-02 09:56:13 +09:00
Boris Zbarsky
06be114d7b
Bug 1092737 part 2. Update TextDecoder to various spec changes. r=emk
2014-11-21 14:58:51 -05:00
Henri Sivonen
3feac9d066
Bug 943268 - Remove nsCharsetAlias and nsCharsetConverterManager. r=emk.
2014-05-08 12:32:00 +03:00
Ehsan Akhgari
68bfe70f09
Bug 927728 - Part 1: Replace PRUnichar with char16_t; r=roc
...
This patch was automatically generated by the following script:
#!/bin/bash
# Command to convert PRUnichar to char16_t
function convert() {
echo "Converting $1 to $2..."
find . ! -wholename "*nsprpub*" \
! -wholename "*security/nss*" \
! -wholename "*modules/libmar*" \
! -wholename "*/.hg*" \
! -wholename "obj-ff-dbg*" \
! -name prtypes.h \
! -name Char16.h \
-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 PRUnichar char16_t
2014-01-04 10:02:17 -05:00
Henri Sivonen
91c27016f0
Bug 848842 - Stop using heuristic detection in the File API. r=bzbarsky.
2013-12-17 12:47:25 +02:00
Henri Sivonen
f88a566f89
Bug 919935 - Add a deCOMtaminated way to instantiate nsIUnicodeDecoders and nsIUnicodeEncoders. r=emk.
2013-11-26 09:31:52 +02:00
Henri Sivonen
bba76134de
Bug 863728 - Implement the replacement encoding. r=emk.
2013-11-25 10:06:56 +02:00
Kyle Huey
421b20207b
Bug 903772: Part 6 - Remove TextDecoderBase. r=emk
2013-08-22 22:17:09 -07:00
Kyle Huey
4a2b3fa070
Bug 903772: Part 5 - Remove the worker TextDecoder implementation. r=emk
2013-08-22 22:17:09 -07:00
Masatoshi Kimura
ee5a3c3018
Bug 841479 - Remove nsISupports inheritance from TextDecoder and TextEncoder. r=bz
2013-02-15 05:36:50 +09:00