Emilio Cobos Álvarez
de09ab0dd6
Bug 1887719 - More consistently use UTF8String/nsCString for URLs. r=necko-reviewers,webidl,anti-tracking-reviewers,places-reviewers,jari,kershaw,janv,smaug,hsivonen
...
Sorry for the massive patch but I found it hard to split without
introducing a bunch of copies around...
This mostly makes necko and DOM agree on which strings to use, which
should result on less copies and conversions.
Differential Revision: https://phabricator.services.mozilla.com/D205601
2024-04-04 11:49:57 +00:00
Peter Van der Beken
eebaaa23dc
Bug 1640839 - Make WebIDL enum helper function to convert to string return an actual string. r=mccr8,media-playback-reviewers,padenot
...
Differential Revision: https://phabricator.services.mozilla.com/D201337
2024-03-02 07:50:21 +00:00
Natalia Csoregi
10b9ceb789
Backed out 13 changesets (bug 1640839) for causing bustage on Element.cpp CLOSED TREE
...
Backed out changeset 179ceb82c9e5 (bug 1640839)
Backed out changeset 73f498a821f0 (bug 1640839)
Backed out changeset dc2d3d0e0365 (bug 1640839)
Backed out changeset ddc989ac0509 (bug 1640839)
Backed out changeset e595bb3feea8 (bug 1640839)
Backed out changeset c85aca04e27f (bug 1640839)
Backed out changeset 98e8e3a4047a (bug 1640839)
Backed out changeset 59ef180517db (bug 1640839)
Backed out changeset af2f5e293662 (bug 1640839)
Backed out changeset 89aa6d9dc598 (bug 1640839)
Backed out changeset 67b722a722f9 (bug 1640839)
Backed out changeset 24a9665c6ced (bug 1640839)
Backed out changeset d93f199385e9 (bug 1640839)
2024-03-01 18:23:08 +02:00
Peter Van der Beken
171fc86507
Bug 1640839 - Make WebIDL enum helper function to convert to string return an actual string. r=mccr8,media-playback-reviewers,padenot
...
Differential Revision: https://phabricator.services.mozilla.com/D201337
2024-03-01 14:31:11 +00:00
Peter Van der Beken
18cd19e800
Bug 1777145 - Don't expose Wrap for WebIDL iterable iterator objects outside of binding code. r=edgar
...
Differential Revision: https://phabricator.services.mozilla.com/D156348
2022-09-22 18:28:18 +00:00
Sandor Molnar
d56cb7045b
Backed out 11 changesets (bug 1788969, bug 1782400, bug 1777145) for causing bp-hybri bustages. CLOSED TREE
...
Backed out changeset 8acabb924ef7 (bug 1782400)
Backed out changeset e3d452e99f77 (bug 1782400)
Backed out changeset 5727bc4895d2 (bug 1777145)
Backed out changeset cf375034e2b8 (bug 1777145)
Backed out changeset a50fd5608d8d (bug 1777145)
Backed out changeset f24853cacd7a (bug 1777145)
Backed out changeset c714f3a35b11 (bug 1777145)
Backed out changeset 56682c253427 (bug 1788969)
Backed out changeset edaf37ffc49d (bug 1788969)
Backed out changeset d19caa9f062b (bug 1788969)
Backed out changeset 18b26912dc03 (bug 1788969)
2022-09-22 19:13:01 +03:00
Peter Van der Beken
64e4961827
Bug 1777145 - Don't expose Wrap for WebIDL iterable iterator objects outside of binding code. r=edgar
...
Differential Revision: https://phabricator.services.mozilla.com/D156348
2022-09-22 15:02:25 +00:00
Kagami Sascha Rosylight
bdc8cd1499
Bug 1771025 - Part 1: Cleaning up redundant header includes r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D148073
2022-06-07 22:12:39 +00:00
Luca Greco
b9ef0a680e
Bug 1753810 - Make sure Cache::Put rejects calls originated from an expanded principal. r=dom-storage-reviewers,asuth
...
Differential Revision: https://phabricator.services.mozilla.com/D138070
2022-02-12 17:12:19 +00:00
Matthew Gaudet
108063d593
Bug 1748888 - Add ErrorResult parameter to PromiseNativeHandler callbacks r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D136423
2022-01-20 19:11:39 +00:00
Jan Varga
3e73e7ce93
Bug 1731960 - Move all Result extensions from QMResult.h to a dedicated file; r=dom-storage-reviewers,jari
...
Differential Revision: https://phabricator.services.mozilla.com/D126324
2021-11-30 05:05:51 +00:00
Jan Varga
e0c0c469a0
Bug 1728267 - Remove implicit ToResult from QM_TRY when two extra arguments are passed; r=dom-storage-reviewers,jstutte,jari
...
Differential Revision: https://phabricator.services.mozilla.com/D125315
2021-09-23 10:16:09 +00:00
Steve Fink
9838fc1b01
Bug 1727374 - Root Init dictionaries to fix rooting hazards. r=peterv
...
Differential Revision: https://phabricator.services.mozilla.com/D123633
2021-09-02 19:06:58 +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
Jan Varga
f35732b709
Bug 1709067 - CACHE: Remove module specific QM_TRY macros; r=dom-storage-reviewers,jstutte
...
Depends on D114080
Differential Revision: https://phabricator.services.mozilla.com/D114081
2021-05-03 19:44:39 +00:00
Simon Giesecke
b7bd2741cd
Bug 1683828 - Use QM_TRY et al. in Cache. r=dom-workers-and-storage-reviewers,ttung
...
Differential Revision: https://phabricator.services.mozilla.com/D100767
2021-01-14 15:51:47 +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
58c6fe2ef0
Bug 1667957 - Use new IntTo(C)String functions in dom/quota and its clients. r=dom-workers-and-storage-reviewers,ttung
...
Differential Revision: https://phabricator.services.mozilla.com/D91717
2020-10-14 15:45:50 +00:00
Simon Giesecke
b728921956
Bug 1627892 - Use SafeRefPtr for Request. r=dom-workers-and-storage-reviewers,perry
...
Differential Revision: https://phabricator.services.mozilla.com/D70390
2020-05-11 12:13:48 +00:00
Simon Giesecke
571a9b1afd
Bug 1627892 - Make CacheWorkerRef derive from SafeRefCounted. r=dom-workers-and-storage-reviewers,perry
...
Differential Revision: https://phabricator.services.mozilla.com/D69960
2020-05-11 12:12:22 +00:00
Simon Giesecke
2cae58d29d
Bug 1627892 - Make InternalRequest derive from SafeRefCounted. r=dom-workers-and-storage-reviewers,perry
...
Differential Revision: https://phabricator.services.mozilla.com/D69958
2020-05-11 12:10:53 +00:00
Simon Giesecke
5018032f01
Bug 1627892 - Replace custom AutoLock by BaseAutoLock. r=ttung
...
Differential Revision: https://phabricator.services.mozilla.com/D69945
2020-05-11 12:08:14 +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
Boris Zbarsky
e62a6fc4d1
Bug 1619112 part 2. Pass char literals instead of char16_t literals into ErrorResult throwing methods. r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D65538
2020-03-06 21:04:58 +00:00
Simon Giesecke
2a8c51d785
Bug 1613985 - Use default for equivalent-to-default constructors/destructors in dom/cache. r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D63139
2020-02-20 15:49:27 +00:00
Boris Zbarsky
35bc278e5f
Bug 1615022 part 2. Require an rvalue reference to reject a Promise with an ErrorResult. r=farre,kvark
...
The rejection process consumes the ErrorResult, so an rvalue reference is the honest thing here.
Differential Revision: https://phabricator.services.mozilla.com/D62632
2020-02-14 15:42:30 +00:00
Boris Zbarsky
bd477b4e4f
Bug 1613978. Allow passing u"...", not just nsAStrings, to templated ThrowType/RangeError. r=peterv
...
Differential Revision: https://phabricator.services.mozilla.com/D62061
2020-02-10 13:08:48 +00:00
Jeff Walden
5c07885dcf
Bug 1602882 - Move array operations to a new js/Array.h header. r=sfink,bzbarsky
...
Differential Revision: https://phabricator.services.mozilla.com/D56595
2019-12-11 06:17:44 +00:00
Boris Zbarsky
bc54ddc489
Bug 1591491. Add more use of FakeString::ShareOrDependUpon. r=froydnj
...
If someone then saves the resulting string, this will let us avoid a copy.
Differential Revision: https://phabricator.services.mozilla.com/D50635
2019-10-28 20:41:59 +00:00
Boris Zbarsky
c7e93db348
Bug 1589285 part 3. Use the new GetString methods for Web IDL enums in various places. r=edgar
...
The idea is to stop directly accessing EnumTypeValues::strings in type-unsafe
ways from consumer code.
Differential Revision: https://phabricator.services.mozilla.com/D49533
2019-10-17 23:40:57 +00:00
Boris Zbarsky
b92f406f4d
Bug 1581278 part 2. Add convenience methods for rejecting promises with various types of spec exceptions. r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D46383
2019-09-19 13:02:39 +00:00
Andrea Marchesini
d20f028404
Bug 1559919 - Finish the WorkerHolder cleanup - part 10 - CacheWorkerHolder ported to WorkerRef, r=asuth
...
Differential Revision: https://phabricator.services.mozilla.com/D35229
2019-07-12 11:17:59 +00:00
Andrea Marchesini
98981918ee
Bug 1490044 - Remove DOMPrefs. r=bzbarsky
...
Differential Revision: https://phabricator.services.mozilla.com/D33510
2019-06-13 09:02:03 +00:00
Alex Gaynor
2b388f974b
Bug 1533458 - replace OrVoid cache IPDL types with native maybe syntax; r=ttung
...
Differential Revision: https://phabricator.services.mozilla.com/D22546
2019-03-21 11:09:44 +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
Andrea Marchesini
36a423c3d1
Bug 1486698 - Update Fetch+Stream implementation to throw when the stream is disturbed or locked, r=bz
...
In this patch, I went through any place in DOM fetch code, where there are
ReadableStreams and update the locked, disturbed, readable checks.
Because we expose streams more often, we need an extra care in the use of
ErrorResult objects. JS streams can now throw exceptions and we need to handle
them.
This patch also fixes a bug in FileStreamReader::CloseAndRelease() which could
be called in case mReader creation fails.
2018-10-31 18:30:18 +01:00
Till Schneidereit
c08d9f23d7
Bug 1385890 - Fix Streams implementation in multiple-global uses. r=baku,tcampbell,jorendorff
...
Streams have multiple parts that can be JS objects from different compartments.
For example, the [[reader]] internal slot of a stream can point to a reader
object in another compartment.
This patch makes the ReadableStream implementation robust against mixing and
matching stream-related objects and methods from different globals.
This also removes ReadableStreamBYOBReader and ReadableStreamBYOBRequest for
now, with a view toward enabling basic ReadableStream features by default in
bug 1389628.
Differential Revision: https://phabricator.services.mozilla.com/D8450
2018-10-11 14:18:43 -05: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
Emilio Cobos Álvarez
4b8b5e1717
Bug 1465585: Switch from mozilla::Move to std::move. r=froydnj
...
This was done automatically replacing:
s/mozilla::Move/std::move/
s/ Move(/ std::move(/
s/(Move(/(std::move(/
Removing the 'using mozilla::Move;' lines.
And then with a few manual fixups, see the bug for the split series..
MozReview-Commit-ID: Jxze3adipUh
2018-06-01 10:45:27 +02:00
Boris Zbarsky
a9b5143d1a
Bug 1453339. Make it harder to mess up Promise::All. r=peterv
...
MozReview-Commit-ID: UO4wssYHj7
2018-04-13 19:31:42 -04:00
Ryan VanderMeulen
ae2dda6bb2
Backed out changeset 91406356569c (bug 1453339) for landing without review.
2018-04-14 10:25:15 -04:00
Boris Zbarsky
f0d51e4a5a
Bug 1453339 - Make it harder to mess up Promise::All. r=peterv
...
MozReview-Commit-ID: UO4wssYHj7
2018-04-12 17:03:49 -04:00
Andrea Marchesini
5e357eed9f
Bug 1432963 - Fixing workers headers - part 14 - WorkerPrivate without workers namespace, r=smaug
2018-01-31 08:24:08 +01:00
Andrea Marchesini
dde1b27e95
Bug 1419771 - Introduce DOMPrefs, a thread-safe access to preferences for DOM - part 3 - DOM Caches enabled, r=asuth
2018-01-08 14:05:03 +01:00
Ben Kelly
fad54f15b0
Bug 1397128 P9 Make content script usage of Cache API use lazy body loading. r=tt
2017-09-15 12:25:41 -07:00
Ben Kelly
05f0a13264
Bug 1397128 P8 Track which storage "namespace" each Cache object is associated with. r=tt
2017-09-15 12:25:41 -07:00
Ben Kelly
731fb43e27
Bug 1397128 P7 Add an OpenMode enumeration to control if individual Cache API requests eagerly or lazily opens bodies. r=tt
2017-09-15 12:25:41 -07:00
Sebastian Hengst
69014e361f
Backed out changeset b28740aedf34 (bug 1397128)
2017-09-15 18:28:27 +02:00