Skip to content
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

Prevent abort error from breaking test in FF (fixes #10792) #11614

Merged
merged 1 commit into from
Jun 21, 2018

Conversation

inexorabletash
Copy link
Member

The test intentionally aborts a versionchange transaction, which results in an AbortError being fired at the IDBOpenDBRequest. In browsers that bubble event errors up to window.error (i.e. Firefox) this will cause the harness to fail.

Call preventDefault() on the error since it's expected.

@inexorabletash
Copy link
Member Author

Apologies for pushing this branch to web-platform-tests/wpt itself rather than a clone; I forgot to update the origin for my new checkout when the repo moved. :( But I figured it would be noisier to delete this and recreate it - happy to do so if needed, though.

@zcorpan zcorpan merged commit bbe3411 into master Jun 21, 2018
@zcorpan zcorpan deleted the moz-idb-preventdefault branch June 21, 2018 21:00
@zcorpan
Copy link
Member

zcorpan commented Jun 21, 2018

Thanks! No problem with creating branches here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants