Implement IDBCursor `request` attribute

This exposes the underlying IDBRequest of IDBCursor objects. It is a minor addition, exposing previously spec'd behavior.

Requests for cursors are different as they can succeed many times. When you call cursor.continue() the success of that operation is provided in the request returned by source.openCursor(). If I want to give an object store to another piece of code, I can just pass the object store. However, if I want to pass the cursor elsewhere, I also have to pass the related request. From this, it is reasonable to expose an IDBCursor's request object as an attribute.

Documentation

Specification

Editor's draft

Status in Chromium

Blink>Storage>IndexedDB


In development (tracking bug)

Consensus & Standardization

After a feature ships in Chrome, the values listed here are not guaranteed to be up to date.

Owners

Last updated on 2019-05-08