Commit Graph

593 Commits

Author SHA1 Message Date
Thomas Wisniewski
2ea85218e1 Bug 1878148 - fix the WPT IndexedDB/serialize-sharedarraybuffer-throws.https.html to trigger a data clone error per spec, and send the correct DataCloneError it expects; r=jari,dom-storage-reviewers,janv
Differential Revision: https://phabricator.services.mozilla.com/D208506
2024-04-30 16:15:12 +00:00
Cristian Tuns
456c55f00c Backed out changeset 45defed78aaf (bug 1878148) for causing multiple wpt failures with *serialization* in summary. CLOSED TREE 2024-04-27 01:19:06 -04:00
Thomas Wisniewski
472ff8b016 Bug 1878148 - fix the WPT IndexedDB/serialize-sharedarraybuffer-throws.https.html to trigger a data clone error per spec, and send the correct DataCloneError it expects; r=jari,dom-storage-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D208506
2024-04-27 03:43:37 +00:00
Sandor Molnar
3c12feda11 Backed out changeset 133181fbd1ef (bug 1878148) for causing xpc crashes @ mozilla::dom::(anonymous namespace)::ensureCorrectDataCloneError 2024-04-26 00:52:35 +03:00
Thomas Wisniewski
a5de005cb1 Bug 1878148 - fix the WPT IndexedDB/serialize-sharedarraybuffer-throws.https.html to trigger a data clone error per spec, and send the correct DataCloneError it expects; r=jari,dom-storage-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D208506
2024-04-25 20:19:29 +00:00
Natalia Csoregi
4ddadce3a3 Backed out changeset a913463932b7 (bug 1878148) for causing failures on key-conversion-exceptions.htm . CLOSED TREE 2024-04-25 19:53:01 +03:00
Thomas Wisniewski
4f5ebe3abc Bug 1878148 - fix the WPT IndexedDB/serialize-sharedarraybuffer-throws.https.html to trigger a data clone error per spec, and send the correct DataCloneError it expects; r=jari,dom-storage-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D208506
2024-04-25 15:40:14 +00:00
Jari Jalkanen
3f212919f2 Bug 1404276 - Support IDB key extraction with autoincremented primary key. r=dom-storage-reviewers,janv
This patch is originally authored by Bevis Tseng.

Differential Revision: https://phabricator.services.mozilla.com/D204361
2024-04-08 15:25:27 +00:00
Oliver Medhurst
773db8b7b5 Bug 1872675 - Deprecate IDBObjectStore.createIndex() locale option r=webidl,dom-storage-reviewers,smaug,saschanaz,janv
Deprecate and get a use counter for it to likely unship soon
(depending on use counter results)

Differential Revision: https://phabricator.services.mozilla.com/D197506
2024-01-09 14:05:14 +00:00
Peter Van der Beken
6554afa9d7 Bug 1828264 - Assertion from creating a OffscreenCanvas on a media track graph thread. r=farre
Differential Revision: https://phabricator.services.mozilla.com/D178173
2023-06-06 06:51:34 +00:00
Nika Layzell
f685760140 Bug 1607634 - Part 4b: Changes for not-nullable actor types being wrapped in NotNull, r=ipc-reviewers,necko-reviewers,mccr8
These are the code changes required by the IPDL changes in part 4a.

Differential Revision: https://phabricator.services.mozilla.com/D168887
2023-03-20 15:40:36 +00:00
Nika Layzell
ce0f2fd9a8 Bug 1814683 - Part 1: Combine parent/child fields in IPDL structs/unions, r=ipc-reviewers,necko-reviewers,mccr8
This combines the multiple fields or variants which were previously used to
track sided types like protocol types into a single field wrapped with a
SideVariant.

This will be used in the next part to avoid the need for default constructors
for actor types allowing the proper types to be used.

Differential Revision: https://phabricator.services.mozilla.com/D168879
2023-03-20 15:40:31 +00:00
Iulian Moraru
0c8d23ecea Backed out 14 changesets (bug 1607634, bug 1814683, bug 1815177, bug 1814686) for causing build bustages on MaybeStorageBase. CLOSED TREE
Backed out changeset ae1c0551cea5 (bug 1815177)
Backed out changeset a11cafaa1884 (bug 1814686)
Backed out changeset 621507521762 (bug 1814686)
Backed out changeset ad692c73e381 (bug 1814686)
Backed out changeset 3be031e503dc (bug 1607634)
Backed out changeset aebbaa145d2d (bug 1607634)
Backed out changeset 9aa1f346fe14 (bug 1607634)
Backed out changeset e3eb77ad55ca (bug 1607634)
Backed out changeset e60591e5d5cf (bug 1607634)
Backed out changeset 6e43042d204a (bug 1814683)
Backed out changeset 1706e88652d6 (bug 1814683)
Backed out changeset 6878a1590e91 (bug 1814683)
Backed out changeset b1c980c834d8 (bug 1814683)
Backed out changeset 94480b82d102 (bug 1814683)
2023-03-15 01:58:36 +02:00
Nika Layzell
43fc8fd043 Bug 1607634 - Part 4b: Changes for not-nullable actor types being wrapped in NotNull, r=ipc-reviewers,necko-reviewers,mccr8
These are the code changes required by the IPDL changes in part 4a.

Differential Revision: https://phabricator.services.mozilla.com/D168887
2023-03-14 19:31:40 +00:00
Nika Layzell
a0d0b2fb86 Bug 1814683 - Part 1: Combine parent/child fields in IPDL structs/unions, r=ipc-reviewers,necko-reviewers,mccr8
This combines the multiple fields or variants which were previously used to
track sided types like protocol types into a single field wrapped with a
SideVariant.

This will be used in the next part to avoid the need for default constructors
for actor types allowing the proper types to be used.

Differential Revision: https://phabricator.services.mozilla.com/D168879
2023-03-14 19:31:36 +00:00
Kagami Sascha Rosylight
92d5815f14 Bug 1500343 - Part 10: Remove IDBFileHandle/IDBFileRequest/IDBMutableFile r=dom-storage-reviewers,asuth
Differential Revision: https://phabricator.services.mozilla.com/D160385
2023-02-23 08:59:09 +00:00
Kagami Sascha Rosylight
ff44f5867b Bug 1500343 - Part 9: Remove DatabaseOrMutableFile r=dom-storage-reviewers,asuth
Differential Revision: https://phabricator.services.mozilla.com/D160384
2023-02-23 08:59:09 +00:00
Kagami Sascha Rosylight
e83ba6f383 Bug 1500343 - Part 8: Remove PBackgroundMutableFile r=dom-storage-reviewers,asuth
Differential Revision: https://phabricator.services.mozilla.com/D160383
2023-02-23 08:59:09 +00:00
Kagami Sascha Rosylight
eaa9262555 Bug 1500343 - Part 4: Remove IDL for IDBFileHandle/FileRequest/MutableFile r=dom-storage-reviewers,emilio,asuth
Differential Revision: https://phabricator.services.mozilla.com/D159733
2023-02-23 08:59:07 +00:00
Iulian Moraru
04ad484c0c Backed out 7 changesets (bug 1500343) for causing build bustages on ActorsParent.cpp. CLOSED TREE
Backed out changeset 5d0b35ae2241 (bug 1500343)
Backed out changeset abe4c30b975e (bug 1500343)
Backed out changeset c5c7e5d59035 (bug 1500343)
Backed out changeset de71281af75c (bug 1500343)
Backed out changeset 220abddba749 (bug 1500343)
Backed out changeset f6a065149ce1 (bug 1500343)
Backed out changeset 1f9e20fcae19 (bug 1500343)
2023-02-23 01:51:44 +02:00
Kagami Sascha Rosylight
729748ab06 Bug 1500343 - Part 10: Remove IDBFileHandle/IDBFileRequest/IDBMutableFile r=dom-storage-reviewers,asuth
Differential Revision: https://phabricator.services.mozilla.com/D160385
2023-02-22 20:03:18 +00:00
Kagami Sascha Rosylight
56cb861de1 Bug 1500343 - Part 9: Remove DatabaseOrMutableFile r=dom-storage-reviewers,asuth
Differential Revision: https://phabricator.services.mozilla.com/D160384
2023-02-22 20:03:17 +00:00
Kagami Sascha Rosylight
0f01aa9510 Bug 1500343 - Part 8: Remove PBackgroundMutableFile r=dom-storage-reviewers,asuth
Differential Revision: https://phabricator.services.mozilla.com/D160383
2023-02-22 20:03:17 +00:00
Kagami Sascha Rosylight
22b6e33d67 Bug 1500343 - Part 4: Remove IDL for IDBFileHandle/FileRequest/MutableFile r=dom-storage-reviewers,emilio,asuth
Differential Revision: https://phabricator.services.mozilla.com/D159733
2023-02-22 20:03:15 +00:00
Kagami Sascha Rosylight
ca13cee2dd Bug 1500343 - Part 3: Remove dom.fileHandle.enabled usage in IDBRequest.cpp r=dom-storage-reviewers,jari
Differential Revision: https://phabricator.services.mozilla.com/D159732
2023-02-08 15:51:06 +00:00
Olli Pettay
048bd344c4 Bug 1777574, automate CC zone handling, r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D155084
2022-09-07 11:22:51 +00:00
Kagami Sascha Rosylight
3014b2fe59 Bug 1769290 - Part 8: Apply mozilla-js-handle-rooted-typedef against dom/canvas,crypto,fetch,gamepad,geolocation,indexedDB,ipc r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D148281
2022-06-05 20:54:59 +00:00
Jari Jalkanen
1c5a7a733f Bug 1708705 - Check new requests are rejected during structured cloning. r=dom-storage-reviewers,janv
The check is restored from the previous implementation.

Differential Revision: https://phabricator.services.mozilla.com/D137031
2022-02-02 12:42:10 +00:00
Jari Jalkanen
c66861192b Bug 1708705 - Handle transaction abort during value clone. r=dom-storage-reviewers,jstutte
Differential Revision: https://phabricator.services.mozilla.com/D125509
2022-01-26 09:18:24 +00:00
Jari Jalkanen
4d9d985ecd Bug 1711657 - Rename Note to Info in Severity enum and QM_TRY macros. r=dom-storage-reviewers,janv
Differential Revision: https://phabricator.services.mozilla.com/D121618
2021-08-04 09:39:55 +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
Peter Van der Beken
5771bce2ad Bug 1712725 - Stop clearing JS things when calling mozilla::DropJSObjects. r=mccr8
There's a pattern of clearing JS things when calling mozilla::DropJSObjects,
but mozilla::DropJSObjects already clears the JS things itself by calling
CycleCollectedJSRuntime::RemoveJSHolder.

Differential Revision: https://phabricator.services.mozilla.com/D115885
2021-05-27 08:35:40 +00:00
Jan Varga
4dd5e829fb Bug 1709067 - IDB: Remove module specific QM_TRY macros; r=dom-storage-reviewers,jstutte
Differential Revision: https://phabricator.services.mozilla.com/D114080
2021-05-03 19:44:38 +00:00
Jan Varga
c1bf74632e Bug 1686191 - Have a way to specifically report warnings around QM_TRY; r=asuth,sg,dom-storage-reviewers
This patch:
- adds QM_WARNONLY_TRY/QM_NOTEONLY_TRY macros
- adds QM_WARNONLY_TRY_UNWRAP/QM_NOTEONLY_TRY_UNWRAP macros
- adds QM_OR_ELSE_WARN/QM_OR_ELSE_NOTE sub macros
- replaces non-propagating uses of NS_WARNING with redundant messages by
  QM_WARNONLY_TRY
- replaces uses of QM_TRY with orElse by QM_TRY(QM_OR_ELSE_WARN(...))
- replaces uses of QM_TRY inside an extra lambda with QM_WARNONLY_TRY
- replaces uses of QM_TRY with QM_VOID with QM_WARNONLY_TRY.
- replaces uses of QM_TRY with unwanted warnings with QM_NOTEONLY_TRY
- replaces uses of QM_TRY with additional Maybe wrapping for doing a
  fallback with QM_TRY(QM_OR_ELSE_WARN(...))

Differential Revision: https://phabricator.services.mozilla.com/D108424
2021-03-24 12:27:53 +00:00
Butkovits Atila
0f02bd2182 Backed out changeset 2a3316bd2409 (bug 1686191) for causing bustages on QuotaCommon.h. CLOSED TREE 2021-03-24 07:12:55 +02:00
Jan Varga
2c51bce65c Bug 1686191 - Have a way to specifically report warnings around QM_TRY; r=asuth,sg,dom-storage-reviewers
This patch:
- adds QM_WARNONLY_TRY/QM_NOTEONLY_TRY macros
- adds QM_WARNONLY_TRY_UNWRAP/QM_NOTEONLY_TRY_UNWRAP macros
- adds QM_OR_ELSE_WARN/QM_OR_ELSE_NOTE sub macros
- replaces non-propagating uses of NS_WARNING with redundant messages by
  QM_WARNONLY_TRY
- replaces uses of QM_TRY with orElse by QM_TRY(QM_OR_ELSE_WARN(...))
- replaces uses of QM_TRY inside an extra lambda with QM_WARNONLY_TRY
- replaces uses of QM_TRY with QM_VOID with QM_WARNONLY_TRY.
- replaces uses of QM_TRY with unwanted warnings with QM_NOTEONLY_TRY
- replaces uses of QM_TRY with additional Maybe wrapping for doing a
  fallback with QM_TRY(QM_OR_ELSE_WARN(...))

Differential Revision: https://phabricator.services.mozilla.com/D108424
2021-03-24 04:40:10 +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
0a2dc8a4ac Bug 1663924 - Replace output parameters of KeyPath::Parse by return value. r=dom-workers-and-storage-reviewers,ttung
Differential Revision: https://phabricator.services.mozilla.com/D91167
2020-10-19 10:08:54 +00:00
Simon Giesecke
e262d1f0b8 Bug 1665347 - Do not indicate SpecialValues::Invalid could be returned on functions that never return it. r=dom-workers-and-storage-reviewers,janv
Differential Revision: https://phabricator.services.mozilla.com/D90962
2020-10-06 08:39:04 +00:00
Simon Giesecke
54a4e17a0b Bug 1665347 - Make IDBResult based on mozilla::Result. r=dom-workers-and-storage-reviewers,janv
Differential Revision: https://phabricator.services.mozilla.com/D90562
2020-10-06 08:37:59 +00:00
Simon Giesecke
535b627ea9 Bug 1666219 - Renamed QM_TRY_VAR etc. to QM_TRY_UNWRAP etc. r=dom-workers-and-storage-reviewers,ttung,janv
Also change some left-over QM_TRY_VAR uses with const target declarations to
QM_TRY_INSPECT et al.

Differential Revision: https://phabricator.services.mozilla.com/D90873
2020-10-02 13:23:49 +00:00
Simon Giesecke
254c691951 Bug 1668548 - Only pass the error value to a cleanup function with QM_TRY*. r=dom-workers-and-storage-reviewers,janv
Differential Revision: https://phabricator.services.mozilla.com/D92067
2020-10-02 10:04:37 +00:00
Sebastian Hengst
07e61ece2b Backed out 5 changesets (bug 1666219, bug 1665347) for crashing hazard task. CLOSED TREE.
Backed out changeset c261ec06a826 (bug 1665347)
Backed out changeset 212c9df41410 (bug 1665347)
Backed out changeset 435f02d9f1d7 (bug 1665347)
Backed out changeset 7b36a79247b7 (bug 1666219)
Backed out changeset af8025162523 (bug 1665347)
2020-10-01 23:17:19 +02:00
Simon Giesecke
dd4cf5dedd Bug 1665347 - Do not indicate SpecialValues::Invalid could be returned on functions that never return it. r=dom-workers-and-storage-reviewers,janv
Differential Revision: https://phabricator.services.mozilla.com/D90962
2020-10-01 15:30:36 +00:00
Simon Giesecke
8b03004195 Bug 1666219 - Renamed QM_TRY_VAR etc. to QM_TRY_UNWRAP etc. r=dom-workers-and-storage-reviewers,ttung,janv
Also change some left-over QM_TRY_VAR uses with const target declarations to
QM_TRY_INSPECT et al.

Differential Revision: https://phabricator.services.mozilla.com/D90873
2020-10-01 15:37:50 +00:00
Simon Giesecke
9fb9c90cc0 Bug 1665347 - Make IDBResult based on mozilla::Result. r=dom-workers-and-storage-reviewers,janv
Differential Revision: https://phabricator.services.mozilla.com/D90562
2020-10-01 15:30:36 +00:00
Bogdan Tara
7bbd692ffa Backed out 5 changesets (bug 1666219, bug 1665347) for indexedDB related bustage CLOSED TREE
Backed out changeset 5cd7e2d67f91 (bug 1665347)
Backed out changeset 9159fdd05097 (bug 1665347)
Backed out changeset 64a086636738 (bug 1665347)
Backed out changeset 5ef18af381ec (bug 1666219)
Backed out changeset 3b81349a5f39 (bug 1665347)
2020-10-01 17:41:23 +03:00
Simon Giesecke
e41aa38d86 Bug 1665347 - Do not indicate SpecialValues::Invalid could be returned on functions that never return it. r=dom-workers-and-storage-reviewers,janv
Differential Revision: https://phabricator.services.mozilla.com/D90962
2020-10-01 12:04:27 +00:00