angular / zone.js

Implements Zones for JavaScript
https://github.com/angular/angular/tree/master/packages/zone.js/
MIT License
3.25k stars 407 forks source link

zone.js breaks IndexedDB on Safari via EventTarget monkey patch #1183

Closed jpike88 closed 5 years ago

jpike88 commented 5 years ago

I've been looking at migrating from ng1 over the last week and after much pain I've realised that pouchdb-browser was breaking due to a modification that affects IndexedDB on Safari and Mobile Safari (WKWebView).

Issue reproduced here:

https://stackblitz.com/edit/angular-issue-repro2-bo2cgs

Issue only occurs on Safari/Mobile Safari.

Uncaught NotFoundError: Failed to execute 'transaction' on 'IDBDatabase': One of the specified object stores was not found.

As someone who was finally looking at migrating to ng2, this is a major disappointment, I waited a long time before migrating as I thought it would have matured by now. But breaking IndexedDB on a popular browser is a dealbreaker for continuing with the migration.

EDIT: this old PR looks like it might be related? Don't know https://github.com/angular/zone.js/pull/204