Contact emails
dmu...@chromium.org, pal...@chromium.org
Spec
https://github.com/dmurph/indexed-db-observers/blob/gh-pages/EXPLAINER.md
Summary
IndexedDB observers allow a developer to listen to changes to their database, including changes from other browsing contexts.
Motivation
IndexedDB spans multiple browsing contexts (tabs, workers, etc) and there is no way to observe changes across all of these contexts. Trying to use a javascript wrapper involves a lot of piping and complex ack-ing (basically rolling your own transaction locking model) if there needs to be data consistency during change event. Thus we want to add IDB Observers to the existing specification, which allows us to implement this in a safe and efficient manner. Use cases for observers include:
Interoperability and Compatibility Risk
This is additive to the current specification for IndexedDB.
Mozilla has expressed interest in this bug.
Ongoing technical constraints
None.
Will this feature be supported on all six Blink platforms (Windows, Mac, Linux, Chrome OS, Android, and Android WebView)?
Yes.
OWP launch tracking bug
Launch bug: crbug.com/609934
Dev bug: crbug.com/457449
Link to entry on the feature dashboard
https://www.chromestatus.com/features/5669292892749824Requesting approval to ship?
No
I have a couple comments on this proposal:
- This doesn't follow the observer pattern of MutationObserver, IntersectionObserver, PerformanceObserver or the upcoming ResizeObserver.
- I don't see a way to disconnect an observation, all the other ones support that.
- The filter argument is optional, we've made this mistake a couple times and I really want us to start making authors be explicit. Ex. PerormanceObserver requires you to list the record types you care about.
I have a couple comments on this proposal:
- This doesn't follow the observer pattern of MutationObserver, IntersectionObserver, PerformanceObserver or the upcoming ResizeObserver.
- I don't see a way to disconnect an observation, all the other ones support that.
- The filter argument is optional, we've made this mistake a couple times and I really want us to start making authors be explicit. Ex. PerormanceObserver requires you to list the record types you care about.
Amazing!
--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.