Skip to content

.EPUB fails to load when nav.xhtml references missing script (../js/kobo.js) #643

@xFr0z3n

Description

@xFr0z3n

Steps to reproduce

  1. Open Mangayomi Novel tab
  2. Import an .EPUB file that contains a <script src="../js/kobo.js"> reference in nav.xhtml
  3. The referenced file (js/kobo.js) is not present in the EPUB
  4. Attempt to read it

Expected behavior

The .EPUB should load normally, even if optional JavaScript references are missing,
or the missing resource should be ignored.

Actual behavior

The .EPUB fails to load.

Mangayomi version

0.7.0

Device

iPhone 13, IOS 17.5.1

Other details

The issue was traced to nav.xhtml referencing a non-existent file:

<script src="../js/kobo.js"></script>

Removing ONLY this script reference (without changing any other EPUB content)
makes the same file load correctly in Mangayomi iOS.

This appears to be a Kobo-specific leftover that some .EPUB readers ignore,
but Mangayomi currently fails to handle missing resources in nav.xhtml.

Acknowledgements

  • I have searched the existing issues and this is a new ticket, NOT a duplicate or related to another open or closed issue.
  • I have written a short but informative title.
  • If this is an issue with an extension, I should be opening an issue in the extension's repository.
  • I have updated all installed extensions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions