Skip to content
This repository was archived by the owner on Jul 9, 2025. It is now read-only.

Commit 86ba544

Browse files
committed
Bug 1536540 - Implement IDBCursor.request attribute. r=dom-workers-and-storage-reviewers,janv,webidl,baku
Differential Revision: https://phabricator.services.mozilla.com/D71786
1 parent 059c4f1 commit 86ba544

File tree

5 files changed

+9
-39
lines changed

5 files changed

+9
-39
lines changed

dom/indexedDB/IDBCursor.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,11 @@ IDBCursorDirection IDBCursor::GetDirection() const {
213213
}
214214
}
215215

216+
RefPtr<IDBRequest> IDBCursor::Request() const {
217+
AssertIsOnOwningThread();
218+
return mRequest;
219+
}
220+
216221
template <IDBCursor::Type CursorType>
217222
void IDBTypedCursor<CursorType>::GetSource(
218223
OwningIDBObjectStoreOrIDBIndex& aSource) const {

dom/indexedDB/IDBCursor.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,8 @@ class IDBCursor : public nsISupports, public nsWrapperCache {
113113

114114
IDBCursorDirection GetDirection() const;
115115

116+
RefPtr<IDBRequest> Request() const;
117+
116118
virtual void GetKey(JSContext* aCx, JS::MutableHandle<JS::Value> aResult,
117119
ErrorResult& aRv) = 0;
118120

dom/webidl/IDBCursor.webidl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ interface IDBCursor {
2727
[Throws]
2828
readonly attribute any primaryKey;
2929

30+
readonly attribute IDBRequest request;
31+
3032
[Throws]
3133
IDBRequest update (any value);
3234

testing/web-platform/meta/IndexedDB/idbcursor-request.any.js.ini

Lines changed: 0 additions & 27 deletions
This file was deleted.

testing/web-platform/meta/IndexedDB/idlharness.any.js.ini

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@
55
[IDBFactory interface: operation databases()]
66
expected: FAIL
77

8-
[IDBCursor interface: attribute request]
9-
expected: FAIL
10-
118
[IDBTransaction interface: attribute durability]
129
expected: FAIL
1310

@@ -19,9 +16,6 @@
1916
[IDBFactory interface: operation databases()]
2017
expected: FAIL
2118

22-
[IDBCursor interface: attribute request]
23-
expected: FAIL
24-
2519
[IDBTransaction interface: attribute durability]
2620
expected: FAIL
2721

@@ -33,9 +27,6 @@
3327
[IDBFactory interface: operation databases()]
3428
expected: FAIL
3529

36-
[IDBCursor interface: attribute request]
37-
expected: FAIL
38-
3930
[IDBTransaction interface: attribute durability]
4031
expected: FAIL
4132

@@ -50,9 +41,6 @@
5041
[IDBFactory interface: operation databases()]
5142
expected: FAIL
5243

53-
[IDBCursor interface: attribute request]
54-
expected: FAIL
55-
5644
[IDBTransaction interface: attribute durability]
5745
expected: FAIL
5846

0 commit comments

Comments
 (0)