Skip to content

Commit 57643f2

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 UltraBlame original commit: 07f277f3030fb9de5f598ba66aa475fe6c3aad88
1 parent ab315c2 commit 57643f2

File tree

5 files changed

+34
-156
lines changed

5 files changed

+34
-156
lines changed

dom/indexedDB/IDBCursor.cpp

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1176,6 +1176,26 @@ direction
11761176
;
11771177
}
11781178
}
1179+
RefPtr
1180+
<
1181+
IDBRequest
1182+
>
1183+
IDBCursor
1184+
:
1185+
:
1186+
Request
1187+
(
1188+
)
1189+
const
1190+
{
1191+
AssertIsOnOwningThread
1192+
(
1193+
)
1194+
;
1195+
return
1196+
mRequest
1197+
;
1198+
}
11791199
template
11801200
<
11811201
IDBCursor

dom/indexedDB/IDBCursor.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -688,6 +688,15 @@ GetDirection
688688
)
689689
const
690690
;
691+
RefPtr
692+
<
693+
IDBRequest
694+
>
695+
Request
696+
(
697+
)
698+
const
699+
;
691700
virtual
692701
void
693702
GetKey

dom/webidl/IDBCursor.webidl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,11 @@ attribute
195195
any
196196
primaryKey
197197
;
198+
readonly
199+
attribute
200+
IDBRequest
201+
request
202+
;
198203
[
199204
Throws
200205
]

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

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

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

Lines changed: 0 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -45,16 +45,6 @@ expected
4545
:
4646
FAIL
4747
[
48-
IDBCursor
49-
interface
50-
:
51-
attribute
52-
request
53-
]
54-
expected
55-
:
56-
FAIL
57-
[
5848
IDBTransaction
5949
interface
6050
:
@@ -109,16 +99,6 @@ expected
10999
:
110100
FAIL
111101
[
112-
IDBCursor
113-
interface
114-
:
115-
attribute
116-
request
117-
]
118-
expected
119-
:
120-
FAIL
121-
[
122102
IDBTransaction
123103
interface
124104
:
@@ -175,16 +155,6 @@ expected
175155
:
176156
FAIL
177157
[
178-
IDBCursor
179-
interface
180-
:
181-
attribute
182-
request
183-
]
184-
expected
185-
:
186-
FAIL
187-
[
188158
IDBTransaction
189159
interface
190160
:
@@ -255,16 +225,6 @@ expected
255225
:
256226
FAIL
257227
[
258-
IDBCursor
259-
interface
260-
:
261-
attribute
262-
request
263-
]
264-
expected
265-
:
266-
FAIL
267-
[
268228
IDBTransaction
269229
interface
270230
:

0 commit comments

Comments
 (0)