New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Set request result/done flag appropriately in open/delete #202
Conversation
63b68ff
to
44b82fc
Compare
WPT coverage was lacking! Fortunately, Chrome and Firefox already pass. New tests: web-platform-tests/wpt#5899 |
I think this PR covers it well... However, besides if you wanted to add that invisible step to unset the done flag for successful transactions, there is the case also of For example, for the following in the steps to open a database, "If connection was closed, create and return a newly created "AbortError" DOMException and abort these steps.", this isn't followed by setting the I think mention of setting the request result to |
44b82fc
to
0e6c056
Compare
Thanks!
Rather than doing this I updated the non-normative comment so it doesn't claim the done flag will be unset in all cases.
Great catch! I addressed this as you suggested...
... but only for open(), since deleteDatabase() doesn't have a path where the request would be "done" and get a result/error except at the very end. |
Oh yes... I c...there will be nothing to clear... So considering the
...upon a |
Yes. It could be made a bit more rigorous, as "if the request resulted in an error" is bit of action-at-a-distance. But for this PR... everything look good? |
Yup, all good, thanks! |
…5899) Tests for cases in w3c/IndexedDB#202 that weren't obviously covered already - the properties of the request (readyState, result, error) during upgradeneeded, after transaction complete/abort, and after success/error. Some assertions were flaky in Chrome (details in https://bugs.chromium.org/p/chromium/issues/detail?id=723846) and are disabled here.
For #161:
I need to verify we have WPT coverage for this.
@brettz9 - can you review?