Skip to content

Commit 045d511

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 24ffdb7 commit 045d511

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
@@ -1033,6 +1033,26 @@ direction
10331033
;
10341034
}
10351035
}
1036+
RefPtr
1037+
<
1038+
IDBRequest
1039+
>
1040+
IDBCursor
1041+
:
1042+
:
1043+
Request
1044+
(
1045+
)
1046+
const
1047+
{
1048+
AssertIsOnOwningThread
1049+
(
1050+
)
1051+
;
1052+
return
1053+
mRequest
1054+
;
1055+
}
10361056
template
10371057
<
10381058
IDBCursor

dom/indexedDB/IDBCursor.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -462,6 +462,15 @@ GetDirection
462462
)
463463
const
464464
;
465+
RefPtr
466+
<
467+
IDBRequest
468+
>
469+
Request
470+
(
471+
)
472+
const
473+
;
465474
virtual
466475
void
467476
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)