You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 7, 2025. It is now read-only.
Under certain circumstances, a location/CFI reported by the SDK becomes invalid (or no longer exists in the new DOM structure). The easiest way to demonstrate is to:
Ask the SDK to give us its current location.
Make some change that affects the page structure or DOM.
Navigate away to some random spot (best if a different chapter).
Attempt to re-apply the CFI from step 1.
Outcome:
The open request fails, either sending the user to the beginning of the chapter (the idref from the attempted page open), or it just silently fails and you stay on the page you're already on.
In our test, we ask for the current location calling bookmarkCurrentPage(), make the font change, navigate away, and then try to navigate back to that spot using openSpineElementCfi().
Steps to reproduce
The "changes" we've tested so far that we know will cause the bug:
Changing the text size
Applying the CFI across different browsers (Android to iOS or vice versa)
Test file(s)
We tested on a handful of DRM-free Epub's, which we can provide but don't expect to make a difference.
Product
Readium cloud reader app
When using the readium-shared-js library on Android and iOS platforms.