Steps to Reproduce
- Build & run iOS mobile-html prototype https://github.com/wikimedia/wikipedia-ios-lite (master)
- Open any article
- Tap any reference
Expected Results
- App doesn't crash
Actual Results
- App crashes
Environments Observed
- Prod
Additional notes
- It looks like iOS is unable to decode DOMRect object that's included in ReferenceItem. DOMRect behaves differently than plain JS objects - for example, calling Object.keys(someDOMRectObject) will return an empty array. Node 12.3.1 has a toJSON() method that converts DOMRect objects into plain JS objects but since the page library is still on 10.16.0, we can't use it. We could create a plain object using DOMRect's keys and values.