GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — cursor.request · Issue #255 · w3c/IndexedDB

cursor.request #255

New issue
Copy link
New issue
Copy link
Closed
Closed
cursor.request#255
Copy link
Assignees
jakearchibald
Labels
cursorsfeature requestfeedback wanted

Description

@jakearchibald
jakearchibald
opened on Mar 4, 2019
Issue body actions

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.

Should cursor.request return https://w3c.github.io/IndexedDB/#cursor-request?

Reacted by Joshua Bell, Andrew Sutherland, Soviut, Tim Weißenfels, Ståle Raknes, Forge, Vinícius Lemes, erhise, Claude Kirke, Oleksandr Nikitin and 3 more

Activity

  1. inexorabletash commented on Mar 4, 2019

    @inexorabletash
    inexorabletash
    on Mar 4, 2019
    Member
    More actions

    I've run into wanting this for prollyfills. SGTM.

    Should be easy to spec/test/ship.

  2. jakearchibald commented on Mar 5, 2019

    @jakearchibald
    jakearchibald
    on Mar 5, 2019
    ContributorAuthor
    More actions

    Yeah, I ran into this trying to make wrap() and unwrap() functions that 'upgrade' IDB objects. Works for everything except cursors.

  3. jakearchibald commented on Mar 6, 2019

    @jakearchibald
    jakearchibald
    on Mar 6, 2019
    ContributorAuthor
    More actions

    I'll take this on.

    I've been wanting to document how standards are developed for a while, so @surma and I will film ourselves updating the spec and writing tests.

    Reacted by Billie Hilton, Trent Monahan, Theo, Danilo Fuchs, Pauline Nemchak, dpeter99, Petri-Oosthuizen and David Brito
  4. inexorabletash commented on Mar 6, 2019

    @inexorabletash
    inexorabletash
    on Mar 6, 2019
    Member
    More actions

    @asutherland @aliams @beidson - any feedback on this?

  5. inexorabletash
    added
    feedback wanted
    feature request
    cursors
    on Mar 6, 2019
  6. aliams commented on Mar 6, 2019

    @aliams
    aliams
    on Mar 6, 2019
    More actions

    No objections here. It sounds like we're just exposing a property that is already initialized as part of the cursor and should live as long as the cursor.

    Reacted by Jake Archibald
  7. asutherland commented on Mar 6, 2019

    @asutherland
    asutherland
    on Mar 6, 2019
    Collaborator
    More actions

    Did my thumbs-up not say it all? ;) This sounds good from a Gecko/Firefox perspective. We have the request available and Jake's magical upgrade use-case sounds both reasonable and essential to help move IDB forward from an API that only an implementer could love to the favorite API of developers everywhere!

    Reacted by Jake Archibald and Pauline Nemchak
    Reacted by Jake Archibald, Joshua Bell, Mark Tomlin, Danilo Fuchs, Pauline Nemchak and Joel Mason
  8. beidson commented on Mar 6, 2019

    @beidson
    beidson
    on Mar 6, 2019
    More actions

    yah this is fine.

    Reacted by Jake Archibald
  9. inexorabletash commented on Mar 6, 2019

    @inexorabletash
    inexorabletash
    on Mar 6, 2019
    Member
    More actions

    Thumbs everywhere! Thanks all!

    Thanks @jakearchibald and @surma - looking forward to the PRs. Blink change should be trivial once WPTs are in.

  10. inexorabletash
    assigned
    jakearchibald
    on Mar 11, 2019
  11. inexorabletash
    closed this as completedin #257on Mar 14, 2019
  12. inexorabletash
    added a commit that references this issue on Mar 14, 2019

    Add cursor.request (#257)

    318c6ec
  13. inexorabletash commented on Mar 18, 2019

    @inexorabletash
    inexorabletash
    on Mar 18, 2019
    Member
    More actions

    Filed https://bugs.chromium.org/p/chromium/issues/detail?id=943344 to track Blink impl

    Reacted by Victor Costan
  14. asutherland commented on Mar 19, 2019

    @asutherland
    asutherland
    on Mar 19, 2019
    Collaborator
    More actions

    Filed https://bugzilla.mozilla.org/show_bug.cgi?id=1536540 to track Gecko/Firefox impl.

    Reacted by Victor Costan
  15. Soviut commented on Apr 16, 2019

    @Soviut
    Soviut
    on Apr 16, 2019
    More actions

    For posterity, here's the episode @jakearchibald and @surma did about this very issue https://www.youtube.com/watch?v=y1TEPQz02iU

    Reacted by Timo Mühlbach, Kristoffer Lindström, Trent Monahan, Vinícius Lemes, Nicola Dal Maso, Brendan McGuire, Belan, Dennis Kugelmann, Jonas Kuske, Theo and 6 more
    Reacted by Marceline Szmadzinski, Ståle Raknes, Grzegorz Bielski, Michael Richins, Martino di Filippo, Kristoffer Lindström, Forge, Trent Monahan, Mark Tomlin, Belan and 12 more
  16. inexorabletash commented on May 3, 2019

    @inexorabletash
    inexorabletash
    on May 3, 2019
    Member
    More actions

    FYI, @Yannic's change just landed in the Chromium repo so this should be available for testing in the next Chrome Canary build.

    Reacted by Yannic, Trent Monahan, Theo, Jake Archibald and Pauline Nemchak
  17. julienw commented on Apr 27, 2020

    @julienw
    julienw
    on Apr 27, 2020
    More actions

    Just landed in Firefox!

    Reacted by Jake Archibald, Joshua Bell and Pauline Nemchak
  18. inexorabletash commented on Apr 27, 2020

    @inexorabletash
    inexorabletash
    on Apr 27, 2020
    Member
    More actions

    Hey @julienw - if you know the prospective Firefox release number I can add it to the "under construction" box https://w3c.github.io/IndexedDB/#dom-idbcursor-request

  19. asutherland commented on Apr 27, 2020

    @asutherland
    asutherland
    on Apr 27, 2020
    Collaborator
    More actions

    https://bugzilla.mozilla.org/show_bug.cgi?id=1536540 is fixed in Firefox 77, targeted to reach release ~ June 2nd

    Reacted by Jake Archibald
  20. inexorabletash
    added a commit that references this issue on Feb 1, 2021

    Add cursor.request (#257)

    24c0b0f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @jakearchibald
    jakearchibald

Labels

cursorsfeature requestfeedback wanted

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402503 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.